:root {
  --bg: #0E0C0A;
  --surface: #1C1815;
  --surface-2: #242019;
  --line: #332D24;
  --ochre: #D3902E;
  --ochre-dim: rgba(211, 144, 46, 0.14);
  --cream: #F2ECDF;
  --muted: #8F8879;
  --green: #4CAF6D;
  --blue: #5B8DEF;
  --pink: #D97AB0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(242,236,223,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,236,223,0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
}

a { color: var(--cream); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ochre);
  display: flex; align-items: center; justify-content: center; color: var(--bg);
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--muted); font-size: 14.5px; }
.nav-links a.link:hover { color: var(--cream); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }
.btn-primary { background: var(--ochre); color: #1B1206; }
.btn-outline { border: 1px solid var(--line); color: var(--cream); }
.btn svg { width: 15px; height: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 100px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 12.5px; color: var(--ochre); font-weight: 600; margin-bottom: 22px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }
.hero h1 { font-size: 52px; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--ochre); }
.hero .lede { color: var(--muted); font-size: 18px; max-width: 34em; margin: 22px 0 30px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.micro { color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* ---------- Phone ---------- */
.phone {
  position: relative; width: 220px; border-radius: 30px; background: var(--surface-2);
  border: 1px solid var(--line); padding: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 58px; height: 5px; background: var(--line); border-radius: 4px; z-index: 2; }
.phone-screen { background: var(--bg); border-radius: 22px; padding: 20px 14px 16px; min-height: 380px; overflow: hidden; }
.hero-visual { display: flex; justify-content: center; }
.phone-app-label { font-size: 9.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.phone-date { font-size: 10px; color: var(--ochre); margin-top: 10px; }
.phone-greet { font-family: 'DM Serif Display', serif; font-size: 15.5px; margin-top: 3px; }
.streak-card {
  margin-top: 14px; background: var(--ochre-dim); border: 1px solid rgba(211,144,46,0.3);
  border-radius: 12px; padding: 10px 12px;
}
.streak-top { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ochre); }
.streak-dots { display: flex; gap: 3px; margin-top: 8px; }
.streak-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ochre); }
.streak-dots span.off { background: rgba(211,144,46,0.22); }
.goal-card { margin-top: 10px; background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.goal-label { font-size: 9px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.goal-title { font-size: 12px; font-weight: 600; margin-top: 3px; }
.bar-track { height: 5px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ochre); border-radius: 4px; }
.goal-sub { font-size: 10px; color: var(--muted); margin-top: 6px; }
.recent-label { font-size: 9px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-top: 14px; }
.recent-item { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.recent-thumb { width: 30px; height: 30px; border-radius: 7px; background: var(--surface-2); flex-shrink: 0; }
.recent-name { font-size: 11.5px; font-weight: 600; }
.recent-time { font-size: 9.5px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: auto; }

/* ---------- App showcase strip ---------- */
.app-showcase { padding: 40px 0 110px; border-top: 1px solid var(--line); }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 56px 0 46px; flex-wrap: wrap; gap: 20px; }
.eyebrow { color: var(--ochre); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
.showcase-head h2 { font-size: 32px; max-width: 14em; }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  background: transparent;
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); color: var(--muted);
}
.tab:hover { color: var(--cream); border-color: var(--cream); }
.tab.active { background: var(--ochre); border-color: var(--ochre); color: #1B1206; }
.tab.active:hover { color: #1B1206; }

.showcase-track { display: flex; gap: 22px; overflow-x: auto; padding: 30px 30px 26px; align-items: center; }
.showcase-track .phone { width: 190px; flex-shrink: 0; }
.showcase-track .phone-screen { height: 320px; padding: 16px 11px 12px; }
.phone-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Active-phone zoom emphasis: the phone matching the selected tab scales
   up and stays fully opaque; the rest shrink slightly and dim, so the
   selection reads clearly as "this is the one you picked." */
.showcase-track figure {
  margin: 0;
  transform: scale(0.85);
  opacity: 0.5;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.showcase-track figure.active-phone {
  transform: scale(1.08);
  opacity: 1;
}
.showcase-track figure.active-phone .phone {
  box-shadow: 0 0 0 3px rgba(211, 144, 46, 0.6), 0 20px 40px -20px rgba(0,0,0,0.6);
}

/* mini category cards */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.cat-card { background: var(--surface); border-radius: 9px; padding: 8px; }
.cat-dot { width: 7px; height: 7px; border-radius: 50%; margin-bottom: 5px; }
.cat-name { font-size: 10.5px; font-weight: 600; }
.cat-count { font-size: 8.5px; color: var(--muted); margin: 1px 0 6px; }
.cat-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cat-bar span { display: block; height: 100%; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.total-row b { color: var(--cream); font-size: 13px; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 8px; }
.mini-bars span { flex: 1; background: var(--ochre); border-radius: 2px; opacity: 0.85; }

/* filter pills + sketch grid */
.filter-row { display: flex; gap: 6px; margin-top: 12px; }
.filter-pill { font-size: 9.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.filter-pill.active { background: var(--ochre); border-color: var(--ochre); color: #1B1206; }
.sketch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.sketch-thumb { aspect-ratio: 1; border-radius: 7px; background: var(--surface); position: relative; }
.sketch-thumb .status-dot { position: absolute; top: 5px; right: 5px; margin: 0; }

/* donut + progress phone */
.donut {
  width: 88px; height: 88px; border-radius: 50%; margin: 10px auto 4px;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--ochre) 0 72%, var(--line) 72% 100%);
}
.donut-inner {
  width: 62px; height: 62px; border-radius: 50%; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-pct { font-family: 'DM Serif Display', serif; font-size: 16px; }
.donut-sub { font-size: 7.5px; color: var(--muted); }
.stat-row { display: flex; gap: 6px; margin-top: 8px; }
.stat-chip { flex: 1; background: var(--surface); border-radius: 9px; padding: 6px 4px; text-align: center; }
.stat-chip b { display: block; font-size: 13px; font-family: 'DM Serif Display', serif; }
.stat-chip span { font-size: 8px; color: var(--muted); }
.weekly-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 6px; }
.weekly-bars span { flex: 1; background: var(--ochre); border-radius: 2px; opacity: 0.85; }
.weekly-labels { display: flex; gap: 4px; margin-top: 2px; }
.weekly-labels span { flex: 1; text-align: center; font-size: 7.5px; color: var(--muted); }

/* export phone */
.export-card { background: var(--surface); border-radius: 10px; padding: 10px; margin-top: 12px; }
.export-name { font-size: 9.5px; font-weight: 600; margin-bottom: 8px; }
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.export-grid div { aspect-ratio: 1; background: var(--surface-2); border-radius: 4px; }
.check-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.check-box { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line); flex-shrink: 0; }
.check-box.checked { background: var(--ochre); border-color: var(--ochre); }

/* ---------- Workflow ---------- */
.workflow { padding: 100px 0; border-top: 1px solid var(--line); }
.workflow-head h2 { font-size: 32px; max-width: 15em; }
.workflow-head h2 .accent { color: var(--ochre); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; }
.step {
  padding: 30px 36px 30px 20px; border-top: 1px solid var(--line);
}
.step:nth-child(-n+3) { border-top: none; padding-top: 0; }
.step:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; }
.step-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--ochre-dim);
  border: 1px solid rgba(211,144,46,0.3); display: flex; align-items: center; justify-content: center; color: var(--ochre);
}
.step-icon svg { width: 18px; height: 18px; }
.step-num { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--line); }
.step h3 { font-size: 18px; margin: 20px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Privacy band ---------- */
.privacy { padding: 0 0 100px; }
.privacy-panel {
  border: 1px solid var(--line); border-radius: 16px; padding: 48px;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 30px; align-items: center;
}
.privacy-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--ochre-dim);
  border: 1px solid rgba(211,144,46,0.3); display: flex; align-items: center; justify-content: center; color: var(--ochre);
}
.privacy-icon svg { width: 24px; height: 24px; }
.privacy-copy h2 { font-size: 25px; }
.privacy-copy h2 .accent { color: var(--ochre); }
.privacy-copy p { color: var(--muted); font-size: 15px; margin: 10px 0 0; max-width: 46em; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 10px; white-space: nowrap; }
.check-list li:last-child { margin-bottom: 0; }
.check-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 40px 0 110px; text-align: center; }
.final-mark {
  width: 52px; height: 52px; border-radius: 12px; background: var(--ochre); margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center; color: #1B1206;
}
.final-mark svg { width: 26px; height: 26px; }
.final-cta h2 { font-size: 38px; }
.final-cta h2 .accent { color: var(--ochre); }
.final-cta p { color: var(--muted); font-size: 16px; margin: 18px auto 30px; max-width: 30em; }
.final-cta .privacy-link { display: block; margin-top: 16px; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 15px; }
.footer-brand .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.footer-brand .brand-mark svg { width: 12px; height: 12px; }
.footer-copy { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--cream); }
@media (max-width: 640px) {
  .nav .wrap { flex-wrap: wrap; row-gap: 14px; padding: 16px 15px; }
  .nav-links { flex-wrap: wrap; width: 100%; margin-top: 4px; margin-left: 0px; margin-right: 5px; gap: 14px 20px; }
  .nav-links .btn { flex-basis: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .step-grid { grid-template-columns: 1fr; }
  .step { border-right: none !important; padding-right: 0; }
  .step:nth-child(-n+3) { border-top: 1px solid var(--line); padding-top: 30px; }
  .step:first-child { border-top: none; padding-top: 0; }
  .privacy-panel { grid-template-columns: 1fr; text-align: left; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .showcase-track figure { transform: scale(0.9); }
  .showcase-track figure.active-phone { transform: scale(1); }
}