/* ============================================================
   Tidiest — landing page "Aurora Daylight"
   Light theme, cash/coin motif. Home page only — the legal
   pages keep style.css. Motion is added by home.js + GSAP and
   fully gated behind prefers-reduced-motion. No smooth scroll.
   ============================================================ */

/* -------------------- Font -------------------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Tokens -------------------- */
:root {
  /* surfaces */
  --bg: #FBFCFF;
  --bg-2: #F1F4FB;
  --card: #FFFFFF;
  --line: rgba(14, 19, 48, 0.10);
  --line-2: rgba(14, 19, 48, 0.06);

  /* ink / text */
  --ink: #0E1330;
  --text: #3A4266;
  --text-mut: #6A739B;

  /* signal: cash */
  --cash: #1AA85F;
  --cash-deep: #137A45;
  --cash-soft: #E4F6EC;

  /* coin */
  --gold: #F2A93B;
  --gold-deep: #C77F16;
  --gold-soft: #FCEFD6;

  /* sheen partners */
  --sheen-1: #2BB3FF;
  --sheen-2: #7A66FF;

  /* playful */
  --rose: #FF6FA0;
  --rose-soft: #FFE6EF;

  --grad: linear-gradient(100deg, var(--gold) 0%, var(--cash) 62%, var(--cash-deep) 100%);
  --grad-cool: linear-gradient(120deg, var(--cash) 0%, var(--sheen-1) 55%, var(--sheen-2) 100%);

  /* geometry */
  --maxw: 1200px;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  /* elevation */
  --shadow-sm: 0 2px 10px rgba(14, 19, 48, 0.05);
  --shadow-md: 0 16px 40px -18px rgba(14, 19, 48, 0.22);
  --shadow-glow: 0 24px 60px -24px rgba(26, 168, 95, 0.35);

  --font-disp: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.27, 1);
}

/* -------------------- Reset / base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-disp); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.04; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; }

/* -------------------- Utilities -------------------- */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-disp); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cash-deep);
  padding: 0.32rem 0.72rem; border-radius: var(--radius-pill);
  background: var(--cash-soft); margin: 0 0 1.1rem;
}
.skip {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 200;
  transform: translateY(-180%);
  background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--sheen-1);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------- Nav -------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav.is-condensed { border-bottom-color: var(--line); background: rgba(251, 252, 255, 0.92); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.05rem; transition: padding-block 0.25s var(--ease); }
.nav.is-condensed .nav__inner { padding-block: 0.7rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-disp); font-weight: 800; font-size: 1.32rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.wordmark__mark img { height: 1.7em; width: auto; }
.nav__links { margin-left: auto; display: flex; gap: 1.7rem; }
.nav__links a {
  position: relative; text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 0.97rem; padding-block: 0.2rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* -------------------- App Store badge -------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 0.62rem 1.05rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #1a2046; }
.badge:active { transform: translateY(0); }
.badge__glyph { width: 22px; height: 22px; fill: #fff; }
.badge__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge__small { font-size: 0.62rem; letter-spacing: 0.04em; opacity: 0.82; }
.badge__large { font-family: var(--font-disp); font-weight: 700; font-size: 1.04rem; }
.badge--lg { padding: 0.8rem 1.4rem; }
.badge--lg .badge__large { font-size: 1.18rem; }
.badge[data-placeholder] { cursor: default; }

.link-secondary {
  display: inline-flex; align-items: center; font-family: var(--font-disp);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  color: var(--cash-deep); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.2s var(--ease);
}
.link-secondary:hover { border-bottom-color: var(--cash); }

/* -------------------- Hero -------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero__aura {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 28%, rgba(242, 169, 59, 0.30), transparent 70%),
    radial-gradient(46% 55% at 88% 60%, rgba(26, 168, 95, 0.22), transparent 70%),
    radial-gradient(40% 50% at 12% 22%, rgba(43, 179, 255, 0.14), transparent 70%);
  filter: blur(8px);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__h1 { font-size: clamp(2.7rem, 1.6rem + 4.7vw, 5.4rem); font-weight: 900; margin-bottom: 1.3rem; }
.hero__h1 .line { display: block; overflow: hidden; }
.hero__h1 .line__in { display: block; }
.hero__sub { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.28rem); color: var(--text); max-width: 34ch; margin-bottom: 1.9rem; }
.hero__sub em { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.hero__visual { position: relative; margin: 0; min-height: 360px; display: grid; place-items: center; }

/* coin */
.coin { width: clamp(220px, 32vw, 340px); height: auto; overflow: visible; filter: drop-shadow(0 24px 40px rgba(199, 127, 22, 0.34)); }
.coin__edge { fill: var(--gold-deep); }
.coin__face { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.5; }
.coin__ring { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2.4; stroke-dasharray: 3 7; }
.coin__sign { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; opacity: 0.95; }
.coin__sparks .spark { fill: var(--gold); }

/* hero floating card */
.hcard {
  position: absolute; right: -2%; bottom: 2%; width: min(72%, 252px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1rem 1.1rem 1.1rem;
}
.hcard__head { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.7rem; }
.hcard__eyebrow { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mut); }
.hcard__title { font-family: var(--font-disp); font-weight: 800; font-size: 1.18rem; color: var(--ink); }
.hcard__photo {
  height: 96px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--bg-2); color: var(--text-mut); margin-bottom: 0.8rem;
}
.hcard__photo svg { width: 52px; height: 52px; }
.hcard__grade { display: flex; align-items: center; gap: 0.7rem; }
.hcard__check {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cash); color: #fff; flex: none; box-shadow: 0 6px 14px -6px rgba(26, 168, 95, 0.7);
}
.hcard__check svg { width: 20px; height: 20px; }
.money { font-family: var(--font-disp); font-weight: 900; font-variant-numeric: tabular-nums; }
.hcard__payout .money { font-size: 1.7rem; color: var(--cash-deep); }

