/* Projects — landing page styles.
   A faithful distillation of the app's cockpit design language: system-ui type,
   dense spacing, full 1px borders (never side-stripes), warning = attention,
   accent = action, finished work recedes. Light-first, to match the app's
   default theme; the page reads as the product's own surface.
   CSP-strict: no inline styles, system fonts only (font-src 'self'). */

:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* The app's own light cockpit tokens. */
  --bg: #f5f3ef;
  --surface: #fdfdfb;
  --nav-bg: #efede7;
  --border: #e2ddd5;
  --border-strong: #d0cac1;
  --ink: #21322b;
  --ink-soft: #47564d;
  --muted: #6a7a70;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-50: #e6f7f5;
  --accent-text: #ffffff;
  --selected-bg: #d7efe7;
  --warning-border: #d98a4a;
  --warning-text: #9a3412;
  --warning-bg: #fbeee0;
  --success-border: #14b8a6;
  --success-text: #134e4a;
  --danger-text: #991b1b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 33, 29, 0.04), 0 1px 4px rgba(23, 33, 29, 0.06);
  --shadow-lift: 0 24px 60px -28px rgba(33, 50, 43, 0.35);
  --measure: 58ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark variant — the app's own dark cockpit tokens. The page has no toggle,
   so it follows the viewer's OS preference; every color above is a token, so
   the whole page flips by overriding them here. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1512;
    --surface: #17211d;
    --nav-bg: #101a16;
    --border: #34473f;
    --border-strong: #5b6a60;
    --ink: #f7fffc;
    --ink-soft: #d9e8e2;
    --muted: #9aa99f;
    --accent: #4ca48f;
    --accent-hover: #7ddac3;
    --accent-50: #16372f;
    --accent-text: #04241d;
    --selected-bg: #16453b;
    --hover-bg: #16372f;
    --warning-border: #fdba74;
    --warning-text: #fed7aa;
    --warning-bg: #431407;
    --success-border: #14b8a6;
    --success-text: #a7f3d0;
    --success-bg: #022c22;
    --danger-text: #fecaca;
    --danger-bg: #450a0a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.15);
    --shadow-lift: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.lp {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 620; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

.lp-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-text);
  padding: 8px 14px; border-radius: 0 0 var(--radius) 0; z-index: 10;
}
.lp-skip:focus { left: 0; }

.lp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---- Nav ---- */
.lp-nav {
  display: flex; align-items: center; gap: 20px;
  padding: 16px clamp(20px, 5vw, 40px);
  max-width: 1140px; margin: 0 auto;
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.lp-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-text);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.lp-brand strong { font-family: var(--font-display); font-size: 17px; font-weight: 620; }
.lp-brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.lp-nav-links { display: flex; gap: 22px; }
.lp-nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 520; }
.lp-nav-links a:hover { color: var(--accent); }

/* ---- Buttons ---- */
.lp-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; font-weight: 560;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.12s var(--ease), box-shadow 0.15s var(--ease);
}
.lp-btn:hover {
  transform: translateY(-1px); border-color: var(--accent); box-shadow: var(--shadow); }
.lp-btn:active { transform: translateY(1px); }
.lp-btn-sm { padding: 8px 15px; font-size: 14px; }
.lp-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.lp-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.lp-btn-oncta { background: var(--surface); border-color: var(--surface); color: var(--accent); font-weight: 610; }
.lp-btn-oncta:hover { background: var(--accent-50); border-color: var(--accent-50); }
.lp-btn .lp-arrow { transition: transform 0.2s var(--ease); }
.lp-btn:hover .lp-arrow { transform: translateX(3px); }

.lp-eyebrow {
  display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 590; margin-bottom: 14px;
}

/* ---- Hero ---- */
.lp-hero {
  max-width: 1140px; margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 40px) clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 64px); align-items: center;
}
.lp-hero .lp-kicker {
  display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 590; margin-bottom: 18px;
}
.lp-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink);
}
.lp-lede {
  margin: 20px 0 0; max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem); line-height: 1.55; color: var(--ink-soft);
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-fine { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.lp-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

/* ---- Product preview (our "imagery" is the real UI) ---- */
.lp-preview { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.lp-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.lp-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lp-panel-head h2 { font-size: 18px; font-weight: 610; line-height: 1.15; margin: 2px 0 0; }
.lp-panel-status { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lp-cards { display: flex; flex-direction: column; gap: 10px; }
.lp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 8px; padding: 12px;
}
.lp-card.is-attention { border-color: var(--warning-border); }
.lp-card.is-done { opacity: 0.72; }
.lp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 610; color: var(--ink); }
.lp-card-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; }
.lp-command {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--accent-50); border-radius: var(--radius-sm); padding: 8px 10px;
}
.lp-command span { color: var(--muted); font-size: 10px; font-weight: 610; letter-spacing: 0.07em; text-transform: uppercase; }
.lp-command strong { color: var(--ink); font-size: 13px; font-weight: 610; }

/* ---- Pills ---- */
.lp-pill {
  font-size: 12px; font-weight: 610; padding: 3px 9px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--ink);
}
.lp-pill-warn { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
.lp-pill-accent { background: var(--accent-50); border-color: var(--accent); color: var(--accent-hover); }
.lp-pill-muted { background: var(--surface); border-color: var(--border); color: var(--muted); }

/* ---- Insights ---- */
.lp-insights { padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px); }
.lp-insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-insight {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; padding: 16px 18px;
}
.lp-insight-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.lp-insight strong { font-size: 13px; font-weight: 560; color: var(--ink); }
.lp-insight small { font-size: 12px; color: var(--muted); }
.lp-insight.is-good { border-color: var(--success-border); }
.lp-insight.is-good .lp-insight-value { color: var(--success-text); }
.lp-insight.is-low .lp-insight-value { color: var(--danger-text); }

