/* ============================================================================
   TrueSteps — studio-noir marketing system, sage retheme
   Shared by index.html (landing) + privacy.html
   ========================================================================== */

:root {
  /* Surfaces — warm near-black, layered */
  --ink:        #0d0d0f;
  --ink-2:      #141419;
  --ink-3:      #1b1b22;
  --ink-4:      #24242e;

  /* Text — warm cream, never pure white */
  --cream:      #f4efe4;
  --cream-mid:  #cbc6ba;
  --cream-dim:  #8e897e;

  /* Accents — calm sage teal primary, softer mint spark */
  --rec:        #2FA98C;
  --rec-deep:   #1f8a71;
  --acid:       #7fdcc4;

  /* App screen surface (the TrueSteps Today screen) */
  --screen:     #FAFAF7;

  --line:       rgba(244, 239, 228, 0.10);
  --line-bold:  rgba(244, 239, 228, 0.22);

  --shadow-lg:  0 40px 80px -30px rgba(0,0,0,0.85);
  --shadow-md:  0 20px 50px -24px rgba(0,0,0,0.7);

  --maxw:       1180px;
  --radius:     20px;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmospheric backdrop: two soft accent glows + a fine grain overlay.
   Fixed so it stays put while content scrolls over it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% -5%, rgba(47, 169, 140, 0.18), transparent 70%),
    radial-gradient(55% 45% at 10% 8%, rgba(127, 220, 196, 0.08), transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--rec); color: #fff; }

.wrap { width: min(92%, var(--maxw)); margin-inline: auto; }

/* ----------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-mid);
  border: 1px solid var(--line-bold);
  border-radius: 100px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.02);
}
.chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 0 rgba(47,169,140,0.6);
  animation: rec 1.6s ease-out infinite;
}
@keyframes rec {
  0%   { box-shadow: 0 0 0 0 rgba(47,169,140,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(47,169,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,169,140,0); }
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(13,13,15,0.92), rgba(13,13,15,0.62));
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  position: relative;
  width: 30px; height: 30px;
  flex: none;
}
/* The TrueSteps mark: a sage ring with a glowing tip (echoes the app icon) */
.brand .mark span {
  position: absolute;
  border-radius: 50%;
}
.brand .mark span:nth-child(1) {
  inset: 0;
  border: 3px solid var(--rec);
  border-right-color: rgba(47,169,140,0.18);
  border-bottom-color: rgba(47,169,140,0.18);
  transform: rotate(36deg);
}
.brand .mark span:nth-child(2) {
  width: 5px; height: 5px;
  right: 2px; bottom: 5px;
  background: var(--rec);
  box-shadow: 0 0 6px 1px rgba(47,169,140,0.9);
}
.brand b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand b i { font-style: normal; color: var(--rec); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a.link {
  font-size: 15px;
  color: var(--cream-mid);
  transition: color 0.2s;
}
.nav a.link:hover { color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, color 0.18s;
}
.btn-primary {
  background: var(--rec);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(47,169,140,0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(47,169,140,0.9); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-bold);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--cream); }

@media (max-width: 720px) {
  .nav a.link { display: none; }
}

/* ----------------------------------------------------------------- hero */
.hero { padding: 86px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
}
.hero h1 .em { color: var(--rec); }
.hero h1 .ul {
  position: relative;
  white-space: nowrap;
}
.hero h1 .ul::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.10em;
  background: var(--acid);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: ul-grow 0.9s 0.6s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ul-grow { to { transform: scaleX(1); } }

.hero p.lede {
  font-size: 19px;
  color: var(--cream-mid);
  max-width: 32ch;
  margin: 24px 0 32px;
}
.hero .cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero .meta {
  margin-top: 26px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--cream-dim);
}
.hero .meta b { color: var(--cream); font-weight: 700; }

/* phone mockup -------------------------------------------------------- */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(300px, 78%);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #2a2a33, #0c0c10);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--screen);
}
/* notch */
.phone .screen::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #000;
  border-radius: 100px;
  z-index: 5;
}