/* -------------------- Marquee -------------------- */
.marquee {
  background: var(--ink); color: #fff; overflow: hidden; padding-block: 0.85rem;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee__track { display: flex; align-items: center; gap: 1.4rem; width: max-content; will-change: transform; }
.marquee__item { font-family: var(--font-disp); font-weight: 800; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); letter-spacing: -0.01em; white-space: nowrap; }
.marquee__coin { width: 1.25em; height: 1.25em; color: var(--gold); flex: none; }

/* -------------------- Section heads -------------------- */
.head { max-width: 40rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.head--center { margin-inline: auto; text-align: center; }
.head__h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 900; }
.head__sub { margin-top: 1rem; font-size: clamp(1.02rem, 1rem + 0.3vw, 1.2rem); color: var(--text-mut); }

/* -------------------- Why -------------------- */
.why { padding-block: clamp(4rem, 9vw, 8rem); }
.why__line {
  font-family: var(--font-disp); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 1rem + 3.4vw, 3.6rem); line-height: 1.12; color: var(--ink);
  max-width: 22ch;
}
.why__line em {
  display: inline;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.why__word { display: inline-block; will-change: opacity; }
.why__line .grad { display: inline; }

/* -------------------- Features -------------------- */
.features { padding-block: clamp(3rem, 6vw, 6rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(26, 168, 95, 0.3); }
.feature__num { font-family: var(--font-disp); font-weight: 900; font-size: 0.95rem; color: var(--text-mut); letter-spacing: 0.1em; }
.feature__icon {
  width: 56px; height: 56px; margin: 1.1rem 0 1.2rem; border-radius: 16px;
  display: grid; place-items: center; color: var(--cash-deep);
  background: var(--cash-soft); border: 1px solid rgba(26, 168, 95, 0.18);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature__title { font-size: 1.4rem; margin-bottom: 0.6rem; }
.feature__body { color: var(--text); font-size: 1rem; }

/* -------------------- How it works (pinned) -------------------- */
.how { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 6vw, 6rem); background: var(--bg-2); }
.how__stage {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  min-height: 60vh;
}
.how__device { display: grid; place-items: center; }
.how__phone {
  position: relative; width: min(320px, 80vw); aspect-ratio: 3 / 4.2;
  background: var(--card); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: var(--shadow-md); padding: 1.5rem 1.3rem;
  display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
}
.how__photo {
  position: relative; flex: 1; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--bg-2); color: var(--text-mut); border: 1px solid var(--line-2);
}
.how__photo svg { width: 64px; height: 64px; }
.how__scan {
  position: absolute; left: 1.3rem; right: 1.3rem; top: 1.5rem; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--sheen-1), transparent);
  box-shadow: 0 0 18px 3px rgba(43, 179, 255, 0.6); opacity: 0; pointer-events: none;
}
.how__arc {
  position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
  width: 130px; height: 130px; opacity: 0; pointer-events: none;
}
.how__arc-track { fill: none; stroke: rgba(14, 19, 48, 0.08); stroke-width: 8; }
.how__arc-fill {
  fill: none; stroke: var(--cash); stroke-width: 8; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: center;
  stroke-dasharray: 327; stroke-dashoffset: 0;
}
.how__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.how__checks li {
  position: relative; padding-left: 1.7rem; font-weight: 600; font-size: 0.92rem; color: var(--ink);
}
.how__checks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 1.25rem; height: 1.25rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--cash); color: #fff;
  font-size: 0.74rem; font-weight: 900;
}
.how__balance {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cash-soft); border: 1px solid rgba(26, 168, 95, 0.2);
  border-radius: var(--radius-sm); padding: 0.7rem 0.95rem;
}
.how__balance-label { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cash-deep); }
.how__balance-amt { font-size: 1.5rem; color: var(--cash-deep); }
.how__coin {
  position: absolute; right: 1.6rem; bottom: 4.4rem; width: 30px; height: 30px; color: var(--gold-deep);
  filter: drop-shadow(0 6px 8px rgba(199, 127, 22, 0.4));
}

