/*
  fiercespeed.nz: one stylesheet for every page.
  Asphalt Aloha adaptation approved 5 October 2026. Semantic colour roles,
  4px spacing, bold titles and accessible controls. See DESIGN-SPEC section 8.
  The product illustration keeps Chronological's own Nocturne theme.
  No external requests: fonts are self-hosted (see landing/tools/subset_fonts.py).
*/

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400.dd452ce0f2.woff2") format("woff2");
  unicode-range: U+0000-017F, U+0304, U+0308, U+0329, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500.b254cd9b55.woff2") format("woff2");
  unicode-range: U+0000-017F, U+0304, U+0308, U+0329, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600.c666ac8902.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700.cd31fccc8b.woff2") format("woff2");
}

/* Arial resized to Inter's metrics, so the swap moves text as little as possible. */
@font-face {
  font-family: "Inter fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107.5%;
  ascent-override: 90.1%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  --fill-brand: #00aa13;
  --fill-action: #00820f;
  --fill-action-hover: #006c0c;
  --fill-canvas: #ffffff;
  --fill-subtle: #f5f8f7;
  --fill-positive: #e5f5e7;
  --text-primary: #1c1d1d;
  --text-body: #454b48;
  --text-subtle: #606863;
  --text-action: #006c0c;
  --text-on-action: #ffffff;
  --border-subtle: #dce3df;
  --border-control: #7e8781;
  --shadow-low: 0 4px 16px rgb(28 29 29 / 6%);
  --shadow-high: 0 16px 40px rgb(28 29 29 / 10%);

  /* Existing components consume the semantic roles through these aliases. */
  --bg: var(--fill-canvas);
  --surface: var(--fill-subtle);
  --surface-alt: #eef3ef;
  --text: var(--text-primary);
  --text-muted: var(--text-subtle);
  --text-secondary: var(--text-body);
  --border: var(--border-subtle);
  --accent: var(--fill-action);
  --accent-ink: var(--text-action);
  --accent-deep: var(--fill-positive);
  --accent-line: #b6d9bb;
  --link: var(--text-action);
  --divider: var(--border-subtle);
  --field-border: var(--border-control);
  --section-ground: #e5f5e7;
  --section-glow: #f3faf4;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Asphalt spacing: multiples of a 4px base. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --font: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --page-max: 76rem;
  --measure: 44rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 6rem);

  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--border) var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0;
}

strong,
b {
  font-weight: 600;
  color: var(--text);
}

/* Links keep an underline as well as an accessible action colour. */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: max(1px, 0.07em);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-ink);
}

::selection {
  background: var(--accent-deep);
  color: var(--text);
}

/* Keyboard focus is a 2px accent ring, never the browser default. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--gutter);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--bg);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  transform: translateY(calc(-100% - 1.5rem));
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The short accent rule above titles (auth mockups 3a and 3c). */
.rule {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--divider);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: var(--text);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-decoration: none;
}

a.brand:hover {
  color: var(--text);
}

/* The owner's son's circular emblem, adapted from his original T-shirt. */
.brand__mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--text-secondary);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

@media (max-width: 40rem) {
  .nav {
    gap: 0 var(--space-4);
    font-size: 0.9375rem;
  }
}

/* ---------- Buttons ---------- */