/* ---- TrueSteps Today screen inside the phone ---- */
.today {
  position: absolute;
  inset: 0;
  padding: 52px 22px 26px;
  display: flex;
  flex-direction: column;
  color: #1d1f21;
  font-family: var(--font-body);
}
.today .t-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6f746f;
}
.today .t-top b { color: #1d1f21; font-weight: 600; }
.today .t-date {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.today .ring-wrap {
  position: relative;
  margin: 18px auto 6px;
  width: 188px; height: 188px;
}
.today .ring-wrap svg { width: 100%; height: 100%; }
.today .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.today .ring-center .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1d1f21;
}
.today .ring-center .l {
  font-size: 12px;
  color: #6f746f;
  margin-top: 4px;
}
.today .ring-center .pct {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #2FA98C;
  background: rgba(47,169,140,0.12);
  border-radius: 100px;
  padding: 3px 10px;
}
.today .t-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.today .t-stat {
  background: #fff;
  border: 1px solid rgba(29,31,33,0.07);
  border-radius: 14px;
  padding: 11px 8px;
  text-align: center;
}
.today .t-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #1d1f21;
}
.today .t-stat span {
  font-size: 10px;
  color: #6f746f;
  letter-spacing: 0.02em;
}
.today .t-tabbar {
  margin-top: 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(29,31,33,0.08);
  padding-top: 11px;
  color: #b4b8b3;
}
.today .t-tabbar .dot { width: 18px; height: 18px; border-radius: 6px; background: rgba(29,31,33,0.12); }
.today .t-tabbar .dot.on { background: var(--rec); }

/* floating stat tags beside the phone */
.fmt {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 13px;
  border-radius: 100px;
  background: var(--ink-3);
  border: 1px solid var(--line-bold);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.fmt.v { top: 16%; left: -2%;  color: var(--acid); }
.fmt.h { bottom: 20%; right: -4%; color: var(--cream); }
.fmt b { color: var(--rec); }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .stage { order: -1; }
  .hero p.lede { max-width: none; }
  .fmt { display: none; } /* decorative side tags would clip off-screen when stacked */
}

/* ------------------------------------------------------- logo strip */
.strip {
  border-block: 1px solid var(--line);
  margin-top: 36px;
  padding: 22px 0;
}
.strip .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream-dim);
}
.strip .wrap b { color: var(--cream-mid); font-weight: 500; }
.strip .sep { color: var(--rec); }

/* ----------------------------------------------------------- sections */
section.block { padding: 92px 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rec);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--rec); }
h2.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
  max-width: 16ch;
}
.section-head p {
  color: var(--cream-mid);
  font-size: 18px;
  margin-top: 16px;
  max-width: 52ch;
}

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-bold); background: var(--ink-3); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(47,169,140,0.12); color: var(--rec);
  border: 1px solid rgba(47,169,140,0.25);
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature p { color: var(--cream-mid); font-size: 15px; }
.feature.span-2 { grid-column: span 2; }
.feature.acid .ic { background: rgba(127,220,196,0.14); color: var(--acid); border-color: rgba(127,220,196,0.3); }

@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } .feature.span-2 { grid-column: span 2; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature.span-2 { grid-column: span 1; } }

/* ---- "Why it's free" section ---- */
.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-top: 46px; align-items: start; }
.why .lead { color: var(--cream-mid); font-size: 17px; }
.why .lead strong { color: var(--cream); }
.why ul { list-style: none; margin: 0; display: grid; gap: 14px; }
.why li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--cream-mid); }
.why li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--rec); }
.why li b { color: var(--cream); font-weight: 600; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; gap: 26px; } }