.how__beats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.beat {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.beat.is-active { background: var(--card); border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.beat__num {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-disp); font-weight: 900; color: var(--text-mut);
  background: var(--bg-2); border: 1px solid var(--line); transition: all 0.35s var(--ease);
}
.beat.is-active .beat__num { background: var(--grad); color: #fff; border-color: transparent; }
.beat__title { font-size: 1.4rem; margin-bottom: 0.25rem; }
.beat__body { color: var(--text); font-size: 1rem; }
.how__cta { margin-top: clamp(2rem, 4vw, 3.5rem); display: flex; justify-content: center; }

/* -------------------- Personalities -------------------- */
.personas { padding-block: clamp(4rem, 8vw, 7rem); }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.persona {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem 2rem; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--cash);
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.persona:hover { box-shadow: var(--shadow-md); }
.persona--coach { border-top-color: var(--cash); }
.persona--drill { border-top-color: var(--gold); }
.persona--gremlin { border-top-color: var(--rose); }
.persona__chip {
  display: inline-block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}
.persona--coach .persona__chip { background: var(--cash-soft); color: var(--cash-deep); }
.persona--drill .persona__chip { background: var(--gold-soft); color: var(--gold-deep); }
.persona--gremlin .persona__chip { background: var(--rose-soft); color: #C73B6E; }
.persona__name { font-size: 1.55rem; margin-bottom: 0.8rem; }
.persona__quote { font-size: 1.1rem; line-height: 1.45; color: var(--ink); font-weight: 500; }

/* -------------------- Trust -------------------- */
.trust { padding-block: clamp(3rem, 6vw, 6rem); background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.trust__point {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
}
.trust__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--cash-deep); background: var(--cash-soft); margin-bottom: 1.2rem;
}
.trust__icon svg { width: 30px; height: 30px; }
.trust__title { font-size: 1.35rem; margin-bottom: 0.6rem; }
.trust__body { color: var(--text); font-size: 1rem; }

/* -------------------- Closer -------------------- */
.closer { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); overflow: hidden; text-align: center; }
.closer__aura {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 50% 18%, rgba(242, 169, 59, 0.28), transparent 70%),
    radial-gradient(46% 60% at 50% 30%, rgba(26, 168, 95, 0.16), transparent 72%);
  filter: blur(6px);
}
.closer__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.coin--closer { width: clamp(150px, 22vw, 220px); margin-bottom: 1.6rem; }
.closer__h2 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 900; margin-bottom: 1rem; }
.closer__sub { font-size: 1.2rem; color: var(--text-mut); margin-bottom: 2rem; }

/* -------------------- Footer -------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 2.4rem 1.2rem; }
.footer__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-inline: auto; }
.footer__links a { text-decoration: none; color: var(--text-mut); font-weight: 600; font-size: 0.95rem; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { color: var(--text-mut); font-size: 0.85rem; margin-top: 1.4rem; text-align: center; }

/* -------------------- Mobile sticky CTA -------------------- */
.badge--sticky { display: none; }
@media (max-width: 720px) {
  .badge--sticky {
    display: inline-flex; position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
    z-index: 90; box-shadow: var(--shadow-md);
  }
  .footer { padding-bottom: 5.5rem; }
}

/* -------------------- Responsive -------------------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 300px; }
  .hcard { right: 4%; }
  .how__stage { grid-template-columns: 1fr; gap: 2.5rem; }
  .how__device { order: -1; }
}
@media (max-width: 760px) {
  .feature-grid, .persona-grid, .trust-grid { grid-template-columns: 1fr; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer__links { margin-inline: 0; }
}

/* -------------------- Reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
