/* Tool Shanty website design system.
 *
 * Tokens mirror the native app (app/lib/app/theme/tool_shanty_theme.dart and
 * app/DESIGN.md): the deep navy scaffold gradient, the cool-blue outline
 * language, the gold accent, the matte action palette, the six module
 * accents, flat 10-14px radii and Roboto Condensed throughout. */

@font-face {
  font-family: "Roboto Condensed";
  src: url("fonts/RobotoCondensed.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* ToolShantyPalette */
  --background: #061a37;
  --background-lift: #0a264b;
  --surface: #0d2342;
  --surface-soft: #13315a;
  --header: #0e3d74;
  --header-dark: #082a53;
  --rail: #081a34;
  --outline: #6a95c9;
  --text: #f4f7fc;
  --text-muted: #c6d4e9;
  --gold: #f3c044;
  --amber: #e68119;
  --green: #62d64d;
  --blue: #2aa8ff;
  --purple: #8a64ff;
  --rose: #ef546a;
  --matte-red: #8e2d21;
  --matte-red-border: #be3a2d;
  --matte-green: #2b7633;
  --matte-green-border: #55a847;
  --matte-gold: #b58a22;
  --matte-gold-border: #e0c34c;
  --matte-blue: #1e4ea4;
  --matte-blue-border: #356bdb;
  --ink-dark: #071a32;

  /* Module accents (lib/features/<module>/<module>_module.dart) */
  --tool-hub: #df332b;
  --material-hub: #339e42;
  --break-hub: #e8458f;
  --bulletin-board: #7f2fe6;
  --crew-calendar: #1e63e0;
  --tasks: #e68119;

  /* Surfaces (DESIGN.md "Layered Surface System") */
  --section-panel: rgba(4, 16, 29, 0.94);
  --list-panel: rgba(13, 35, 66, 0.36);
  --outline-34: rgba(106, 149, 201, 0.34);
  --outline-20: rgba(106, 149, 201, 0.2);

  /* ToolShantyRadii */
  --r-tile: 12px;
  --r-panel: 12px;
  --r-control: 10px;
  --r-dialog: 14px;
  --r-sheet: 18px;

  --font: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-display: "Bebas Neue", "Roboto Condensed", "Arial Narrow", sans-serif;

  --page-max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-height: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  /* The app's scaffold gradient: headerDark → backgroundLift → deep navy →
     near-black → black. */
  background:
    linear-gradient(
      180deg,
      var(--header-dark) 0%,
      var(--background-lift) 14%,
      #071d3a 34%,
      #030c19 68%,
      #000 100%
    )
    fixed;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ffd877;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--gold);
  color: var(--ink-dark);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

/* ------------------------------------------------------------------------
 * Navigation: the app's dark context rail, sticky.
 * --------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(8, 26, 52, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--outline-20);
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: 0.04em;
  line-height: 1;
  /* The gold/tan letterpress wordmark of the top shelf. */
  background: linear-gradient(180deg, #f6dc8f 0%, #d9a63c 55%, #9c6d1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

.brand:hover .brand__name {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6)) brightness(1.1);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav__links a {
  padding: 8px 12px;
  border-radius: var(--r-control);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--text);
  background: rgba(106, 149, 201, 0.12);
}

.site-nav__links a[aria-current="page"] {
  color: var(--gold);
}

.site-nav .btn {
  margin-left: 8px;
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--outline-34);
  border-radius: var(--r-control);
  background: rgba(13, 35, 66, 0.6);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

/* ------------------------------------------------------------------------
 * Drawer: the app's hamburger drawer (navy gradient, matte chevrons).
 * --------------------------------------------------------------------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  padding: 22px 20px 28px;
  background: linear-gradient(
    180deg,
    rgba(8, 42, 83, 0.98) 0%,
    rgba(10, 38, 75, 0.98) 22%,
    rgba(2, 8, 20, 0.98) 62%,
    #000 100%
  );
  border-right: 1px solid var(--outline-20);
  transform: translateX(-104%);
  transition: transform 0.32s var(--ease);
  overflow-y: auto;
}

.drawer[data-open="true"] {
  transform: translateX(0);
}

.drawer[data-open="true"] ~ .drawer-scrim,
.drawer-scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(53, 107, 219, 0.9);
  background: var(--matte-blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.drawer__label {
  margin: 18px 4px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.drawer nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(106, 149, 201, 0.16);
}

.drawer nav a[aria-current="page"] {
  color: var(--gold);
}

.drawer nav a .chev {
  margin-left: auto;
}

.drawer .btn {
  width: 100%;
  margin-top: 22px;
}

.drawer__foot {
  margin-top: auto;
  padding-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Matte chevron circle: dark chalky fill, restrained border, heavy white
   chevron (DESIGN.md "circular chevron affordances"). */
