@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/cormorant-garamond-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* SameTerms After Dark, from src/theme/color-themes.ts. Keep website and app
     roles aligned without changing the approved vector master or page layout. */
  --paper: #1C1018;
  --canvas-bright: #2C1521;
  --surface: #41202F;
  --ink: #F5EDE4;
  --muted: #CCBBC4;
  --faint: #BEADB7;
  --gold: #D8BC89;
  --gold-ink: #E8CDA6;
  --berry: #9A405C;
  --line: rgba(195,119,149,0.30);
  --rim: rgba(222,155,180,0.34);
  --control-line: rgba(222,155,180,0.62);
  --glass-base: rgba(65,31,46,0.62);
  --glass-fill: linear-gradient(165deg, rgba(222,155,180,0.12), rgba(76,32,49,0.10) 32%, rgba(36,16,27,0.18) 72%, rgba(154,64,92,0.10));
  --glass-shadow: 0 12px 30px rgba(7,3,9,0.24), inset 0 1px 0 rgba(245,237,228,0.12);
  --action-fill: linear-gradient(180deg, rgba(245,237,228,0.08), rgba(36,16,27,0.08) 48%, rgba(36,16,27,0.20));
  --action-hover: linear-gradient(180deg, rgba(245,237,228,0.10), rgba(36,16,27,0.02) 48%, rgba(36,16,27,0.14));
  --danger: #FFB4AB;
  --danger-surface: rgba(125,44,59,0.35);
  --selection: #D79AAD;
  --sans: Manrope, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse 90% 38rem at 5% 0%, rgba(154,64,92,0.16), transparent 75%), linear-gradient(145deg, var(--canvas-bright), var(--paper) 65%);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); color: var(--paper); }

a { color: inherit; text-underline-offset: 0.25em; }

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

p, h1, h2, h3 { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 { font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.07; }

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

section[id] { scroll-margin-top: 2rem; }

.wrap { width: min(100% - 6rem, 1240px); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  text-decoration: none;
  font: 500 1.9rem/1 var(--serif);
  letter-spacing: -0.035em;
}

/* The editable vector master has a compact square artboard. Render it
   directly at each frame size without raster scaling or masking. */
.brand-mark { display: block; flex-shrink: 0; width: 44px; height: 44px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.site-header nav { display: flex; gap: 2rem; }
.site-header nav a { padding-block: 0.7rem; text-decoration: none; font-size: 0.85rem; }
.site-header nav a:hover { text-decoration: underline; }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 5.5rem 6.5rem;
}

.eyebrow {
  color: var(--gold-ink);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span { margin-inline: 0.6rem; }

h1 { margin-top: 1.4rem; font-size: clamp(3.2rem, 5.7vw, 5.65rem); line-height: 0.99; }
h1 span { color: var(--gold-ink); }

.hero-intro { max-width: 31rem; margin-top: 1.8rem; color: var(--muted); font-size: 1.02rem; }
.visibility-note { max-width: 31rem; margin-top: 1.6rem; padding-left: 1rem; border-left: 2px solid var(--gold); }
.visibility-note strong { display: block; font: 500 1.5rem/1.2 var(--serif); letter-spacing: -0.025em; }
.visibility-note > span { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.84rem; line-height: 1.7; }
.launch-markets { max-width: 29rem; margin-top: 1.2rem; color: var(--gold-ink); font-size: 0.83rem; line-height: 1.7; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 56px;
  margin-top: 2rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid var(--rim);
  border-radius: 4px;
  background: var(--action-fill), var(--berry);
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(245,237,228,0.18), 0 4px 14px rgba(7,3,9,0.20);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease;
}

.button:hover { background: var(--action-hover), var(--berry); }
.button > span { color: var(--ink); font-size: 1.35rem; line-height: 1; }
.launch-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.72rem; }

.hero-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  padding: 3rem 1.5rem;
  overflow: hidden;
  border-radius: 160px 12px 160px 12px;
  border: 1px solid var(--rim);
  background: var(--glass-fill), var(--glass-base);
  background-clip: padding-box;
  box-shadow: var(--glass-shadow);
  color: var(--ink);
  text-align: center;
}

.window-line { position: absolute; z-index: -1; width: 89%; height: 87%; border: 1px solid var(--rim); border-radius: 150px 10px 150px 10px; opacity: 0.65; }
.window-line-one { transform: translate(-22%, -13%) rotate(-10deg); }
.window-line-two { transform: translate(24%, 17%) rotate(12deg); }
.art-label { color: var(--gold-ink); font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase; }
.art-mark { width: 190px; height: 190px; margin-top: 1rem; }
.art-message { font: 500 3.8rem/0.95 var(--serif); letter-spacing: -0.03em; }
.art-rule { width: 30px; height: 1px; margin-block: 2rem 1rem; background: var(--gold); }
.art-footer { color: var(--muted); font-size: 0.68rem; }

