/* ================================================================
   HOME PAGE (index.html only)
   A marketing page with its own sticky top nav that jumps to each
   section. It does NOT load the app shell: the side menu starts once
   the visitor clicks into the app (Start free / Log in / any feature
   link). Colours, fonts and radii come from site.css tokens.
   ================================================================ */

.hp { --hp-gutter: 32px; --hp-nav-h: 68px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hp section[id], .hp [id].hp-anchor { scroll-margin-top: calc(var(--hp-nav-h) + 12px); }

.hp h1, .hp h2, .hp h3 { font-family: var(--serif); font-weight: 600; color: var(--ivory); margin: 0; }
.hp p { margin: 0; }
.hp img { max-width: 100%; }
.hp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--hp-gutter); }
.hp-eyebrow { font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-bright); }
.hp-eyebrow.is-brass { color: var(--brass-bright); }
.hp-h2 { font-size: 40px; line-height: 1.15; }
.hp-h2.is-sm { font-size: 36px; line-height: 1.18; }
.hp-lede { font-size: 18px; line-height: 1.6; color: var(--slate); }
.hp-body { font-size: 17px; line-height: 1.6; color: var(--slate); }
.hp-muted { color: var(--slate-dim); }
.hp-sec { padding: 96px 0; }
.hp-sec.is-alt { background: var(--ink-900); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.hp-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.hp-head.is-center { margin: 0 auto; text-align: center; align-items: center; }
.hp-link { font-weight: 600; color: var(--brass-bright); text-decoration: none; }
.hp-link:hover { color: #F0DA9C; text-decoration: underline; }

/* buttons + chips + cards */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hp-btn-gold { background: var(--brass); color: var(--ink-950); }
.hp-btn-gold:hover { background: var(--brass-bright); color: var(--ink-950); }
.hp-btn-ghost { border-color: #3d4452; color: var(--ivory); background: transparent; }
.hp-btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }
.hp-btn:focus-visible, .hp-nav a:focus-visible, .hp-chip-btn:focus-visible, .hp-burger:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 2px; }
.hp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 500 13px var(--sans); border: 1px solid var(--line); color: var(--slate); background: var(--ink-850); }
.hp-chip.is-teal { color: var(--teal-bright); border-color: var(--teal-dim); background: var(--teal-deep); }
.hp-chip.is-brass { color: var(--brass-bright); border-color: var(--brass-dim); }
.hp-card { background: var(--ink-900); border: 1px solid var(--line); border-radius: 18px; }
.hp-shot { padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hp-shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hp-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ivory); }
.hp-ticks li { display: flex; gap: 10px; }
.hp-ticks li::before { content: "✓"; color: var(--teal-bright); font-weight: 700; flex: none; }

.hp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.hp-skip:focus { left: 8px; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top nav ---------- */
.hp-nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 21, 26, .92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hp-nav-in { display: flex; align-items: center; gap: 20px; height: var(--hp-nav-h); }
.hp-brand img { height: 32px; display: block; }
.hp-nav-links { display: flex; gap: 2px; margin: 0 0 0 12px; padding: 0; list-style: none; }
.hp-nav-links a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--slate); text-decoration: none; font: 500 15px var(--sans); border: 1px solid transparent; }
.hp-nav-links a:hover { color: var(--ivory); background: var(--ink-850); }
.hp-nav-links a.is-active { color: var(--brass-bright); background: rgba(201, 162, 75, .12); border-color: rgba(201, 162, 75, .3); }
.hp-nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hp-login { color: var(--slate); text-decoration: none; font: 500 15px var(--sans); padding: 10px 8px; display: inline-flex; align-items: center; gap: 8px; }
.hp-login:hover { color: var(--ivory); }
.hp-avatar[hidden] { display: none; }
.hp-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-deep); color: var(--teal-bright); font: 600 13px var(--sans); border: 1px solid var(--teal-dim); }
.hp-nav .hp-btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.hp-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-850); color: var(--ivory); align-items: center; justify-content: center; cursor: pointer; }
.hp-burger svg { width: 22px; height: 22px; }
.hp-menu { display: none; }

