/* Thodu, mythodu.in. One stylesheet, no framework.
   Colours are the app's own (Follow-up 70 tokens) plus the painting's dusk. */

:root {
  --ink: #1d1b3a;
  --ink-2: #46445f;
  --muted: #66637e;
  --ground: #f7f6fb;
  --surface: #ffffff;
  --line: #e6e3ef;
  --line-strong: #d6d2e4;
  --accent: #5b4bc4;
  --accent-ink: #4b3fb0;
  --accent-soft: #eeebfb;
  --rani: #e0457f;
  --night: #17132a;
  --night-2: #211a3b;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: rgba(255, 255, 255, 0.72);
  --sky-top: #f6f3fb;
  --sky-mid: #f8e6e3;
  --sky-low: #fbd8cc;
  --ok: #138a5e;
  --danger: #b4234f;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans Telugu", "Kohinoor Telugu", "Nirmala UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans Telugu", "Kohinoor Telugu", "Nirmala UI", sans-serif;

  --max: 1180px;
  --gutter: 20px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(29, 27, 58, 0.04), 0 18px 48px -24px rgba(29, 27, 58, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* hidden always wins over a component's own display */
[hidden] { display: none !important; }

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

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

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

.hero-body,
.facts,
.principles,
.safety-card,
.preview-grid,
.faq-grid,
.foot-grid,
.form,
.done { grid-template-columns: minmax(0, 1fr); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: inherit;
  text-wrap: balance;
}

.display {
  font-size: clamp(46px, 8.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.042em;
  font-weight: 650;
}

.h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 620;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}

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

/* ---------- buttons ---------- */

.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(29, 27, 58, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { background: #2c2852; }

.btn-quiet {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(29, 27, 58, 0.1);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-quiet:hover { background: rgba(255, 255, 255, 0.85); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: #f1eefa; }

.btn-small { --h: 40px; padding: 0 18px; font-size: 15px; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(247, 246, 251, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(29, 27, 58, 0.07);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-te {
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 2px;
}
.nav-links {
  display: none;
  gap: 32px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
@media (max-width: 420px) {
  .nav-row { height: 64px; }
  .nav .brand-te { display: none; }
}

/* ---------- hero ---------- */

.hero {
  --art-h: clamp(220px, 34vw, 500px);
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top) 0%, #f7eef4 34%, var(--sky-mid) 62%, var(--sky-low) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* a faint warm glow where the sun would be */
  content: "";
  position: absolute;
  right: -10%;
  top: 30%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 214, 196, 0.85), rgba(255, 214, 196, 0));
  z-index: -1;
  pointer-events: none;
}
.hero-body {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 40px;
  padding-top: 108px;
  padding-bottom: calc(var(--art-h) * 0.6);
}
.hero-copy { max-width: 860px; }
.display .line { display: block; }
.hero .display { margin-top: 4px; }
.hero .lede { margin-top: 26px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 420px) {
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 0 20px; font-size: 15.5px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(29, 27, 58, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rani);
  box-shadow: 0 0 0 4px rgba(224, 69, 127, 0.16);
}

.definition {
  display: none;
  justify-self: start;
  width: min(100%, 340px);
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px -30px rgba(75, 63, 176, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.definition .word {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.definition .te {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.definition .say {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}
.definition .pos {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.definition .mean {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

@media (min-width: 1040px) {
  .hero-body {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    padding-top: 132px;
  }
  .hero { min-height: 100svh; }
  .definition { display: block; justify-self: end; }
}

.hero-art {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: var(--art-h);
  background-image: url("../img/dusk.webp");
  background-size: cover;
  background-position: 74% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
}
@supports not (background-image: url("x.webp")) {
  .hero-art { background-image: url("../img/dusk.jpg"); }
}
.hero-art::after {
  /* the dusk turns to night: blend into the next section */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(23, 19, 42, 0) 0%, rgba(23, 19, 42, 0.55) 55%, var(--night) 100%);
}

/* ---------- night sections ---------- */

.night {
  position: relative;
  background: var(--night);
  color: #fff;
  isolation: isolate;
}
.night::before {
  /* fine grain, so large dark areas do not band */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 220px);
  mask-image: linear-gradient(180deg, transparent 0, #000 220px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.night .kicker { color: #b9b0f4; }
.night .lede { color: var(--night-text); }

.manifesto { padding: 72px 0 120px; }
.manifesto .statement {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 600;
  max-width: 17em;
}
.manifesto .statement span { color: rgba(255, 255, 255, 0.48); }
.manifesto .lede { margin-top: 32px; max-width: 38em; }

.facts {
  display: grid;
  gap: 1px;
  margin-top: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-line);
  border: 1px solid var(--night-line);
}
.fact {
  padding: 26px 26px 28px;
  background: var(--night);
}
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.fact p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--night-text);
}
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- promise ---------- */

.section { padding: 120px 0; }
.section-head { max-width: 760px; }
.section-head .lede { margin-top: 22px; }

.principles {
  display: grid;
  margin-top: 64px;
  border-top: 1px solid var(--line-strong);
}
.principle {
  display: grid;
  gap: 10px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}
.principle .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0;
}
.principle p {
  color: var(--ink-2);
  max-width: 30em;
}
@media (min-width: 900px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
    border-top: 0;
    gap: 0;
  }
  .principle {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 36px 8px 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-strong);
  }
  .principle + .principle { padding-left: 36px; border-left: 1px solid var(--line); }
  .principle .num { padding-top: 0; }
}

/* ---------- safety ---------- */

.safety { padding-top: 0; }
.safety-card {
  display: grid;
  gap: 40px;
  padding: 36px 22px 32px;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(251, 216, 204, 0.75) 0%, rgba(251, 216, 204, 0) 55%),
    linear-gradient(180deg, #f1edfb 0%, #ebe6f8 100%);
  border: 1px solid #e3ddf3;
}
.safety-card .lede { margin-top: 20px; }
.assurances {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.assurances li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(91, 75, 196, 0.16);
}
.assurances li:last-child { padding-bottom: 0; }
.assurances .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 16px -10px rgba(75, 63, 176, 0.5);
}
.assurances .ico svg { width: 20px; height: 20px; }
.assurances b {
  display: block;
  font-weight: 620;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.assurances span {
  display: block;
  margin-top: 3px;
  font-size: 15.5px;
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .safety-card {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 72px 64px;
    align-items: start;
  }
  .assurances li:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- preview (under wraps) ---------- */

.preview { padding: 120px 0; overflow: hidden; }
.preview-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
.preview .lede { margin-top: 22px; }
.preview .btn { margin-top: 34px; }
@media (min-width: 900px) {
  .preview-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.stage::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 141, 224, 0.42), rgba(154, 141, 224, 0));
  filter: blur(10px);
}
.phone {
  position: relative;
  width: 270px;
  height: 552px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #3a3360, #1b1733 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 8px rgba(255, 255, 255, 0.03);
  transform: rotate(-3deg);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f3fb 0%, #fbe3da 46%, #efe9fa 100%);
}
.screen .island {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #0d0b18;
  z-index: 3;
}
.screen .blur {
  position: absolute;
  inset: 0;
  padding: 54px 16px 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  filter: blur(7px) saturate(1.1);
  transform: scale(1.04);
}
.ghost { border-radius: 16px; background: rgba(255, 255, 255, 0.85); }
.ghost.line { height: 12px; border-radius: 6px; background: rgba(29, 27, 58, 0.18); }
.ghost.w60 { width: 60%; }
.ghost.w40 { width: 40%; }
.ghost.card { height: 120px; background: linear-gradient(135deg, #9a8de0, #f4b6a6); }
.ghost.row { height: 64px; }
.ghost.row.tint { background: rgba(91, 75, 196, 0.22); }
.ghost-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ghost.sq { height: 92px; }
.lock {
  position: absolute;
  inset: auto 18px 26px 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 19, 42, 0.78);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.6);
}
.lock svg { width: 22px; height: 22px; flex: none; color: #c9c3ff; }
.lock b { display: block; font-size: 14.5px; font-weight: 620; }
.lock span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }

.chip-float {
  position: absolute;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.chip-float.a { top: 92px; left: calc(50% + 122px); }
.chip-float.b { bottom: 128px; right: calc(50% + 116px); }
@media (max-width: 420px) {
  .chip-float { display: none; }
}

/* ---------- join ---------- */

.join { padding: 96px 0; }
@media (min-width: 960px) { .join { padding: 120px 0; } }
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.join .lede { margin-top: 22px; }
.join-points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.join-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 16px;
}
.join-points svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: none;
  color: var(--ok);
}
@media (min-width: 960px) {
  .join-grid { grid-template-columns: 1fr 520px; gap: 80px; align-items: start; }
  .join-copy { position: sticky; top: 120px; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
@media (min-width: 560px) {
  .panel { padding: 36px 36px 32px; }
}

.form { display: grid; gap: 18px; }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 560px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 8px; }
.field label,
.field .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field .opt { font-weight: 500; color: var(--muted); }
.input,
.select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fbfaff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346445f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.input::placeholder { color: #9b98b0; }
.input:hover,
.select:hover { border-color: #c4bfd8; }
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 75, 196, 0.14);
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 79, 0.1);
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 7px;
  border: 1.5px solid #bdb8d2;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.check input::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.turnstile:empty { display: none; }
.turnstile { min-height: 0; }

.form .btn { width: 100%; margin-top: 4px; }
.fine {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.fine a { color: var(--ink-2); }

.status {
  min-height: 0;
  font-size: 14.5px;
  color: var(--danger);
}
.status:empty { display: none; }

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* the state after joining */
.done { display: grid; gap: 22px; }
.done[hidden] { display: none; }
.done .badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #e5f5ee;
  color: var(--ok);
}
.done .badge svg { width: 26px; height: 26px; }
.done h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 650; }
.done p { color: var(--ink-2); }
.place {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--accent-soft);
}
.place span { font-size: 14.5px; color: var(--ink-2); }
.place b {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
}
.share-label { font-size: 14px; font-weight: 600; }
.done-text { margin-top: 8px; }
.share-hint { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
#done-share .share { margin-top: 10px; }
.share {
  display: flex;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fbfaff;
  align-items: center;
}
.share input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  text-overflow: ellipsis;
}
.share input:focus { outline: none; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  justify-self: start;
}

/* ---------- faq ---------- */

.faq { padding: 24px 0 104px; }
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq { padding: 40px 0 120px; }
  .faq-grid { grid-template-columns: 420px 1fr; gap: 80px; }
}
.faq-lede { margin-top: 20px; font-size: 18px; }
.qa { border-top: 1px solid var(--line-strong); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.qa summary .plus::before,
.qa summary .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--ink);
  translate: -50% -50%;
}
.qa summary .plus::after { rotate: 90deg; transition: rotate 0.3s var(--ease); }
.qa details[open] summary .plus { background: var(--ink); border-color: var(--ink); }
.qa details[open] summary .plus::before,
.qa details[open] summary .plus::after { background: #fff; }
.qa details[open] summary .plus::after { rotate: 0deg; }
.qa .answer {
  padding: 0 56px 26px 0;
  color: var(--ink-2);
  max-width: 40em;
}
.qa .answer a { color: var(--accent-ink); }

/* ---------- closing band + footer ---------- */

.closing {
  padding: 110px 0 0;
  text-align: center;
}
.closing .h2 { max-width: 12em; margin-inline: auto; }
.closing .lede { margin: 22px auto 0; text-align: center; }
.closing .btn { margin-top: 34px; }
.closing-art {
  height: clamp(160px, 22vw, 300px);
  margin-top: 72px;
  background-image: url("../img/dusk.webp");
  background-size: cover;
  background-position: 30% 100%;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 68%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 68%, #000 80%, transparent 100%);
  filter: saturate(0.8);
}

.foot {
  padding-top: 40px;
  padding-bottom: 40px;
}
.foot-grid {
  display: grid;
  gap: 36px;
}
.foot .brand { color: #fff; }
.foot .brand-te { color: rgba(255, 255, 255, 0.55); }
.foot-tag { margin-top: 14px; font-size: 15px; color: var(--night-text); max-width: 26em; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 15px;
}
.foot-links a:hover { color: #fff; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- legal and small pages ---------- */

.page-top {
  background: linear-gradient(180deg, var(--sky-top), #f7eef4 70%, var(--ground));
  padding: 140px 0 56px;
}
.page-top .h2 { font-size: clamp(36px, 5vw, 56px); }
.page-top .meta { margin-top: 16px; font-size: 15px; color: var(--muted); }
.doc { padding: 24px 0 120px; }
.doc-body { max-width: 720px; }
.doc-body h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 640;
}
.doc-body p,
.doc-body li { color: var(--ink-2); }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 8px; }
.doc-body a { color: var(--accent-ink); }
.doc-body table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
}
.doc-body th,
.doc-body td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.doc-body th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.todo {
  background: #fff3cd;
  color: #6b4e00;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.card-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 120px var(--gutter) 60px;
  background: linear-gradient(180deg, var(--sky-top), #f7eef4 55%, var(--sky-low));
}
.card-page .panel { width: min(100%, 480px); text-align: left; }
.card-page h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 650; }
.card-page p { margin-top: 12px; color: var(--ink-2); }
.card-page .btn { margin-top: 26px; width: 100%; }
.card-page .status { margin-top: 14px; }
.card-page .place,
.card-page #c-share { margin-top: 22px; }
.card-page .share .btn { margin-top: 0; width: auto; }
.card-page section:focus { outline: none; }

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }

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