/* Chassis website. The brand is PRD 13 "Brand": bone and graphite grounds, ember as the one accent,
   teal for done and rest, the system font with its expanded width for the app's own short words. */

:root {
  --bone: #F4F1EA;
  --graphite: #111214;
  --ember: #E2542B;
  --teal: #1C857A;

  --ground: var(--bone);
  --ink: var(--graphite);
  --ink-2: #55524C;
  --card: #FFFFFF;
  --line: rgba(17, 18, 20, 0.12);
  --tint: #ECE8DF;
  --accent: var(--ember);
  --on-accent: #FFFFFF;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: var(--graphite);
    --ink: var(--bone);
    --ink-2: #A9A59C;
    --card: #1C1D20;
    --line: rgba(244, 241, 234, 0.14);
    --tint: #18191C;
    --accent: #F9724A;
    --on-accent: var(--graphite);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* The app's own short words: expanded and heavy. */
h1, h2, h3, .brand-name, .button, .pill, .eyebrow {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 1.05rem; letter-spacing: 0.02em; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-header nav a, .site-footer nav a { text-decoration: none; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.site-header nav a:hover, .site-footer nav a:hover, .site-header nav a[aria-current] { color: var(--ink); background: var(--line); }
.wide-only { display: none; }
@media (min-width: 860px) { .wide-only { display: inline-block; } }

/* Hero */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 56px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.eyebrow { color: var(--accent); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.lead { font-size: clamp(1.12rem, 2.1vw, 1.35rem); color: var(--ink-2); margin-top: 20px; max-width: 34em; }
.fine { font-size: 0.9rem; color: var(--ink-2); margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.cta-row.center { justify-content: center; }

.button, .pill { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; font-size: 1.05rem; text-decoration: none; }
.button { background: var(--accent); color: var(--on-accent); }
.button:hover { color: var(--on-accent); filter: brightness(1.06); }
.pill { border: 2px solid var(--ink); color: var(--ink); }
.text-link { font-weight: 600; }

.hero-shot { display: flex; justify-content: center; }
.hero-shot .phone { width: min(330px, 78%); }

/* A phone around a real screenshot. */
.phone { background: #0B0B0C; padding: 2.4%; border-radius: 14.5% / 6.7%; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.phone img { width: 100%; border-radius: 12.4% / 5.6%; }

/* The still life under the hero. */
.band { margin: 0; border-radius: var(--radius); overflow: hidden; }
.band img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 88%; }
@media (max-width: 640px) { .band img { aspect-ratio: 4 / 3; } }

/* Sections */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.first { padding-top: clamp(36px, 6vw, 72px); }
.section.tint { background: var(--tint); }
.section.dark { background: var(--graphite); color: var(--bone); --ink: var(--bone); --ink-2: #A9A59C; --card: #1C1D20; --line: rgba(244, 241, 234, 0.14); --accent: #F9724A; }
.section-lead { color: var(--ink-2); font-size: 1.15rem; margin-top: 16px; max-width: 38em; }

.cards { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 10px; }
.card p, .card li { color: var(--ink-2); }
.card.accent { outline: 2px solid var(--accent); outline-offset: -2px; }
.cards + p { margin-top: 24px; }

.tiers { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tiers + .fine { max-width: 62em; margin-top: 22px; }

.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; font-size: 1.12rem; }
.points li { position: relative; padding-left: 30px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 4px; border-radius: 2px; background: var(--accent); }
.points.tight { margin-top: 4px; gap: 10px; font-size: 1rem; }

.split { display: grid; gap: 40px; align-items: center; }
.split.top { align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
}
.shot { display: flex; justify-content: center; }
.shot .phone { width: min(300px, 74%); }

.note { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--teal); background: var(--card); border-radius: 0 14px 14px 0; color: var(--ink-2); }

/* A photograph beside the real screen it goes with, under a caption that is true of that screen. */
.duos { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 860px) { .duos { grid-template-columns: 1fr 1fr; gap: 40px; } }
.duo { margin: 48px 0 0; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
.duos .duo { margin-top: 0; }
.duo-photo { grid-column: 1 / 10; grid-row: 1; border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.duo-phone { grid-column: 7 / 13; grid-row: 1; z-index: 1; margin-bottom: -7%; }
.duo figcaption { grid-column: 1 / -1; margin-top: calc(7% + 18px); color: var(--ink-2); font-size: 1.05rem; max-width: 34em; }
#programme .duo { max-width: 620px; margin-inline: auto; }

@media (min-width: 860px) { .points.two { grid-template-columns: 1fr 1fr; gap: 20px 56px; } }
.center p { margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-2); font-size: 0.95rem; }
.site-footer p { margin-top: 18px; max-width: 70em; }
.foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.small { font-size: 0.82rem; }

/* Long reading: support and the privacy policy keep the standard width of the font. */
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 44px 0 14px; }
.prose p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 14px 0 0; display: grid; gap: 10px; }
.prose a { text-decoration: underline; }
.prose code { font-size: 0.92em; }
.notice { padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, #D9A400 20%, var(--card)); border: 1px solid color-mix(in srgb, #D9A400 55%, transparent); }

details { background: var(--card); border-radius: 16px; margin-top: 10px; }
summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 650; list-style: none; position: relative; min-height: 56px; display: flex; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details > p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }
