/* ==========================================================================
   Bedsheet Queue - shared stylesheet
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #0B1220;
  --bg-deep:       #070C16;
  --surface:       #121C2E;
  --surface-2:     #18243A;
  --surface-3:     #1F2D46;
  --line:          #27364F;
  --line-soft:     #1D2A40;

  /* Ink */
  --ink:           #F3ECE0;
  --ink-2:         #C3CDDD;
  --ink-3:         #8E9BB0;

  /* Brand */
  --gold:          #F7B733;
  --gold-bright:   #FFD166;
  --gold-deep:     #D99A18;
  --cream:         #EFE7D8;
  --blue:          #1E5AA8;
  --blue-bright:   #3D82DC;
  --teal:          #3AA69B;
  --coral:         #E2705A;

  /* Type */
  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: "SF Pro Rounded", "SF Pro Display", -apple-system,
                BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Metrics */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --shell: 1180px;
  --gutter: 24px;

  /* Elevation */
  --shadow-s: 0 2px 10px rgba(0, 0, 0, .28);
  --shadow-m: 0 14px 40px rgba(0, 0, 0, .38);
  --shadow-l: 0 30px 80px rgba(0, 0, 0, .48);
  --glow-gold: 0 0 60px rgba(247, 183, 51, .18);
}

/* Overscroll / rubber-band area and mobile browser chrome */
html {
  background: #0B1220;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-round);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 750; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1.1em; }

::selection { background: rgba(247, 183, 51, .3); color: #fff; }

/* Focus -------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #16202F;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* Layout ------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.section--panel { background: var(--bg-deep); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease, box-shadow .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--gold);
  color: #17202E;
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(247, 183, 51, .26);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #17202E;
  box-shadow: 0 14px 38px rgba(247, 183, 51, .36);
}
.btn--primary:visited { color: #17202E; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--ink);
}
.btn--ghost:visited { color: var(--ink); }

.btn--block { width: 100%; }

/* App Store badge ---------------------------------------------------------- */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 26px 13px 22px;
  border-radius: 16px;
  background: var(--gold);
  color: #17202E;
  border: 2px solid var(--gold);
  font-family: var(--font-round);
  box-shadow: 0 12px 34px rgba(247, 183, 51, .28);
  transition: transform .18s ease, background-color .18s ease,
              box-shadow .18s ease, border-color .18s ease;
}
.appstore:hover,
.appstore:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #17202E;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(247, 183, 51, .4);
}
.appstore:visited, .appstore:active { color: #17202E; }
.appstore svg { width: 26px; height: 32px; flex: none; fill: #17202E; }
.appstore__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore__small { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.appstore__big { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.02em; }

.appstore--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.appstore--outline svg { fill: var(--ink); }
.appstore--outline:hover,
.appstore--outline:focus-visible {
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--ink);
}
.appstore--outline:hover svg { fill: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  /* The icon artwork is opaque and its lower corners are darker than the header,
     so a hairline keeps the square edge readable against the dark chrome. */
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-s);
  flex: none;
}
.brand__name {
  font-family: var(--font-round);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  font-size: .96rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--gold); background: rgba(247, 183, 51, .1); }

/* Header call to action.
   Scoped to `.nav a` so it outranks the generic nav link colours above,
   which would otherwise paint light text onto the gold button. Dark ink on
   gold in every state, including hover, focus, active and visited. */
.nav a.header-cta {
  margin-left: 8px;
  padding: 11px 20px;
  font-size: .95rem;
  color: #17202E;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(247, 183, 51, .26);
}
.nav a.header-cta:visited { color: #17202E; }
.nav a.header-cta:hover,
.nav a.header-cta:focus-visible,
.nav a.header-cta:active,
.nav a.header-cta[aria-current="page"] {
  color: #17202E;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 38px rgba(247, 183, 51, .36);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0 clamp(60px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 760px;
  background: radial-gradient(closest-side, rgba(247, 183, 51, .16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(30, 90, 168, .22), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__wordmark {
  width: min(430px, 88%);
  margin-bottom: 26px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45));
}

/* Two lines: the question, then the gold half on a line of its own. Sized so
   the first line fits the column at every width. */
.hero__title {
  font-size: clamp(1.25rem, 3.45vw, 2.8rem);
  margin-bottom: .45em;
}
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--gold);
}

.hero__text { font-size: clamp(1.04rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 54ch; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: .9rem;
  color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art img {
  width: min(300px, 100%);
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .55));
  animation: float 9s ease-in-out infinite;
}
.hero__art::before {
  content: "";
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 46px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%);
  filter: blur(6px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Badge strip -------------------------------------------------------------- */
.strip {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding: 22px 0;
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  color: var(--ink-3);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}
.strip__inner strong { color: var(--ink); font-weight: 700; }

/* Cards -------------------------------------------------------------------- */
.card {
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 28px;
  box-shadow: var(--shadow-s);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(247, 183, 51, .35); box-shadow: var(--shadow-m); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: .98rem; }

.card__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}

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

/* Split feature ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
/* A heading sized to stay on one line in half the page's width. */
.h2--oneline { font-size: clamp(1.1rem, 2.55vw, 1.9rem); }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split--flip .split__art { order: -1; }
.split__art { display: flex; justify-content: center; position: relative; }
.split__art img {
  width: min(360px, 92%);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, .5));
}
/* For a tall illustration, which at the usual width towers over its text. */
.split__art img.split__img--small { width: min(255px, 72%); }
.split__art img.split__img--medium { width: min(300px, 80%); }
.split__art::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(closest-side, rgba(247, 183, 51, .13), transparent 72%);
  pointer-events: none;
}