.chev {
  --chev: var(--blue);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--chev) 52%, #0b0f17);
  border: 1.5px solid color-mix(in srgb, var(--chev) 78%, #fff 6%);
  color: #fff;
  transition: transform 0.2s var(--ease);
}

.chev svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------------------
 * Buttons: gold primary (the app's Sign In / Create Account), matte action
 * palette for secondary actions.
 * --------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--gold);
  --btn-border: #ffd877;
  --btn-fg: var(--ink-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-control);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.15s var(--ease),
    filter 0.15s,
    box-shadow 0.2s;
}

.btn:hover {
  color: var(--btn-fg);
  filter: brightness(1.08);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.4),
    0 0 18px color-mix(in srgb, var(--btn-bg) 40%, transparent);
}

.btn:active {
  transform: scale(0.97);
}

.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--ghost {
  --btn-bg: rgba(13, 35, 66, 0.55);
  --btn-border: var(--outline-34);
  --btn-fg: var(--text);
  box-shadow: none;
}

.btn--ghost:hover {
  --btn-border: var(--outline);
}

.btn--green {
  --btn-bg: var(--matte-green);
  --btn-border: var(--matte-green-border);
  --btn-fg: #fff;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------------------
 * Hero: the top-shelf panorama, full bleed.
 * --------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero__art {
  position: relative;
  aspect-ratio: 2560 / 496;
  min-height: 220px;
  max-height: 380px;
  width: 100%;
}

.hero__art picture,
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0) 55%, var(--background) 100%),
    radial-gradient(ellipse at 50% 120%, rgba(243, 192, 68, 0.12), transparent 60%);
  pointer-events: none;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(20px, 3vw, 36px) 0 clamp(36px, 6vw, 72px);
}

.hero__body > :first-child {
  align-self: start;
  padding-top: clamp(0px, 4vw, 56px);
}

.hero__title {
  font-size: clamp(56px, 8.4vw, 104px);
  margin-bottom: 18px;
}

.hero__title .gold {
  background: linear-gradient(180deg, #ffe39b 0%, var(--gold) 50%, #c48a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 34rem;
  margin: 0 0 28px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 16px;
  border: 1px solid var(--outline-34);
  background: rgba(8, 26, 52, 0.7);
  font-size: 14px;
  color: var(--text-muted);
}

/* The rail's glass signal dot. */
.signal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #c9a7ff 20%, var(--purple) 55%, #3e1f8f 100%);
  box-shadow: 0 0 10px rgba(138, 100, 255, 0.8);
}

.signal-dot--green {
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #bdf5b0 20%, var(--green) 55%, #1f6b14 100%);
  box-shadow: 0 0 10px rgba(98, 214, 77, 0.75);
}

/* Phone stack showing real app screens. */
.phones {
  position: relative;
  height: clamp(420px, 46vw, 600px);
}

.phone {
  position: absolute;
  width: clamp(180px, 19vw, 262px);
  aspect-ratio: 1080 / 2260;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #2a3446, #0c1119 60%, #1d2533);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.07),
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 46px rgba(42, 168, 255, 0.12);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.phone--back {
  left: 4%;
  top: 9%;
  transform: rotate(-7deg);
  opacity: 0.92;
}

.phone--front {
  right: 6%;
  top: 0;
  transform: rotate(4deg);
  z-index: 2;
}

/* ------------------------------------------------------------------------
 * Sections and panels.
 * --------------------------------------------------------------------- */

.section {
  padding: clamp(44px, 6vw, 76px) 0;
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section__title {
  font-size: clamp(40px, 5.6vw, 66px);
  margin-bottom: 14px;
}

.section__lede {
  margin: 0;
  font-size: 19px;
  color: var(--text-muted);
}

.panel {
  background: var(--section-panel);
  border: 1.15px solid var(--outline-34);
  border-radius: var(--r-panel);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}

/* Module cards: the dashboard's heaviest surface — an accent-tinted gradient
   fading into black, a glowing accent border, 3D art, a matte chevron. */
.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  --accent: var(--tool-hub);
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 16px 20px 16px 14px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--accent) 82%, #fff 4%);
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 62%),
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 32%, #000) 0%, #070a10 58%, #000 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 22px color-mix(in srgb, var(--accent) 22%, transparent);
}

