/* ChefsRecords landing page - Apple-style product page (11 Oct 2026).
   Plain CSS, no framework. Motion is opt-out: everything below is still and readable
   when the visitor has "reduce motion" switched on (see the media query at the end). */

:root {
  --brand: #B71C1C;          /* the app's THEME.colors.primary */
  --brand-dark: #8E1515;
  --brand-tint: #FBEDED;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --dark: #0b0b0c;
  --dark-ink: #f5f5f7;
  --dark-muted: #a1a1a6;
  --pass: #2e7d32;           /* green only where it means "passed / in range" */
  --radius: 22px;
  --wrap: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,0.08); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.2px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.bar nav a { color: var(--ink); text-decoration: none; opacity: 0.85; }
.bar nav a:hover { opacity: 1; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff !important; opacity: 1 !important; }
/* Phones and small tablets (11 Oct 2026): brand + button on the first row, the links on a second row that scrolls
   sideways. No JavaScript, so it works everywhere. */
@media (max-width: 800px) {
  .bar .wrap { position: relative; flex-wrap: wrap; height: auto; padding-top: 10px; }
  .bar .brand { height: 32px; }
  .bar nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 8px 0 10px;
             scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { flex: none; }
  .bar nav .pill { position: absolute; right: 16px; top: 12px; }
  html { scroll-padding-top: 100px; }
}

