/* QuoteMaven marketing site — one stylesheet, brand-matched to the app:
   navy #2d3f50 primary · gold #c89f61 secondary · Tailwind-slate neutrals.
   System fonts, 8pt rhythm, mobile-first. No frameworks, no webfonts. */

:root {
  --navy: #2d3f50;
  --navy-dark: #1e2c3a;
  --navy-deep: #182430;
  --navy-tint: #eaeff4;
  --gold: #c89f61;
  --gold-dark: #a87f45;   /* fills/borders only — fails AA as text on light grounds */
  --gold-ink: #7a5a28;    /* gold TEXT on light surfaces — ≥4.5:1 on white/ground/tints */
  --gold-tint: #f7f1e5;
  --link: #3f6493;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --fill: #f1f5f9;
  --ground: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.07);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-2);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; min-width: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(23px, 3.5vw, 30px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }

/* ---------- header ---------- */
.site-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-gold { color: var(--gold-dark); }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
@media (max-width: 620px) {
  /* Stack brand over nav — a single row overflows narrow phones and clips "Support" */
  .head-row { flex-direction: column; height: auto; padding: 10px 0 12px; gap: 6px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
  .brand { font-size: 19px; }
  /* The hero's manual line break is for wide screens; let narrow screens wrap naturally */
  .hero h1 br { display: none; }
}

/* ---------- header logo ---------- */
.brand-img { width: 150px; height: auto; display: block; }
.foot-logo { width: 118px; height: auto; display: inline-block; vertical-align: middle; }
.foot-tag { color: var(--ink-3); font-size: 14px; margin-left: 10px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--ground) 100%); padding: 72px 0 56px; text-align: center; }

/* Dark navy hero (home) — the og-card treatment, live */
.hero-dark {
  background: linear-gradient(135deg, #182430 0%, #1e2c3a 55%, #2d3f50 100%);
  text-align: left; padding: 76px 0 72px;
}
.hero-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero-dark { text-align: center; } .hero-dark .hero-cta-row { justify-content: center; } .hero-logo { margin: 0 auto; } }
.hero-logo { width: 210px; height: auto; margin-bottom: 26px; }
.hero-dark h1 { color: var(--white); font-size: clamp(28px, 4.6vw, 42px); }
.h1-gold { color: var(--gold); }
.hero-dark .lede { color: #b8c4cf; margin-left: 0; margin-right: 0; margin-top: 18px; }
@media (max-width: 860px) { .hero-dark .lede { margin-left: auto; margin-right: auto; } }
.hero-dark .hero-cta-row { justify-content: flex-start; }
.hero-dark .cta { background: var(--gold); color: var(--navy-deep); }
.hero-dark .cta:hover { background: var(--gold-dark); }
.hero-dark .cta-soon { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.22); }
.hero-dark .cta-ghost { background: transparent; border-color: rgba(255,255,255,.28); color: var(--white); }
.hero-dark .cta-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- animated calc demo ---------- */
.demo-card {
  background: var(--white); border-radius: 18px; padding: 26px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.demo-title { font-weight: 800; color: var(--ink); font-size: 17px; margin-bottom: 18px; }
.demo-field { margin-top: 14px; }
.demo-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.demo-input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 17px; color: var(--ink); min-height: 48px; display: flex; align-items: center;
  background: var(--ground);
}
.demo-caret { display: inline-block; width: 2px; height: 20px; background: var(--navy); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-qty { position: relative; }
.demo-qty.pop #demo-qty { animation: pop .45s cubic-bezier(.2,1.6,.4,1); display: inline-block; font-weight: 800; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.demo-chip {
  margin-left: auto; background: var(--gold-tint); color: var(--gold-dark);
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px;
}
.demo-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.demo-card-inline { max-width: 420px; margin-top: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .demo-caret { animation: none; } .demo-qty.pop #demo-qty { animation: none; } }

/* ---------- phone frame ---------- */
.phone {
  margin-top: 16px; border-radius: 26px; padding: 9px; background: var(--navy-deep);
  box-shadow: 0 14px 40px rgba(15,23,42,.22);
}
.phone img, .phone video { border-radius: 18px; margin-top: 0; border: 0; display: block; width: 100%; height: auto; }
.phone-sm { max-width: 270px; }
.phone-hero { max-width: 300px; margin: 0 auto; box-shadow: 0 28px 80px rgba(0,0,0,.45); }
.phone-hero video { aspect-ratio: 584 / 1264; } /* reserve space before load — no layout shift */
.demo-note-hero { text-align: center; color: #b8c4cf; margin-top: 14px; font-size: 13.5px; }

/* ---------- reveal + hover polish ---------- */
/* Reveal styles apply ONLY under the .js root class (set inline in <head>) — with JS off or
   blocked the content simply shows (Codex C-B.5). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.tile, .step, .plan { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tile:hover, .plan:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,.10); }
.tile:hover { border-color: var(--gold); }
.tile h3::before { transition: transform .25s ease, background .25s ease; }
.tile:hover h3::before { transform: scale(1.35) rotate(45deg); background: var(--gold-dark); }
.step:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 44px rgba(15,23,42,.14); }
.step .n { transition: background .25s ease, color .25s ease, transform .25s ease; }
.step:hover .n { background: var(--gold); color: var(--navy-deep); transform: scale(1.08); }

/* nav link underline grow */
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::after { display: none; }

/* CTA sheen + lift */
.cta { position: relative; overflow: hidden; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.cta:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 12px 34px rgba(15,23,42,.22); }
.cta::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
}
.cta:hover::after { left: 130%; }
.cta-ghost { transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.cta-ghost:hover { transform: translateY(-2px); border-color: var(--gold-dark); color: var(--gold-ink); text-decoration: none; }

/* hero phone: gentle float (JS-on only; reduced-motion kills it) */
.js .phone-hero { animation: phonefloat 7s ease-in-out infinite alternate; }
@keyframes phonefloat { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .js .phone-hero { animation: none; } }

/* table row glow on hover */
.compare tbody tr { transition: background .2s ease; }
.compare tbody tr:hover { background: var(--gold-tint); }

/* staggered reveal for grid children when their parent reveals */
.js .reveal .tile, .js .steps .step { transition-duration: .55s; }
.js .steps .step:nth-child(2) { transition-delay: .12s; }
.js .steps .step:nth-child(3) { transition-delay: .24s; }
.hero .slogan {
  margin: 20px auto 0; max-width: 680px;
  font-size: clamp(18px, 2.6vw, 22px); font-weight: 700; color: var(--gold-dark);
}
.hero .lede { font-size: clamp(16px, 2.2vw, 18px); color: var(--ink-3); max-width: 620px; margin: 12px auto 0; }
.h1-sub { font-size: .48em; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.hero-cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

.cta {
  display: inline-block; padding: 14px 28px; border-radius: 12px;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow);
}
.cta:hover { background: var(--navy-dark); text-decoration: none; }
.cta-soon { background: var(--navy-deep); cursor: default; }
.cta-soon::before { content: "▶ "; color: var(--gold); }
.cta-ghost {
  display: inline-block; padding: 13px 24px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--white);
  color: var(--navy); font-weight: 700; font-size: 15.5px;
}
.cta-ghost:hover { border-color: var(--navy); text-decoration: none; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
@media (max-width: 700px) { .section { padding: 60px 0; } }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .kicker {
  color: var(--gold-ink); font-weight: 800; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { margin-top: 12px; color: var(--ink-3); font-size: 17px; }
::selection { background: var(--gold-tint); color: var(--navy-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }

/* 3-step story */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--white); border: 1px solid #e8edf3; border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow); }
.step .n {
  display: inline-flex; width: 34px; height: 34px; border-radius: 10px;
  background: var(--gold-tint); color: var(--gold-ink);
  align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px;
}
.step p { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.step img { border-radius: 10px; border: 1px solid var(--line); margin-top: 16px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--white); border: 1px solid #e8edf3; border-radius: 16px; padding: 24px 22px; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.tile h3 { display: flex; align-items: center; gap: 8px; }
.tile h3::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--gold); flex-shrink: 0; }

/* long-form feature sections */
.feature-block { border-top: 1px solid var(--line); padding: 40px 0; max-width: 720px; }
.feature-block:first-of-type { border-top: 0; }
.feature-block p { margin-top: 10px; }
.feature-block .example {
  margin-top: 14px; background: var(--navy-tint); border-radius: 10px; padding: 14px 16px;
  font-size: 15px; color: var(--navy-dark);
}
.feature-block .example code {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 7px; font-size: 14px; color: var(--ink);
}

/* pricing — tier metals: bronze, silver, gold. Colored top bar + tier-colored name; hover/tap
   floods the card's border and glow with its metal so the tiers POP (Ben: "color pop based on
   tier… emphasizing when hovered over or clicked"). */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 800px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan {
  background: var(--white); border: 1.5px solid var(--line); border-top-width: 5px;
  border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow);
}
.plan h3 { font-size: 20px; letter-spacing: .01em; }
.plan-bronze { border-top-color: #b0723f; }
.plan-bronze h3 { color: #9a5f2f; }
.plan-silver { border-top-color: #97a3b0; }
.plan-silver h3 { color: #5f6b78; }
.plan-gold { border-top-color: var(--gold); }
.plan-gold h3 { color: var(--gold-ink); }
.plan-bronze:hover, .plan-bronze:active { border-color: #b0723f; box-shadow: 0 14px 40px rgba(176,114,63,.28); }
.plan-silver:hover, .plan-silver:active { border-color: #97a3b0; box-shadow: 0 14px 40px rgba(122,136,150,.30); }
.plan-gold:hover, .plan-gold:active { border-color: var(--gold); box-shadow: 0 14px 40px rgba(200,159,97,.35); }
.plan-bronze:hover li::before { color: #9a5f2f; }
.plan-silver:hover li::before { color: #5f6b78; }
.plan .price { font-size: 26px; font-weight: 800; color: var(--ink); margin: 10px 0 2px; }
.plan .per { color: var(--ink-3); font-size: 14px; margin-bottom: 14px; }
.plan ul { padding-left: 0; list-style: none; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; border-top: 1px solid var(--fill); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold-ink); font-weight: 800; }

/* comparison table */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--fill); vertical-align: top; }
.compare tbody tr:nth-child(even) { background: var(--ground); }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix .y { color: var(--gold-ink); font-weight: 800; font-size: 17px; }
.matrix .n { color: var(--ink-3); opacity: .45; font-weight: 700; }
.th-sub { font-size: 12px; font-weight: 600; opacity: .85; }
/* tier-metal column headers on the dark matrix header */
.matrix .th-bronze { color: #d09a6a; }
.matrix .th-silver { color: #c9d2dc; }
.matrix .th-gold { color: var(--gold); }
/* Joist matrix: QuoteMaven's column carries the gold */
.vs .qm-col { background: var(--gold-tint); }
.vs thead .qm-col { background: var(--gold); color: var(--navy-deep); }
.vs .y2 { color: var(--ink-3); font-weight: 700; font-size: 16px; }
.compare thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.compare thead th:first-child { border-top-left-radius: var(--radius); }
.compare thead th:last-child { border-top-right-radius: var(--radius); }
.compare .yes { color: var(--gold-ink); font-weight: 700; }

/* misc */
.note { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
@media (max-width: 800px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shots img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.center { text-align: center; }
.mt { margin-top: 28px; }

/* support / simple pages */
.prose { max-width: 680px; }
.prose h2 { margin-top: 36px; }
.prose p { margin-top: 12px; }
.big404 { font-size: 84px; font-weight: 800; color: var(--navy-tint); line-height: 1; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--white); padding: 32px 0; margin-top: 40px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { font-weight: 700; color: var(--navy); }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-nav a { font-size: 14px; color: var(--ink-3); }
.foot-copy { font-size: 13px; color: var(--ink-3); }
