/* BetterStakeSol website, in the app's "Cyber" design system (packages/mobile/CLAUDE.md, "Design system (Cyber)";
   colours from packages/mobile/components/cyber/cyber-colors.ts). Plain CSS, dark only, mobile first. */

:root {
  color-scheme: dark;

  --bg: #0a0c11;
  --bg-top: #141a2a;
  --surface: #11141d;
  --surface-2: #161a26;
  --surface-deep: #0e1119;
  --edge: #232a3b; /* outlines only, never text */
  --divider: #1e2433;
  --dash: #2c3447;
  --fg: #e9edf5;
  --fg-dim: #b9c2d3;
  --muted: #8a93a6; /* at least 4.5:1 on Bg, Surface and Surface2 */
  --cyan: #05d9e8;
  --magenta: #ff2a6d;
  --magenta-text: #ff5c8a;
  --green: #22f2a0;
  --ink: #05060a; /* text on Cyan and Green */

  --font-display: "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --panel-gradient: linear-gradient(160deg, var(--surface-2) 0%, var(--surface-deep) 100%);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  /* The screens' glow from the top centre (CyberScreen). */
  background-image: radial-gradient(120% 60% at 50% 0%, var(--bg-top) 0%, var(--bg) 55%);
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scanlines over everything (CyberScanlines): a 1 px white line at 3.5 % every 3 px. Never takes a click. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* On a phone a 1 px CSS line is 2 to 3 device pixels: the texture turns into visible banding, so it is off there. */
@media (max-width: 767px) {
  body::after {
    display: none;
  }
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

a:hover {
  color: #5ce8f2;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: rgba(5, 217, 232, 0.3);
  color: var(--fg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1001;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  font: 700 14px/1.2 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type presets (cyber-text.tsx) ---------- */

/* `// SECTION` HUD label: mono, uppercase, letter spacing 1.6, Muted. */
.hud {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.hud .slashes {
  color: var(--muted);
}

.hud--cyan {
  color: var(--cyan);
}

.hud--green {
  color: var(--green);
}

.hud--magenta {
  color: var(--magenta-text);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mono {
  font-family: var(--font-mono);
}

/* A terminal line: `> what happens`, the `>` in Cyan and the words Muted (CyberTxLine). */
.term {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.term .prompt {
  color: var(--cyan);
  margin-right: 0.6ch;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 6.4vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.section-lead {
  max-width: 29em;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- The chamfer (ChamferSkin): top-right and bottom-left cut at 45 degrees ---------- */

/* The outline is ::before (the shape in the outline colour), the fill is ::after (the same shape 1 px in, its cut
   moved by sqrt 2 - 2 px so the outline along the cut is 1 px too). The element itself is not clipped, so focus
   outlines of its children stay visible. */
.cf {
  --cut: 14px;
  --cf-edge: var(--edge);
  --cf-fill: var(--surface);
  position: relative;
  isolation: isolate;
}

.cf::before,
.cf::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.cf::before {
  inset: 0;
  background: var(--cf-edge);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.cf::after {
  inset: 1px;
  background: var(--cf-fill);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut) + 0.59px) 0,
    100% calc(var(--cut) - 0.59px),
    100% 100%,
    calc(var(--cut) - 0.59px) 100%,
    0 calc(100% - var(--cut) + 0.59px)
  );
}

.cf--panel {
  --cut: 20px;
  --cf-fill: var(--panel-gradient);
}

.cf--deep {
  --cf-fill: var(--surface-deep);
}

.cf--cyan {
  --cf-edge: var(--cyan);
}

/* The accent triangle in the top-right cut (cornerMark: 0.9 of the cut). */
.corner-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--cut) * 0.9);
  height: calc(var(--cut) * 0.9);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}

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

/* CyberPrimaryButton: Cyan, cut 16, a Magenta copy 4 px right and down inside its own box, uppercase Chakra in Ink. */
.btn-primary {
  --cut: 16px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  padding: 0 4px 4px 0;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 4px 0 0 4px;
  z-index: -1;
  background: var(--magenta);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.btn-primary__face {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  background: var(--cyan);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}

.btn-primary__face svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn-primary:hover {
  color: var(--ink);
}

.btn-primary:hover .btn-primary__face {
  background-color: #3ae4f0;
}

.btn-primary:active .btn-primary__face {
  transform: translate(2px, 2px);
}

.btn-primary:focus-visible {
  outline-offset: 4px;
}

.btn-primary--block {
  display: flex;
  width: 100%;
}

/* CyberOutlineButton (small): square, 1 px Cyan outline, Chakra 13 / 600 uppercase. */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease-out;
}

.btn-outline svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.btn-outline:hover {
  color: var(--fg);
  background-color: rgba(5, 217, 232, 0.12);
}

/* CyberBracketAction: `[ label ]`, mono, Muted, lowercase by style, 44 px tap height. */
.bracket {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  text-transform: lowercase;
  text-decoration: none;
  white-space: nowrap;
}

.bracket::before {
  content: "[\00a0";
}

.bracket::after {
  content: "\00a0]";
}

.bracket:hover {
  color: var(--cyan);
}

.bracket--keep-case {
  text-transform: none;
}

/* ---------- Tags (CyberTag) ---------- */

.tag {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tag--cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}

.tag--green {
  border-color: var(--green);
  color: var(--green);
}

.tag--magenta {
  border-color: var(--magenta);
  color: var(--magenta-text);
}

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

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--divider);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding-top: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
}

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

.brand img {
  width: 30px;
  height: auto;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  order: 3;
  flex: 1 0 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cyan);
}

/* Under 420 px the header CTA is a 44 x 44 icon button (CyberIconButton); its label stays for screen readers. */
@media (max-width: 419.98px) {
  .header-cta {
    width: 44px;
    padding: 0;
  }

  .header-cta svg {
    width: 18px;
    height: 18px;
  }

  .header-cta__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 420px) and (max-width: 539.98px) {
  .header-cta .long {
    display: none;
  }
}

@media (min-width: 900px) {
  .header-bar {
    flex-wrap: nowrap;
    padding-block: 10px;
  }

  .site-nav {
    order: 0;
    flex: 0 1 auto;
    margin-left: auto;
    margin-right: 8px;
  }

  .site-nav ul {
    column-gap: 26px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.hero__logo {
  width: 88px;
  height: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 8.2vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: clamp(14px, 3.9vw, 18px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.hero__lead {
  max-width: 29em;
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  width: 100%;
  margin-top: 6px;
}

.hero__hud {
  max-width: 100%;
}

/* The three readouts under the CTA (the decoding figures). */
.readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.readout__cell {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 10px 14px 0;
}

.readout__cell + .readout__cell {
  padding-left: 12px;
  border-left: 1px solid var(--divider);
}

.readout__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.readout__value .unit {
  margin-left: 2px;
  font-size: 0.6em;
  color: var(--muted);
}

.readout__cell:first-child .readout__value {
  color: var(--green);
}

.readout__label {
  font-size: 10px;
}

.readout-note {
  font-size: 12px;
}

/* The phone frame. */
.phone {
  position: relative;
  justify-self: center;
  width: min(300px, 82vw);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 8% -30% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 217, 232, 0.16), rgba(5, 217, 232, 0) 100%);
  pointer-events: none;
}

.phone__frame {
  --cut: 22px;
  --cf-fill: var(--surface-deep);
  padding: 10px;
}

.phone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 9px;
  font-size: 10px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
}

.phone__screen {
  --cut: 14px;
  display: block;
  width: 100%;
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  background: var(--bg);
}

.phone figcaption {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
}

/* The perspective grid floor under the hero (CyberGridFloor): magenta at low alpha, static. */
.grid-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
  perspective: 300px;
  perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 75%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 75%);
}