/* Asphalt primary action: filled, rounded, at least 48px high. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  max-width: 100%;
  padding: var(--space-3) var(--space-5);
  background: var(--fill-action);
  color: var(--text-on-action);
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--fill-action);
  border-radius: var(--radius-pill);
  overflow-wrap: break-word;
}

.button:hover {
  background: var(--fill-action-hover);
  color: var(--text-on-action);
  border-color: var(--fill-action-hover);
}

.button--secondary {
  background: var(--fill-canvas);
  color: var(--text-action);
}

.button--secondary:hover {
  background: var(--fill-positive);
  color: var(--text-action);
}

.button svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

button.button {
  cursor: pointer;
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}

/* minmax(0, 1fr): the one track can't grow past the page to fit a long word. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero__text {
  max-width: 38rem;
  container-type: inline-size;
}

.hero__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

/*
  Scales with the viewport, but never past 14.5% of the text column (cqi), so
  "Chronological" (about 6.25em wide) stays on one line in the narrow
  two-column range and with larger default text. The first declaration is the
  fallback for browsers without container units. overflow-wrap is the last
  resort at extreme text sizes.
*/
.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  font-size: clamp(1.75rem, min(1.9rem + 3.6vw, 14.5cqi), 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.hero__tagline {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero__lead {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.65;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  line-height: 1.4;
}

.status strong {
  font-size: 1rem;
}

.status__dot {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.hero__note {
  margin-top: var(--space-5);
  color: var(--text-muted);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero__preview {
  margin: 0;
}

.hero__caption {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
}

/* Gradient ground, as the 3c imagery column: sectionGround into bg. */
.panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 20% 0%, var(--section-glow), transparent 70%),
    linear-gradient(165deg, var(--section-ground) 0%, var(--bg) 85%);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
}

.hero__preview .panel {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

@media (min-width: 52rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  }
}

/* ---------- Product preview: mockup 1a in HTML and CSS ---------- */

/*
  Everything inside .phone is sized in em, with 1em = 10 logical points of the
  402 pt wide mockup, so the whole screen scales from one width.
*/
.phone {
  --bg: #161826;
  --surface: #232532;
  --surface-alt: #292b31;
  --text: #e9e9ed;
  --text-secondary: #d1d2db;
  --text-muted: #9397ab;
  --border: #3f424d;
  --divider: #2c2e3b;
  --accent: #9184d9;
  --accent-ink: #d2cefd;
  --accent-deep: #423a6a;
  --accent-line: #5e5491;
  --section-ground: #262a60;
  --section-glow: #353b80;
  --phone-w: clamp(13rem, 72vw, 21.25rem);
  font-size: calc(var(--phone-w) / 40.2);
  width: calc(var(--phone-w) + 1.6em + 2px);
  padding: 0.8em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6.2em;
  line-height: 1.25;
  user-select: none;
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 64em;
  overflow: hidden;
  background: var(--bg);
  border-radius: 5.4em;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.4em;
  padding: 0.6em 2.8em 0 3.6em;
}

.phone__time {
  font-size: 1.6em;
  font-weight: 500;
  color: var(--text);
}

.phone__status svg {
  width: 6.4em;
  height: 1.3em;
  color: var(--text);
}

.phone__header {
  padding: 1.6em 2.1em 1.2em;
}

.phone__title {
  display: block;
  font-size: 2.94em;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.phone__summary {
  display: block;
  margin-top: 0.45em;
  font-size: 1.26em;
  color: var(--text-muted);
}

.phone__list {
  display: grid;
  gap: 0.56em;
  margin: 0;
  padding: 0 1.1em;
  list-style: none;
}

.crow {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.25em;
  padding: 1.1em;
  border: 1px solid transparent;
  border-radius: 1.4em;
}

.crow--unread {
  background: var(--surface);
  border-color: var(--border);
}

.crow__cover {
  width: 5.2em;
  height: 5.2em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1em;
}

.crow__cover--violet {
  background: linear-gradient(135deg, var(--accent-deep), var(--section-ground));
  border-color: var(--accent-line);
}

.crow__cover--grey {
  background: linear-gradient(135deg, var(--border), var(--surface-alt));
  border-color: #595d6c; /* sampled in mockup 1a: textMuted at about 57% */
}

.crow__text {
  min-width: 0;
}

.crow__top {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  min-width: 0;
}

.crow__name {
  overflow: hidden;
  font-size: 1.54em;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.crow__time {
  flex: none;
  font-size: 0.98em;
  color: var(--text-muted);
}

.crow__preview {
  display: block;
  overflow: hidden;
  margin-top: 0.25em;
  font-size: 1.26em;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.crow__pill {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.crow__pill span {
  font-size: 1.05em;
  font-weight: 500;
  line-height: 1;
  color: var(--bg);
}

.phone__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  padding: 1.2em 1.7em 3.6em;
  border-top: 1px solid var(--divider);
}

.phone__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
  color: var(--text-muted);
}

.phone__tab--selected {
  color: var(--accent);
}

.phone__tab svg {
  width: 2.1em;
  height: 2.1em;
}

.phone__tab span {
  font-size: 1em;
}

.phone__home {
  position: absolute;
  bottom: 0.9em;
  left: 50%;
  width: 13.4em;
  height: 0.5em;
  background: var(--text);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
}

/* ---------- Home: sections ---------- */

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--divider);
}

.section__title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.points {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd number of points: the last one takes the whole row. */
  .point:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.point {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.point__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-4);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
}

.point__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.point p {
  margin-top: var(--space-2);
  color: var(--text-secondary);
}

.circle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .circle-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding-block: var(--space-4);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider);
}