.tick-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tick-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  font-size: .99rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(58, 166, 155, .18);
  border: 1.5px solid var(--teal);
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: .72em;
  width: 6px; height: 3px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* Screenshot showcase ------------------------------------------------------ */
.shots {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.shots::-webkit-scrollbar-track { background: transparent; }

/* 200px, so all five stand side by side in the page's width; narrower
   windows scroll. `margin: 0` clears the browser's own figure margins. */
.phone {
  flex: 0 0 auto;
  width: 200px;
  margin: 0;
  scroll-snap-align: center;
}
.phone__frame {
  position: relative;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #2C3A52, #141D2E 60%);
  border: 1px solid #38475F;
  box-shadow: var(--shadow-m), inset 0 1px 0 rgba(255, 255, 255, .08);
}
/* The screenshot sets the height, so nothing of it is cropped. */
.phone__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #0A1120;
  border: 1px solid rgba(255, 255, 255, .06);
}
.phone__screen img { display: block; width: 100%; height: auto; }
.phone__notch {
  position: absolute;
  top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 16px;
  border-radius: 99px;
  background: #05080F;
  z-index: 2;
}
.phone__caption {
  margin-top: 16px;
  text-align: center;
  font-size: .88rem;
  color: var(--ink-3);
}
.shots-note {
  text-align: center;
  font-size: .88rem;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Stats -------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  text-align: center;
}
.stat__value {
  font-family: var(--font-round);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat__label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

/* Flow diagram ------------------------------------------------------------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}
.flow__step {
  flex: 1 1 150px;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 18px;
  text-align: center;
  position: relative;
}
.flow__step strong {
  display: block;
  font-family: var(--font-round);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.flow__step span { font-size: .85rem; color: var(--ink-3); }
.flow__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: .8rem;
  font-weight: 800;
  font-family: var(--font-round);
  color: #16202F;
  background: var(--gold);
}

/* CTA band ----------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(247, 183, 51, .18), transparent 62%),
    linear-gradient(140deg, var(--surface-2), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 66px);
  text-align: center;
}
.cta h2 { margin-bottom: .35em; }
.cta p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* Forms -------------------------------------------------------------------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.form-card {
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-m);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.field .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
  appearance: none;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #6C7A91; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #33455F; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(247, 183, 51, .16);
  background: #0A111F;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23C3CDDD' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 44px;
  cursor: pointer;
}
.field select option { background: #0A111F; color: var(--ink); }

.field__hint { font-size: .82rem; color: var(--ink-3); margin-top: 7px; text-transform: none; letter-spacing: 0; font-weight: 400; }

.form-note { font-size: .86rem; color: var(--ink-3); margin-top: 18px; }

.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 26px;
}
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 1.08rem; }
.aside-card p, .aside-card ul { color: var(--ink-2); font-size: .95rem; }
.aside-card ul { padding-left: 20px; margin: 0; }
.aside-card li { margin-bottom: 8px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Legal pages -------------------------------------------------------------- */
.page-head {
  padding: clamp(48px, 7vw, 86px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -50% 40% auto -15%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(247, 183, 51, .12), transparent 70%);
  pointer-events: none;
}
.page-head .shell { position: relative; }
.page-head h1 { margin-bottom: .3em; }
.page-head .updated {
  font-size: .87rem;
  color: var(--ink-3);
  letter-spacing: .04em;
}

.legal { max-width: 800px; }
.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { margin-top: .6em; border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.7em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal strong { color: var(--ink); }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-s);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.toc h2 { font-size: .82rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px !important; border: 0 !important; padding: 0 !important; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }

/* Thank you ---------------------------------------------------------------- */
.thanks {
  min-height: calc(100vh - 76px - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.thanks::before {
  content: "";
  position: absolute;
  inset: -20% 15% auto 15%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(247, 183, 51, .16), transparent 70%);
  pointer-events: none;
}
.thanks .shell { position: relative; max-width: 700px; }
.thanks__art { width: min(260px, 70%); margin: 0 auto 30px; filter: drop-shadow(0 26px 46px rgba(0,0,0,.5)); }
.thanks .btn-row { justify-content: center; margin-top: 30px; }
.thanks__links {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  font-size: .93rem;
}
.thanks__links a { color: var(--ink-2); }
.thanks__links a:hover { color: var(--gold); }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: clamp(46px, 6vw, 68px) 0 34px;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.footer__brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand span { font-family: var(--font-round); font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.footer__about { color: var(--ink-3); font-size: .93rem; max-width: 38ch; }
.footer h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-family: var(--font-sans);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--ink-2); font-size: .95rem; }
.footer li a:hover { color: var(--gold); }
.footer__bottom {
  padding-top: 26px;
  text-align: center;
  font-size: .88rem;
  color: var(--ink-3);
}
.footer__bottom a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--gold); }

/* Reveal ------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__wordmark { margin-inline: auto; }
  .hero__text, .hero__meta { margin-inline: auto; }
  .hero__meta, .hero .btn-row { justify-content: center; }
  .hero__art { margin-top: 20px; }
  .split, .form-wrap { grid-template-columns: 1fr; }
  .split--flip .split__art { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: rgba(11, 18, 32, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-m);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: var(--radius-s); }
  .nav a.header-cta { margin: 10px 0 0; border-radius: 999px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .brand__tag { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn, .appstore { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
