/* Homepage redesign (walk-through era). Layers on top of the shared premium.css
   (nav, base type, lead forms, shimmer button, reveals) — which four other pages also use,
   so nothing here edits it. Every class is namespaced `hm-`.
   Signature element: the trade showcase. Everything around it stays quiet. */

:root { --hm-radius: 18px; --hm-shadow: 0 30px 60px -32px rgba(16, 18, 16, .35); }

/* 0. The daylight half of the film.
   The walk-through is drawn in drafting language — grid, corner brackets, dimension rules,
   sheet numbers — because the people we build for read blueprints. The page keeps the same
   vocabulary at ink weights that belong on a light background, so scrolling out of the film
   reads as the lights coming up rather than as landing on a different website.
   Same token names as walk.css, different values: there the line glows, here it is ink. */
:root { --bp-rule: #2B6489; --bp-wash: rgba(43, 100, 137, .13); --bp-mark: rgba(43, 100, 137, .45); }

.hm-hero { position: relative; isolation: isolate; }
.hm-hero::before {
  content: ""; position: absolute; inset: -1px 0 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--bp-wash) 1px, transparent 1px),
                    linear-gradient(90deg, var(--bp-wash) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 45%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 45%, transparent 82%);
}
.hm-hero-grid { position: relative; z-index: 1; }

/* The showcase is presented as a drawing sheet: bracketed corners and a sheet number, the
   same marks the film draws each site inside before it goes live. */
.hm-sheet { position: relative; max-width: 60rem; margin-inline: auto; padding: clamp(14px, 2vw, 26px); }
.hm-sheet::before, .hm-sheet::after {
  content: ""; position: absolute; width: clamp(18px, 2.4vw, 30px); height: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--bp-mark); pointer-events: none;
}
.hm-sheet::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hm-sheet::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hm-sheet-no {
  position: absolute; right: clamp(14px, 2vw, 26px); top: 0; transform: translateY(-50%);
  background: var(--ground, #FBFBFA); padding-inline: .5rem;
  font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-rule);
}
.hm-stage-cap { font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace); font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase; }
.hm-stage-cap .hm-open { font-family: var(--font-sans, 'Geist', sans-serif); font-size: .92rem;
  letter-spacing: 0; text-transform: none; }

/* The closing call to action is the one place the beam from the film reappears. */
.hm-final { position: relative; }
.hm-final::after {
  content: ""; position: absolute; left: 50%; bottom: -1.6rem; width: min(22rem, 70%); height: 1px;
  transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bp-mark), transparent);
}

@media (max-width: 640px) {
  .hm-sheet { padding: 12px; }
  .hm-sheet-no { font-size: .62rem; }
}

