/* Shared styles for every page of Online by Lunch. Colours are the tokens at the top. */
/* Layout: a workshop morning. Paths first, kits boxed with yellow part labels, and the "build it for me" service last. */
:root {
  --bg: #EDF1EC;
  --surface: #FFFFFF;
  --ink: #15231B;
  --muted: #56655C;
  --line: #D3DCD4;
  --green: #1F4D3A;
  --on-green: #FFFFFF;
  --green-soft: #DCE8DF;
  --tape: #F2C230;
  --on-tape: #1B1A10;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1612; --surface: #15201A; --ink: #E5ECE6; --muted: #9AABA0; --line: #273830;
    --green: #86C9A6; --on-green: #0E1612; --green-soft: #1C2D24; --tape: #F2C230; --on-tape: #1B1A10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1612; --surface: #15201A; --ink: #E5ECE6; --muted: #9AABA0; --line: #273830;
  --green: #86C9A6; --on-green: #0E1612; --green-soft: #1C2D24; --tape: #F2C230; --on-tape: #1B1A10;
  color-scheme: dark;
}

* { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drop { position: relative; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: 72px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 4px; }

.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-block; background: var(--tape); color: var(--on-tape);
  padding: 3px 8px; border-radius: 2px;
}
.lede { color: var(--muted); font-size: 19px; max-width: 60ch; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 720px; }
.pace { font-size: 15px; color: var(--muted); border-left: 3px solid var(--tape); padding: 4px 0 4px 14px; max-width: 62ch; }
.pace b { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 8px; border: 2px solid var(--green);
  background: var(--green); color: var(--on-green);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--green); }

/* Header */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { flex: none; }
nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 78px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--tape) 62%); padding: 0 4px; color: var(--ink); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ticket {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px; display: grid; gap: 18px; position: relative; min-width: 0;
  box-shadow: 0 18px 40px -24px rgba(21, 35, 27, .35);
}
.ticket .label { position: absolute; top: -12px; left: 22px; transform: rotate(-2deg); }
.ticket h3 { font-size: 19px; padding-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; counter-increment: s; }
.steps li::before {
  content: counter(s); font-family: var(--mono); font-size: 14px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--ink);
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
.ticket-foot { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-width: 0;
}
.path .code { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.path p { color: var(--muted); font-size: 15.5px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Free guide */
.guide { background: var(--green); color: var(--on-green); }
.guide .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.guide .lede { color: inherit; opacity: .85; }
.guide .label { justify-self: start; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: g; }
.guide-steps li { counter-increment: g; padding: 20px 0; border-top: 1px solid color-mix(in srgb, var(--on-green) 22%, transparent); display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.guide-steps li::before { content: "0" counter(g); font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; opacity: .55; }
.guide-steps h3 { font-size: 20px; margin-bottom: 6px; }
.guide-steps p { opacity: .85; font-size: 16px; }
.prompt {
  margin-top: 10px; font-family: var(--mono); font-size: 13.5px; line-height: 1.55;
  background: color-mix(in srgb, var(--on-green) 10%, transparent); border-radius: 8px; padding: 12px 14px;
  overflow-x: auto;
}

/* Kits */
.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kit {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; min-width: 0;
}
.kit-lid { background: var(--green-soft); padding: 22px 24px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.kit-lid .label { justify-self: start; }
.kit-body { padding: 20px 24px; display: grid; gap: 10px; align-content: start; }
.kit-body h4 { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.kit-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; }
.kit-body li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.kit-body li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border: 2px solid var(--green); border-radius: 2px; }
.kit-foot { padding: 18px 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--display); font-weight: 800; font-size: 32px; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted); }
.bundle {
  margin-top: 18px; border: 2px dashed var(--line); border-radius: 12px; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.bundle p { color: var(--muted); }
.bundle strong { color: var(--ink); }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.service.featured { border: 2px solid var(--green); }
.service .who { color: var(--muted); }
.service ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.service-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.process { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process div { border-top: 3px solid var(--tape); padding-top: 12px; }
.process b { display: block; font-family: var(--display); font-size: 18px; }
.process span { color: var(--muted); font-size: 15px; }

/* Proof */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.site {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; min-width: 0;
}
.site .kind { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site p { color: var(--muted); font-size: 15.5px; }
.site ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.site li { font-size: 13px; font-weight: 500; background: var(--green-soft); border-radius: 999px; padding: 3px 10px; }
.site-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.site-foot a { font-weight: 600; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-foot .code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stack { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 75ch; }
.stack b { color: var(--ink); }

/* Signup */
.signup { background: var(--surface); border-block: 1px solid var(--line); }
.signup .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
form { display: grid; gap: 16px; }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], select, textarea {
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 500; font-size: 15px; cursor: pointer; background: var(--bg); }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.note { font-size: 14px; color: var(--muted); }
.thanks { border: 2px solid var(--green); border-radius: 12px; padding: 22px; display: grid; gap: 8px; background: var(--green-soft); }

/* Build brief */
.brief { padding-top: 24px; }
.brief-form { display: grid; gap: 22px; max-width: 860px; }
.part {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  margin: 0; padding: 24px; display: grid; gap: 18px; min-width: 0;
}
.part legend {
  font-family: var(--display); font-weight: 700; font-size: 21px; padding: 0 8px; margin-left: -8px;
  display: flex; align-items: center; gap: 10px;
}
.part-no {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tape); color: var(--on-tape);
}
.f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.f i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-left: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-weight: 400; font-size: 14px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
textarea.tall { min-height: 170px; }
.drop {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 8px; padding: 16px; background: var(--bg);
  font-weight: 500; color: var(--muted); min-height: 64px;
}
.drop:hover, .drop:focus-within { border-color: var(--green); color: var(--ink); }
.drop.has-file { border-style: solid; border-color: var(--green); color: var(--ink); background: var(--green-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-text { overflow-wrap: anywhere; }
.drop::before { content: "+"; font-family: var(--mono); font-size: 20px; line-height: 1; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.brief-send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
input[type=tel], input[type=date] {
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.choice input[type=checkbox], .choice input[type=radio] { accent-color: var(--green); }
.services .service:not(.featured) { background: transparent; }

footer { padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero .wrap, .guide .wrap, .signup .wrap { grid-template-columns: 1fr; gap: 36px; }
  .paths, .kits, .sites { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .choices.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding-block: 52px; }
  .paths, .kits, .services, .sites, .grid2 { grid-template-columns: 1fr; }
  .part { padding: 18px; }
  nav { gap: 16px; }
}