/* ---------- Hero ---------- */
.hp-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line-soft); }
.hp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hp-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hp-hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -.01em; }
.hp-hero h1 em { font-style: normal; color: var(--brass-bright); }
.hp-hero-sub { font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 540px; }
.hp-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hp-row.is-tight { gap: 8px; }
.hp-fine { font-size: 14px; color: var(--slate-dim); }
.hp-hero-art { position: relative; }
.hp-float { position: absolute; padding: 14px 16px; background: var(--ink-850); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.hp-float-a { left: -28px; bottom: -26px; max-width: 260px; border-color: var(--teal-dim); }
.hp-float-b { right: -18px; top: -22px; padding: 10px 14px; border-color: var(--brass-dim); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hp-float-label { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); }
.hp-float-label.is-brass { color: var(--brass-bright); }
.hp-float p + p { margin-top: 6px; }
.hp-float-a p:last-child { font-size: 14px; line-height: 1.45; }

.hp-stats { margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hp-stat { background: var(--ink-900); padding: 22px 24px; }
.hp-stat-num { font: 600 34px var(--serif); color: var(--brass-bright); }
.hp-stat-label { font-size: 14px; color: var(--slate); margin-top: 4px; }

/* ---------- Problem cards ---------- */
.hp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.hp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.hp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.hp-vs { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.hp-vs-tag { font: 600 13px var(--mono); color: var(--slate-dim); }
.hp-vs-tag.is-here { color: var(--teal-bright); }
.hp-vs-old { font-size: 17px; line-height: 1.5; color: var(--slate); }
.hp-vs-new { font-size: 17px; line-height: 1.5; color: var(--ivory); }
.hp-rule { height: 1px; background: var(--line); }

/* ---------- Loop ---------- */
.hp-step { padding: 26px; background: var(--ink-850); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.hp-step:hover { border-color: var(--brass-dim); transform: translateY(-2px); }
.hp-step-top { display: flex; align-items: center; justify-content: space-between; }
.hp-step-n { font: 600 28px var(--serif); color: var(--brass-bright); }
.hp-step h3 { font-size: 22px; }
.hp-step p { font-size: 15px; line-height: 1.55; color: var(--slate); }
.hp-quest-band { margin-top: 20px; border: 1px dashed var(--teal-dim); border-radius: 16px; padding: 18px 24px; display: flex; align-items: center; gap: 16px; justify-content: center; background: rgba(31, 67, 61, .35); }
.hp-quest-band svg { flex: none; }
.hp-quest-band p { font-size: 16px; line-height: 1.5; }

/* ---------- Feature rows ---------- */
.hp-features { display: flex; flex-direction: column; gap: 110px; }
.hp-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hp-feat.is-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hp-feat.is-flip > .hp-feat-copy { order: 2; }
.hp-feat-copy { display: flex; flex-direction: column; gap: 18px; }
.hp-feat-art { position: relative; }
.hp-bots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hp-report { left: -24px; bottom: -30px; width: 300px; border-color: var(--brass-dim); display: flex; flex-direction: column; gap: 8px; }
.hp-report p:not(.hp-float-label) { font-size: 14px; line-height: 1.45; }

.hp-mock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp-mock-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.hp-mock-card.is-wide { grid-column: span 2; border-color: var(--teal-dim); }
.hp-mock-title { font-size: 18px; font-weight: 600; }
.hp-bar { height: 8px; border-radius: 99px; background: var(--ink-800); overflow: hidden; }
.hp-bar span { display: block; width: 40%; height: 100%; background: var(--teal); }
.hp-task { font-size: 14px; display: flex; gap: 8px; color: var(--ivory); }
.hp-task.is-done::before { content: "✓"; color: var(--teal-bright); font-weight: 700; }
.hp-task.is-todo { color: var(--slate-dim); }
.hp-task.is-todo::before { content: "○"; }
.hp-example { align-self: flex-start; font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-dim); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }

/* ---------- Differences ---------- */
.hp-diff { padding: 30px; display: flex; gap: 18px; }
.hp-diff-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(201, 162, 75, .14); display: grid; place-items: center; }
.hp-diff-icon svg { width: 22px; height: 22px; }
.hp-diff > div { display: flex; flex-direction: column; gap: 8px; }
.hp-diff h3 { font-size: 21px; }
.hp-diff p { font-size: 16px; line-height: 1.55; color: var(--slate); }

/* ---------- Comparison table ---------- */
.hp-table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-950); -webkit-overflow-scrolling: touch; }
.hp-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.hp-table th, .hp-table td { padding: 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.hp-table tbody tr:last-child > * { border-bottom: 0; }
.hp-table thead th { font: 600 13px var(--sans); color: var(--slate); border-bottom: 1px solid var(--line); }
.hp-table tbody th { font-weight: 600; color: var(--ivory); width: 21%; }
.hp-table td { color: var(--slate-dim); }
.hp-table .is-us { background: rgba(201, 162, 75, .08); color: var(--ivory); }
.hp-table thead .is-us { color: var(--brass-bright); box-shadow: inset 0 2px 0 var(--brass); }
.hp-table tbody th[scope="row"] { position: sticky; left: 0; background: var(--ink-950); z-index: 1; }
.hp-y, .hp-p, .hp-n { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; }
.hp-half { width: 12px; height: 12px; flex: none; align-self: flex-start; margin-top: 3px; }
.hp-y { color: var(--teal-bright); }
.hp-p { color: var(--brass-bright); }
.hp-n { color: var(--slate-dim); }
.hp-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--slate-dim); margin-top: 14px; }
.hp-source { font-size: 13px; line-height: 1.55; color: var(--slate-dim); margin-top: 10px; max-width: 900px; }

