/* ───────────── Tokens (mirrored from the app) ───────────── */
:root {
  --cream: #EEE8DD;
  --ink: #111111;
  --orange: #E75425;
  --pink: #D946A6;
  --green: #1A6840;
  --lime: #C8F03C;
  --yellow: #F5C842;
  --purple: #4A1F7A;
  --muted: #888888;
  --white: #ffffff;

  --r-card: 18px;
  --r-btn: 14px;
  --r-pill: 100px;

  --maxw: 1120px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}

.accent-orange { color: var(--orange); }
.accent-green { color: var(--green); }
.accent-pink { color: var(--pink); }
.accent-purple { color: var(--purple); }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: -0.16px;
  border-radius: var(--r-btn); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), opacity .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 16px 26px; }
.btn-block { width: 100%; padding: 15px; font-size: 15px; margin-top: 20px; }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-outline { background: transparent; border-color: rgba(17,17,17,.18); color: var(--ink); }

/* ───────────── Header ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238,232,221,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(17,17,17,.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-logo { height: 22px; display: block; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 14px; font-weight: 700; color: rgba(17,17,17,.7); transition: color .15s; }
.nav-link:hover { color: var(--ink); }

/* ───────────── Hero ───────────── */
.hero { padding: 72px 0 90px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center;
}
.hero-title {
  font-size: clamp(44px, 6vw, 68px); font-weight: 900;
  letter-spacing: -2.4px; line-height: 1.02; margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px; font-weight: 500; color: rgba(17,17,17,.66);
  max-width: 30em; margin-bottom: 30px;
}
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-center { justify-content: center; }
.cta-note { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--muted); }

.badge-soon {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: rgba(17,17,17,.55);
}
.badge-soon-light { color: rgba(255,255,255,.8); }
.apple-mark {
  width: 14px; height: 14px; display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ───────────── Phone device + recreated app UI ───────────── */
.hero-device { display: flex; justify-content: center; }
.phone {
  width: 300px; padding: 12px;
  background: var(--ink); border-radius: 44px;
  box-shadow: 0 30px 70px -20px rgba(17,17,17,.45), 0 0 0 2px rgba(17,17,17,.9);
}
.phone-screen {
  background: var(--cream); border-radius: 33px;
  padding: 22px 16px; display: flex; flex-direction: column; gap: 8px;
  min-height: 560px;
}
.app-topbar { display: flex; justify-content: center; padding: 4px 0 10px; }
.app-logo { height: 18px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card {
  border-radius: var(--r-card); padding: 16px;
  display: flex; flex-direction: column;
}
.card-ink { background: var(--ink); color: var(--white); }
.card-orange { background: var(--orange); color: var(--white); }
.card-green { background: var(--green); color: var(--white); }
.card-light { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 rgba(17,17,17,.05); }

.card-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; opacity: .5;
}
.card-num { font-size: 34px; font-weight: 900; letter-spacing: -1.4px; line-height: 1.05; margin-top: 6px; }
.card-unit { font-size: 15px; font-weight: 700; }
.card-foot { font-size: 11px; font-weight: 500; opacity: .45; margin-top: 2px; }

.pick-card { flex-direction: row; align-items: center; gap: 12px; }
.pick-text { display: flex; flex-direction: column; flex: 1; }
.pick-name { font-size: 16px; font-weight: 900; letter-spacing: -0.4px; color: var(--lime); margin-top: 3px; }
.pick-meta { font-size: 11px; font-weight: 500; opacity: .6; margin-top: 2px; }
.pick-thumb {
  width: 56px; height: 56px; border-radius: 12px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

.streak-pill {
  align-self: flex-start; background: var(--lime); color: var(--green);
  font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: var(--r-pill);
}

.diary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-radius: var(--r-card);
  background: rgba(17,17,17,.05); margin-top: 2px;
}
.diary-slot { font-size: 14px; font-weight: 800; }
.diary-add { font-size: 12px; font-weight: 800; color: var(--orange); }

/* ───────────── Sections ───────────── */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-title { font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -1.4px; line-height: 1.08; }
.section-sub { font-size: 17px; font-weight: 500; color: rgba(17,17,17,.6); margin-top: 14px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 38px 0;
}
.feature-reverse .feature-copy { order: 2; }
.feat-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.feature-title { font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin: 12px 0 14px; }
.feature-text { font-size: 16px; font-weight: 500; color: rgba(17,17,17,.65); max-width: 32em; }

.feature-visual { display: flex; justify-content: center; }
.mini { width: 100%; max-width: 360px; border-radius: 22px; padding: 22px; }

/* Feature 1 — AI logging */
.chat-bubble {
  background: rgba(17,17,17,.05); border-radius: 14px; padding: 13px 16px;
  font-size: 15px; font-weight: 600; margin-bottom: 16px;
}
.macro-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.macro {
  border: 2px solid rgba(17,17,17,.08); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.macro-label { font-size: 10px; font-weight: 800; letter-spacing: 0.8px; }
.macro-val { font-size: 22px; font-weight: 900; letter-spacing: -0.8px; }
.cal-line { display: flex; align-items: flex-end; gap: 8px; }
.cal-big { font-size: 46px; font-weight: 900; letter-spacing: -2px; line-height: 0.9; }
.cal-unit { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 1px; padding-bottom: 6px; }

/* Feature 2 — scan */
.scan-frame {
  position: relative; height: 150px; border-radius: 14px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  margin-bottom: 16px;
}
.scan-corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--lime); }
.scan-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scan-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scan-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-result { display: flex; flex-direction: column; gap: 3px; }
.scan-name { font-size: 16px; font-weight: 900; letter-spacing: -0.4px; margin-top: 3px; }

