/* ==========================================================================
   Surayt — Tur Abdin Daylight, on the web.
   Tokens mirror constants/colors.ts and DESIGN.md so the site and the app
   stay one object. Change a value here only if it changed in the app first.
   ========================================================================== */

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

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/dmmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Noto Sans Syriac, subset to U+0700-074F. Most systems do not ship a Syriac
   face, so this is the difference between readable Serto and tofu boxes. */
@font-face {
  font-family: 'Noto Sans Syriac';
  src: url('../fonts/syriac-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0700-074F;
}

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

:root {
  /* Surfaces */
  --base: #FBF4E8;
  --raised: #FFFFFF;
  --subtle: #F4EAD7;
  --muted: #EFE2CC;

  /* Ink */
  --ink: #211C16;
  --ink-2: #514838;
  --ink-3: #6F6455;
  --ink-inverse: #FFFBF3;

  /* Brand. `-fill` is for surfaces and graphics, `-text` passes AA as text. */
  --green-fill: #17A45C;
  --green-deep: #0E8049;
  --green-text: #0A6238;
  --green-wash: #E9F7EF;
  --lapis-fill: #2C68D9;
  --lapis-text: #1F50B0;
  --lapis-wash: #EAF0FD;
  --saffron-fill: #F5A524;
  --saffron-text: #8A5B06;
  --saffron-wash: #FDF1DC;

  /* Lines */
  --line-subtle: rgba(33, 28, 22, 0.07);
  --line: rgba(33, 28, 22, 0.12);
  --line-strong: rgba(33, 28, 22, 0.2);
  --image-outline: rgba(0, 0, 0, 0.1);

  /* Shadows, tinted warm so they sit on limestone rather than on gray */
  --shadow-sm: 0 1px 2px rgba(33, 28, 22, 0.04), 0 2px 6px rgba(33, 28, 22, 0.04);
  --shadow-md: 0 2px 4px rgba(33, 28, 22, 0.04), 0 8px 20px rgba(33, 28, 22, 0.06);
  --shadow-lg: 0 4px 10px rgba(33, 28, 22, 0.05), 0 24px 60px rgba(33, 28, 22, 0.1);

  /* Radius, from DESIGN.md. Do not add values between these. */
  --r-input: 14px;
  --r-info: 16px;
  --r-button: 16px;
  --r-card: 20px;
  --r-hero: 24px;
  --r-pill: 999px;

  /* Motion */
  --press: 140ms;
  --hover: 220ms;
  --reveal: 620ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 40px);
  --measure: 62ch;

  color-scheme: light;
}

/* The app is light-locked, but a visitor who asked their OS for dark should
   not be handed a flashlight. Same hues, inverted surfaces. */
@media (prefers-color-scheme: dark) {
  :root {
    --base: #17130E;
    --raised: #211C16;
    --subtle: #262019;
    --muted: #2E2720;

    --ink: #F7EFE1;
    --ink-2: #C7BAA6;
    --ink-3: #A2947F;
    --ink-inverse: #10231A;

    --green-fill: #17A45C;
    --green-deep: #3FCB85;
    --green-text: #4FD494;
    --green-wash: rgba(23, 164, 92, 0.14);
    --lapis-fill: #2C68D9;
    --lapis-text: #8FB4FF;
    --lapis-wash: rgba(44, 104, 217, 0.16);
    --saffron-fill: #F5A524;
    --saffron-text: #F2B24C;
    --saffron-wash: rgba(245, 165, 36, 0.14);

    --line-subtle: rgba(247, 239, 225, 0.08);
    --line: rgba(247, 239, 225, 0.14);
    --line-strong: rgba(247, 239, 225, 0.22);
    --image-outline: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.4);

    color-scheme: dark;
  }
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--green-text);
  text-decoration-color: color-mix(in srgb, var(--green-text) 35%, transparent);
  text-underline-offset: 3px;
  transition: color var(--hover) var(--ease), text-decoration-color var(--hover) var(--ease);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

/* --- Layout --------------------------------------------------------------- */

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

.wrap--narrow {
  max-width: 760px;
}

section {
  position: relative;
}

.rule {
  height: 1px;
  background: var(--line-subtle);
  border: 0;
  margin: 0;
}

/* --- Type scale ----------------------------------------------------------- */

.display {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
}

.h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 46ch;
}

.body {
  color: var(--ink-2);
  max-width: var(--measure);
}

.meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.num {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Syriac is the hero: give it size, RTL, and room to breathe. */
.syr {
  font-family: 'Noto Sans Syriac', serif;
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 1.9;
  font-weight: 400;
}

/* --- Buttons -------------------------------------------------------------- */
/* The chunky press motif from the app: a solid 4px bottom edge that collapses
   under the finger. Kept identical here so the CTA feels like the product. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--r-button);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--press) var(--ease), box-shadow var(--press) var(--ease),
    background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}

.btn--primary {
  background: var(--green-deep);
  color: var(--ink-inverse);
  box-shadow: 0 4px 0 var(--green-text);
}

.btn--primary:hover {
  background: var(--green-text);
}

.btn--primary:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--green-text);
}

.btn--onColor {
  background: var(--raised);
  color: var(--green-text);
  box-shadow: 0 4px 0 rgba(33, 28, 22, 0.22);
}

.btn--onColor:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(33, 28, 22, 0.22);
}

.btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  padding-inline: 22px;
}

.btn--quiet:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--quiet:active {
  transform: scale(0.96);
}

/* Secondary actions are links, not a second button. Keeps one button per view
   so the primary action never has to compete for attention. */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -1.5px 0 var(--line-strong);
  transition: box-shadow var(--hover) var(--ease), color var(--hover) var(--ease);
}

.textlink svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform var(--hover) var(--ease);
}

.textlink:hover {
  color: var(--green-text);
  box-shadow: inset 0 -1.5px 0 var(--green-text);
}

.textlink:hover svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .textlink svg {
    transition: none;
  }

  .textlink:hover svg {
    transform: none;
  }
}

.btn[aria-disabled='true'] {
  pointer-events: none;
  background: var(--muted);
  color: var(--ink-3);
  box-shadow: 0 4px 0 var(--line);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke-width: 2;
}

/* Launch state. Both labels ship in the markup so crawlers read the real one;
   CSS decides which is visible. See the comment at the top of index.html. */
.cta-soon {
  display: none;
}

html[data-launch='pending'] .cta-live {
  display: none;
}

html[data-launch='pending'] .cta-soon {
  display: inline;
}

/* Before release the CTA borrows the quiet outline rather than looking like a
   primary button someone broke. */
html[data-launch='pending'] .btn[data-cta] {
  pointer-events: none;
  background: transparent;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

html[data-launch='pending'] .cta .btn[data-cta] {
  color: var(--ink-inverse);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink-inverse) 45%, transparent);
}

html[data-launch='pending'] .btn[data-cta] .btn__icon {
  display: none;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--base) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--hover) var(--ease);
}

.header[data-scrolled='true'] {
  border-bottom-color: var(--line-subtle);
}

@media (prefers-reduced-transparency: reduce) {
  .header {
    background: var(--base);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  /* The mark is 32px, but the tap target has to clear 44. */
  min-height: 44px;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--hover) var(--ease), background-color var(--hover) var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: var(--subtle);
}

.header .btn {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

/* Narrow phones: the brand and the CTA must never fight for the same pixels. */
@media (max-width: 460px) {
  .brand {
    font-size: 1.0625rem;
    gap: 8px;
    min-width: 0;
  }

  .header .btn {
    padding-inline: 16px;
    font-size: 0.875rem;
  }
}

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

.hero {
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/* A single warm bloom behind the hero, echoing the marketing deck. One
   gradient, no mesh, no second light source. */
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -35%;
  height: 900px;
  background: radial-gradient(
    46% 46% at 30% 32%,
    color-mix(in srgb, var(--green-fill) 22%, transparent),
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero .display {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  margin-bottom: 22px;
}

.hero .lead {
  max-width: 38ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Device: a real screenshot in a real bezel. Inner radius 34 + 10 padding
   gives the outer 44, so the curves stay concentric. */
.device {
  position: relative;
  width: min(318px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3a3229, #211c16 46%, #100d09);
  box-shadow: var(--shadow-lg);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .device {
    width: min(290px, 78%);
  }
}

/* --- Word band ------------------------------------------------------------ */

.band {
  background: var(--subtle);
  border-block: 1px solid var(--line-subtle);
  padding-block: clamp(44px, 6vw, 68px);
}

.band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
}

.band__head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.words {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-info);
  overflow: hidden;
}

.word {
  background: var(--subtle);
  padding: 24px 20px 22px;
  text-align: center;
}

.word__syr {
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.word__tr {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--green-text);
  letter-spacing: -0.005em;
}

.word__sv {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Course / phases ------------------------------------------------------ */

.course {
  padding-block: clamp(64px, 9vw, 116px);
}

.course__head {
  max-width: 44ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.course__head .h2 {
  margin-bottom: 16px;
}

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

.phase {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--r-card);
  background: var(--raised);
  box-shadow: var(--shadow-sm);
}

.phase__glyph {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: var(--r-info);
  background: var(--tint-wash);
  color: var(--tint-text);
  font-family: 'Noto Sans Syriac', serif;
  font-size: 3.5rem;
  line-height: 1;
  /* Serto carries a tall ascent, so geometric centring reads high. */
  padding-bottom: 10px;
}

.phase__days {
  font-family: 'DM Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tint-text);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.phase__title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-bottom: 14px;
}

.phase__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.phase__list li {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--base);
  border: 1px solid var(--line-subtle);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.phase--one {
  --tint-wash: var(--green-wash);
  --tint-text: var(--green-text);
}

.phase--two {
  --tint-wash: var(--lapis-wash);
  --tint-text: var(--lapis-text);
}

.phase--three {
  --tint-wash: var(--saffron-wash);
  --tint-text: var(--saffron-text);
}

@media (max-width: 700px) {
  .phase {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .phase__glyph {
    width: 68px;
    height: 68px;
    font-size: 2.1rem;
  }
}

/* --- Bento ---------------------------------------------------------------- */

.bento {
  padding-bottom: clamp(64px, 9vw, 116px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px);
  background: var(--raised);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tile h3 {
  margin-bottom: 10px;
}

.tile p {
  color: var(--ink-2);
  font-size: 0.9688rem;
}

.tile--alphabet {
  grid-column: span 3;
  background: var(--ink);
  color: var(--ink-inverse);
}

.tile--alphabet h3 {
  color: var(--ink-inverse);
}

.tile--alphabet p {
  color: color-mix(in srgb, var(--ink-inverse) 74%, transparent);
}

.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.letters span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-input);
  background: rgba(255, 251, 243, 0.08);
  border: 1px solid rgba(255, 251, 243, 0.14);
  font-family: 'Noto Sans Syriac', serif;
  font-size: 1.65rem;
  color: var(--ink-inverse);
  padding-bottom: 4px;
}

.tile--words {
  grid-column: span 3;
  background: var(--green-wash);
}

.tile--shot {
  grid-column: span 3;
  padding: 0;
  background: var(--subtle);
}

.tile--shot {
  margin: 0;
}

.tile--shot figcaption {
  padding: clamp(22px, 3vw, 28px);
}

.tile--shot figcaption h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Both shot tiles crop to one ratio so their captions sit on the same line.
   The mask dissolves the bottom edge into the tile, so a screen that carries
   on past the crop reads as continuing rather than as chopped. */
.tile--shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-info) var(--r-info) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
}

.tile .tile__stat {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green-text);
  margin-bottom: 12px;
}

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

  .tile--alphabet,
  .tile--words,
  .tile--shot {
    grid-column: span 1;
  }
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  padding-block: clamp(64px, 9vw, 104px);
  background: var(--subtle);
  border-block: 1px solid var(--line-subtle);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: 104px;
}