.hm-wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--pad); }
.hm-sr { position: absolute; left: -9999px; }
.hm-section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.hm-head { display: grid; gap: .9rem; justify-items: center; text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hm-head p { max-width: 38rem; color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.hm-head--left { justify-items: start; text-align: left; }
.hm-head--left p a { color: var(--green); }

/* 1. Hero: approved copy and form, beside a fanned deck of sample sites */
.hm-hero { text-align: left; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hm-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hm-hero-copy { display: grid; gap: 1.2rem; justify-items: start; }
.hm-hero h1 { margin: 0; max-width: 12em; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
.hm-badge { font-size: .88rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; background: var(--surface); }
.hm-badge b { color: var(--green); font-weight: 600; }
.hm-lede { margin: 0; max-width: 34rem; font-size: 1.1rem; line-height: 1.6; color: var(--muted); }
.hm-lede strong { color: var(--ink); font-weight: 600; }
.hm-form { margin: .4rem 0 0; width: 100%; max-width: 36rem; }

.hm-deck { position: relative; aspect-ratio: 1.02; max-width: 100%; }
.hm-card { position: absolute; margin: 0; width: 82%; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--hm-shadow); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hm-card img { display: block; width: 100%; height: auto; }
.hm-card--1 { left: 0; bottom: 6%; transform: rotate(-2deg); z-index: 3; }
.hm-card--2 { right: 0; top: 16%; transform: rotate(3deg); z-index: 2; }
.hm-card--3 { left: 12%; top: 0; transform: rotate(-5deg) scale(.92); z-index: 1; }
.hm-deck:hover .hm-card--1 { transform: rotate(-4deg) translate(-4%, 4%); }
.hm-deck:hover .hm-card--2 { transform: rotate(6deg) translate(5%, -2%); }
.hm-deck:hover .hm-card--3 { transform: rotate(-8deg) scale(.92) translate(-3%, -6%); }
.hm-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #F1F1EF; border-bottom: 1px solid var(--line); }
.hm-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D8D8D4; }
.hm-deck-note { position: absolute; left: 0; right: 0; bottom: -2.2rem; margin: 0; text-align: center; font-size: .85rem; color: var(--soft); }

/* 2. Promises: a quiet strip with line icons that draw themselves in */
.hm-promises { border-block: 1px solid var(--line); background: var(--surface); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.hm-promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.5rem); }
.hm-promise { display: grid; gap: .5rem; align-content: start; }
.hm-promise h3 { font-size: 1.1rem; margin: .3rem 0 0; }
.hm-promise p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.hm-icon { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.4s ease .2s; }
.reveal.in .hm-icon { stroke-dashoffset: 0; }

/* 3. Trade showcase: the one bold element */
.hm-trades { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.6rem; }
.hm-trade { font: inherit; font-weight: 500; font-size: .98rem; cursor: pointer; padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.hm-trade:hover { border-color: var(--ink); }
.hm-trade.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hm-stage { margin: 0 auto; max-width: 60rem; border-radius: var(--hm-radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: 0 50px 90px -45px rgba(16, 18, 16, .45); }
.hm-bar--url span { margin-left: 10px; flex: 1; text-align: center; font-size: .8rem; color: var(--muted); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-stage img { display: block; width: 100%; height: auto; transition: opacity .35s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.hm-stage.swapping img { opacity: 0; transform: scale(1.015); }
.hm-url { order: 3; flex-basis: 100%; font-size: .8rem; color: var(--muted); }
.hm-stage-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.2rem; padding: .95rem 1.2rem;
  border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.hm-open { color: var(--green); font-weight: 600; text-underline-offset: 4px; }

.hm-compare { display: grid; gap: 1.2rem; max-width: 60rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.hm-compare-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; }
.hm-compare-copy h3 { font-size: 1.6rem; margin: 0; }
.hm-compare-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.hm-ba { margin: 0; }
/* Both screenshots are cropped to the same frame from the top, whatever their real heights. */
.hm-ba .ba-slider { aspect-ratio: 16 / 10; }
.hm-ba .ba-slider > img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* 4. Voices */
.hm-voices { background: var(--surface); border-block: 1px solid var(--line); }
.hm-voices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.hm-voices-grid .hm-head { grid-column: 1 / -1; margin-bottom: .5rem; max-width: 32rem; }
.hm-quote { margin: 0; padding: 1.6rem; border-radius: var(--hm-radius); background: var(--ground); border: 1px solid var(--line); }
.hm-quote p { margin: 0; font-size: 1.12rem; line-height: 1.5; letter-spacing: -0.01em; }
.hm-answer { padding: 1.6rem; border-radius: var(--hm-radius); background: var(--ink); color: #F4F4F2; display: grid; gap: .6rem; }
.hm-answer-label { font-size: .85rem; color: #7FD6AA; }
.hm-answer p { margin: 0; line-height: 1.55; }

/* 5. Timeline: a real four-step sequence, so the numbering is earned */
.hm-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; position: relative; }
.hm-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 1.05rem; height: 2px; background: var(--line); }
.hm-timeline::after { content: ""; position: absolute; left: 0; top: 1.05rem; height: 2px; width: 0; background: var(--green); transition: width 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
.hm-timeline.in::after { width: 100%; }
.hm-timeline li { position: relative; padding-top: 2.8rem; display: grid; gap: .45rem; align-content: start; }
.hm-timeline li::before { content: ""; position: absolute; top: .55rem; left: 0; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--green); }
.hm-day { font-size: .85rem; font-weight: 600; color: var(--green); }
.hm-timeline h3 { margin: 0; font-size: 1.2rem; }
.hm-timeline p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* 6. Pricing */
.hm-price-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.hm-price-card { padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: 24px; background: var(--ink); color: #F4F4F2; display: grid; gap: 1.1rem; align-content: start; }
.hm-price-card h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.hm-price { margin: 0; font-size: clamp(4rem, 3rem + 4vw, 6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-price small { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: #9DA39D; margin-left: .5rem; }
.hm-price-why { margin: 0; color: #B8BDB8; line-height: 1.6; }
.hm-btn { justify-self: start; display: inline-flex; padding: .95rem 1.6rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.hm-btn:hover { background: #7FD6AA; }
.hm-price-lists { display: grid; gap: 1.2rem; }
.hm-price-lists > div { padding: 1.6rem; border-radius: var(--hm-radius); border: 1px solid var(--line); background: var(--surface); }
.hm-price-lists h3 { margin: 0 0 .8rem; font-size: 1.1rem; }
.hm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hm-list li { display: flex; gap: .65rem; align-items: baseline; line-height: 1.45; }
.hm-list li::before { flex: none; font-weight: 700; }
.hm-list--yes li::before { content: "\2713"; color: var(--green); }
.hm-list--no li::before { content: "\2715"; color: #B4452F; }
.hm-list--no li { color: var(--muted); }

/* 7. Who */
.hm-who-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; max-width: 52rem; }
.hm-monogram { width: clamp(4.5rem, 9vw, 6.5rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; }
.hm-who-grid h2 { margin: 0 0 1rem; }
.hm-who-grid p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 1.05rem; max-width: 40rem; }
.hm-sig { margin-top: 1rem !important; color: var(--ink) !important; font-weight: 500; }

/* 8. FAQ accordion (answers stay in the HTML, so search engines read them all) */
.hm-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.hm-faq-grid .hm-head { position: sticky; top: 6rem; margin: 0; }
.hm-faq details { border-bottom: 1px solid var(--line); }
.hm-faq details:first-child { border-top: 1px solid var(--line); }
.hm-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem .2rem; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .2s ease; }
.hm-faq details[open] > summary::after { transform: rotate(45deg); background-color: #E4F3EB; }
.hm-faq summary:hover { color: var(--green); }
.hm-faq-a { overflow: hidden; padding: 0 3rem 1.3rem .2rem; color: var(--muted); line-height: 1.7; }

/* 9. Final */
.hm-final { margin: 0; }

/* Phones and tablets */
@media (max-width: 880px) {
  .hm-hero-grid, .hm-price-grid, .hm-faq-grid { grid-template-columns: 1fr; }
  .hm-deck { width: min(100%, 30rem); justify-self: center; margin-bottom: 2rem; }
  .hm-promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-voices-grid { grid-template-columns: 1fr; }
  .hm-timeline { grid-template-columns: 1fr; gap: 0; padding-left: 2rem; }
  .hm-timeline::before, .hm-timeline::after { left: .5rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .hm-timeline::after { height: 0; transition: height 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
  .hm-timeline.in::after { height: 100%; width: 2px; }
  .hm-timeline li { padding: 0 0 1.8rem; }
  .hm-timeline li::before { left: -1.95rem; top: .1rem; }
  .hm-faq-grid .hm-head { position: static; }
  .hm-faq-a { padding-right: .2rem; }
}
@media (max-width: 520px) {
  .hm-promise-grid { grid-template-columns: 1fr; }
  /* The two slider labels would collide on a phone: put "before" at the bottom. */
  .hm-ba .ba-slider__tag { font-size: .62rem; }
  .hm-ba .ba-slider__tag--before { top: auto; bottom: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-icon { stroke-dashoffset: 0; transition: none; }
  .hm-timeline::after { transition: none; }
  .hm-card, .hm-stage img, .hm-faq summary::after { transition: none; }
}
.form-error { color: #9a1c18; font-size: .9rem; line-height: 1.4; margin: .5rem 0 0; }
.form-error[hidden] { display: none; }
.wk-row .form-error { flex-basis: 100%; color: #fff; background: #8b2420; padding: .65rem .9rem; border-radius: .5rem; }

.leadform.hm-form, .final .leadform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; gap: .4rem; padding: .65rem; }
.leadform.hm-form input:not([type="checkbox"]):not([type="hidden"]), .final .leadform input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; background: rgba(127, 127, 127, .08); border-radius: .45rem; }
.leadform input[type="checkbox"] { flex: none; min-width: auto; width: 1.1rem; height: 1.1rem; padding: 0; accent-color: #168756; }
.leadform .photo-permission, .leadform .trade-availability { grid-column: 1 / -1; margin: .25rem .3rem; font-size: .78rem; line-height: 1.35; }
.leadform .photo-permission { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.leadform .trade-availability { font-weight: 600; }
.leadform.hm-form button, .final .leadform button { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .leadform.hm-form, .final .leadform { grid-template-columns: 1fr; }
}

.hm-sample-proof { background: #e9f2ed; border-block: 1px solid #c8ddd0; padding: clamp(1.2rem, 3vw, 2rem) 0; }
.hm-sample-proof-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hm-sample-proof h2 { margin: 0 0 .4rem; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.025em; }
.hm-sample-proof p { max-width: 53rem; margin: 0; color: #375145; line-height: 1.5; }
.hm-sample-proof a { display: inline-flex; flex: none; padding: .85rem 1.1rem; border-radius: .7rem; background: #163d2c; color: #fff; font-weight: 700; text-decoration: none; }
.hm-sample-proof a:focus-visible, .wk-sample:focus-visible { outline: 3px solid #3da96f; outline-offset: 3px; }
@media (max-width: 740px) { .hm-sample-proof-inner { display: grid; } .hm-sample-proof a { justify-self: start; } }
