/* Tune Pro design system, ported from the Framer build. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }

:root {
  --bg: #0A0A0A;
  --surface: #161613;
  --surface-deep: #131310;
  --ink: #F5F2EC;
  --body: #B8B4AC;
  --body-dim: #9B978F;
  --accent: #D98E32;
  --accent-hover: #E8A44E;
  --accent-ink: #131313;
  --line: rgba(255, 255, 255, 0.08);
  --bezel: linear-gradient(160deg, rgb(62,59,52) 0%, rgb(26,25,22) 45%, rgb(44,42,37) 100%);
  --pad-x: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); }
.hero-h1 { font-size: 48px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.04; }
.section-h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.64px; line-height: 1.15; }
.body-large { font-size: 20px; line-height: 1.5; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1.4;
  text-transform: uppercase;
}

.section { padding: 96px var(--pad-x); }
.content { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 720px; }

/* Buttons and badges. Inert "coming soon" units pre-launch. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); padding: 14px 24px; }
a.btn-solid:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid rgba(217, 142, 50, 0.4); color: var(--ink); padding: 12px 20px; }

/* Navbar */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--pad-x);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.icon { width: 28px; height: 28px; }
.brand img.wordmark { width: 159px; height: 15px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--body); line-height: 1; }
.nav-links a:hover { color: var(--ink); }
.nav-cta, .nav-links a.nav-cta { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 10px 18px; font-size: 16px; line-height: 1.2; }
.nav-links a.nav-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 4px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--body); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.drawer { display: none; padding: 8px 20px 24px; }
.drawer a { display: block; padding: 12px 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.drawer .btn-solid { width: 100%; margin-top: 8px; }

/* Photo band: full-bleed image + gradient overlay + content */
.band { position: relative; background-size: cover; background-position: center; }
.band > .overlay { position: absolute; inset: 0; }
.band > .content { position: relative; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.3; }
.card p { font-size: 14px; color: var(--body-dim); line-height: 1.55; letter-spacing: -0.02em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Phone mockup */
.phone {
  background: var(--bezel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  padding: 10px;
}
.phone img { border-radius: 30px; }

/* Hero */
.hero { padding: 120px var(--pad-x) 110px; overflow: hidden; }
.hero .content { display: flex; align-items: center; gap: 48px; }
.hero .copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero .phone-col { width: 460px; display: flex; justify-content: center; }
.hero .phone { width: 300px; }
.hero .stats { padding-top: 20px; font-size: 15px; line-height: 1.6; letter-spacing: 0; }
.hero .stats b { color: var(--ink); font-weight: 600; }
.hero .stats .sep { margin: 0 12px; opacity: 0.4; }

/* Intro split */
.intro .content { display: flex; gap: 48px; }
.intro h2 { width: 380px; flex-shrink: 0; }
.intro p { flex: 1; }

/* Moto band */
.moto .content { display: flex; align-items: center; gap: 48px; }
.moto .copy { flex: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.moto .phones { width: 480px; display: flex; gap: 20px; justify-content: center; }
.moto .phone { width: 220px; padding: 9px; border-radius: 36px; }
.moto .phone img { border-radius: 27px; }
.moto .fineprint { font-size: 14px; letter-spacing: 0; }
.moto .fineprint .sep { margin: 0 8px; opacity: 0.5; }

/* Pricing */
.pricing .header { max-width: 620px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: stretch; padding-top: 34px; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 20px; }
.plan .price { color: var(--ink); font-size: 40px; font-weight: 700; line-height: 1.1; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; letter-spacing: -0.02em; line-height: 1.4; }
.plan li svg { flex-shrink: 0; margin-top: 1px; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-featured {
  position: relative;
  background: linear-gradient(180deg, rgb(28,23,16) 0%, rgb(22,19,16) 100%);
  border: 1px solid var(--accent);
  padding-top: 34px;
}
.plan-featured .price { font-size: 44px; line-height: 1; }
.plan-featured .price small { font-size: 13px; font-weight: 400; color: var(--body); letter-spacing: 0; }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
}
.plan-rows { display: flex; flex-direction: column; }
.plan-rows > div { display: flex; justify-content: space-between; padding: 14px 0; font-size: 15px; line-height: 1.3; }
.plan-rows > div + div { border-top: 1px solid var(--line); }
.plan-rows b { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq .content { max-width: 860px; display: flex; flex-direction: column; gap: 36px; }
.faq .header { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 20px 0; font-size: 15px; line-height: 1.6; letter-spacing: 0; }

/* Footer */
.footer { padding: 26px var(--pad-x); }
.footer .row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer .brand { gap: 10px; font-size: 13px; letter-spacing: 0; }
.footer .brand img { width: 22px; height: 22px; opacity: 0.5; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .links a { font-size: 13px; letter-spacing: 0; line-height: 1; }
.footer .links a:hover { color: var(--ink); }
.footer .badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }

/* Page opener (about, contact) */
.opener { padding: 150px var(--pad-x) 130px; }
.opener .content { display: flex; flex-direction: column; gap: 16px; }

/* Prose (legal pages, articles) */
.prose { display: flex; flex-direction: column; gap: 36px; }
.prose section { display: flex; flex-direction: column; gap: 10px; }
.prose h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.prose p { font-size: 16px; line-height: 1.65; letter-spacing: 0; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-hover); }
.summary-rule { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }

/* How it works steps */
.steps { display: flex; flex-direction: column; gap: 72px; align-items: center; padding: 90px var(--pad-x) 120px; }
.step {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1000px;
  background: var(--surface-deep);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 56px;
}
.step .watermark {
  position: absolute;
  top: 16px;
  right: 32px;
  font-size: 150px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
}
.step .copy { flex: 1; display: flex; flex-direction: column; gap: 12px; position: relative; }
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.step h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.step .phone { width: 270px; padding: 9px; border-radius: 36px; position: relative; }
.step .phone img { border-radius: 27px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card .cover { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.3; }
.post-card:hover h2 { color: var(--accent-hover); }
.post-card time { font-size: 13px; letter-spacing: 0; line-height: 1.4; }

.article { padding: 80px var(--pad-x) 110px; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.article > * { width: 100%; max-width: 720px; }
.article .cover { max-width: 960px; border-radius: 20px; width: 100%; max-height: 420px; object-fit: cover; }
.article h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.9px; line-height: 1.12; }
.article .meta { display: flex; gap: 8px; font-size: 14px; letter-spacing: 0; }
.article .meta b { color: var(--ink); font-weight: 600; }
.article .prose-article { display: flex; flex-direction: column; gap: 20px; font-size: 16px; letter-spacing: 0; }
.article .prose-article h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; margin-top: 12px; }
.article .prose-article h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.3; margin-top: 6px; }
.article .prose-article a { color: var(--accent); }

/* 404 */
.notfound { padding: 180px var(--pad-x) 200px; text-align: center; }
.notfound .content { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.notfound .code { color: var(--ink); font-size: 96px; font-weight: 700; letter-spacing: -2.4px; line-height: 1; }

/* Closing band (how it works) */
.closer { padding: 110px var(--pad-x); text-align: center; }
.closer .content { max-width: 720px; display: flex; flex-direction: column; gap: 18px; align-items: center; }

/* Signup */
.signup-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 10px;
  flex-wrap: wrap;
}
.signup-form input {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.signup-form input::placeholder { color: var(--body-dim); }
.signup-form input:focus { outline: none; border-color: rgba(217, 142, 50, 0.6); }
.signup-form .btn { border: 0; cursor: pointer; font: inherit; font-size: 16px; }
.signup-form .btn:hover { background: var(--accent-hover); }
.signup-form .btn[disabled] { opacity: 0.6; cursor: default; }
.signup-note { font-size: 13px; letter-spacing: 0; color: var(--body-dim); }
.signup-done { color: var(--accent); font-weight: 600; padding-top: 10px; }

/* ---- Effects ---- */

/* Hero headline: staggered word reveal */
.hero-h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-h1.split .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes word-up { to { transform: translateY(0); } }

/* Hero spotlight sweep */
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(600px 420px at 18% 18%, rgba(217, 142, 50, 0.14), transparent 65%);
  mix-blend-mode: screen;
  animation: spotlight 9s ease-in-out infinite alternate;
}
@keyframes spotlight {
  from { transform: translate3d(0, 0, 0); opacity: 0.7; }
  to { transform: translate3d(18%, 10%, 0); opacity: 1; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Mouse-tracking glow (cards, steps, featured plan) */
.glow { position: relative; }
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 142, 50, 0.12), transparent 70%);
}
.glow:hover::before { opacity: 1; }
.card.glow:hover { border-color: rgba(217, 142, 50, 0.35); }
.card.glow, .step.glow { transition: border-color 0.3s ease, transform 0.3s ease; }
.grid-3 > .card.glow:hover { transform: translateY(-3px); }

/* Moving gradient border on the Lifetime plan */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan-featured { border: none; padding: 35px 29px 29px; }
.plan-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), rgba(217, 142, 50, 0.25), #E8A44E 20%, rgba(217, 142, 50, 0.25) 40%, rgba(217, 142, 50, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: border-spin 5s linear infinite;
}
@keyframes border-spin { to { --angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .hero::after, .plan-featured::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; }
  .hero-h1 { font-size: 40px; letter-spacing: -1px; }
  .section-h2 { font-size: 28px; letter-spacing: -0.56px; }
  .body-large { font-size: 17px; }
  .section { padding: 72px var(--pad-x); }
  .hero .phone-col { width: 360px; }
  .hero .phone { width: 260px; }
  .intro h2 { width: 300px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .moto .phones { width: 380px; }
  .moto .phone { width: 175px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .step { padding: 36px 32px; gap: 40px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  .hero-h1 { font-size: 34px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open .drawer { display: block; }
  .nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .brand img.icon { width: 24px; height: 24px; }
  .brand img.wordmark { width: 138px; height: 13px; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .hero .content, .intro .content, .moto .content { flex-direction: column; align-items: flex-start; }
  .hero .phone-col, .moto .phones { width: 100%; }
  .intro h2 { width: auto; }
  .grid-3, .post-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; align-items: flex-start; }
  .step .phone { align-self: center; }
  .footer .row { flex-direction: column; align-items: flex-start; }
  .opener { padding: 100px var(--pad-x) 80px; }
  .article h1 { font-size: 30px; letter-spacing: -0.6px; }
  .notfound { padding: 120px var(--pad-x) 140px; }
  .notfound .code { font-size: 72px; }
}