.faq__head .h2 {
  margin-bottom: 14px;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  min-height: 44px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--hover) var(--ease);
}

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

.faq summary:hover {
  color: var(--green-text);
}

.faq__sign {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-3);
  transform: translateY(-50%);
  transition: transform var(--hover) var(--ease), opacity var(--hover) var(--ease);
}

.faq__sign::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq details[open] .faq__sign::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq__answer {
  padding-bottom: 22px;
  color: var(--ink-2);
  max-width: 58ch;
}

.faq__answer p + p {
  margin-top: 12px;
}

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

  .faq__head {
    position: static;
  }
}

/* --- Prose (about + legal pages) ------------------------------------------ */

.prose {
  padding-block: clamp(56px, 8vw, 96px);
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 52px;
  margin-bottom: 14px;
}

.prose h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-top: 34px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
  color: var(--ink-2);
  max-width: var(--measure);
}

.prose p + p,
.prose ul,
.prose ol {
  margin-top: 14px;
}

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

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li::marker {
  color: var(--ink-3);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line-subtle);
  color: var(--ink-2);
}

.prose th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.callout {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--r-info);
  background: var(--green-wash);
  border: 1px solid color-mix(in srgb, var(--green-fill) 22%, transparent);
}

.callout p {
  color: var(--ink-2);
}

.page-head {
  padding-top: clamp(40px, 6vw, 72px);
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  margin-bottom: 14px;
}

.page-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.toc {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--r-info);
  background: var(--raised);
  border: 1px solid var(--line-subtle);
}

.toc h2 {
  font-size: 0.8125rem !important;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px !important;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

/* --- CTA band ------------------------------------------------------------- */

.cta {
  background: var(--green-deep);
  color: var(--ink-inverse);
  padding-block: clamp(60px, 8vw, 92px);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 16px;
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  color: color-mix(in srgb, var(--ink-inverse) 82%, transparent);
  max-width: 44ch;
  margin: 0 auto 30px;
}

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

.footer {
  padding-block: 52px 40px;
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-subtle);
}

.footer h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

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

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

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

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__note {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.footer__blurb {
  color: var(--ink-2);
  max-width: 40ch;
  margin-top: 12px;
}

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

  .footer__brand {
    grid-column: span 2;
  }
}

/* --- Reveal --------------------------------------------------------------- */
/* Split and staggered rather than one container fading in. Sections carry
   data-reveal; children stagger through --i. */

[data-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

[data-reveal].is-in > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-input) 0;
  background: var(--ink);
  color: var(--ink-inverse);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

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