/* =========================================================================
   Lana Personal Chef — shared styles for the client and chef portals.
   Layout: single centred column (max 1080px); booking page splits into
   form + sticky summary on wide screens, stacks on phones.
   Fonts are self-hosted from /fonts (no CDNs, keeps the Content-Security-Policy strict).
   Brand palette: ~75% warm ivory + white, ~15% plum, ~10% lavender.
   ========================================================================= */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-500-normal.woff2) format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-latin-400-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin-400-normal.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin-700-normal.woff2) format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
:root {
  --bg: #F5F3F0;            /* warm ivory */
  --surface: #FFFFFF;
  --ink: #302A30;           /* charcoal */
  --muted: #6A6368;
  --line: #E2DEE0;
  --accent: #593052;        /* primary plum */
  --accent-hover: #472640;
  --accent-ink: #FFFFFF;
  --accent-soft: #F0E7EF;   /* soft lavender */
  --accent-line: #E4D6E2;
  --plum-soft: #67405F;     /* About section */
  --plum-deep: #382039;
  --herb: #4F6B2A;          /* success / done */
  --herb-soft: #E8EFDD;
  --warn: #9A5B00;
  --warn-soft: #FBEFD9;
  --danger: #A12B2B;
  --danger-soft: #F9E3E3;
  --info: #2C5A85;
  --info-soft: #E3ECF5;
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151314; --surface: #1F1C1E; --ink: #EEE9EC; --muted: #A79EA4; --line: #353034;
    --accent: #D9A6CD; --accent-ink: #241320; --accent-soft: #3A2636;
    --herb: #A9C77E; --herb-soft: #26301B; --warn: #F0B860; --warn-soft: #3A2C14;
    --danger: #F08C8C; --danger-soft: #3D1E1E; --info: #8FB8E6; --info-soft: #1C2A3A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-body); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.eyebrow { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.brand { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Language flags (client pages) */
.nav { align-items: center; }
.lang-switch { display: inline-flex; gap: 2px; align-items: center; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.lang-switch .flag, .nav .lang-switch .flag { display: inline-grid; place-items: center; width: 40px; height: 34px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.lang-switch .flag svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-switch .flag:hover { opacity: 1; }
.lang-switch .flag[aria-pressed="true"] { opacity: 1; border-color: var(--accent); }
.lang-switch .flag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[lang="pt-BR"] { --step-word: "Passo"; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-top .lang-switch { border-left: 0; margin: 0; padding: 0; }
details.pt-fields { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
details.pt-fields summary { cursor: pointer; font-weight: 600; }
main { padding-block: 28px 80px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card.tight { padding: 14px 16px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.good { background: var(--herb); border-color: var(--herb); color: var(--surface); }
.btn.sm { padding: 6px 11px; font-size: .875rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; min-width: 0; }
.field input, .field select, .field textarea { font-weight: 400; font-size: 1rem; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 10px 12px; width: 100%; min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.error { color: var(--danger); font-size: .9rem; font-weight: 500; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.info { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.notice.good { background: var(--herb-soft); color: var(--herb); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Pills (status) ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-requested { background: var(--warn-soft); color: var(--warn); }
.st-confirmed { background: var(--info-soft); color: var(--info); }
.st-groceries_ready { background: var(--accent-soft); color: var(--accent); }
.st-completed { background: var(--herb-soft); color: var(--herb); }
.st-cancelled { background: var(--line); color: var(--muted); }
.pay-paid { background: var(--herb-soft); color: var(--herb); }
.pay-unpaid { background: var(--line); color: var(--muted); }
.pay-refunded { background: var(--danger-soft); color: var(--danger); }

/* ---------- Hero + how it works ---------- */
.hero { display: grid; gap: 14px; max-width: 62ch; margin-bottom: 28px; }
.hero p { font-size: 1.08rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 32px; counter-reset: step; }
.steps li { list-style: none; counter-increment: step; display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid var(--accent); }
.steps li::before { content: var(--step-word, "Step") " " counter(step); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.steps { padding: 0; margin-top: 0; }

/* ---------- Booking layout ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
@media (max-width: 880px) { .book-layout { grid-template-columns: minmax(0, 1fr); } }
.section-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.section-title .n { font-family: var(--f-mono); color: var(--accent); font-size: .85rem; }

/* Calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; font-weight: 700; }
.cal button { aspect-ratio: 1; max-width: 100%; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; }
.cal button:disabled { background: transparent; border-color: transparent; color: var(--muted); opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.cal button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal .blank { visibility: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: block; border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; background: var(--surface); font-weight: 600; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Dishes */
.course { display: grid; gap: 10px; }
.course + .course { margin-top: 18px; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.dish { position: relative; border: 1px solid var(--line); border-radius: 11px; padding: 14px; background: var(--surface); display: grid; gap: 6px; align-content: start; }
.dish.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.dish label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 700; }
.dish input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.dish .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
.dish .servings { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.dish .servings input { width: 64px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.tag { font-size: .72rem; color: var(--herb); font-weight: 600; }

/* Summary */
.summary { position: sticky; top: 76px; display: grid; gap: 10px; }
@media (max-width: 880px) { .summary { position: static; } }
.summary .line { display: flex; justify-content: space-between; gap: 10px; font-size: .93rem; }
.summary .line span:first-child { min-width: 0; overflow-wrap: anywhere; }
.summary .total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }

/* Grocery list */
.grocery-section h3 { font-family: var(--f-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 6px; }
.grocery-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.grocery-item input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--herb); flex: none; }
.grocery-item .name { flex: 1; min-width: 0; }
.grocery-item.done .name { text-decoration: line-through; color: var(--muted); }
.grocery-item .qty { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress div { height: 100%; background: var(--herb); transition: width .2s; }

/* Status timeline */
.timeline { display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.timeline li { flex: 1 1 120px; border-top: 3px solid var(--line); padding-top: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.timeline li.done { border-color: var(--herb); color: var(--ink); }
.timeline li.now { border-color: var(--accent); color: var(--accent); }

/* Lists of bookings */
.blist { display: grid; gap: 10px; }
.bitem { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.bitem:hover { border-color: var(--accent); }
.datebox { text-align: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); padding: 6px 4px; line-height: 1.1; }
.datebox b { display: block; font-size: 1.5rem; font-family: var(--f-display); }
.datebox small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
@media (max-width: 520px) { .bitem { grid-template-columns: 60px minmax(0, 1fr); } .bitem > :last-child { grid-column: 2; } }

/* Tables (admin) */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
td input, td select { width: 100%; min-width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }

/* Auth cards */
.auth { max-width: 420px; margin: 6vh auto 0; }
.code-input { font-family: var(--f-mono); font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); }

.allergy { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Small utilities (used instead of inline styles, which the CSP blocks) */
.mt-s { margin-top: 8px; } .mt-m { margin-top: 16px; }
.mb-s { margin-bottom: 6px; } .mb-m { margin-bottom: 16px; }
.gap-s { gap: 10px !important; }
.bare { border: 0; padding: 0; margin: 0; }
.h-page { font-size: 1.8rem; }
.grow { flex: 1; min-width: 0; }
.gap-xs { gap: 6px !important; }

/* ---------- Meal-prep plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.plan-card { position: relative; }
.plan-card input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.plan-card > span { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 11px; padding: 14px; background: var(--surface); height: 100%; }
.plan-card b { font-family: var(--f-display); font-size: 1.15rem; }
.plan-card .price { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.plan-card small { color: var(--muted); font-size: .8rem; }
.plan-card input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.plan-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.counter { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--line); color: var(--muted); white-space: nowrap; }
.counter.ok { background: var(--herb-soft); color: var(--herb); }
.counter.extra { background: var(--accent-soft); color: var(--accent); }
.dish.disabled { opacity: .5; }
.dish.disabled label { cursor: not-allowed; }
.pick-group + .pick-group { margin-top: 22px; }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.menu-cols ul { margin: 6px 0 0; padding-left: 18px; }
.deadline { font-weight: 700; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }

/* Item details (e.g. "penne") next to the grocery item name */
.spec { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.grocery-item.done .spec { opacity: .6; }
/* Lana's grocery editor: scrolls sideways on narrow screens instead of squashing fields */
.grocery-edit { min-width: 700px; }
.grocery-edit td:nth-child(2) { min-width: 170px; }
.grocery-edit td:nth-child(3) { width: 80px; }
.grocery-edit td:nth-child(4) { min-width: 95px; }
.grocery-edit td:nth-child(5) { min-width: 120px; }
.grocery-edit td:nth-child(6) { min-width: 130px; }
/* A unit that must be picked before saving */
select.needs-fix { border-color: var(--danger) !important; background: var(--danger-soft) !important; }
.ing-table td:nth-child(1) { min-width: 150px; }
.ing-table td:nth-child(2) { min-width: 130px; }
.ing-table td:nth-child(3) { width: 90px; }
.ing-table td:nth-child(4) { min-width: 120px; }


/* =========================================================================
   Client site (body.client): header, home sections, booking, phone bar.
   ========================================================================= */
.client main { padding-block: 0 0; }
.client .page { padding-block: 32px 80px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
.client .wrap { max-width: 1200px; }
.anchor { scroll-margin-top: 84px; }

/* Header + nav */
.client .site-header .head-row { flex-wrap: nowrap; padding-block: 12px; }
.client .brand { display: flex; align-items: baseline; gap: 10px; }
.client .brand .brand-name { font-size: 1.85rem; color: var(--ink); letter-spacing: -.02em; }
.client .brand .brand-tag { font-family: var(--f-body); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.client .nav { gap: 22px; flex-wrap: nowrap; }
.client .nav > a:not(.btn), .client .nav > button.nav-quiet { position: relative; padding: 8px 2px; border-radius: 0; background: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.client .nav > a:not(.btn):hover { color: var(--accent); }
.client .nav > a:not(.btn):hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent-line); }
.client .nav > a[aria-current="page"]:not(.btn) { color: var(--accent); font-weight: 700; background: none; }
.client .nav > a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--accent); }
.client .nav > button.nav-quiet { color: var(--muted); font-size: .88rem; }
.client .nav .lang-switch { margin-left: 0; }
.nav-cta { white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: inline; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .client .nav { display: none; }
  .client .nav.open { display: flex; position: fixed; inset: 69px 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; overflow-y: auto; z-index: 20; }
  .client .nav.open > a:not(.btn) { font-family: var(--f-display); font-size: 1.6rem; padding: 12px 16px 12px 28px; border-radius: 14px; }
  .client .nav.open > a[aria-current="page"]:not(.btn) { background: var(--accent-soft); }
  .client .nav.open > a[aria-current="page"]:not(.btn)::after { left: 12px; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; }
  .client .nav.open > a:not(.btn):hover::after { display: none; }
  .client .nav.open .lang-switch { border-left: 0; border-top: 1px solid var(--line); padding: 16px 12px 4px; margin-top: 8px; }
  .client .nav.open .nav-cta { margin-top: 12px; padding: 15px; font-size: 1.05rem; }
  .client .nav.open > button.nav-quiet { align-self: center; padding: 12px; }
  body.menu-open { overflow: hidden; }
}

/* Buttons on the client site: rounder, bolder */
.client .btn { border-radius: 999px; padding: 11px 20px; }
.client .btn.sm { padding: 6px 12px; }
.client .btn.round { width: 40px; height: 40px; padding: 0; }
.client .btn.lg { padding: 15px 28px; font-size: 1.02rem; font-weight: 700; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.text-link { font-weight: 600; text-decoration: none; padding: 12px 6px; }
.eyebrow.herb { color: var(--herb); letter-spacing: .2em; font-weight: 700; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 400; letter-spacing: -.02em; margin: 6px 0 22px; }
.center { text-align: center; }
.req { color: #9B2C3A; }
.soft-box { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; color: var(--ink); }

/* Hero */
.client .hero { max-width: 1200px; padding-top: 56px; padding-bottom: 40px; margin-bottom: 0; gap: 18px; }
.client .hero h1 { font-weight: 400; font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.025em; max-width: 18ch; }
.client .hero h1 em { color: var(--accent); font-style: italic; }
.client .hero .lead { font-size: 1.15rem; color: #57505A; max-width: 56ch; }
.hero-actions { gap: 14px; }

/* How it works */
#how { padding-block: 24px 64px; }
.steps4 { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps4 li { border-top: 2px solid var(--accent); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps4 .n { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.steps4 b { font-size: 1.05rem; }
.steps4 li > span:last-child { color: #57505A; font-size: .97rem; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; padding: 24px 28px; border-radius: 20px; }
.faq h3 { font-size: 1.2rem; margin-bottom: 4px; }
.faq p { color: #57505A; font-size: .97rem; }

/* Meet Lana */
.about-band { background: var(--plum-soft); color: #F0E7EF; padding-block: 72px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.about-grid.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.about-photo { position: relative; }
.about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--plum-deep); }
.about-stamp { position: absolute; right: -14px; top: 28px; width: 112px; height: 112px; border-radius: 50%; background: #FFFFFF; color: var(--accent); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--f-display); font-style: italic; font-size: 1rem; line-height: 1.15; transform: rotate(-8deg); }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text .eyebrow { color: #E0CBDB; letter-spacing: .2em; font-weight: 700; }
.about-text h2 { color: #FFFFFF; font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.about-text p { color: #EADCE6; font-size: 1.06rem; white-space: pre-line; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; padding-top: 18px; border-top: 1px solid #84617C; }
.promises b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: #FFFFFF; }
.promises span { font-size: .9rem; color: #E0CBDB; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; }
.creds span { border: 1px solid #9C7D94; border-radius: 999px; padding: 5px 14px; font-size: .85rem; color: #EADCE6; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .about-stamp { width: 92px; height: 92px; font-size: .85rem; right: -4px; } }

/* Booking */
#book { padding-block: 64px 96px; }
.client .card { border-radius: 20px; }
.step-card { padding: 26px; scroll-margin-top: 140px; }
.client .section-title .n { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.client .section-title h3 { font-size: 1.5rem; }
.progress-steps { list-style: none; margin: 0; padding: 8px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; position: sticky; top: 76px; z-index: 5; }
.progress-steps li { display: flex; align-items: center; gap: 4px; }
.progress-steps li + li::before { content: "→"; color: #B9B1B6; margin-right: 2px; }
.progress-steps button { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.progress-steps .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: #ECE8EA; color: var(--muted); }
.progress-steps .done button { color: var(--ink); font-weight: 600; }
.progress-steps .done .dot { background: var(--accent); color: #FFFFFF; }
.progress-steps [aria-current="step"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.progress-steps [aria-current="step"] .dot { background: #FFFFFF; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }

.client .plan-card > span { border-radius: 16px; padding: 18px 20px; border-width: 2px; }
.client .plan-card b { font-size: 1.35rem; font-weight: 400; }
.client .plan-card .price { font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; }
.client .plan-card input:checked + span { box-shadow: 0 8px 20px rgba(89,48,82,.12); border-color: var(--accent); }
.client .cal button { border-radius: 12px; border: 1.5px solid #9AB07A; }
.client .cal button:disabled { border-color: transparent; }
.client .cal button[aria-pressed="true"] { border-color: var(--accent); }
.client .chip span { border-radius: 999px; padding: 10px 18px; border-width: 1.5px; }
.client .dish { border-radius: 14px; padding: 16px; border-width: 1.5px; }
.client .tag { display: inline-block; justify-self: start; font-size: .74rem; color: #3F5621; background: var(--herb-soft); border-radius: 999px; padding: 2px 9px; }

.client .field { font-size: .95rem; }
.client .field input, .client .field textarea { border-radius: 12px; padding: 13px 15px; border-color: #D6D0D4; }
.allergy-box { background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.allergy-label { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.allergy-label svg { color: var(--accent); flex: none; }
.allergy-box input { border: 1px solid #C9B3C4; border-radius: 12px; padding: 13px 15px; background: #FFFFFF; width: 100%; }
.allergy-box .hint { font-size: .86rem; color: #57505A; }
.privacy { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 14px 16px; color: #57505A; }
.privacy svg { color: var(--accent); flex: none; margin-top: 2px; }
.privacy b { color: var(--ink); }
.terms-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.terms-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.field.invalid input, .allergy-box.invalid input, .terms-check.invalid { outline: 2px solid var(--danger); outline-offset: 2px; border-radius: 8px; }

.client .summary { top: 76px; }
.client .summary .card { border-radius: 22px; padding: 26px; box-shadow: 0 16px 36px rgba(48,42,48,.08); }
.client .summary h2 { font-size: 1.7rem; font-weight: 500; }
.sum-head { background: var(--accent-soft); border-radius: 12px; padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; }
.sum-head b { color: var(--accent); }
.sum-head span { font-size: .9rem; color: #57505A; }
.client .summary .total { align-items: baseline; font-size: 1.05rem; }
.client .summary .total .num { font-family: var(--f-display); font-size: 2.3rem; font-weight: 400; color: var(--accent); line-height: 1; }
.client .summary .line .num { font-family: var(--f-body); font-weight: 700; }
#sumHint.ready { color: var(--herb); font-weight: 600; }
.client #bookBtn { width: 100%; }

/* Phone price bar */
.mobile-bar { display: none; }
@media (max-width: 880px) {
  .mobile-bar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(48,42,48,.06); padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .mobile-bar > span { display: flex; flex-direction: column; }
  .mobile-bar b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--accent); line-height: 1.1; }
  body.has-bar { padding-bottom: 84px; }
  .progress-steps { border-radius: 16px; top: 69px; }
  .progress-steps button { padding: 4px 8px 4px 4px; font-size: .85rem; }
  .dishes { grid-template-columns: minmax(0, 1fr); }
  .step-card { padding: 20px 16px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .client .plan-card > span { grid-template-columns: 1fr auto; align-items: center; }
  .client .plan-card .price { grid-column: 2; grid-row: 1 / span 3; }
}

/* Footer + terms */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 32px; font-size: .9rem; color: var(--muted); }
.site-footer .brand-name { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); }
.site-footer a { color: var(--muted); }
.prose { max-width: 760px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-weight: 400; }
.prose h2 { font-size: 1.25rem; margin-top: 10px; }
.prose p, .prose li { color: #4A444A; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

@media (prefers-color-scheme: dark) {
  .about-band { background: #3A2636; }
  .req { color: var(--danger); }
  .client .hero .lead, .steps4 li > span:last-child, .faq p, .allergy-box .hint, .privacy, .sum-head span, .prose p, .prose li { color: var(--muted); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Chef portal: About me editor */
.about-admin { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .about-admin { grid-template-columns: minmax(0, 1fr); } }
.about-preview-wrap { position: sticky; top: 76px; }
.photo-row { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; font-weight: 400; }
.photo-thumb { flex: none; width: 112px; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; text-align: center; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop { flex: 1 1 260px; border: 2px dashed var(--accent-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.photo-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.promise-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.promise-grid input, .cred-input { font-weight: 400; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 9px 11px; min-width: 0; }
.cred-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 600; font-size: .88rem; }
.cred-chip button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--surface); color: var(--accent); cursor: pointer; }
.about-preview { background: var(--plum-soft); color: #EADCE6; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.about-preview img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.about-preview .eyebrow { color: #E0CBDB; }
.about-preview .pv-head { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: #FFFFFF; }
.about-preview p { white-space: pre-line; }
.about-preview .pv-promise b { color: #FFFFFF; }
.pv-cred { border: 1px solid #9C7D94; border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
@media (max-width: 880px) {
  .client .plan-card .price { font-size: 1.45rem; }
  .client .plan-card b { font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .progress-steps { flex-wrap: nowrap; justify-content: space-between; padding: 6px; }
  .progress-steps li + li::before { display: none; }
  .progress-steps li:not(:has([aria-current])) .label { display: none; }
}
