
/* Layout: a plain product page. Left-aligned copy, the real app screen as the
   centrepiece, then a day at the counter, the three apps side by side, what
   you need to run it, and questions people actually ask. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F3F5F7;
  --ink: #13202E;
  --ink-2: #4A5866;
  --ink-3: #657280;
  --line: #E1E6EB;
  --navy: #0E2A47;
  --green: #08875F;
  --link: #08875F;
  /* the app's own colours, used only inside the drawn screens */
  --app-side: #5A1530;
  --app-side-2: #7B1C3E;
  --app-bg: #FAF9F8;
  --app-card: #FFFFFF;
  --run: #E3F4EC; --run-b: #7CC9A6;
  --billed: #FDF1D6; --billed-b: #E2B04A;
  --paper: #FBFAF5;
  --frame: #13202E;
  --img-shadow: 0 1px 2px rgba(15,30,50,.08), 0 26px 44px -26px rgba(15,30,50,.55);
  --app-shadow: 0 1px 0 rgba(0,0,0,.03), 0 24px 48px -32px rgba(15,30,50,.45);
  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F151C; --bg-2: #151D26; --ink: #EEF2F6; --ink-2: #C3CDD7; --ink-3: #97A3B0; --line: #2A3542;
  --link: #4FD1A1; --app-bg: #F4F2F0; color-scheme: dark;
  --frame: #33424F; --img-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 30px 60px -22px rgba(0,0,0,.95), 0 0 70px -24px rgba(79,209,161,.28);
  --app-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 70px -30px rgba(0,0,0,.95); } }
:root[data-theme="dark"] {
  --bg: #0F151C; --bg-2: #151D26; --ink: #EEF2F6; --ink-2: #C3CDD7; --ink-3: #97A3B0; --line: #2A3542;
  --link: #4FD1A1; --app-bg: #F4F2F0; color-scheme: dark;
  --frame: #33424F; --img-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 30px 60px -22px rgba(0,0,0,.95), 0 0 70px -24px rgba(79,209,161,.28);
  --app-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 70px -30px rgba(0,0,0,.95); }

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px 16px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.logo strong span { color: var(--green); }
.logo small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.1; }
.top nav { display: flex; gap: 4px 24px; font-size: 15px; flex-wrap: wrap; order: 3; flex-basis: 100%; }
.top .theme-btn { margin-left: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .top nav { display: none; } }

.btn { display: inline-block; font: 600 15px/1 var(--f-sans); padding: 13px 18px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #163a60; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-line:hover { border-color: var(--ink-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { background: #E7ECF1; color: #0F151C; } }
:root[data-theme="dark"] .btn-dark { background: #E7ECF1; color: #0F151C; }

/* light / dark switch */
.theme-btn { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--ink-3); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
@media (max-width: 720px) { .theme-btn { margin-left: auto; } }
@media (max-width: 480px) { .top .wrap { gap: 10px; } .top .btn { padding: 11px 13px; font-size: 14.5px; } .logo small { font-size: 10.5px; } }


section.s { padding-block: 72px; }
section.s + section.s { border-top: 1px solid var(--line); }
.s h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 700; max-width: 26ch; }
.s .sub { color: var(--ink-2); margin-top: 12px; max-width: 62ch; font-size: 17px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.contact { background: var(--navy); color: #E7EEF5; }
.contact .wrap { padding-block: 64px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.contact h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 700; color: #fff; }
.contact p { color: #AFC2D4; margin-top: 12px; max-width: 54ch; }
.contact .co { border-left: 1px solid rgba(255,255,255,.18); padding-left: 28px; }
.contact .co b { display: block; font-size: 18px; color: #fff; }
.contact .co a { color: #6FE3B6; }
.contact .co a:not(.btn) { display: inline-block; padding-block: 6px; } /* 32px+ tap target on phones */
.contact .co .btn { margin-top: 16px; background: #fff; color: var(--navy); }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } .contact .co { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; } }
.contact .wa-line { margin-top: 10px; font: 500 15px var(--f-mono); color: #fff; }
.contact .wa-line a { color: #6FE3B6; font-family: var(--f-sans); font-weight: 600; margin-left: 8px; }
.cap { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.cap figure, .ord-grid figure { margin: 0; }
.cap .ph-frame, .ord-grid .ph-frame { background: #13202E; border-radius: 30px; padding: 8px; box-shadow: 0 24px 40px -28px rgba(15,30,50,.55); max-width: 270px; margin: 0 auto; }
.ph-frame picture { display: block; }
.cap .ph-frame img, .ord-grid .ph-frame img { display: block; width: 100%; height: auto; aspect-ratio: 698 / 1568; object-fit: cover; border-radius: 23px; background: #fff; }
.cap figcaption, .ord-grid figcaption { margin: 16px auto 0; max-width: 270px; font-size: 14.5px; color: var(--ink-2); }
.cap figcaption b, .ord-grid figcaption b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
footer .sitelinks { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; }
footer .wrap { padding-block: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
footer a { color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: 22px; }
.crumbs a { color: var(--ink-2); }
.hero { padding-block: 28px 44px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; max-width: 22ch; }
.hero p { color: var(--ink-2); font-size: 18px; max-width: 60ch; margin-top: 16px; }
.hero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 64px; }
.body > * { min-width: 0; }
.body section h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 700; margin-bottom: 12px; }
.body section { max-width: 72ch; }
.body section.wide { max-width: none; }
.body p { margin: 0 0 12px; }
.body ul, .body ol { margin: 0 0 12px; padding-left: 1.25em; }
.body li { margin: 6px 0; }
.body ul.cols { columns: 2 280px; column-gap: 32px; }
.body ul.cols li { break-inside: avoid; }
.body ol.steps li { margin: 10px 0; }
.note { color: var(--ink-2); font-size: 14.5px; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0 12px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 13px; color: var(--ink-2); font-weight: 600; background: var(--bg-2); }
.tbl .num { text-align: right; font-family: var(--f-mono); }
.slip { font-family: var(--f-mono); font-size: 14px; background: var(--paper); color: #1F1722; border: 1px dashed #C9C2B6; border-radius: 6px; padding: 14px 16px; max-width: 340px; display: grid; gap: 4px; margin: 6px 0 14px; }
.related { border-top: 1px solid var(--line); padding-block: 40px; }
.related h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.related a:hover { border-color: var(--ink-3); }
.related a span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.sitelinks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
/* light / dark switch */
.theme-btn { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--ink-3); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
@media (max-width: 720px) { .theme-btn { margin-left: auto; } }
@media (max-width: 480px) { .top .wrap { gap: 10px; } .top .btn { padding: 11px 13px; font-size: 14.5px; } .logo small { font-size: 10.5px; } }
@media (max-width: 860px) {
  .cap { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; gap: 20px; }
  .cap figure { scroll-snap-align: center; }
}

/* phone bezels and image shadows follow the theme, so they still show on the dark background */
.cap .ph-frame, .ord-grid .ph-frame, .web-ph, .mini-phone { background: var(--frame); box-shadow: var(--img-shadow); }
.app { box-shadow: var(--app-shadow); }

/* the QR ordering screenshots (738 x 1344) are shorter than the captain app ones;
   without this they were stretched to the captain ratio and cut off on the left */
.ph-frame img[width="738"] { aspect-ratio: 738 / 1344; }
@media (max-width: 480px) { .tbl table { font-size: 14px; } .tbl th, .tbl td { padding: 9px 8px; } }