/* Feature 3 — week grid */
.week-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.day-chip {
  aspect-ratio: 1; border-radius: 14px; background: var(--c);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.day-chip.lime { color: var(--green); }

/* Feature 4 — goals */
.goal-card { display: flex; gap: 20px; align-items: center; }
.ring {
  width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--green) 0 72%, rgba(17,17,17,.08) 72% 100%);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--white); }
.ring-num { font-size: 24px; font-weight: 900; letter-spacing: -1px; z-index: 1; }
.ring-cap { font-size: 10px; font-weight: 700; color: var(--muted); z-index: 1; }
.goal-bars { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.gbar { display: flex; flex-direction: column; gap: 5px; }
.gbar span { font-size: 12px; font-weight: 700; color: rgba(17,17,17,.6); }
.track { height: 8px; border-radius: var(--r-pill); background: rgba(17,17,17,.08); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: var(--r-pill); }

/* ───────────── Inline PRO pill ───────────── */
.pro-pill {
  display: inline-block; vertical-align: middle;
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  background: var(--orange); color: var(--white);
  padding: 2px 7px; border-radius: var(--r-pill); margin-left: 6px;
  position: relative; top: -1px;
}

/* ───────────── Capabilities grid ───────────── */
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.cap-card {
  background: var(--white); border-radius: 22px; padding: 28px;
  border: 2px solid rgba(17,17,17,.06);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.cap-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(17,17,17,.35); }
.cap-icon {
  width: 52px; height: 52px; border-radius: 15px; background: var(--c);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.cap-title { font-size: 19px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 8px; }
.cap-text { font-size: 14px; font-weight: 500; color: rgba(17,17,17,.62); line-height: 1.55; }

/* ───────────── Pricing ───────────── */
.pricing { background: rgba(17,17,17,.025); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.price-card {
  background: var(--white); border-radius: 22px; padding: 30px;
  border: 2px solid rgba(17,17,17,.06);
}
.price-pro { border-color: var(--orange); }
.price-tier { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.pro-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  background: var(--orange); color: var(--white); padding: 3px 8px; border-radius: var(--r-pill);
}
.price-amt { display: block; font-size: 30px; font-weight: 900; letter-spacing: -1.2px; margin: 8px 0 18px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.price-list li { font-size: 14px; font-weight: 600; color: rgba(17,17,17,.7); padding-left: 24px; position: relative; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* ───────────── CTA band ───────────── */
.cta-band { background: var(--orange); color: var(--white); padding: 76px 0; text-align: center; }
.band-title { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -1.6px; }
.band-sub { font-size: 17px; font-weight: 500; opacity: .9; margin: 12px 0 28px; }

/* ───────────── Footer ───────────── */
.site-footer { background: var(--ink); color: var(--white); padding: 50px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 22px; filter: brightness(0) invert(1); opacity: .95; }
.footer-tag { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.55); margin-top: 12px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.4); margin-top: 36px; }

/* ───────────── Legal pages ───────────── */
.legal { max-width: 720px; padding-top: 60px; padding-bottom: 80px; }
.legal h1 { font-size: 40px; font-weight: 900; letter-spacing: -1.6px; }
.legal-updated { font-size: 13px; font-weight: 600; color: var(--muted); margin: 8px 0 28px; }
.legal h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; margin: 28px 0 8px; }
.legal p { font-size: 15px; font-weight: 500; color: rgba(17,17,17,.72); margin-bottom: 12px; line-height: 1.6; }
.legal a { color: var(--orange); font-weight: 700; }
.legal h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; margin: 18px 0 6px; }
.legal ul { margin: 4px 0 16px; padding-left: 22px; }
.legal li { font-size: 15px; font-weight: 500; color: rgba(17,17,17,.72); margin-bottom: 8px; line-height: 1.6; }
.legal li strong { font-weight: 700; color: rgba(17,17,17,.9); }
.legal .legal-intro { font-size: 16px; }

/* ───────────── Responsive ───────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature-copy { order: 1 !important; display: flex; flex-direction: column; align-items: center; }
  .feature-text { margin: 0 auto; }
  .price-grid { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .caps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-nav { gap: 14px; }
  .nav-link { display: none; }
  .container { padding: 0 18px; }
}