.module-card img {
  width: 116px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55));
}

.module-card h3 {
  margin: 0 0 6px;
  font-size: clamp(25px, 2.6vw, 31px);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.05;
}

.module-card h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.module-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-muted);
}

.module-card .chev {
  --chev: var(--accent);
  width: 40px;
  height: 40px;
}

.module-card .chev svg {
  width: 24px;
  height: 24px;
}

.module-card--tool-hub { --accent: var(--tool-hub); }
.module-card--material-hub { --accent: var(--material-hub); }
.module-card--break-hub { --accent: var(--break-hub); }
.module-card--bulletin-board { --accent: var(--bulletin-board); }
.module-card--crew-calendar { --accent: var(--crew-calendar); }
.module-card--tasks { --accent: var(--tasks); }

/* Split-flap counter (lib/app/widgets/flip_counter_digit.dart). */
.flip {
  display: inline-flex;
  gap: 6px;
}

.flip__digit {
  position: relative;
  width: 52px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(180deg, #2b2f36 0%, #16191e 49%, #0d0f12 51%, #1c1f25 100%);
  box-shadow:
    0 0 0 2px #050608,
    0 0 0 4px #3b414c,
    0 8px 16px rgba(0, 0, 0, 0.6);
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 1;
  color: #f5f2e8;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.flip__digit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flip__digit span {
  display: block;
  transform-origin: 50% 50%;
}

.flip__digit.is-flipping span {
  animation: flip 0.32s var(--ease);
}

@keyframes flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}

/* Field-ready feature tiles, with the lit selection treatment on hover. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  --accent: var(--blue);
  padding: 22px 22px 24px;
  border-radius: var(--r-tile);
  border: 1.15px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, var(--section-panel));
  transition:
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.feature:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--section-panel));
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 32%, transparent);
}

.feature__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--r-control);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, #fff);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.feature--gold { --accent: var(--gold); }
.feature--green { --accent: var(--green); }
.feature--rose { --accent: var(--rose); }
.feature--purple { --accent: var(--purple); }
.feature--amber { --accent: var(--amber); }

/* Screens strip. */
.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.screens figure {
  margin: 0;
}

.screens .phone {
  position: relative;
  width: 100%;
  transform: none;
}

.screens figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Portal band. */
.band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-dialog);
  border: 2px solid rgba(243, 192, 68, 0.8);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(243, 192, 68, 0.22), transparent 55%),
    linear-gradient(120deg, #3a2a08 0%, #0b0b0c 60%, #000 100%);
  box-shadow: 0 0 26px rgba(243, 192, 68, 0.18);
}

.band h2 {
  font-size: clamp(36px, 4.6vw, 54px);
  margin-bottom: 10px;
}

.band p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* ------------------------------------------------------------------------
 * Document pages: breadcrumb rail + section panels.
 * --------------------------------------------------------------------- */

.crumbs {
  background: rgba(8, 26, 49, 0.94);
  border-top: 1px solid rgba(42, 168, 255, 0.26);
  border-bottom: 1px solid rgba(42, 168, 255, 0.18);
}

.crumbs ol {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crumbs a {
  color: #8fb3d9;
  text-decoration: none;
}

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

.crumbs li + li::before {
  content: "›";
  margin-right: 10px;
  color: #5d7da2;
  font-size: 18px;
}

.crumbs [aria-current] {
  color: var(--blue);
}

.doc-hero {
  padding: clamp(36px, 6vw, 64px) 0 clamp(24px, 4vw, 36px);
}

.doc-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  margin-bottom: 12px;
}

.doc-hero p {
  margin: 0;
  max-width: 44rem;
  font-size: 19px;
  color: var(--text-muted);
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 192, 68, 0.45);
  background: rgba(243, 192, 68, 0.1);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.toc {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  padding: 16px 10px;
}

.toc h2 {
  margin: 0 8px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.toc a:hover {
  color: var(--text);
  background: rgba(106, 149, 201, 0.1);
}

.toc a.is-active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(243, 192, 68, 0.08);
}