.how-section { padding-block: 5rem; border-block: 1px solid var(--line); background: rgba(36,16,27,0.36); }
.how-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 6rem; }
.section-intro h2 { margin-top: 1rem; }
.section-intro > p:last-child { max-width: 23rem; margin-top: 1.3rem; color: var(--muted); font-size: 0.9rem; }

.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.2rem; padding-block: 1.8rem; border-top: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; border-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.step-number { color: var(--gold-ink); font: 500 1.7rem/1.2 var(--serif); }
.step-label { color: var(--gold-ink); font-size: 0.65rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; }
.steps h3 { margin-top: 0.45rem; font-size: 2.1rem; line-height: 1.1; }
.steps li p:last-child { margin-top: 0.8rem; color: var(--muted); font-size: 0.86rem; }

.principle { display: grid; grid-template-columns: 0.28fr 1fr; align-items: center; gap: 3.5rem; padding-block: 6rem; }
.principle-symbol { justify-self: center; color: var(--gold); font: 500 11rem/1 var(--serif); }
.principle h2 { margin-top: 1rem; font-size: clamp(2.4rem, 3.3vw, 3rem); }
.principle p:last-child { max-width: 38rem; margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }

.questions-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 6rem; padding-block: 4.5rem 5.5rem; border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; padding-block: 1.3rem; cursor: pointer; list-style: none; font-size: 0.9rem; font-weight: 600; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary > span { color: var(--gold-ink); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.questions details[open] summary > span { transform: rotate(45deg); }
.questions details > p { padding: 0 2rem 1.5rem 0; color: var(--muted); font-size: 0.85rem; }

.closing { padding: 4rem 2rem 4.5rem; border: 1px solid var(--rim); border-radius: 4px; background: var(--glass-fill), var(--glass-base); background-clip: padding-box; box-shadow: var(--glass-shadow); color: var(--ink); text-align: center; }
.closing .eyebrow { color: var(--gold-ink); }
.closing h2 { margin-top: 1rem; font-size: clamp(2.5rem, 4.3vw, 4rem); }
.closing-status { margin-top: 1.8rem; color: var(--gold-ink); font-size: 0.85rem; }
.closing-note { margin-top: 0.5rem; color: var(--muted); font-size: 0.72rem; }
.button-light { margin-top: 1.4rem; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 140px; padding-block: 2rem; }
.site-footer .brand { font-size: 1.6rem; }
.site-footer .brand-mark { width: 36px; height: 36px; }
.site-footer > p { color: var(--muted); font-size: 0.7rem; }
.back-to-top { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: 0.72rem; text-decoration: none; }
.back-to-top:hover { text-decoration: underline; }
.social-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; min-height: 44px; color: var(--gold-ink); font-size: 0.74rem; text-decoration: none; }
.social-link:hover { text-decoration: underline; }

.not-found-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.not-found-content { flex: 1; padding-block: clamp(3rem, 10vh, 7rem); }
.not-found-content h1 { max-width: 46rem; }

/* The launch form uses the same quiet type, palette and approved vector as the
   information page. Every control remains reachable without a fixed footer. */
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 4px;
}
button:disabled { cursor: wait; opacity: 1; }
.button:disabled { background: var(--surface); border-color: var(--line); color: var(--faint); box-shadow: none; }
.button:disabled > span { color: inherit; }
.launch-link { display: block; width: fit-content; margin-top: 1rem; min-height: 44px; padding-block: 0.5rem; color: var(--gold-ink); font-size: 0.85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.launch-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); padding-block: 4.5rem; }
.launch-intro h1 { font-size: clamp(3.4rem, 6vw, 5.6rem); }
.launch-intro .hero-intro { font-size: 1rem; }
.launch-cities { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin-block: 1.5rem; list-style: none; }
.launch-cities li { padding: 0.45rem 0.85rem; border: 1px solid var(--rim); border-radius: 30px; background: var(--glass-fill), var(--glass-base); color: var(--gold-ink); font-size: 0.8rem; }
.launch-explainer { margin-top: 1rem; color: var(--muted); font-size: 0.88rem; }
.launch-panel { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--rim); border-radius: 16px; background: var(--glass-fill), var(--glass-base); background-clip: padding-box; box-shadow: var(--glass-shadow); }
.launch-panel > h2 { margin-top: 0.75rem; font-size: clamp(2.2rem, 3.1vw, 3rem); }
.launch-availability { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.7rem; padding: 0.45rem 0; border: 0; background: transparent; color: var(--gold-ink); font-size: 0.85rem; text-align: left; text-decoration: underline; text-underline-offset: 0.25em; }
.launch-panel form { margin-top: 1.5rem; }
.launch-panel fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.form-field { margin-bottom: 1.3rem; }
.form-field > label { display: block; margin-bottom: 0.45rem; font-size: 0.87rem; font-weight: 600; }
.form-field input, .form-field select { width: 100%; min-width: 0; min-height: 52px; padding: 0.7rem 0.8rem; border: 1px solid var(--control-line); border-radius: 6px; background: var(--canvas-bright); color: var(--ink); font-size: 1rem; }
/* Keep the native picker behavior, but stop WebKit painting an opaque gray
   button over the shared palette. The chevron is CSS paint, not an asset. */
