/* Layout concept: single scrolling column, centered content rail (max 1100px);
   hero splits into copy + a live phone mockup that replays the app's own
   swipe gesture on a loop — the site's one real interactive moment. */
:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #2b2118;
  --muted: #85715f;
  --accent: #e0693f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3d7;
  --line: #ece1d3;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-full: 999px;
  --shadow: 0 1px 2px rgba(43,33,24,0.06), 0 20px 40px -22px rgba(43,33,24,0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1712; --surface: #26201a; --surface-raised: #2e2620;
    --ink: #f3ece2; --muted: #b3a493; --accent: #f0855e; --accent-ink: #241109;
    --accent-soft: #3a2a20; --line: #3a3128;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 20px 40px -22px rgba(0,0,0,0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1712; --surface: #26201a; --surface-raised: #2e2620;
  --ink: #f3ece2; --muted: #b3a493; --accent: #f0855e; --accent-ink: #241109;
  --accent-soft: #3a2a20; --line: #3a3128;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 20px 40px -22px rgba(0,0,0,0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.rail { max-width: 1100px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { line-height: 1.6; }
a { color: inherit; }
img, svg { max-width: 100%; }

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  padding: 14px 16px 0;
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 12px;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; transition: transform .12s ease; }
.brand:active { transform: scale(0.96); }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  margin-left: auto; flex-shrink: 0;
  border: none; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 13.5px;
  padding: 10px 16px; border-radius: var(--radius-full);
  cursor: pointer; transition: transform .12s ease;
  text-decoration: none; display: inline-block;
}
.nav-cta:active { transform: scale(0.95); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 7px 13px; border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.eyebrow-pill svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--ink);
}
.hero p.lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
}
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.btn-primary {
  border: none; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: var(--radius-md);
  cursor: pointer; transition: transform .12s ease;
  text-decoration: none; display: inline-block;
}
.btn-primary:active { transform: scale(0.96); }
.hero-note { font-size: 13.5px; color: var(--muted); }

