/* ============================================================
   ReTune marketing site (home, pricing, about).
   White, ink and one confident blue. Big type, soft grid, a live
   vocal ribbon in the hero.
   ============================================================ */

:root {
  --ink: #0b1020;
  --ink-2: #333a4d;
  --ink-3: #5b6478;
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --paper-3: #eaeef6;
  --line: #e2e7f0;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-ink: #173ea5;
  --sky: #0ea5e9;
  --blue-soft: rgba(37, 99, 235, .08);
  --logo-a: #1d4ed8; --logo-b: #2563eb; --logo-c: #0ea5e9; --logo-word: #0b1020;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 12px 40px rgba(11, 16, 32, .08);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-deep); }
img, svg, canvas { display: block; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 32px; width: auto; overflow: visible; }
.brand-word { font-family: "Nunito", var(--body); font-weight: 800; font-size: 31px; letter-spacing: -.3px; fill: var(--logo-word); }
.nav-links { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--blue-deep); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(11, 16, 32, .18); }
.btn-primary:hover { transform: translateY(-1px); background: #182039; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(37, 99, 235, .28); }
.btn-blue:hover { transform: translateY(-1px); background: var(--blue-deep); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: #c8d0de; background: var(--paper-2); }
.btn svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--blue-soft);
  color: var(--blue-ink); font-size: 13px; font-weight: 600;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-3); max-width: 620px; margin: 22px 0 0; }