.form-field select { -webkit-appearance: none; appearance: none; padding-inline-end: 2.3rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-field input::placeholder { color: var(--faint); opacity: 1; }
.form-field select option { background: var(--surface); color: var(--ink); }
.form-field input:disabled, .form-field select:disabled { background: var(--surface); color: var(--faint); -webkit-text-fill-color: var(--faint); opacity: 1; }
.form-field [aria-invalid="true"] { border-color: var(--danger); }
.field-note { margin-top: 0.5rem; color: var(--muted); font-size: 0.77rem; overflow-wrap: anywhere; }
.check-field { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 44px; margin-block: 0.6rem; padding-block: 0.35rem; font-size: 0.84rem; line-height: 1.65; cursor: pointer; }
.check-field input { flex-shrink: 0; width: 21px; height: 21px; margin: 0.12rem 0 0; accent-color: var(--berry); }
.website-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.launch-notice { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.launch-notice summary { min-height: 48px; padding-block: 0.7rem; color: var(--gold-ink); font-size: 0.83rem; cursor: pointer; }
.notice-copy p { margin-bottom: 0.8rem; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.launch-submit { justify-content: center; width: 100%; margin-top: 1.2rem; font-size: 0.88rem; }
.launch-action-heading { margin-top: 1.5rem; font-size: 2.2rem; line-height: 1.1; }
.form-error { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--danger); border-radius: 6px; background: var(--danger-surface); color: var(--danger); font-size: 0.85rem; overflow-wrap: anywhere; }
.result-home { margin-top: 1.5rem; }

@media (min-width: 1600px) {
  .hero { padding-block: 7rem; }
}

@media (max-width: 1000px) {
  .wrap { width: min(100% - 3.5rem, 1240px); }
  .hero { gap: 2rem; padding-block: 4rem; }
  .hero-art { min-height: 490px; border-radius: 120px 10px 120px 10px; }
  .art-mark { width: 160px; height: 160px; }
  .art-message { font-size: 3.4rem; }
  .how-layout, .questions-section { gap: 3rem; }
  .principle { gap: 2rem; }
}

@media (max-width: 720px) {
  .launch-layout { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .launch-intro h1 { font-size: clamp(3.2rem, 12vw, 4.8rem); }
  .launch-panel { padding: 1.5rem; }
  .site-header { min-height: 90px; }
  .site-header nav { gap: 1.2rem; }
  .header-status { display: none; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-block: 3.8rem; }
  h1 { max-width: 36rem; font-size: clamp(3.2rem, 9.7vw, 4.9rem); }
  .hero-intro { max-width: 32rem; }
  .hero-art { min-height: 380px; padding-block: 2.5rem; border-radius: 100px 8px 100px 8px; }
  .art-mark { width: 120px; height: 120px; margin-top: 0.5rem; }
  .art-message { font-size: 3rem; }
  .art-rule { margin-top: 1.4rem; }
  .how-section { padding-block: 3.5rem; }
  .how-layout, .questions-section { grid-template-columns: 1fr; gap: 2.6rem; }
  .section-intro > p:last-child { max-width: 30rem; }
  .principle { grid-template-columns: 1fr; gap: 0; padding-block: 3.5rem; }
  .principle-symbol { justify-self: start; font-size: 6rem; }
  .principle h2 br { display: none; }
  .questions-section { padding-block: 3.5rem; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem 2rem; }
  .site-footer > p { flex-basis: 100%; order: 3; padding-left: 0.3rem; }
  .site-footer .back-to-top { margin-left: auto; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 2.5rem); }
  .brand { font-size: 1.6rem; gap: 0.2rem; }
  .brand .brand-mark { width: 36px; height: 36px; }
  .site-header nav { gap: 0.7rem; }
  .site-header nav a { font-size: 0.7rem; }
  h1 { font-size: 2.9rem; }
  .hero { padding-top: 3rem; }
  .hero-intro { font-size: 0.93rem; }
  .button { gap: 1.2rem; padding-inline: 1rem; font-size: 0.75rem; }
  .steps li { grid-template-columns: 1.8rem 1fr; gap: 0.75rem; }
  .closing { padding-inline: 1.2rem; }
}

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