/* Home (/) and product (/features) page layout. The Hallmark stamp for the site is the first lines of site.css. */

/* Only the home and product pages load this file. Colors and fonts come from the tokens in site.css. */
.home .btn:active,.product .btn:active{transform:translateY(1px)}
.home .btn:disabled,.product .btn:disabled{opacity:.6;cursor:not-allowed}
.home .sample,.product .sample{font-family:var(--sans);letter-spacing:0}

/* Home hero: headline, one sentence, two actions, the real console beside them */
.h-hero{padding-block:40px 32px}
.h-hero-in{display:grid;gap:28px;grid-template-columns:minmax(0,1fr);align-items:center}
.h-hero-copy{display:flex;flex-direction:column;gap:16px;min-width:0}
.h-hero h1{font-size:clamp(40px,6vw,64px);line-height:1.02;color:var(--chrome-fg);overflow-wrap:break-word;min-width:0}
.h-hero .lead{font-size:20px;color:var(--chrome-fg);max-width:24em}
.h-for{max-width:30em;margin:0;padding-left:14px;border-left:3px solid var(--ember);color:var(--chrome-fg);font-size:18px;font-weight:600;line-height:1.4}
.h-hero-shot{margin:0}
.h-hero-shot figcaption{color:var(--chrome-muted)}

/* Home sections */
.h-section{padding-block:64px}
.h-section + .h-section{border-top:1px solid var(--line)}
.h-section h2{font-size:clamp(28px,3.4vw,40px);max-width:20em}
.h-gains{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:28px;grid-template-columns:minmax(0,1fr)}
.h-gains li{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:3px solid var(--brand)}
.h-gains h3{font-size:26px}
.h-gains p{color:var(--muted);font-size:18px;max-width:22em}
.h-more{margin-top:32px}
.h-more .btn,.h-hero .btn,.p-cta .btn{white-space:nowrap}
.h-split{display:grid;gap:32px;grid-template-columns:minmax(0,1fr);align-items:center}
.h-split-copy{display:flex;flex-direction:column;gap:16px;min-width:0}
.h-split-copy > p{color:var(--muted);font-size:18px;max-width:30em}
.h-split-copy .h-more{margin-top:8px}
.h-steps{margin:8px 0 0;padding:0;list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:16px}
.h-steps li{counter-increment:s;display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 16px;font-size:17px;color:var(--muted)}
.h-steps li::before{content:counter(s);grid-row:span 2;font-family:var(--head);font-weight:700;font-size:28px;line-height:1.1;color:var(--brand)}
.h-steps b{color:var(--fg);font-weight:700;display:block}
.h-close{text-align:left}
.h-close p{color:var(--muted);font-size:18px;margin-top:12px;max-width:30em}

/* Product page */
.p-head{padding-block:48px 28px}
.p-head .wrap{display:flex;flex-direction:column;gap:16px}
.p-head h1{font-size:clamp(36px,5vw,52px);color:var(--chrome-fg);overflow-wrap:break-word;min-width:0}
.p-head .lead{font-size:20px;color:var(--chrome-fg);max-width:32em}
.p-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.p-jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--chrome-line);border-radius:999px;color:var(--chrome-fg);text-decoration:none;font-size:15px;font-weight:600;transition:border-color var(--fast),color var(--fast)}
.p-jump a:hover{border-color:var(--ember);color:var(--flare)}
.p-jump a:active{color:var(--ember)}
.p-sec{padding-block:56px;scroll-margin-top:136px}
.p-sec + .p-sec{border-top:1px solid var(--line)}
.p-sec h2{font-size:clamp(26px,3vw,36px);max-width:22em}
.p-sec h3{font-size:21px;margin-top:8px}
.p-row{display:grid;gap:28px;grid-template-columns:minmax(0,1fr);align-items:start}
.p-row + .p-row{margin-top:48px}
.p-copy{display:flex;flex-direction:column;gap:16px;min-width:0}
.p-copy > p{color:var(--muted)}
.p-copy .check{gap:8px}
.p-measure{color:var(--muted);max-width:40em;margin-top:12px}
.p-wide{margin-top:40px}
.p-small .frame{max-width:300px}
.p-tall .frame{max-height:720px;overflow:hidden}
#pricing .callout{margin-top:20px}
#pricing .plans{margin-top:20px}
.p-cta{padding-block:56px}
.p-cta .wrap{display:flex;flex-direction:column;gap:16px}
.p-cta h2{color:var(--chrome-fg);font-size:clamp(28px,3.4vw,40px)}
.p-cta p{color:var(--chrome-muted);font-size:18px;max-width:32em}

@media (min-width:640px){
  .h-gains{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:960px){
  .h-hero{padding-block:56px 48px}
  .h-hero-in{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px}
  .h-split{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px}
  .h-split-rev .h-split-copy{order:2}
  .h-split-rev{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .p-row{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px}
  .p-row-rev{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .p-row-rev .p-copy{order:2}
}
@media (prefers-reduced-motion:reduce){
  .home .btn,.product .btn,.p-jump a{transition:none}
  .home .btn:active,.product .btn:active{transform:none}
}

/* Product: two-column list and a tag beside a heading */
.p-cols{margin-top:16px}
.p-sec h2 .tag{vertical-align:middle;font-family:var(--sans);margin-left:8px}
@media (min-width:960px){.p-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px}}

/* Features: floating section menu, only on /features. Zero height so it floats over the page instead of pushing it down. */
.p-float{position:sticky;top:84px;z-index:15;height:0;display:flex;align-items:flex-start;justify-content:center;pointer-events:none}
.p-float-in{pointer-events:auto;display:flex;gap:4px;max-width:calc(100vw - 32px);margin-top:16px;padding:4px;overflow-x:auto;scrollbar-width:none;background:var(--chrome);border:1px solid var(--chrome-line);border-radius:999px;box-shadow:0 8px 24px var(--fixed-0-0-0-5)}
.p-float + .p-sec{padding-top:128px}
.p-float-in::-webkit-scrollbar{display:none}
.p-float a{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;color:var(--chrome-muted);text-decoration:none;font-size:15px;font-weight:600;white-space:nowrap;transition:color var(--fast),background-color var(--fast)}
.p-float a:hover,.p-float a:focus-visible{color:var(--chrome-fg)}
.p-float a[aria-current="true"]{color:var(--chrome);background:var(--grad)}
@media (max-width:639px){.p-float{top:72px}.p-float-in{width:calc(100vw - 32px);overflow:visible;border-radius:22px}.p-float a{flex:1 1 0;justify-content:center;min-height:44px;padding:4px 6px;font-size:13px;line-height:1.2;white-space:normal;text-align:center;border-radius:18px}}
@media (prefers-reduced-motion:reduce){.p-float a{transition:none}}