.doc {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.doc section {
  padding: clamp(20px, 3vw, 30px);
}

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
}

.doc h2 .num {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 400;
  color: var(--gold);
}

.doc p,
.doc li {
  color: #dbe5f3;
}

.doc p {
  margin: 0 0 14px;
}

.doc p:last-child,
.doc ul:last-child,
.doc ol:last-child {
  margin-bottom: 0;
}

.doc strong {
  color: var(--text);
}

/* Ruled list panel (DESIGN.md "List panel"). */
.ruled {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  border-radius: var(--r-control);
  border: 1px solid var(--outline-34);
  background: var(--list-panel);
  overflow: hidden;
}

.ruled li {
  position: relative;
  padding: 12px 16px 12px 44px;
  border-top: 0.7px solid rgba(106, 149, 201, 0.28);
}

.ruled li:first-child {
  border-top: 0;
}

.ruled li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.ruled--no li::before {
  background: var(--rose);
  border-radius: 50%;
  transform: none;
}

/* Numbered steps (Delete account). */
.steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-control);
  border: 1px solid var(--outline-34);
  background: var(--list-panel);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2b2f36 0%, #16191e 49%, #0d0f12 51%, #1c1f25 100%);
  box-shadow:
    0 0 0 2px #050608,
    0 0 0 3px #3b414c;
  font-family: var(--font-display);
  font-size: 28px;
  color: #f5f2e8;
}

.callout {
  --accent: var(--amber);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-control);
  border: 1.4px solid color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.callout svg {
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, var(--accent) 70%, #fff);
  margin-top: 2px;
}

.callout p {
  margin: 0;
}

.callout--blue {
  --accent: var(--blue);
}

/* Contact cards (Support). */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--r-tile);
  border: 1.4px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    var(--section-panel);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}

a.contact-card:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateY(-2px);
}

.contact-card .label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 60%, #fff);
}

.contact-card .value {
  font-size: 21px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card .note {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-card--gold { --accent: var(--gold); }
.contact-card--green { --accent: var(--green); }
.contact-card--rose { --accent: var(--rose); }
.contact-card--purple { --accent: var(--purple); }

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

.link-tile {
  --accent: var(--blue);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-tile);
  border: 1.4px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--section-panel);
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-tile:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

.link-tile .chev {
  --chev: var(--accent);
  margin-left: auto;
}

.link-tile small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

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

.site-footer {
  margin-top: 0;
  padding: 44px 0 36px;
  border-top: 1px solid var(--outline-20);
  background: rgba(0, 0, 0, 0.6);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(106, 149, 201, 0.14);
  font-size: 14px;
  color: #93a7c3;
}

/* ------------------------------------------------------------------------
 * Motion: reveal on scroll, respecting reduced motion.
 * --------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flip__digit.is-flipping span {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------------
 * Responsive.
 * --------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero__body {
    grid-template-columns: 1fr;
  }

  .phones {
    height: clamp(380px, 92vw, 560px);
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .phone {
    width: clamp(170px, 40vw, 250px);
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .contact-grid,
  .link-tiles {
    grid-template-columns: 1fr;
  }

  .band {
    grid-template-columns: 1fr;
  }

  .band__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-nav__links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero__art {
    aspect-ratio: 760 / 520;
    max-height: none;
  }

  .hero__art img {
    object-position: center 18%;
  }

  .module-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    min-height: 124px;
    padding: 12px 14px 12px 10px;
  }

  .module-card img {
    width: 88px;
    height: 84px;
  }

  .module-card p {
    font-size: 15px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .flip__digit {
    width: 44px;
    height: 60px;
    font-size: 52px;
  }

  .btn {
    width: 100%;
  }

  .hero__actions .btn,
  .band__actions .btn {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 38px 1fr;
  }

  .steps li::before {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}

/* Specificity fixes: buttons and kickers inside nav/doc wrappers keep their
   own ink. */
.site-nav__links a.btn {
  padding: 0 16px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  letter-spacing: 0.08em;
}

.site-nav__links a.btn:hover {
  color: var(--btn-fg);
  background: var(--btn-bg);
}

.doc-hero p.kicker {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--gold);
}

.doc-hero[style*="text-align:center"] .kicker {
  text-align: center;
}