/* ---------- Research ---------- */
.hp-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hp-method { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.hp-method li { display: flex; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.hp-method li:last-child { border-bottom: 0; }
.hp-method b { font: 600 14px var(--mono); color: var(--brass-bright); }
.hp-method span span { color: var(--slate); }
.hp-funnel { padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hp-fun { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 20px 16px; border-radius: 12px; }
.hp-fun b { font: 600 18px var(--serif); }
.hp-fun span { font-size: 14px; line-height: 1.4; }
.hp-fun-1 { width: 100%; background: var(--ink-800); border: 1px solid var(--line); color: var(--ivory); }
.hp-fun-1 span { color: var(--slate); }
.hp-fun-2 { width: 80%; background: var(--teal-deep); border: 1px solid var(--teal-dim); color: var(--ivory); }
.hp-fun-2 span { color: #cfe6e2; }
.hp-fun-3 { width: 60%; background: var(--brass); color: var(--ink-950); }
.hp-fun-3 span { color: #2a2410; }

/* ---------- Finder ---------- */
.hp-finder { max-width: 960px; margin: 40px auto 0; padding: 28px; background: var(--ink-850); display: flex; flex-direction: column; gap: 22px; }
.hp-finder fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-finder legend { font-size: 13px; font-weight: 600; color: var(--slate); padding: 0; margin-bottom: 10px; }
.hp-chip-btn { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-900); color: var(--slate); font: 500 14px var(--sans); cursor: pointer; }
.hp-chip-btn:hover { border-color: var(--brass-dim); color: var(--ivory); }
.hp-chip-btn[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink-950); font-weight: 600; }
.hp-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hp-result { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--ink-900); height: 100%; }
.hp-result h3 { font: 600 17px var(--sans); }
.hp-result p { font-size: 13px; color: var(--slate-dim); }
.hp-result-links { display: flex; gap: 14px; margin-top: auto; padding-top: 6px; font-size: 14px; }
.hp-finder-note { font-size: 13px; color: var(--slate-dim); text-align: center; }

/* ---------- Openings by style ---------- */
.hp-style { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hp-style h3 { font-size: 19px; }
.hp-style-n { font: 600 28px var(--serif); color: var(--brass-bright); }
.hp-style ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.hp-style a { color: var(--slate); text-decoration: none; }
.hp-style a:hover { color: var(--brass-bright); text-decoration: underline; }

/* ---------- Pricing ---------- */
.hp-price { padding: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; border-color: var(--brass-dim); }
.hp-price-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hp-price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); color: var(--slate); }
.hp-price-list li.is-us { background: rgba(201, 162, 75, .12); border-color: var(--brass-dim); color: var(--ivory); font-weight: 600; }
.hp-price-list li.is-us span:last-child { color: var(--brass-bright); font-weight: 700; }

/* ---------- FAQ ---------- */
.hp-faq { margin-top: 28px; border-top: 1px solid var(--line); }
.hp-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.hp-faq summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; color: var(--brass-bright); font-weight: 400; font-size: 22px; line-height: 1; }
.hp-faq details[open] summary::after { content: "−"; }
.hp-faq details p { font-size: 16px; line-height: 1.6; color: var(--slate); margin-top: 10px; }