.ink-blue {
  background: linear-gradient(95deg, var(--blue-deep) 10%, var(--sky) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--ink-3); font-size: 18px; margin: 16px 0 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--paper-3) 1px, transparent 1px), linear-gradient(90deg, var(--paper-3) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .lede { margin-inline: auto; text-align: center; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.hero-stage {
  position: relative; margin: 56px auto 0; width: min(1160px, 100% - 40px);
  border-radius: 28px 28px 0 0; border: 1px solid var(--line); border-bottom: 0;
  background: linear-gradient(180deg, #fbfcff, #f2f6fd); box-shadow: var(--shadow);
  padding: 18px 18px 0;
}
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 0 4px 14px; }
.stage-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--paper-3); }
.stage-bar span { margin-left: 10px; font: 600 12px var(--body); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.stage-chip {
  margin-left: auto; font: 600 12px var(--body); color: var(--blue-ink);
  background: var(--blue-soft); padding: 4px 10px; border-radius: 999px;
}
#hero-ribbon { width: 100%; height: clamp(220px, 32vw, 380px); }
.stage-readout {
  position: absolute; left: 50%; top: 66px; transform: translateX(-50%);
  display: flex; gap: 18px; font: 600 13px var(--body); color: var(--ink-2);
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.stage-readout b { color: var(--blue-deep); }

/* ---------- logos strip / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: #fff; padding: 28px 24px; }
.stat b { display: block; font: 800 34px/1 var(--display); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 8px; color: var(--ink-3); font-size: 14px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 12px; background: var(--ink); color: #fff; font: 700 14px var(--body);
}
.step-card p { color: var(--ink-3); margin: 10px 0 0; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper-2); min-height: 220px;
  display: flex; flex-direction: column;
}
.tile p { color: var(--ink-3); margin: 10px 0 0; max-width: 440px; }
.tile .tag { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 14px; }
.tile-a { grid-column: span 4; background: var(--ink); color: #fff; border-color: var(--ink); }
.tile-a p { color: #b8c2d8; }
.tile-a .tag { color: #8db4ff; }
.tile-b { grid-column: span 2; }
.tile-c, .tile-d, .tile-e { grid-column: span 2; }
.tile-f { grid-column: span 6; flex-direction: row; align-items: center; gap: 32px; background: #fff; }
.tile-f > div { flex: 1; }
.tile-art { margin-top: auto; padding-top: 24px; }
.cents { display: flex; align-items: flex-end; gap: 6px; height: 78px; }
.cents i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8db4ff, var(--blue)); opacity: .9; }
.meter { display: flex; gap: 5px; align-items: flex-end; height: 78px; }
.meter i { flex: 1; max-width: 18px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8db4ff, var(--blue)); }
.tile-a .big { font: 800 clamp(48px, 7vw, 84px)/1 var(--display); letter-spacing: -.03em; margin-top: auto; padding-top: 22px; }
.tile-a .big small { font-size: 18px; font-weight: 600; color: #8db4ff; letter-spacing: 0; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); font-size: 14px; font-weight: 600; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column; padding: 32px;
  border-radius: 26px; border: 1px solid var(--line); background: #fff;
}
.price.is-hot { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 30px 60px rgba(11, 16, 32, .25); transform: translateY(-8px); }
.price-badge {
  position: absolute; top: -13px; left: 32px; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(95deg, var(--blue), var(--sky)); color: #fff; font: 700 12px var(--body); letter-spacing: .04em;
}
.price h3 { font-size: 20px; }
.price .amount { margin: 18px 0 4px; font: 800 56px/1 var(--display); letter-spacing: -.03em; }
.price .amount small { font: 600 16px var(--body); letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.price.is-hot .amount small { color: #b8c2d8; }
.price .sub { margin: 0 0 22px; color: var(--ink-3); min-height: 3.2em; }
.price.is-hot .sub { color: #b8c2d8; }
.price ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.price li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.price.is-hot li svg { color: #8db4ff; }
.price .btn { margin-top: auto; width: 100%; }
.price.is-hot .btn-primary { background: #fff; color: var(--ink); }
.price.is-hot .btn-primary:hover { background: #eef2fb; }
.price-foot { text-align: center; color: var(--ink-3); font-size: 15px; margin: 30px auto 0; max-width: 720px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font: 700 18px var(--display); letter-spacing: -.01em;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-3); }

/* ---------- CTA band + footer ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 72px);
  background: radial-gradient(120% 140% at 0% 0%, #2a5bf0 0%, #1d3fb8 45%, #0b1020 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { max-width: 620px; }
.cta-band p { color: #c9d6ff; margin: 14px 0 0; font-size: 18px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.footer { padding: 56px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--blue-deep); }

/* ---------- about ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 24px; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 900px; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); font-size: 18px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 56px 0 14px; }
.tech { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.tech div { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper-2); }
.tech h3 { font-size: 19px; }
.tech p { font-size: 15px; color: var(--ink-3); margin: 8px 0 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-a, .tile-f { grid-column: span 2; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; }
  .prices { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .price.is-hot { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
               padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-links { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
                border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .nav-cta .btn-ghost { display: none; }
  .steps, .tech { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: span 1; }
  .tile-f { flex-direction: column; align-items: flex-start; }
  .stage-readout { display: none; }
}
@media (max-width: 420px) {
  .nav-cta .btn { padding: 0 14px; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- code box (home page logo) ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(11, 16, 32, .35); backdrop-filter: blur(4px); }
.gate-card { width: min(320px, 100%); background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.gate-card label { font: 700 16px var(--body); }
.gate-card input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); font: 600 18px var(--body); letter-spacing: .3em; }
.gate-card input:focus { outline: none; border-color: var(--blue); }
.gate-err { margin: 0; color: #d42c3c; font-size: 14px; }
.gate-row { display: flex; gap: 8px; justify-content: flex-end; }

/* headline quotes under the stats */
.quotes { padding: clamp(40px, 6vw, 72px) 0 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pull-quote { margin: 0; padding: 28px 30px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 18px; background: #fff; }
.pull-quote p { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } .pull-quote { padding: 22px; } }

/* legal pages */
.legal { max-width: 760px; }
.legal-date { color: var(--ink-3); font-size: 14px; margin-top: 0; }
.legal h2 { margin-top: 40px; }
.legal h3 { margin-top: 22px; font-size: 18px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.footer nav { flex-wrap: wrap; }
