/* BaakiBook website. Same colours and type as the app (packages/shared/src/tokens.ts, UI_PLAN "Calm ledger"). */
:root {
  --ground: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #101828;
  --ink-soft: #344054;
  --ink-muted: #475467;
  --line: #E4E7EC;
  --line-strong: #D0D5DD;
  --primary: #2848D0;
  --primary-dark: #1D36A3;
  --primary-soft: #ECF0FE;
  --duo-blue: #C3CFFB;
  --send: #0E7C66;
  --good: #067647;
  --good-soft: #DCFAE6;
  --due: #B54708;
  --due-soft: #FEF0E1;
  --late: #B42318;
  --late-soft: #FEE4E2;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img, svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244, 245, 247, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--primary); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

/* Buttons (UI_PLAN 5.7: compact unless it's the one main action) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-send { background: var(--send); color: #fff; }
.btn-send:hover { background: #0B6553; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 14px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; margin: 16px 0 16px; letter-spacing: -0.5px; }
h1 .accent { color: var(--primary); }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 24px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.langs { margin-top: 18px; color: var(--ink-muted); font-size: 15px; }
.langs b { color: var(--ink); }

/* Phone mock-up of the app's Today screen */
.phone { justify-self: center; width: 320px; max-width: 100%; background: var(--ground); border: 10px solid #101828; border-radius: 40px; padding: 18px 14px 20px; box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18); }
.phone .date { font-size: 12px; color: var(--ink-muted); }
.phone .head { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 2px 0 12px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.mini-stats span { display: block; font-size: 10.5px; color: var(--ink-muted); line-height: 1.3; }
.mini-stats b { font-size: 14px; }
.todo { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.todo .t { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 6px; }
.todo .w { font-size: 12px; color: var(--ink-muted); margin: 2px 0 8px; line-height: 1.4; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.chip-send { background: var(--send); color: #fff; }
.chip-sec { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.late { color: var(--late); }
.due { color: var(--due); }

/* Duotone badge (UI_PLAN 5.8) */
.badge { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge.blue { background: var(--primary-soft); }
.badge.red { background: var(--late-soft); }
.badge.amber { background: var(--due-soft); }
.badge.green { background: var(--good-soft); }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 64px; }
.section-head { max-width: 680px; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.3px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.card li { margin: 3px 0; }

.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 22px; width: 28px; height: 28px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.pop { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(40, 72, 208, 0.12); }
.price-card .name { font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; }
.amount { font-size: 38px; font-weight: 700; margin: 10px 0 0; letter-spacing: -0.5px; }
.amount small { font-size: 15px; color: var(--ink-muted); font-weight: 500; }
.yearly { color: var(--good); font-weight: 600; font-size: 14px; margin: 2px 0 12px; min-height: 22px; }
.price-card ul { flex: 1; }
.note { color: var(--ink-muted); font-size: 14px; margin-top: 16px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
details + details { margin-top: 10px; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact .card { display: flex; gap: 14px; align-items: flex-start; }
.contact h3 { margin: 0 0 4px; }

/* Footer */
footer { padding: 32px 0 48px; color: var(--ink-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--ink-soft); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--primary); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.legal h1 { font-size: 32px; margin: 0 0 4px; }
.legal h2 { font-size: 19px; margin: 30px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.muted { color: var(--ink-muted); font-size: 14px; }

/* Phones and tablets */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 32px 0 24px; }
  .lede { font-size: 17px; }
  section { padding: 40px 0; }
  .g4 { grid-template-columns: 1fr; }
  footer a { margin-left: 0; margin-right: 18px; }
}