/* A plane hinged at the horizon and tilted towards the viewer: evenly spaced rows bunch up towards the top, as the
   app's rows at h * u^2 do, and the columns fan out towards the bottom. */
.grid-floor::before {
  content: "";
  position: absolute;
  left: -150%;
  right: -150%;
  top: 0;
  height: 300px;
  transform-origin: 50% 0;
  transform: rotateX(70deg);
  background-image: linear-gradient(to bottom, rgba(255, 42, 109, 0.3) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 42, 109, 0.22) 1px, transparent 1px);
  background-size: 100% 24px, 46px 100%;
  background-position: 0 0, 50% 0;
}

@media (min-width: 960px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 104px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
  }

  /* Beside the phone the title has about half the width: 8.2vw clipped "BETTERSTAKESOL" at its right edge between
     960 and 1100 px (a phone browser in desktop mode lays the page out at 980 px). */
  .hero__title {
    font-size: clamp(34px, 4.4vw, 64px);
  }

  .hero__logo {
    width: 112px;
  }

  .phone {
    width: 320px;
  }
}

/* ---------- Sections ---------- */

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

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 600px) {
  .section {
    padding-block: 64px;
  }
}

@media (min-width: 960px) {
  .section {
    padding-block: 96px;
  }

  .section__head {
    margin-bottom: 44px;
  }
}

