/* Homepage only. The other pages keep style.css. */

:root {
  color-scheme: light;
  --ink: #0a0a0b; --body: #3a3a40; --dim: #6e6e76; --line: #e6e6e8; --surface: #f7f7f8;
  --accent: #4740e0; --accent-soft: rgba(71,64,224,0.10); --accent-line: rgba(71,64,224,0.28);
  --night: #0b0b0d; --night-2: #141417; --night-line: #26262c; --night-text: #f2f2f4; --night-dim: #9a9aa3;
  --night-accent: #b9b5ff;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: radial-gradient(ellipse 60% 420px at 50% 0%, rgba(71,64,224,0.13), rgba(71,64,224,0) 70%) no-repeat top / 100% 700px, #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.h-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; border: none; cursor: pointer; font-family: inherit; }
.h-btn-dark { background: var(--ink); color: #fff; }
.h-btn-light { background: var(--night-text); color: var(--night); }
.h-btn-lg { min-height: 52px; padding: 15px 28px; font-size: 17px; }
.h-chip { font-size: 13px; font-weight: 500; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 6px 12px; border-radius: 999px; }
.h-tag { align-self: flex-start; font-size: 13px; font-weight: 500; color: var(--accent); background: #fff; border: 1px solid var(--accent-line); padding: 5px 11px; border-radius: 8px; }
.h-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-dim); }

/* nav */
.h-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.h-brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.h-brand b { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.h-brand span { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.h-nav-links { display: none; gap: 28px; font-size: 15px; }
.h-nav-links a, .h-login { color: var(--body); text-decoration: none; }
.h-nav-links a:hover, .h-login:hover { color: var(--ink); }
.h-nav-right { display: flex; align-items: center; gap: 18px; font-size: 15px; }
@media (min-width: 900px) { .h-nav-links { display: flex; } }

/* hero */
.h-hero { padding-top: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.h-hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance; }
.h-hero .h-lede { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--body); max-width: 44ch; }
.h-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.h-pills span { font-size: 14px; color: var(--body); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.h-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); width: 100%; max-width: 920px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(10,10,11,0.06); text-align: left; overflow: hidden; }
.h-tile { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #efeff1; }
@media (min-width: 760px) { .h-tile { border-bottom: none; border-right: 1px solid #efeff1; } .h-tile:last-child { border-right: none; } }
.h-tile-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.h-tile b { display: block; font-weight: 600; font-size: 16px; }
.h-tile span { font-size: 14px; color: var(--dim); }
.h-fine { margin: 0; font-size: 14px; color: var(--dim); }

/* dashboard mockup */
.h-shot-wrap { padding-top: 64px; perspective: 1800px; }
.h-shot { background: var(--night); color: var(--night-text); border: 1px solid var(--night-line); border-bottom: none; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 80px rgba(71,64,224,0.18); overflow: hidden; }
@media (min-width: 900px) { .h-shot { transform: rotateX(9deg); transform-origin: 50% 0%; } }
.h-shot-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #1f1f25; flex-wrap: wrap; }
.h-shot-tabs { display: flex; gap: 4px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 999px; padding: 4px; font-size: 13px; flex-wrap: wrap; }
.h-shot-tabs span { padding: 6px 12px; border-radius: 999px; color: var(--night-dim); }
.h-shot-tabs span:first-child { background: var(--night-line); color: var(--night-text); }
.h-shot-head { padding: 24px 24px 8px; background: linear-gradient(180deg, rgba(117,109,238,0.22), rgba(117,109,238,0)); }
.h-shot-head .h-kicker { color: var(--night-accent); font-size: 11px; }
.h-shot-head h3 { margin: 6px 0 4px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.h-shot-head p { margin: 0; font-size: 14px; color: #c9c9d1; }
.h-shot-filters { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.h-shot-filters span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid #33333b; color: #c9c9d1; }
.h-shot-filters .on { background: var(--night-text); color: var(--night); border-color: var(--night-text); font-weight: 500; }
.h-shot-filters .act { border-color: var(--accent); color: var(--night-accent); }
.h-shot-filters .push { margin-left: auto; }
.h-coverage { margin: 12px 24px; padding: 10px 14px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--night-line); font-size: 13px; color: #c9c9d1; display: flex; gap: 10px; align-items: center; }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf7f; flex-shrink: 0; }
.h-table-box { overflow-x: auto; padding: 0 24px 28px; }
.h-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; text-align: left; }
.h-table th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: #77777f; padding: 10px 6px; border-bottom: 1px solid #1f1f25; }
.h-table td { padding: 12px 6px; border-bottom: 1px solid #18181d; color: #e2e2e8; }
.h-table td.d { color: var(--night-dim); }
.h-table td.x { color: var(--night-accent); font-weight: 500; }
.h-table td.w { color: #f0b45a; }
.h-who { display: flex; gap: 10px; align-items: center; }
.h-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }

/* sections */
.h-section { padding: 96px 0; }
.h-section h2 { margin: 0; font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.035em; font-weight: 700; line-height: 1.05; }
.h-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.h-head-l { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.h-head p { margin: 0; font-size: 17px; color: #4a4a52; max-width: 42ch; }
.h-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

/* dark plan band */
.h-night { background: var(--night); color: var(--night-text); }
.h-night .h-head p { color: var(--night-dim); }
.h-switch { display: flex; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 999px; padding: 4px; }
.h-switch button { appearance: none; border: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; padding: 10px 22px; min-height: 44px; border-radius: 999px; background: transparent; color: var(--night-dim); }
.h-switch button[aria-pressed="true"] { background: var(--night-text); color: var(--night); }
.h-card-n { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.h-card-n h3 { margin: 0; font-size: 22px; font-weight: 600; }
.h-checks { list-style: none; margin: 0; padding: 0; }
.h-checks li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: #e2e2e8; padding: 12px 0; border-top: 1px solid #1f1f25; }
.h-bill { background: linear-gradient(160deg, #1b1a33, var(--night-2) 60%); border-color: #2e2c55; }
.h-price { font-size: clamp(56px, 6vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.h-bill-rows { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; font-size: 15px; color: #c9c9d1; }
.h-bill-rows div { display: flex; justify-content: space-between; border-top: 1px solid var(--night-line); padding: 12px 0; }
.h-api { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; padding: 18px 24px; margin-top: 16px; font-size: 16px; }
.h-api span { color: var(--night-dim); }
[hidden] { display: none !important; }

/* try it */
.h-soft { background: var(--surface); }
.h-try { background: var(--night); color: var(--night-text); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.h-try h3 { margin: 0; font-size: 24px; font-weight: 600; }
.h-try p { margin: 0; color: #c9c9d1; font-size: 16px; line-height: 1.5; }
.h-try .h-btn { align-self: flex-end; }
.h-try-vis { border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); padding: 18px; min-height: 150px; }
.h-bars { display: flex; align-items: flex-end; gap: 8px; }
.h-bars i { flex: 1; border-radius: 4px 4px 0 0; background: #2c2c33; }
.h-bars i.hi { background: #756dee; }
.h-kv { display: flex; flex-direction: column; justify-content: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: #c9c9d1; }
.h-kv div { display: flex; justify-content: space-between; gap: 12px; }
.h-kv div + div { border-top: 1px solid var(--night-line); padding-top: 10px; }
.h-kv b { color: var(--night-text); font-weight: 400; }

/* how a winner is picked */
.h-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: center; }
.h-how-copy { display: flex; flex-direction: column; gap: 18px; }
.h-how-copy p { margin: 0; color: #4a4a52; font-size: 17px; line-height: 1.55; }
.h-how-steps { list-style: none; margin: 8px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.h-how-steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.h-how-steps li span { font-family: var(--mono); color: var(--accent); }
.h-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.h-chart-top { display: flex; justify-content: space-between; font-size: 14px; }
.h-chart-plot { position: relative; height: 240px; display: flex; align-items: flex-end; gap: 10px; padding: 0 4px; border-bottom: 1px solid #d4d4d8; }
.h-chart-plot i { flex: 1; border-radius: 4px 4px 0 0; background: #c9c9d1; position: relative; z-index: 1; }
.h-chart-plot i.hi { background: var(--accent); }
.h-band { position: absolute; left: 0; right: 0; bottom: 56px; height: 48px; background: rgba(110,110,118,0.12); border-top: 1px dashed #9a9aa3; border-bottom: 1px dashed #9a9aa3; }
.h-band-label { position: absolute; left: 6px; bottom: 110px; font-size: 12px; color: var(--dim); }
.h-peak { position: absolute; right: 2px; top: 0; font-size: 13px; color: var(--accent); font-weight: 600; }
.h-chart figcaption { font-size: 14px; color: var(--dim); }

/* steps */
.h-steps-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 10px 30px rgba(10,10,11,0.05); display: flex; flex-direction: column; gap: 36px; }
.h-steps-card h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 18ch; line-height: 1.1; }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.h-steps li { display: flex; flex-direction: column; gap: 10px; }
.h-step-n { display: flex; align-items: center; gap: 10px; }
.h-step-n span { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.h-step-n i { flex-grow: 1; border-top: 2px dotted #c7c4f7; }
.h-steps b { font-size: 19px; font-weight: 600; }
.h-steps p { margin: 0; font-size: 15px; color: #4a4a52; line-height: 1.5; }
.h-need { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-size: 15px; color: #4a4a52; }
.h-need b { display: block; color: var(--ink); margin-bottom: 6px; }

/* faq */
.h-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.h-faq h2 { font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.04em; line-height: 1.02; }
.h-faq-side p { color: var(--night-dim); font-size: 15px; }
.h-faq-side a { color: var(--night-text); }
.h-faq details { border-bottom: 1px solid var(--night-line); }
.h-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; min-height: 44px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-plus { width: 28px; height: 28px; flex-shrink: 0; border: 1px solid #3a3a42; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
.h-faq details[open] .h-plus { transform: rotate(45deg); }
.h-faq details p { margin: 0 0 20px; color: #b4b4bc; font-size: 16px; line-height: 1.6; max-width: 60ch; }

/* final band + footer */
.h-final { background: radial-gradient(ellipse 70% 120% at 50% 0%, #6a63ff, var(--accent) 55%, #2a2590); border-radius: 32px 32px 0 0; padding: 88px 24px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.h-final h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); letter-spacing: -0.04em; font-weight: 700; line-height: 1.02; max-width: 16ch; }
.h-final p { margin: 0; font-size: 18px; color: #e4e2ff; max-width: 46ch; }
.h-final .h-btn { background: #fff; color: #1c1880; font-weight: 600; }
.h-final small { font-size: 14px; color: #e4e2ff; }
.h-foot { background: var(--night); color: var(--night-dim); padding: 56px 0 32px; border-top: 1px solid #1f1f25; font-size: 14px; }
.h-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
.h-foot-grid div { display: flex; flex-direction: column; gap: 10px; }
.h-foot-grid h4 { margin: 0; color: var(--night-text); font-size: 14px; }
.h-foot a { color: var(--night-dim); text-decoration: none; }
.h-foot a:hover { color: var(--night-text); }
.h-foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; border-top: 1px solid #1f1f25; padding-top: 20px; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) { .h-plus { transition: none; } }