/* CTA band */
.cta-band {
  border: 1px solid var(--line-bold);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(47,169,140,0.18), transparent 60%),
    var(--ink-2);
  padding: 60px 40px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.03em; line-height: 1.02;
}
.cta-band p { color: var(--cream-mid); margin: 14px auto 28px; max-width: 46ch; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* App Store badge — "coming soon" disabled style */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-bold); border-radius: 14px;
  padding: 10px 18px; background: #000;
}
.appstore svg { width: 26px; height: 26px; }
.appstore .t small { display: block; font-size: 10px; color: var(--cream-dim); letter-spacing: 0.04em; }
.appstore .t b { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.appstore.soon {
  cursor: default;
  opacity: 0.78;
  filter: grayscale(0.15);
}
.appstore.soon .t small { color: var(--rec); }
/* live (downloadable) App Store button */
a.appstore:not(.soon) {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.appstore:not(.soon):hover {
  transform: translateY(-2px);
  border-color: var(--rec);
  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
}
a.appstore:not(.soon):active { transform: translateY(0); }

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  margin-top: 30px;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer .about p { color: var(--cream-dim); font-size: 14.5px; margin-top: 14px; max-width: 34ch; }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dim); margin-bottom: 14px;
}
.site-footer a.fl { display: block; color: var(--cream-mid); font-size: 15px; padding: 5px 0; transition: color 0.2s; }
.site-footer a.fl:hover { color: var(--rec); }
.legal {
  border-top: 1px solid var(--line);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--cream-dim);
}
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: span 2; } }

/* ------------------------------------------------------- entrance anim */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero h1 .ul::after { animation: none; transform: scaleX(1); }
  .chip .dot { animation: none; }
}

/* ======================================================= legal / privacy */
.legal-page { padding: 70px 0 40px; }
.legal-page .wrap { max-width: 760px; }
.legal-page .back {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--cream-dim); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 30px;
}
.legal-page .back:hover { color: var(--rec); }
.legal-page h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.03em; line-height: 0.96;
}
.legal-page .updated { color: var(--cream-dim); font-family: var(--font-mono); font-size: 13px; margin-top: 14px; }
.legal-page .summary {
  margin-top: 30px; padding: 22px 24px;
  border: 1px solid rgba(127,220,196,0.3); border-radius: 16px;
  background: rgba(127,220,196,0.06);
  font-size: 17px; color: var(--cream);
}
.legal-page .summary b { color: var(--acid); }
.legal-page h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 14px;
}
.legal-page p, .legal-page li { color: var(--cream-mid); font-size: 16.5px; }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { margin: 0 0 14px 4px; list-style: none; display: grid; gap: 10px; }
.legal-page li { display: flex; gap: 12px; }
.legal-page li::before { content: "—"; color: var(--rec); flex: none; }
.legal-page a.inline { color: var(--rec); text-decoration: underline; text-underline-offset: 3px; }
.legal-page strong { color: var(--cream); }

/* ---- spec strip ---- */
.specs { border-bottom: 1px solid var(--line); }
.specs .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px; padding: 16px 0;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--cream-dim);
}
.specs b { color: var(--cream); font-weight: 500; }
.specs .sd { width: 4px; height: 4px; border-radius: 50%; background: var(--line-bold); flex: none; }
@media (max-width: 600px) { .specs .sd { display: none; } .specs .wrap { gap: 6px 14px; } }

/* ---- FAQ ---- */
.faq { margin-top: 40px; display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); padding: 0 22px; transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: var(--line-bold); background: var(--ink-3); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .qi { position: relative; width: 16px; height: 16px; flex: none; }
.faq .qi::before, .faq .qi::after { content: ""; position: absolute; background: var(--rec); border-radius: 2px; }
.faq .qi::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq .qi::after { left: 7px; top: 0; width: 2px; height: 16px; transition: transform 0.2s; }
.faq details[open] .qi::after { transform: scaleY(0); }
.faq details p { color: var(--cream-mid); font-size: 15.5px; padding: 0 0 20px; max-width: 64ch; }

/* ---- CTA icon ---- */
.cta-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; display: block; box-shadow: var(--shadow-md); }