.hero-anim { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
.hero-anim.d1 { animation-delay: .05s; }
.hero-anim.d2 { animation-delay: .15s; }
.hero-anim.d3 { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: 300px;
  background: #16110c;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone-notch {
  width: 90px; height: 22px; background: #16110c;
  border-radius: var(--radius-full);
  margin: 0 auto 10px;
  position: relative; z-index: 2;
}
.phone-screen {
  background: #fbf6ef;
  border-radius: 32px;
  padding: 22px 16px 20px;
  min-height: 470px;
  position: relative;
  overflow: hidden;
}
.p-header { margin-bottom: 16px; }
.p-header h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #2b2118; margin: 0 0 2px; }
.p-header span { font-size: 13px; color: #85715f; }
.p-card {
  display: flex; align-items: center; gap: 11px;
  background: #ffffff; border: 1px solid #ece1d3; border-radius: 18px;
  padding: 13px; margin-bottom: 10px; position: relative;
}
.p-avatar {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.p-info { min-width: 0; flex: 1; }
.p-name { font-size: 14.5px; font-weight: 600; color: #2b2118; }
.p-meta { font-size: 12px; color: #85715f; }
.p-check { color: #e0693f; flex-shrink: 0; }
.p-card.is-done { opacity: 0.55; }

.swipe-card-wrap { position: relative; }
.swipe-hint {
  position: absolute; inset: 0; border-radius: 18px;
  background: #e0693f; color: #fff;
  display: flex; align-items: center; gap: 6px; padding: 0 16px;
  font-size: 13px; font-weight: 700;
}
.swipe-front { animation: swipe-demo 5s ease-in-out infinite; animation-delay: 1.4s; position: relative; z-index: 1; }
@keyframes swipe-demo {
  0%, 18% { transform: translateX(0); }
  32%, 46% { transform: translateX(64%); }
  60%, 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  .swipe-front { animation: none; }
  .hero-anim { animation: none; opacity: 1; transform: none; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- steps ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
.section-head p { margin-top: 12px; font-size: 16.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.step-num {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; margin-bottom: 18px;
}
.step h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- features ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: none; }
.feature-row.is-reverse .feature-visual { order: 2; }
.feature-row.is-reverse .feature-copy { order: 1; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature-row.is-reverse .feature-visual, .feature-row.is-reverse .feature-copy { order: initial; }
}
.feature-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-copy h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature-copy p { font-size: 15.5px; color: var(--muted); max-width: 42ch; }
.feature-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}

/* mini week visual */
.mini-week { display: flex; gap: 7px; }
.mini-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mini-day-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.mini-day-pill { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.mini-day-pill.has { background: var(--accent-soft); }
.mini-day-pill.today { background: var(--accent); }

/* workspace switch visual */
.ws-switch { display: flex; gap: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.ws-switch button { flex: 1; border: none; background: none; font: inherit; font-size: 13px; font-weight: 700; padding: 9px; border-radius: 9px; color: var(--muted); cursor: pointer; }
.ws-switch button.active { background: var(--accent); color: var(--accent-ink); }
.ws-list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ws-list-row:last-child { border: none; }
.ws-dot { width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0; }

/* contact-link visual */
.link-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border-radius: var(--radius-md); margin-top: 10px; }
.link-card svg { color: var(--accent); flex-shrink: 0; }

/* popup visual */
.popup-mock { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.popup-mock .p-avatar { margin: 0 auto 12px; width: 52px; height: 52px; font-size: 18px; }
.popup-mock h4 { font-size: 16px; margin: 0 0 4px; }
.popup-mock .popup-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.popup-row { display: flex; gap: 8px; }
.popup-row button { flex: 1; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; padding: 9px 4px; border-radius: 10px; }
.popup-row button.main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- highlighted title words ---------- */
.hl {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0.03em 0.16em;
  border-radius: 7px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.philosophy .hl-cross {
  background: color-mix(in srgb, var(--bg) 14%, transparent);
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  padding: 0.03em 0.16em;
  border-radius: 7px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.philosophy .hl {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
}
.price-card.is-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-badge {
  position: absolute; top: -13px; right: 22px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-full);
}
.price-name { font-size: 14.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; }
.price-amount .num { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.price-amount .per { font-size: 14.5px; color: var(--muted); }
.price-note { font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 34px; }
.price-features { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-features li { display: flex; gap: 9px; font-size: 14px; }
.price-features svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.price-cta {
  text-align: center; font-size: 13px; font-weight: 700;
  padding: 12px; border-radius: var(--radius-md);
  background: var(--bg); color: var(--muted); border: 1px dashed var(--line);
}
.price-cta.is-live {
  display: block; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
}
.price-cta.is-live:active { transform: scale(0.97); }
.pricing-fineprint { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- philosophy ---------- */
.philosophy { background: var(--ink); color: var(--bg); border-radius: 32px; padding: 64px 44px; }
.philosophy h2 { color: var(--bg); font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; max-width: 18ch; }
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
@media (max-width: 720px) { .philo-grid { grid-template-columns: 1fr; } }
.philo-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: color-mix(in srgb, var(--bg) 55%, transparent); margin-bottom: 16px; }
.philo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.philo-list li { display: flex; gap: 10px; font-size: 15px; color: color-mix(in srgb, var(--bg) 92%, transparent); }
.philo-list svg { flex-shrink: 0; margin-top: 2px; }
.philo-col.not svg { color: color-mix(in srgb, var(--bg) 40%, transparent); }
.philo-col.is svg { color: var(--accent); }

/* ---------- footer ---------- */
footer { padding: 56px 0 48px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); }
.footer-tag { color: var(--muted); font-size: 13.5px; }
.footer-legal-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.footer-legal-row a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.footer-legal-row a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); margin: 28px 0 8px; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 15px; height: 15px; }
.legal-nav-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-nav-row a { text-decoration: none; color: var(--muted); font-weight: 600; }
.legal-nav-row a:hover, .legal-nav-row a.is-active { color: var(--accent); }
.legal-wrap { padding: 8px 0 90px; max-width: 760px; }
.legal-wrap h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; }
.legal-wrap .updated { color: var(--muted); font-size: 13.5px; margin: 8px 0 26px; }
.legal-wrap .intro { font-size: 15.5px; color: var(--muted); margin-bottom: 8px; }
.legal-wrap h2 { font-size: 19px; letter-spacing: -0.01em; margin-top: 42px; margin-bottom: 14px; scroll-margin-top: 100px; }
.legal-wrap h3 { font-size: 15.5px; margin-top: 22px; margin-bottom: 8px; }
.legal-wrap p { font-size: 15px; margin: 0 0 14px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 20px; display: flex; flex-direction: column; gap: 9px; margin: 0 0 14px; }
.legal-wrap li { font-size: 15px; line-height: 1.55; }
.legal-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap strong { font-weight: 700; }
.legal-wrap .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; margin: 16px 0 22px; }
.legal-wrap .card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; }
.legal-wrap .card dt { color: var(--muted); font-size: 13px; }
.legal-wrap .card dd { margin: 0; font-size: 14.5px; }
.legal-wrap .card dd.num { font-variant-numeric: tabular-nums; }
.legal-wrap .todo { color: var(--accent); font-style: italic; }
.legal-wrap .table { overflow-x: auto; margin: 16px 0 22px; }
.legal-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13.5px; }
.legal-wrap th, .legal-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-wrap th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.legal-note {
  background: var(--accent-soft); border-radius: var(--radius-md);
  padding: 16px 18px; margin: 18px 0 24px; font-size: 14.5px;
}
.legal-note strong { color: var(--accent); }