/* ---------- Final CTA + footer ---------- */
.hp-final { padding: 96px 0; background: var(--teal-deep); border-top: 1px solid var(--teal-dim); }
.hp-final .hp-wrap { text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.hp-final h2 { font-size: 44px; line-height: 1.12; max-width: 760px; }
.hp-final p { font-size: 19px; line-height: 1.6; max-width: 640px; }
.hp-final .hp-btn-ghost { border-color: var(--teal-bright); }
.hp-foot { padding: 40px 0; border-top: 1px solid var(--line-soft); }
.hp-foot .hp-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.hp-foot img { height: 26px; display: block; }
.hp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.hp-foot a { color: var(--slate-dim); text-decoration: none; }
.hp-foot a:hover { color: var(--brass-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hp-nav-links a { padding: 10px 9px; font-size: 14px; }
}
@media (max-width: 1040px) {
  .hp-nav-links, .hp-login-text { display: none; }
  .hp-burger { display: inline-flex; }
  .hp-menu { position: absolute; top: var(--hp-nav-h); left: 0; right: 0; background: var(--ink-950); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
  .hp-menu.is-open { display: block; }
  .hp-menu ul { list-style: none; margin: 0; padding: 0; }
  .hp-menu a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line-soft); color: var(--ivory); text-decoration: none; font-size: 16px; }
  .hp-menu li:last-child a { border-bottom: 0; }
  .hp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hp { --hp-gutter: 16px; --hp-nav-h: 60px; }
  .hp-sec { padding: 64px 0; }
  .hp-hero { padding: 40px 0 40px; }
  .hp-hero h1 { font-size: 38px; }
  .hp-hero-sub { font-size: 17px; }
  .hp-h2, .hp-h2.is-sm { font-size: 30px; }
  .hp-final h2 { font-size: 32px; }
  .hp-hero-grid, .hp-feat, .hp-feat.is-flip, .hp-split, .hp-price, .hp-grid-2, .hp-grid-3, .hp-results { grid-template-columns: minmax(0, 1fr); }
  .hp-hero-grid { gap: 40px; }
  .hp-feat.is-flip > .hp-feat-copy { order: 0; }
  .hp-features { gap: 72px; }
  .hp-feat { gap: 32px; }
  .hp-float-a, .hp-report { position: static; max-width: none; width: auto; margin-top: 12px; }
  .hp-float-b { right: 8px; top: -16px; }
  .hp-stats { margin-top: 48px; }
  .hp-price { padding: 24px; }
  .hp-quest-band { flex-direction: column; align-items: flex-start; }
  .hp-brand img { height: 26px; }
  .hp-nav .hp-btn { padding: 0 14px; }
}
@media (max-width: 520px) {
  .hp-grid-4, .hp-stats, .hp-mock { grid-template-columns: minmax(0, 1fr); }
  .hp-mock-card.is-wide { grid-column: auto; }
  .hp-hero .hp-row .hp-btn { flex: 1 1 100%; }
  .hp-login { padding: 10px 4px; }
}