.features li:first-child {
  padding-top: 0;
}

.features li:last-child {
  border-bottom: 0;
}

/* Placeholder gallery tiles, as the 3c imagery column and 3d grid.
   Centred when the grid stacks, so it doesn't leave a strip on one side. */
.gallery-art {
  --bg: #161826;
  --surface: #232532;
  --surface-alt: #292b31;
  --text: #e9e9ed;
  --text-secondary: #d1d2db;
  --text-muted: #9397ab;
  --border: #3f424d;
  --divider: #2c2e3b;
  --accent: #9184d9;
  --accent-ink: #d2cefd;
  --accent-deep: #423a6a;
  --accent-line: #5e5491;
  --section-ground: #262a60;
  --section-glow: #353b80;
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

@media (min-width: 52rem) {
  .gallery-art {
    justify-self: stretch;
    max-width: none;
  }
}

.gallery-art__head {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.chip {
  padding: 0.2rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.chip--selected {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, var(--border), var(--surface-alt));
}

.tile--violet {
  background: linear-gradient(140deg, var(--section-glow), var(--section-ground));
}

.tile--plum {
  background: linear-gradient(140deg, var(--accent-deep), var(--surface));
}

.tile--deep {
  background: linear-gradient(140deg, var(--accent-line), var(--section-ground) 70%);
}

.tile__duration {
  position: absolute;
  right: 0.45rem;
  bottom: 0.3rem;
  color: var(--text);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

@media (min-width: 52rem) {
  .duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card h2 {
  margin-bottom: var(--space-4);
}

.card p {
  color: var(--text-secondary);
}

.card p + p {
  margin-top: var(--space-3);
}

.link-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

.link-list a {
  display: inline-block;
  padding-block: var(--space-1);
}

/* ---------- Document pages (privacy, delete account, 404) ---------- */

.doc {
  padding-block: clamp(2.5rem, 7vw, 5rem) var(--section-pad);
}

.doc__layout > * {
  max-width: var(--measure);
}

.doc__updated {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: 1rem;
}

.doc__intro {
  margin-top: var(--space-6);
}

.doc p,
.doc li {
  color: var(--text-secondary);
}

/* Beats ".doc p" above, which would otherwise make these as bright as body text. */
.doc .doc__updated,
.doc .toc__title {
  color: var(--text-muted);
}

.doc__intro p + p,
.doc section p + p,
.doc section p + ul,
.doc section ul + p,
.doc section p + ol,
.doc section ol + p,
.doc section ul + ul {
  margin-top: var(--space-4);
}

.doc__intro p:first-child {
  color: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.doc section {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  padding-top: clamp(2.25rem, 5vw, 3rem);
  border-top: 1px solid var(--divider);
}

.doc section h2 {
  margin-bottom: var(--space-5);
}

.doc h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.doc h2 + h3 {
  margin-top: 0;
}

.doc h2,
.doc h3 {
  scroll-margin-top: var(--space-5);
}

.doc ul,
.doc ol {
  padding-left: 1.35rem;
}

.doc li + li {
  margin-top: var(--space-3);
}

.doc li::marker {
  color: var(--text-muted);
}

.doc ol > li::marker {
  font-weight: 500;
}

.doc ol > li {
  padding-left: var(--space-2);
}

/* "Why:" and "Who can see it:" lines in the privacy policy. */
.doc .aside {
  padding-left: var(--space-4);
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-line);
}

.aside__label {
  color: var(--text);
  font-weight: 500;
}

.callout {
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.doc section .callout {
  margin-block: var(--space-5);
}

/* "On this page": under the intro, and beside the text on wide screens. */
.toc {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.toc__title {
  margin-bottom: var(--space-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.doc .toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 14rem;
  column-gap: var(--space-6);
}

.doc .toc li {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

.toc a {
  display: block;
  padding-block: 0.3rem;
  color: var(--text-secondary);
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
}

@media (min-width: 75rem) {
  .doc__layout--toc {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) 15rem;
    justify-content: space-between;
    column-gap: var(--space-8);
  }

  .doc__layout--toc > * {
    grid-column: 1;
  }

  .doc__layout--toc > .toc {
    position: sticky;
    top: var(--space-6);
    grid-column: 2;
    grid-row: 1 / span 40;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    margin-top: 0;
    /* Right and bottom padding leave room for the 5px focus ring (2px outline,
       3px offset) inside this scroll box, so it isn't clipped. */
    padding: 0 0.375rem 0.375rem var(--space-5);
    background: none;
    border: 0;
    border-left: 1px solid var(--divider);
    border-radius: 0;
  }

  .doc .doc__layout--toc > .toc ol {
    columns: 1;
  }
}

.page-links {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.doc .page-links {
  padding: 0;
  list-style: none;
}

.doc .page-links li + li {
  margin-top: 0;
}

.page-links a {
  display: inline-block;
  padding-block: var(--space-1);
}

/* 404 and the contact form's result pages: short, vertically centred. */
.not-found,
.result {
  display: flex;
  align-items: center;
}

.doc__lead {
  margin-top: var(--space-4);
}

.doc .doc__lead {
  color: var(--text);
  font-size: 1.1875rem;
}

.not-found .page-links + p {
  margin-top: var(--space-6);
}

.doc__intro p + ul,
.doc__intro ul + p {
  margin-top: var(--space-4);
}

/* ---------- Forms (contact, delete account) ---------- */

/* No script: the browser checks required, type="email" and maxlength itself. */
.form {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.field {
  display: grid;
  gap: var(--space-2);
}

/* The site's caps label style (hero__eyebrow, toc__title). */
.field__label {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.field__optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.doc .field__hint,
.field__hint {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.input {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  caret-color: var(--accent);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-md);
}

/* Hover and focus retain sufficient contrast on the light surface. */
.input:hover {
  border-color: var(--accent);
}

/* The 2px accent ring from :focus-visible, keeping the field's own radius. */
.input:focus-visible {
  border-color: var(--accent);
  border-radius: var(--radius-md);
  outline-offset: 2px;
}

/* Keep native autofill readable on the chosen surface. */
.input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100rem var(--surface) inset;
}

textarea.input {
  min-height: 10rem;
  resize: vertical;
}

/* A drawn chevron: the CSP allows no data: images. */
.select {
  position: relative;
}

.select .input {
  padding-right: 2.75rem;
  appearance: none;
}

.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.125rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select option {
  background: var(--surface);
  color: var(--text);
}

.form .button {
  justify-self: start;
  min-width: 9rem;
}

/*
  Honeypot: off-screen rather than display:none, so form-filling bots still see
  it. aria-hidden and tabindex="-1" keep it away from people and assistive tech.
*/
.trap {
  position: absolute;
  top: auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--divider);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: var(--space-1);
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }

  a,
  .button {
    transition: color 120ms ease, border-color 120ms ease, text-decoration-color 120ms ease;
  }
}

@media (forced-colors: active) {
  .rule,
  .status__dot {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --text-secondary: #000;
    --text-muted: #444;
    --link: #000;
    --accent: #444;
    --border: #999;
    --divider: #ccc;
    --accent-line: #999;
    --field-border: #999;
    color-scheme: light;
  }

  .skip-link,
  .site-header nav,
  .hero__preview,
  .panel,
  .toc {
    display: none;
  }

  .doc a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.875em;
  }
}

/* ---------- App screenshots ---------- */

.app-preview {
  margin-block: var(--space-7) 0;
}

.doc__layout > .app-gallery {
  max-width: none;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.screenshot {
  min-width: 0;
  margin: 0;
}

.screenshot a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.screenshot a:hover {
  border-color: var(--accent);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot figcaption {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.screenshot figcaption strong {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 1rem;
}

.screenshot-grid--phones {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: start;
}

.screenshot-grid--phones .screenshot {
  width: 100%;
  max-width: 22rem;
  justify-self: center;
}

@media (min-width: 52rem) {
  .screenshot-grid--desktop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid--desktop .screenshot:first-child {
    grid-column: 1 / -1;
  }
}

/* Download fingerprints are public, optional verification information. */
.download-verification {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.download-verification summary {
  color: var(--link);
  cursor: pointer;
}

.download-verification[open] summary {
  margin-bottom: var(--space-4);
}

.download-hash {
  display: block;
  margin-top: var(--space-2);
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

/* ---------- The story behind FierceSpeed ---------- */

.app-directory {
  padding-block: clamp(2.5rem, 7vw, 5rem) var(--section-pad);
}

.app-directory__intro {
  max-width: 46rem;
  margin-bottom: var(--space-7);
}

.app-directory__intro .hero__eyebrow {
  margin-bottom: var(--space-4);
}

.app-directory__intro > p:last-child {
  color: var(--text-secondary);
  margin-top: var(--space-5);
}

.app-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.app-card__eyebrow {
  margin: 0 0 var(--space-5);
  color: var(--accent-ink);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: none;
}

.app-card h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.875rem);
}

.app-card__tagline {
  margin-top: var(--space-3);
  color: var(--text);
  font-weight: 500;
}

.app-card__description {
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  color: var(--text-secondary);
  font-size: 1rem;
}

.app-card__platforms {
  margin-top: auto;
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.app-card > .button {
  width: 100%;
}

.product-phone {
  width: min(100%, 21rem);
  justify-self: center;
}

@media (min-width: 52rem) {
  .app-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-7);
}

.about-story {
  max-width: var(--measure);
}

.about-story p + p {
  margin-top: var(--space-5);
}

.about-story p {
  color: var(--text-secondary);
}

.about-story .hero__eyebrow {
  color: var(--accent-ink);
  margin-bottom: var(--space-4);
}

.about-story .about-story__lead {
  margin-top: var(--space-5);
  color: var(--text);
  font-size: 1.25rem;
}

.about-photo {
  width: 100%;
  max-width: 23rem;
  margin: 0;
  justify-self: center;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.about-photo figcaption {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (min-width: 52rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-8);
  }
}

/* ---------- Asphalt Aloha website components ---------- */
.site-header { background: var(--fill-canvas); box-shadow: var(--shadow-low); }
.site-header__inner { padding-block: var(--space-5); }
.brand { gap: var(--space-3); font-weight: 700; font-size: 1.25rem; }
.brand__mark { background: #ffffff; border-radius: var(--radius-pill); }
/* White artwork on black uses screen blending to reveal the dark footer beneath. */
.site-footer .brand__mark { background: transparent; mix-blend-mode: screen; }
.nav { align-items: center; gap: var(--space-2) var(--space-5); }
.nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.nav a:hover { color: var(--text-action); }
.nav a[href="/contact"] { padding-inline: var(--space-5); border: 1px solid var(--fill-action); border-radius: var(--radius-pill); color: var(--text-action); }
.rule { width: 3rem; height: 0.25rem; border-radius: var(--radius-pill); }
.hero__eyebrow { color: var(--text-action); font-weight: 600; }
.hero__preview .panel { background: var(--fill-positive); border: 0; border-radius: 2rem; }
.status { background: var(--fill-positive); border: 0; border-radius: var(--radius-md); }
.point, .card, .toc { background: var(--fill-canvas); box-shadow: var(--shadow-low); }
.point__icon { border: 0; background: var(--fill-positive); border-radius: var(--radius-pill); }
.section { border-top: 0; }
.section:nth-of-type(even) { background: var(--fill-subtle); }
.site-footer { --text: #ffffff; --text-secondary: #d6e2db; --accent-ink: #bcecc4; background: #17251c; border: 0; }
.site-footer__inner { align-items: flex-start; padding-block: var(--space-7); }
.site-footer nav { max-width: 49rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 0.875rem; }
.field__label { color: var(--text); font-weight: 600; }
.input { background: var(--fill-canvas); border-radius: var(--radius-md); }
.app-directory { background: var(--fill-subtle); padding-block: clamp(3rem, 7vw, 6rem); }
.app-directory__intro { max-width: 56rem; margin-inline: auto; margin-bottom: var(--space-8); text-align: center; }
.app-directory__intro .rule { margin-inline: auto; }
.app-directory__intro h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.12; letter-spacing: -0.045em; }
.app-directory__intro > p:last-child { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; }
.app-cards { gap: var(--space-5); }
.app-card { background: var(--fill-canvas); border: 0; box-shadow: var(--shadow-low); padding: var(--space-6); }
.app-card__art { display: grid; place-items: center; width: 5rem; height: 5rem; margin-bottom: var(--space-6); border-radius: var(--radius-lg); color: #007b14; background: #e5f5e7; }
.app-card__art svg { width: 3rem; height: 3rem; }
.app-card:nth-child(2) .app-card__art { color: #7732a3; background: #f1e6fa; }
.app-card:nth-child(3) .app-card__art { color: #a72063; background: #fce5ef; }
.app-card__eyebrow { margin-bottom: var(--space-3); color: var(--text-muted); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; }
.app-card h2 { font-size: clamp(1.5rem, 2.3vw, 1.875rem); letter-spacing: -0.025em; }
.app-card__tagline { font-size: 1.125rem; line-height: 1.5; }
.app-card__description { line-height: 1.75; }
.app-card__platforms { font-size: 0.875rem; }
.about-story .section__title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.17; }
.about-photo { max-width: 20rem; }
.about-photo img { box-shadow: var(--shadow-high); border: 0; }
.doc { padding-top: var(--space-8); }
.doc h1 { max-width: 20ch; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -0.03em; }
.doc section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.screenshot a { border: 1px solid var(--border); box-shadow: var(--shadow-low); }
.download-verification { background: var(--fill-subtle); }
.download-verification summary { min-height: 44px; align-content: center; font-weight: 600; }
@media (min-width: 40rem) and (max-width: 63.999rem) {
  .app-cards { grid-template-columns: minmax(0, 1fr); }
  .app-card { display: grid; grid-template-columns: 5rem minmax(0, 1fr); column-gap: var(--space-6); }
  .app-card > * { grid-column: 2; }
  .app-card > .app-card__art { grid-column: 1; grid-row: 1 / 7; }
  .app-card > .button { width: fit-content; }
}
@media (max-width: 40rem) {
  .site-header__inner { position: relative; gap: var(--space-4); padding-block: var(--space-4); }
  .site-header nav { width: 100%; }
  .nav { gap: var(--space-1) var(--space-4); }
  .nav a[href="/contact"] { padding-inline: var(--space-3); }
  .nav li:has(> a[href="/contact"]) { position: absolute; top: var(--space-4); right: var(--gutter); }
  .app-directory__intro { text-align: left; margin-bottom: var(--space-7); }
  .app-directory__intro .rule { margin-inline: 0; }
  .app-card { padding: var(--space-5); }
  .hero__actions .button { width: 100%; }
  .about-photo { max-width: 18rem; }
}
@media print {
  .site-header, .app-directory, .app-card, .site-footer { background: white; box-shadow: none; }
  .site-footer { --text: #000; --text-secondary: #000; }
  .button { color: #000; background: white; border-color: #000; }
  .about-photo img, .screenshot a { box-shadow: none; }
}

/* Up Ya Get: an equal fourth app and its original, reusable product mark. */
.app-card__art--up img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.product-mark { display: block; margin-bottom: var(--space-5); border-radius: var(--radius-lg); }
.product-lead { font-size: 1.5rem; line-height: 1.4; color: var(--text-secondary); }
@media (min-width: 64rem) { .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Subs uses its own app mark within the shared directory card. */
.app-card__art--subs img { display: block; width: 100%; height: 100%; border-radius: inherit; }

/* Pipe Up uses its own app mark within the shared directory card. */
.app-card__art--pipe-up img { display: block; width: 100%; height: 100%; border-radius: inherit; }

/* Pipe Up's platforms: a card each, two across when there's room. ".doc" beats the page's list and heading spacing. */
.doc .platforms { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: 0; list-style: none; }
.doc .platform { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-5); background: var(--fill-canvas); border-radius: var(--radius-lg); box-shadow: var(--shadow-low); }
.doc .platform h3 { margin: 0; }
.doc .platform .button, .doc .platform__state { margin-top: auto; }
.doc .platform__state { color: var(--text-muted); font-weight: 600; }
@media (min-width: 40rem) { .doc .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }