/* laystar website. Same palette as the app. */
:root {
  --canvas: #f5f7f5;
  --surface: #ffffff;
  --sidebar: #eef2ef;
  --ink: #18272e;
  --ink-2: #3d4b52;
  --muted: #6f7b81;
  --line: #e1e6e3;
  --brand: #21664f;
  --brand-hover: #1b5743;
  --brand-soft: #e3efe8;
  --brand-ink: #174d3b;
  --amber: #a0651a;
  --amber-soft: #f7ecdc;
  --red: #b23b30;
  --red-soft: #f8e4e1;
  --shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 10px 30px rgba(20, 40, 30, .07);
  --radius: 14px;
  color-scheme: light;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, p { margin: 0; }
img { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 245, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #c7d1cc; color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: default; }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.hero h1 { margin: 20px auto 0; max-width: 820px; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -.025em; font-weight: 720; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { margin: 20px auto 0; max-width: 640px; font-size: 18px; color: var(--ink-2); }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* product preview: a drawing of the app, not a screenshot */
.preview { margin: 52px auto 0; max-width: 1040px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; text-align: left; }
.preview .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.preview .bar i { width: 11px; height: 11px; border-radius: 50%; background: #e1e6e3; }
.preview .body { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
.preview aside { background: var(--sidebar); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.preview aside b { font-size: 11px; color: var(--muted); font-weight: 600; margin: 12px 8px 4px; }
.preview aside span { padding: 6px 10px; border-radius: 8px; }
.preview aside span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20,40,30,.06); }
.preview aside span.sub { padding-left: 24px; }
.preview main { padding: 22px 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-content: start; }
.preview .card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.preview .card h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.preview .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.preview .row:first-of-type { border-top: 0; }
.preview .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #b9c4bf; flex: none; }
.preview .row .grow { flex: 1; min-width: 0; }
.preview .chip { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.preview .chip.amber { background: var(--amber-soft); color: var(--amber); }
.preview .evidence { font-size: 13px; color: var(--ink-2); background: var(--canvas); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.preview .week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px; }
.preview .week div { height: 74px; border-radius: 8px; background: var(--canvas); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.preview .week s { display: block; height: 14px; border-radius: 4px; background: var(--brand-soft); text-decoration: none; }
.preview .week s.b { background: #e2ebf4; }
@media (max-width: 760px) { .preview .body { grid-template-columns: 1fr; } .preview aside { display: none; } .preview main { grid-template-columns: 1fr; } }

/* sections */
section.block { padding: 88px 0 0; }
.block .head { max-width: 680px; }
.block .head.center { margin: 0 auto; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .06em; color: var(--brand); text-transform: uppercase; }
.block h2 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.block .head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 18px; }
.feature h3 { margin-top: 16px; font-size: 17px; font-weight: 650; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.feature .soon { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); vertical-align: 2px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 4px 0 0 0; border-top: 2px solid var(--brand); }
.step h3 { margin-top: 16px; font-size: 17px; font-weight: 650; }
.step h3::before { counter-increment: step; content: counter(step) "  "; color: var(--brand); font-variant-numeric: tabular-nums; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.compare { margin-top: 36px; width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; background: #fafbfa; font-size: 13px; color: var(--muted); font-weight: 600; }
.compare td:first-child { color: var(--muted); width: 22%; }
.compare td.us { color: var(--ink); font-weight: 550; }

.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 18px; justify-content: center; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.main { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan h3 { font-size: 18px; font-weight: 650; }
.plan .price { font-size: 34px; font-weight: 720; letter-spacing: -.02em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

.final { margin: 96px 0 0; padding: 56px 24px; border-radius: 20px; background: var(--brand); color: #fff; text-align: center; }
.final h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.final p { margin-top: 10px; opacity: .85; }
.final .btn { margin-top: 24px; background: #fff; color: var(--brand-ink); border-color: #fff; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .grow { flex: 1; }

/* auth pages */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth .top { position: static; background: transparent; }
.auth main { display: grid; place-items: center; padding: 24px; }
.panel { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.panel h1 { font-size: 24px; letter-spacing: -.01em; font-weight: 700; }
.panel .sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.panel form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.panel input { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.panel input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.panel .btn { width: 100%; height: 46px; margin-top: 6px; }
.panel .err { display: none; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 14px; }
.panel .err.on { display: block; }
.panel .alt { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.panel .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.panel .divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.panel .divider::before, .panel .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* legal pages */
.legal { max-width: 760px; padding: 56px 24px 0; }
.legal h1 { font-size: 32px; letter-spacing: -.02em; }
.legal .meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 36px; font-size: 19px; }
.legal p, .legal li { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.legal ul { padding-left: 20px; }

@media (max-width: 760px) {
  .top nav { display: none; }
  .hero { padding-top: 48px; }
  section.block { padding-top: 64px; }
}

/* geek accents */
:root { --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; }
.hero .pill { font-size: 12px; }
.hero .note { font-size: 12.5px; }
.preview .bar { align-items: center; }
.preview .bar span { margin-left: 12px; font-size: 12px; color: var(--muted); }
.feature .ic { font-size: 12px; font-weight: 600; width: auto; min-width: 38px; padding: 0 10px; }
.feature .soon, .soon { text-transform: lowercase; }
pre.log { margin: 32px 0 0; padding: 20px 22px; border-radius: var(--radius); background: #14211c; color: #d7e6de; font: 13.5px/1.75 var(--mono); overflow-x: auto; white-space: pre; }
pre.log b { color: #8fd3b0; font-weight: 600; }
pre.log .c { color: #6f8a7d; }
pre.log .g { color: #e9c26f; }
.final p.mono { font-size: 14px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; font: 12px var(--mono); }
.lang-switch a { padding: 4px 8px; border-radius: 7px; color: var(--muted); }
.lang-switch a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,40,30,.08); }
.top .actions > span { display: inline-flex; gap: 10px; }
