/* CLYN· Time-Back Calculator — page styles.
 * Additive only. All colors/type/spacing come from /assets/clyn-tokens.css.
 * We reference var(--…) and NEVER re-declare a token here. */

/* ---- Base (mirrors the site, references shared tokens) ------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, legend { font-family: "Outfit", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }

/* ---- Buttons (mirror site) ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header (inherited) ------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo {
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.01em; color: var(--ink); display: inline-flex; align-items: baseline;
}
.logo .dot { color: var(--coral); margin-left: 1px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.link { font-weight: 500; font-size: .98rem; color: var(--slate); transition: color .2s ease; }
.nav-links a.link:hover { color: var(--ink); }

/* ---- Intro -------------------------------------------------------------- */
.tool-hero { padding: 68px 0 26px; position: relative; }
.tool-hero::before {
  content: ""; position: absolute; top: -30%; right: -8%; width: 560px; height: 560px;
  background: radial-gradient(circle at center, rgba(2,89,221,.09), transparent 62%); z-index: -1;
}
.tool-hero h1 {
  font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06;
  letter-spacing: -.025em; margin: 20px 0 0;
}
.tool-hero .lead { font-size: 1.15rem; color: var(--slate); max-width: 40rem; margin: 18px 0 0; }

/* ---- Calculator card ---------------------------------------------------- */
.tool-body { padding: 30px 0 90px; }
.calc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: clamp(22px, 3vw, 40px);
  display: grid; gap: 30px;
}
.q { border: none; }
.q legend {
  font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: baseline; gap: .6rem;
}
.q-num {
  flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-tint);
  color: var(--blue); font-size: .9rem; font-weight: 800; display: inline-grid; place-items: center;
  transform: translateY(2px);
}
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Option groups */
.opt-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt-group.pills { grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); }
.opt {
  font-family: "DM Sans", sans-serif; font-size: .98rem; font-weight: 500; color: var(--ink);
  text-align: left; background: var(--mist); border: 1.5px solid transparent; border-radius: 14px;
  padding: .85rem 1rem; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.opt.pills { text-align: center; padding: .8rem .5rem; font-weight: 700; font-family: "Outfit", sans-serif; }
.opt:hover { border-color: var(--blue); }
.opt:active { transform: scale(.98); }
.opt[aria-checked="true"] {
  background: var(--blue-tint); border-color: var(--blue); color: var(--blue-deep); font-weight: 700;
}

.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.calc-note { font-size: .92rem; color: var(--slate); }
.calc-note.error { color: var(--coral); font-weight: 600; }

/* ---- Result ------------------------------------------------------------- */
.result { margin-top: 40px; scroll-margin-top: 90px; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.result:not([hidden]) { animation: riseIn .4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .result:not([hidden]) { animation: none; } }

.result-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.result-hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; padding: clamp(28px, 4vw, 46px); text-align: center;
}
.result-hero .eyebrow { color: #fff; opacity: .9; justify-content: center; }
.result-hero .eyebrow::before { background: #fff; opacity: .6; }
.result-figure {
  font-family: "Outfit", sans-serif; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(3.4rem, 9vw, 6rem); margin: 12px 0 2px;
}
.result-figure .unit { font-size: .3em; font-weight: 700; opacity: .85; letter-spacing: 0; }
.result-sub { font-size: 1.05rem; opacity: .92; }
.result-band {
  margin-top: 18px; display: inline-flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: 12px 20px;
}
.result-band .band-name { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.25rem; }
.result-band .band-tag { font-size: .95rem; opacity: .9; font-style: italic; }

.result-body { padding: clamp(24px, 3.4vw, 40px); background: var(--white); }
.result-narrative { font-size: 1.08rem; color: var(--ink); max-width: 44rem; }
.result-reclaim {
  margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--coral);
  background: var(--coral-soft); border-radius: 0 12px 12px 0; color: var(--ink); font-size: 1rem;
}
.result-reclaim strong { color: var(--blue-deep); }

/* Breakdown */
.breakdown { margin-top: 28px; }
.breakdown h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.breakdown table { width: 100%; border-collapse: collapse; }
.breakdown td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.breakdown td:last-child { text-align: right; font-family: "Outfit", sans-serif; font-weight: 700; color: var(--ink); }
.breakdown td:first-child { color: var(--slate); }
.breakdown .disclaimer { font-size: .82rem; color: var(--slate); margin-top: 10px; }

/* ---- Funnel ------------------------------------------------------------- */
.funnel { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 30px; }
.funnel h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -.02em; }
.funnel p.funnel-lead { color: var(--slate); margin-top: 8px; max-width: 42rem; }
.funnel-form { margin-top: 22px; display: grid; gap: 16px; max-width: 40rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input[type="email"], .field input[type="text"] {
  width: 100%; font-family: "DM Sans", sans-serif; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .18s ease;
}
.field input:focus { outline: none; border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.optins { display: grid; gap: 10px; margin-top: 4px; }
.optin {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease;
}
.optin:hover { border-color: var(--blue); }
.optin:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.optin input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.optin .o-title { font-weight: 700; font-size: 1rem; }
.optin .o-desc { font-size: .9rem; color: var(--slate); }

.consent {
  font-size: .88rem; color: var(--slate); background: var(--mist);
  border-radius: 12px; padding: 14px 16px; line-height: 1.55;
}
.consent strong { color: var(--ink); }

.funnel-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.funnel-note { font-size: .9rem; color: var(--slate); }

.share-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.share-row .share-label { font-size: .92rem; color: var(--slate); }

/* Success state */
.funnel-success {
  text-align: center; padding: 12px 0 4px;
}
.funnel-success .check {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue); display: grid; place-items: center;
}
.funnel-success h2 { margin-bottom: 8px; }
.funnel-success p { color: var(--slate); max-width: 34rem; margin: 0 auto 18px; }

/* ---- Footer (inherited) ------------------------------------------------- */
footer { background: var(--ink); color: #cdd6e6; padding: 56px 0 30px; margin-top: 40px; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-logo { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; }
.footer-logo .dot { color: var(--coral); }
.footer-about { margin-top: 12px; font-size: .96rem; max-width: 24rem; color: #aab6ca; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #aab6ca; font-size: .96rem; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .86rem; color: #8794a8;
}
.placeholder { color: #6f7d93; font-style: italic; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 720px) {
  .nav-links a.link { display: none; }
  .q-row, .field-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .hide-sm { display: none; }
}