/* ---- Section frame ---- */
.lp-section { padding: clamp(48px, 8vw, 88px) 0; }
.lp-section-head { max-width: var(--measure); margin-bottom: clamp(28px, 4vw, 40px); }
.lp-section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.12; }
.lp-section-head p { margin: 14px 0 0; font-size: 1.05rem; color: var(--ink-soft); max-width: var(--measure); }
.lp-sr-anchor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- How it works: the triad ---- */
.lp-how { background: var(--nav-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-how .lp-wrap { padding-top: clamp(48px, 8vw, 80px); padding-bottom: clamp(48px, 8vw, 80px); }
.lp-triad-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lp-triad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--nav-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.lp-triad > div { padding: 12px 15px; border-left: 1px solid var(--border); }
.lp-triad > div:first-child { border-left: 0; }
.lp-triad span { display: block; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 610; margin-bottom: 4px; }
.lp-triad strong { display: block; font-size: 14px; font-weight: 610; color: var(--ink); line-height: 1.25; }
.lp-triad .lp-next { background: var(--accent-50); }
.lp-triad .lp-warn strong { color: var(--warning-text); }

/* ---- Features ---- */
.lp-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 30px); }
.lp-feature { display: grid; align-content: start; gap: 8px; }
.lp-feat-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--accent-50); border: 1px solid var(--border);
  color: var(--accent); font-family: var(--font-display); font-weight: 700; margin-bottom: 8px;
}
.lp-feature h3 { font-size: 1.22rem; }
.lp-feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Built to be checked ---- */
.lp-built { background: var(--surface); }
.lp-ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lp-ledger-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); }
.lp-ledger-item strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 6px; }
.lp-ledger-item p { margin: 0; font-size: 0.93rem; color: var(--muted); line-height: 1.5; }
.lp-honesty { margin: 26px 0 0; padding: 16px 20px; border: 1px solid var(--warning-border); background: var(--warning-bg); border-radius: var(--radius); font-size: 0.97rem; color: var(--ink); max-width: var(--measure); }
.lp-honesty b { color: var(--warning-text); }

/* ---- CTA banner ---- */
.lp-cta-wrap { padding-top: 0; }
.lp-cta-banner {
  background: var(--accent); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px) clamp(28px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.lp-cta-banner h2 { color: var(--accent-text); font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.14; }
.lp-cta-banner p { margin: 8px 0 0; color: var(--accent-text); opacity: 0.86; font-size: 1.02rem; }

/* ---- Footer ---- */
.lp-footer { border-top: 1px solid var(--border); padding: 28px 0 44px; }
.lp-footer .lp-wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.lp-footer small { color: var(--muted); font-size: 13px; max-width: 62ch; line-height: 1.5; }
.lp-footer a { color: var(--accent); }

/* ---- Motion ---- */
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lp-hero-copy > * { animation: lp-rise 0.6s var(--ease) both; }
.lp-hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
.lp-hero-copy > *:nth-child(3) { animation-delay: 0.1s; }
.lp-hero-copy > *:nth-child(4) { animation-delay: 0.15s; }
.lp-hero-copy > *:nth-child(5) { animation-delay: 0.2s; }
.lp-preview { animation: lp-rise 0.7s var(--ease) both 0.15s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hero-copy > *, .lp-preview { animation: none; }
  .lp-btn, .lp-btn .lp-arrow { transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-preview { max-width: 520px; }
  .lp-insight-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-feature-row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .lp-nav-links { display: none; }
  .lp-brand small { display: none; }
  .lp-insight-grid { grid-template-columns: 1fr; }
  .lp-triad { grid-template-columns: 1fr; }
  .lp-triad > div { border-left: 0; border-top: 1px solid var(--border); }
  .lp-triad > div:first-child { border-top: 0; }
  .lp-cta-banner { flex-direction: column; align-items: flex-start; }
}

html{scrollbar-width:auto;scrollbar-color:var(--border-strong) var(--bg)}::-webkit-scrollbar{width:12px;height:12px}::-webkit-scrollbar-track{background:var(--bg);border-left:1px solid var(--border)}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:6px;border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background:var(--muted);border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-button{display:block;background:var(--nav-bg)}::-webkit-scrollbar-button:vertical:decrement{background-color:var(--muted);-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M4 2L1 6h6z'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M4 2L1 6h6z'/></svg>");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}::-webkit-scrollbar-button:vertical:increment{background-color:var(--muted);-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M1 2l3 4 3-4z'/></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M1 2l3 4 3-4z'/></svg>");-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}::-webkit-scrollbar-corner{background:var(--bg)}@media (forced-colors:active){::-webkit-scrollbar-thumb{background:ButtonText}::-webkit-scrollbar-track{background:Canvas}::-webkit-scrollbar-button{background:ButtonFace}}


/* Waitlist signup form */
.lp-waitlist { margin-top: 1.5rem; }
.lp-waitlist label { display: block; margin-bottom: .5rem; font-size: .9rem; color: var(--lp-text-muted, #666); }
.lp-waitlist-row { display: flex; gap: .5rem; max-width: 360px; }
.lp-waitlist-row input { flex: 1; padding: .5rem .75rem; border: 1px solid var(--lp-border, #ccc); border-radius: 6px; font-size: .95rem; }
.lp-waitlist-msg { margin-top: .5rem; font-size: .85rem; }
.lp-waitlist-msg.success { color: var(--lp-success, #2d6a4f); }
.lp-waitlist-msg.error { color: var(--lp-error, #c0392b); }