/* ---------- type ---------- */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: 0.2px; margin: 0 0 10px; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.07; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 650; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { text-decoration: underline; }
.soon { background: var(--ink); color: #fff; cursor: default; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; background: radial-gradient(ellipse 900px 520px at 50% 82%, var(--brand-tint), rgba(255,255,255,0) 70%), var(--bg); }
.hero .lead { margin: 18px auto 0; }
.trio { position: relative; height: 640px; max-width: 980px; margin: 56px auto 0; }
.phone { position: absolute; background: #111; border-radius: 46px; padding: 9px; box-shadow: 0 40px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.25); }
.phone .screen { position: relative; border-radius: 38px; overflow: hidden; aspect-ratio: 1179 / 2556; background: #f2f2f2; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The camera pill, at the real screen position (x 323-837, y 33-143 of a 1179 x 2556 screenshot). */
.screen .island { position: absolute; top: 1.3%; left: 27.4%; width: 43.6%; height: 4.3%; border-radius: 999px; background: #000; z-index: 2; opacity: 1 !important; animation: none !important; }
.trio .mid { width: 300px; left: calc(50% - 150px); top: 0; z-index: 3; animation: float 7s ease-in-out infinite; }
.trio .left { width: 260px; left: calc(50% - 400px); top: 90px; z-index: 2; transform: rotate(-7deg); animation: float-l 8s ease-in-out infinite; }
.trio .right { width: 260px; left: calc(50% + 140px); top: 90px; z-index: 2; transform: rotate(7deg); animation: float-r 8.5s ease-in-out infinite; }
@keyframes float   { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes float-l { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float-r { 0%,100% { translate: 0 -8px; } 50% { translate: 0 6px; } }
/* centre screen fades through three screens (12 s cycle) */
.cycle img { opacity: 0; animation: cycle 12s infinite; }
.cycle img:nth-child(1) { animation-delay: 0s; }
.cycle img:nth-child(2) { animation-delay: 4s; }
.cycle img:nth-child(3) { animation-delay: 8s; }
@keyframes cycle { 0% { opacity: 0; } 4% { opacity: 1; } 33% { opacity: 1; } 37% { opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 720px) {
  .trio { height: 470px; }
  .trio .mid { width: 220px; left: calc(50% - 110px); }
  .trio .left, .trio .right { width: 180px; top: 70px; }
  .trio .left { left: calc(50% - 250px); }
  .trio .right { left: calc(50% + 70px); }
}

/* ---------- intro ---------- */
.intro { background: var(--bg); }
.intro p { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--ink); max-width: 820px; margin: 22px auto 0; }
.intro p.soft { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.chips span { font-size: 15px; padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); }

/* ---------- scroll story ---------- */
.story { background: var(--bg-alt); }
.story-grid { display: grid; grid-template-columns: 1fr 360px; gap: 72px; margin-top: 56px; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s ease; }
.step.on { opacity: 1; }
.step .num { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.step h3 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.step p { font-size: 20px; color: var(--muted); margin: 14px 0 0; max-width: 460px; }
.step .inline { display: none; }
.pin { position: sticky; top: calc(50vh - 330px); height: 660px; display: flex; align-items: center; }
.pin .phone { position: relative; width: 320px; }
.pin .screen img { opacity: 0; transition: opacity 0.55s ease; }
.pin .screen img.on { opacity: 1; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .pin { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; }
  .step .inline { display: block; width: 240px; margin: 26px auto 0; }
  .step .inline .phone { position: relative; width: 240px; }
  .step .inline .screen img { opacity: 1; }
}

/* ---------- no signal (dark) ---------- */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .lead, .dark p { color: var(--dark-muted); }
.signal { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signal h2 { color: #fff; }
.signal p { font-size: 20px; margin: 18px 0 0; }
.sync { background: #1c1c1e; border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.sync .row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #2c2c2e; font-size: 16px; color: #f5f5f7; }
.sync .row + .row { margin-top: 10px; }
.sync .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sync .state { margin-left: auto; font-size: 14px; font-weight: 600; }
/* The three status lines take turns (9 s cycle): no signal -> saved on the phone -> sent. */
.sync .bar-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--dark-muted); margin-bottom: 16px; }
.sync .st { display: grid; }
.sync .st > span { grid-area: 1 / 1; opacity: 0; animation: st 9s infinite; }
.sync .st > span:nth-child(2) { animation-delay: 3s; }
.sync .st > span:nth-child(3) { animation-delay: 6s; }
@keyframes st { 0% { opacity: 0; } 4% { opacity: 1; } 31% { opacity: 1; } 35% { opacity: 0; } 100% { opacity: 0; } }
.amber { color: #ffb340; } .amber-bg { background: #ffb340; }
.green { color: #30d158; } .green-bg { background: #30d158; }
.grey-bg { background: #8e8e93; }
@media (max-width: 900px) { .signal { grid-template-columns: 1fr; } }

/* ---------- incidents and near misses (13 Oct 2026) ---------- */
.incidents { background: var(--bg-alt); }
.nm { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.nm p { font-size: 19px; margin: 18px 0 0; color: var(--muted); }
.nm .ticks { list-style: none; padding: 0; margin: 22px 0 0; font-size: 17px; }
.nm .ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.nm .ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.nm-phone { display: flex; justify-content: center; }
.nm-phone .phone { position: relative; width: 280px; }
@media (max-width: 900px) { .nm { grid-template-columns: 1fr; gap: 36px; } .nm-phone .phone { width: 240px; } }

/* ---------- features ---------- */
.features { background: var(--bg); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 30px 28px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.card .tag { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--brand); }
.card.wide { grid-column: span 2; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } .card.wide { grid-column: span 2; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } }

/* ---------- gallery strip ---------- */
.gallery { background: var(--bg-alt); overflow: hidden; }
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 16px 24px; margin-top: 12px; scrollbar-width: thin; }
.strip img { flex: none; width: 250px; border-radius: 26px; scroll-snap-align: center; box-shadow: 0 18px 40px rgba(0,0,0,0.14); cursor: zoom-in; }
@media (min-width: 1100px) { .strip { padding-left: calc((100vw - var(--wrap)) / 2 + 16px); } }

/* ---------- trust ---------- */
.trust .grid3 { margin-top: 0; }
.trust .card { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- plans ---------- */
.plans { background: var(--bg-alt); }
.toggle { display: inline-flex; background: #e8e8ed; border-radius: 999px; padding: 4px; margin: 28px auto 0; }
.toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; text-align: left; }
.price { background: var(--bg); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.price.best { box-shadow: 0 0 0 2px var(--brand); }
.price .badge { position: absolute; top: -12px; left: 28px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.4px; }
.price .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.price .amount small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price .alt { font-size: 14px; color: var(--muted); }
.price .for { color: var(--muted); margin: 8px 0 16px; font-size: 15px; }
.price ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.price li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid #ececf0; }
.price li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.price .tail { font-size: 14px; color: var(--muted); margin-top: 14px; }
.yr { display: none; }
.plans.yearly .mo { display: none; }
.plans.yearly .yr { display: inline; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-list { max-width: 820px; margin: 44px auto 0; }
.faq-list details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; font-size: 21px; font-weight: 600; padding: 20px 36px 20px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 300; color: var(--brand); transition: transform 0.25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }

/* ---------- launch + footer ---------- */
.launch { background: var(--dark); color: #fff; text-align: center; }
.launch h2 { color: #fff; }
.launch p { color: var(--dark-muted); }
footer { background: var(--bg-alt); color: var(--muted); font-size: 13px; padding: 34px 0; }
footer .disc { max-width: 820px; margin: 0 0 18px; }
footer .row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
footer a { color: var(--muted); }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; } .rv.d3 { transition-delay: 0.24s; }

/* ---------- screenshot zoom ---------- */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
dialog.zoom::backdrop { background: rgba(0,0,0,0.78); }
dialog.zoom img { max-height: 88vh; width: auto; border-radius: 24px; }
dialog.zoom .x { position: fixed; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }

/* ---------- reduced motion: a calm, still page ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trio .mid, .trio .left, .trio .right { animation: none; }
  .cycle img { animation: none; opacity: 0; }
  .cycle img:first-child { opacity: 1; }
  .sync .st > span { animation: none; opacity: 0; }
  .sync .st > span:last-child { opacity: 1; }
  .rv { opacity: 1; transform: none; transition: none; }
  .step { opacity: 1; transition: none; }
  .pin .screen img { transition: none; }
}
/* Without JavaScript nothing is hidden. */
.no-js .rv { opacity: 1; transform: none; }
.no-js .step { opacity: 1; }

/* ---------- team (11 Oct 2026) ---------- */
.team .lead { margin-top: 18px; }
.card .role { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--brand); margin: 0; }
.price .per { font-size: 14px; font-weight: 600; color: var(--brand); margin: 6px 0 0; }
.plans .note { margin-top: 24px; }
