/* ChefFlex look, taken from Hayley's reference designs (design/ref-*.png):
   warm cream paper, near-black ink, chartreuse lime accent, clean cards, serif headlines with an italic lime line. */
:root {
  --paper: #f5f2ea;
  --paper-2: #fbfaf6;
  --card: #ffffff;
  --ink: #0f0f0e;
  --ink-2: #181814;
  --muted: #6b6a60;
  --line: #e4e0d4;
  --lime: #d4ea2c;
  --lime-ink: #9fb31a; /* lime that reads on cream, for text */
  --radius: 14px;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #c8de1f; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26261f; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; }
.btn svg { width: 16px; height: 16px; }

/* Type */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.02em; margin: 0; }
.display em, .h2 em { font-style: italic; color: var(--lime-ink); }
.on-dark .display em, .on-dark .h2 em { color: var(--lime); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.01em; margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34ch; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; color: var(--ink-2); }
.trust span { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Dark finder card (hero right) */
.finder { background: var(--ink); color: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(15,15,14,.5); }
.finder h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 0 0 18px; }
.finder h2 em { color: var(--lime); }
.finder label { display: block; font-size: 12px; color: #b9b8ad; margin: 12px 0 6px; }
.finder select, .finder input { width: 100%; height: 46px; border-radius: 8px; border: 1px solid #34342d; background: #1b1b17; color: #fff; padding: 0 12px; font: inherit; }
.finder .btn { width: 100%; margin-top: 18px; }

/* Shift card (app look) */
.shift-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.shift-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shift-card .role { font-weight: 700; }
.shift-card .venue, .shift-card .when { font-size: 13px; color: var(--muted); }
.shift-card .pay { font-weight: 700; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 9px; }

/* Bands */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .lede, .band-ink p { color: #cfcec4; }
.band-white { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.feature { padding: 28px 24px 8px 0; }
.feature + .feature { padding-left: 24px; border-left: 1px solid var(--line); }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin: 0 0 8px; }
.feature p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.feature a { font-size: 13px; color: var(--lime-ink); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } .feature + .feature { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: s; }
.step { background: #17171a00; border: 1px solid #2c2c26; border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 700; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.step p { margin: 0; font-size: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Phone mock */
.phone { width: min(300px, 100%); margin: 0 auto; background: var(--ink); border-radius: 38px; padding: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.phone-screen { background: var(--paper-2); color: var(--ink); border-radius: 28px; padding: 22px 14px; display: grid; gap: 10px; }
.phone-screen .hi { font-weight: 700; font-size: 18px; }
.phone-next { background: var(--ink); color: #fff; border-radius: 12px; padding: 14px; font-size: 13px; }
.phone-next b { display: block; font-size: 15px; margin: 4px 0; }
.phone-next .btn { margin-top: 10px; min-height: 34px; width: 100%; font-size: 11px; }

/* Forms (light) */
.form { display: grid; gap: 14px; max-width: 520px; }
.form label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.form input, .form select, .form textarea { height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 0 14px; font: inherit; color: var(--ink); }
.form textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .finder select:focus, .finder input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.notice { border-radius: 10px; padding: 14px 16px; background: #eef5c4; border: 1px solid #d9e88a; }
.error { border-radius: 10px; padding: 14px 16px; background: #fbe6e0; border: 1px solid #efb8a8; }

/* Footer */
.site-footer { background: var(--ink); color: #b9b8ad; padding: 48px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer a { color: #fff; text-decoration: none; margin-right: 18px; }
.site-footer .brand { color: #fff; }
.nav a.btn-ink { color: #fff; }
/* Grid items may shrink below their content width (stops sideways scroll on phones). */
.hero .wrap > *, .split > *, .features > *, .steps > * { min-width: 0; }
.finder select, .finder input { min-width: 0; max-width: 100%; }
/* Sign-in / account cards */
.auth-wrap { display: block !important; }
.auth-card { max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 14px; }
.auth-card .form { max-width: none; }
.auth-card .btn-ink { width: 100%; }
.auth-card .h2 { margin-bottom: 4px; }
.hint { font-weight: 400; color: var(--muted); }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form label.check input { height: 18px; width: 18px; accent-color: var(--ink); }
.muted { color: var(--muted); font-size: 14px; margin: 0; }
.switch { margin: 0; font-size: 14px; }
/* Workspaces (chef, kitchen, staff desk) */
.ws { padding: 28px 0 72px; }
.ws .wrap { display: grid; gap: 18px; max-width: 900px; }
.ws-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; padding: 10px 14px; border-radius: 8px 8px 0 0; font-size: 14px; white-space: nowrap; color: var(--muted); }
.tabs a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--lime); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); display: grid; gap: 12px; max-width: none; }
.panel > p, .panel h2 { margin: 0; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eceae2; white-space: nowrap; }
.status-approved, .status-accepted { background: var(--lime); }
.status-submitted, .status-pending { background: #ece7d6; }
.status-rejected { background: #fbe0d8; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-actions .inline { display: flex; gap: 8px; }
.row-actions .inline input { height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; }
button.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.todo { margin: 0; padding-left: 20px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-size: 12px; color: var(--muted); }
.cal form { margin: 0; }
.cal-d { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); font: 600 14px var(--sans); cursor: pointer; display: inline-grid; place-items: center; }
.cal-d.on { background: var(--card); color: var(--ink); }
.cal-d.off { background: var(--ink); color: #fff; text-decoration: line-through; }
.cal-d:disabled { opacity: .35; cursor: default; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.legend .cal-d { width: 26px; font-size: 11px; cursor: default; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details.cancel summary { cursor: pointer; font-size: 14px; text-decoration: underline; list-style: none; }
details.cancel[open] { flex-basis: 100%; }
details.cancel .form { margin-top: 10px; }
.ws .shift-card { gap: 6px; }
.team { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.team-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.team p { max-width: 60ch; }
.sig { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--lime) !important; }
.price-eg .facts dd { text-align: right; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } .team-photo { max-width: 320px; } }
.eve-card { aspect-ratio: 4 / 5; border-radius: 18px; background: radial-gradient(120% 90% at 30% 20%, #2a2c1a 0%, #141512 60%); border: 1px solid #2c2c26; display: grid; place-content: center; text-align: center; gap: 10px; color: #b9b8ad; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.eve-mark { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 9vw, 110px); color: var(--lime); letter-spacing: 0; text-transform: none; line-height: 1; }
@media (max-width: 760px) { .eve-card { aspect-ratio: 16 / 9; } }
.get-app { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.get-app img { border-radius: 9px; }
.install { max-width: 520px; margin-top: 20px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.kbd { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--paper-2); font-size: 13px; }
[hidden] { display: none !important; }
.site-footer .wrap > div:last-child { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: 560px; }
.site-footer .wrap > div:last-child a { margin-right: 0; }
.site-footer .wrap > div:last-child p { flex-basis: 100%; }
.chat { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.bubble { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 85%; white-space: pre-wrap; font-size: 15px; }
.bubble.user { justify-self: end; background: var(--ink); color: #fff; }
.bubble.assistant { justify-self: start; background: #eef5c4; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; }

/* ---- Warmth pass (10 Nov): care-first story, premium spacing ---- */
:root { --oak: #efe7d6; --paper-warm: #f8f4ec; }
body { background: var(--paper-warm); }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; }
.hero-warm { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero-warm .display { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; max-width: 15ch; }
.hero-warm .lede { max-width: 46ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; margin-top: 22px; }
.get-app-line { margin: 26px 0 0; }

.match-note { margin: 0; background: #fffdf8; border: 1px solid #e7dfcc; border-radius: 4px; padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 1px 0 #e7dfcc, 0 30px 60px -40px rgba(60, 45, 20, .35); transform: rotate(-1.2deg); max-width: 440px; justify-self: center; position: relative; }
.match-note::before { content: ''; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%) rotate(2deg); background: color-mix(in srgb, var(--lime) 70%, transparent); }
.mn-head { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 0 0 4px; }
.mn-to { font-size: 13px; color: var(--muted); margin: 0 0 16px; border-bottom: 1px dashed #e0d6c0; padding-bottom: 12px; }
.mn-chef { font-size: 18px; margin: 0 0 10px; }
.mn-why { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; }
.mn-why li::marker { color: var(--lime-ink); }
.mn-foot { margin: 0; font-size: 14px; color: var(--ink-2); font-style: italic; }
@media (max-width: 900px) { .match-note { transform: none; } }

.care { background: var(--paper-warm); }
.care-title { max-width: 18ch; }
.care-lede { max-width: 52ch; margin-top: 14px; }
.care-steps { list-style: none; counter-reset: c; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 0; }
.care-steps li { counter-increment: c; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 28px; align-items: baseline; padding: 26px 0; border-top: 1px solid #e3dbc8; }
.care-steps li:last-child { border-bottom: 1px solid #e3dbc8; }
.care-steps li::before { content: counter(c); font-family: var(--serif); font-size: 34px; color: var(--lime-ink); line-height: 1; }
.care-steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 27px); margin: 0; }
.care-steps p { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
@media (max-width: 760px) { .care-steps li { grid-template-columns: 44px minmax(0, 1fr); } .care-steps p { grid-column: 2; } }

.promise { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.promise-inner { max-width: 900px; }
.promise-quote { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; margin: 0; }
.promise-sign { margin: 22px 0 0; color: var(--lime); font-size: 15px; }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.service { padding: 26px 22px 30px 0; text-decoration: none; border-right: 1px solid var(--line); }
.service + .service { padding-left: 22px; }
.service:last-child { border-right: 0; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service:hover h3, .service:focus-visible h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--lime-ink); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .service:nth-child(2) { border-right: 0; } .service:nth-child(3) { padding-left: 0; } .service:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 540px) { .services { grid-template-columns: 1fr; } .service, .service + .service { padding-left: 0; border-right: 0; border-top: 1px solid var(--line); } }
:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 3px; }
.mn-eg { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--muted); vertical-align: middle; margin-left: 6px; }
.days { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 6px; } .days legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.day-row { display: grid; grid-template-columns: 1fr 110px 110px; gap: 8px; align-items: center; } .day-row input[type=time] { height: 38px; } @media (max-width: 480px) { .day-row { grid-template-columns: 1fr 90px 90px; } }