/* The sign-in screen's three rows (FeatureRow): `// 01`, a green square, the title and the subtitle. */
.pillars {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-top: 56px;
}

.pillar {
  padding: 16px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--fg);
}

.pillar__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Feature cards. */
.cards {
  display: grid;
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.card__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.also {
  margin-top: 32px;
  padding: 18px 20px;
}

.also__list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

@media (min-width: 760px) {
  .also__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

/* Screens. */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 72%);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-color: var(--edge) transparent;
}

.shot {
  scroll-snap-align: start;
  min-width: 0;
}

.shot__frame {
  --cut: 16px;
  --cf-fill: var(--surface-deep);
  padding: 7px;
}

.shot__frame .phone__screen {
  --cut: 11px;
}

.shot figcaption {
  margin-top: 10px;
  font-size: 12px;
}

@media (min-width: 760px) {
  .shots {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
    padding-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .shots {
    max-width: 960px;
    margin-inline: auto;
    gap: 40px;
  }
}

/* How it works: a terminal panel with three steps. */
.terminal {
  --cut: 22px;
  padding: 8px 20px;
}

.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--dash);
}

.steps {
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
}

.step + .step {
  border-top: 1px dashed var(--dash);
}

.step__cmd {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(16px, 4.6vw, 20px);
  line-height: 1.4;
  color: var(--fg);
}

.step__cmd .prompt {
  color: var(--cyan);
  margin-right: 0.6ch;
}

.step__text {
  max-width: 29em;
  color: var(--muted);
  font-size: 15px;
}

.terminal__foot {
  padding: 14px 0 12px;
  border-top: 1px dashed var(--dash);
}

@media (min-width: 900px) {
  .terminal {
    padding: 8px 28px;
  }

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

  .step + .step {
    border-top: 0;
    border-left: 1px dashed var(--dash);
    padding-left: 32px;
  }
}

/* FAQ. */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq__item {
  --cut: 14px;
}

.faq__item summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: 16px 64px 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--fg);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "[+]";
  position: absolute;
  right: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--cyan);
}

.faq__item[open] summary::after {
  content: "[\2212]";
}

.faq__item summary:hover {
  color: var(--cyan);
}

.faq__item summary:focus-visible {
  outline-offset: -2px;
}

.faq__body {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 15px;
}

.faq__body p {
  max-width: 29em;
}

/* Built by StakeCraft. */
.maker {
  --cut: 22px;
  display: grid;
  gap: 16px;
  padding: 26px 20px;
}

.maker__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maker__title .accent {
  color: var(--cyan);
}

.maker p {
  max-width: 29em;
  color: var(--muted);
}

.maker__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.maker__note {
  font-size: 11px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .maker {
    padding: 36px 40px;
  }
}

/* The closing call to action. */
.closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
}

.closing__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .closing {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

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

.site-footer {
  margin-top: 24px;
  padding-block: 40px 48px;
  border-top: 1px solid var(--divider);
  background: var(--surface-deep);
}

.footer__grid {
  display: grid;
  gap: 20px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--cyan);
}

.footer__fine {
  display: grid;
  gap: 6px;
  max-width: 80ch;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .footer__fine {
    grid-column: 1 / -1;
  }
}

/* ---------- Legal documents (LegalSection) ---------- */

.doc {
  padding-top: 40px;
  padding-bottom: 72px;
}

.doc__inner {
  max-width: 720px;
}

.doc__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 7.4vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc__updated {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.doc__intro {
  margin-top: 18px;
  max-width: 27em;
  color: var(--muted);
  font-size: 15px;
}

.doc__body {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--dash);
}

.doc__section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg);
}

/* At most about 65 characters per line: Geist's average character is about 0.39 em. */
.doc__section p {
  margin-top: 8px;
  max-width: 27em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.doc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

/* ---------- Motion ---------- */

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
