/* Treaty landing page.
   Night, like the store screenshots, with the app's own parchment for the
   treaty itself. The parent's amber and the teen's teal carry equal weight
   (lib/app/theme.dart); violet is what is mutual. System fonts only: a tight
   sans for display, a book serif in italics for the second voice. */
:root {
  --night: #0b0e12;
  --night-2: #0f1318;
  --panel: #141a21;
  --panel-2: #1a2129;
  --line: #ffffff14;
  --line-strong: #ffffff26;
  --text: #f4efe6;
  --soft: #c9ccd2;
  --muted: #8e959f;
  --amber: #f4b842;
  --amber-deep: #98621c;
  --teal: #3ad8c2;
  --teal-deep: #0c7c68;
  --violet: #c0a2f5;
  --violet-deep: #6e4fc2;
  --paper: #faf6ee;
  --paper-2: #f2ecdf;
  --paper-ink: #17191e;
  --paper-body: #3c4149;
  --paper-muted: #737883;
  --paper-line: #e5ddcd;
  --seal: linear-gradient(100deg, #98621c 0%, #0c7c68 100%);
  --bright: linear-gradient(95deg, #f4b842 0%, #c0a2f5 50%, #3ad8c2 100%);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 8% -6%, #f4b84214, transparent 60%),
    radial-gradient(56rem 40rem at 96% 4%, #3ad8c212, transparent 60%),
    var(--night);
  color: var(--soft);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

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

.shell {
  width: min(1200px, 100% - 2 * clamp(20px, 4vw, 40px));
  margin-inline: auto;
}

.section-space {
  padding-block: clamp(80px, 11vw, 140px);
}

.section-space.flush-top {
  padding-top: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 8px 14px;
  border-radius: 10px;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.tint {
  background: var(--bright);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.dim {
  color: #ffffff6b;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}

.eyebrow.rule::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Header --------------------------------------------------------------- */
.site-header {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.nav a {
  color: var(--soft);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.nav .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
}

.nav .cta:hover {
  border-color: #ffffff4d;
}

/* Buttons and store badges ---------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--seal);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 14px 34px -14px #3ad8c266;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -14px #3ad8c288;
}

.arrow {
  width: 16px;
  height: 16px;
  flex: none;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.store small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.store strong {
  font-size: 16px;
  font-weight: 650;
}

.store[aria-disabled="true"] {
  pointer-events: none;
}

/* Hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
}

.hero h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(52px, 6.3vw, 92px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.hero h1 .serif {
  display: block;
  margin-top: 0.08em;
  font-size: 0.88em;
  line-height: 1.04;
}

.hero .lede {
  max-width: 34rem;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.soon {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.soon strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.promise {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.promise svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

/* The treaty document (hero visual) */
.hero-visual {
  position: relative;
  padding: 8px 0 0;
  /* The hover tilt. landing.js sets these while a mouse is over the treaty;
     at rest (and without it) they leave everything as drawn. */
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --drift-x: 0px;
  --drift-y: 0px;
  --glare-x: 50%;
  --glare-y: 0%;
  --glare: 0;
}

.doc {
  --turn: -1.6deg;
  position: relative;
  background:
    radial-gradient(
      380px circle at var(--glare-x) var(--glare-y),
      rgb(255 255 255 / calc(var(--glare) * 0.8)),
      transparent 70%
    ),
    var(--paper);
  color: var(--paper-body);
  border-radius: 26px;
  padding: 26px;
  transform: perspective(1400px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    rotate(var(--turn));
  box-shadow:
    0 50px 100px -40px #000000e6,
    0 0 0 1px #ffffff1f,
    inset 0 1px 0 #ffffff;
}

.doc::before {
  /* A second sheet behind, so it reads as a document, not a card. */
  content: "";
  position: absolute;
  inset: 8px -6px -8px 6px;
  z-index: -1;
  border-radius: 26px;
  background: #e9e1d0;
  transform: rotate(2.2deg);
  opacity: 0.22;
}

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

.doc-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

.doc-kicker .seal {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--seal);
  display: grid;
  place-items: center;
  color: #fff;
}

.doc-kicker .seal svg {
  width: 14px;
  height: 14px;
}

.people {
  display: flex;
}

.person {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--paper);
}

.person.parent {
  background: var(--amber-deep);
}

.person.teen {
  background: var(--teal-deep);
  margin-left: -7px;
}

.doc h2 {
  margin: 0 0 18px;
  color: var(--paper-ink);
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.doc h2 .serif {
  color: var(--paper-muted);
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--paper-2);
}

.stage-tabs button {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--paper-muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 9px 6px;
  cursor: pointer;
}

.stage-tabs button span {
  font-family: var(--mono);
  font-size: 10.5px;
  margin-right: 6px;
  opacity: 0.7;
}

.stage-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--paper-ink);
  box-shadow: 0 1px 2px #0000001a;
}

.stage[hidden] {
  display: none;
}

.stage {
  min-height: 300px;
}

.sealed {
  display: grid;
  gap: 12px;
}

.side {
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-left: 4px solid;
}

.side.parent {
  border-left-color: var(--amber-deep);
}

.side.teen {
  border-left-color: var(--teal-deep);
}

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

.side-top strong {
  color: var(--paper-ink);
  font-size: 15px;
}

.lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--paper-muted);
}

.lock svg {
  width: 13px;
  height: 13px;
}

.blur {
  display: grid;
  gap: 7px;
}

.blur i {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: var(--paper-2);
}

.blur i:nth-child(1) {
  width: 92%;
}

.blur i:nth-child(2) {
  width: 74%;
}

.blur i:nth-child(3) {
  width: 58%;
}

.only {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--paper-muted);
}

.doc-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--paper-line);
  font-size: 12.5px;
  color: var(--paper-muted);
}

.doc-foot svg {
  width: 15px;
  height: 15px;
  color: var(--violet-deep);
  flex: none;
}

.flag {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #f1ebfd;
  border: 1px solid #ddd0fa;
}

.flag-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

.flag-title svg {
  width: 14px;
  height: 14px;
}

.positions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--paper-body);
}

.positions b {
  display: block;
  color: var(--paper-ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.positions .to {
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.positions .middle {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd0fa;
}

.positions .middle b {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--violet-deep);
}

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

.clauses li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 11px 2px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--paper-ink);
}

.clauses li:last-child {
  border-bottom: 0;
}

.chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.chip.parent {
  background: #f8ead2;
  color: #7a4d14;
}

.chip.teen {
  background: #d6f2ec;
  color: #0a6a59;
}

.chip.both {
  background: #ebe3fc;
  color: #5b3fae;
}

.signed {
  display: grid;
  gap: 16px;
}

.in-effect {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(100deg, #fbf2df 0%, #e4f5f0 100%);
}

.in-effect .check {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #fff;
  flex: none;
}

.in-effect .check svg {
  width: 18px;
  height: 18px;
}

.in-effect strong {
  display: block;
  color: var(--paper-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.in-effect span {
  font-size: 13px;
  color: var(--paper-muted);
}

.signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.signature {
  padding: 8px 2px 0;
}

.signature .ink {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1.1;
  color: var(--paper-ink);
}

.signature.parent .ink {
  color: #6d4512;
}

.signature.teen .ink {
  color: #08594b;
}

.signature .line {
  height: 1px;
  margin: 4px 0 8px;
  background: var(--paper-ink);
  opacity: 0.35;
}

.signature small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--paper-muted);
}

.signature small svg {
  width: 13px;
  height: 13px;
}

.terms-count {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.terms-count div {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--paper-line);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--paper-muted);
}

.terms-count b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--paper-ink);
}

/* The referee's note, floating over the document. */
.ref-note {
  position: relative;
  z-index: 1;
  margin: -20px 0 0 -40px;
  width: min(300px, 82%);
  padding: 16px 18px;
  border-radius: 18px;
  background: #151b22f0;
  border: 1px solid var(--line-strong);
  color: var(--soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -24px #000000d9;
  --turn: 1.2deg;
  transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(var(--turn));
  font-size: 13px;
  line-height: 1.45;
}

.ref-note .who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.ref-note .who svg {
  width: 14px;
  height: 14px;
}

.ref-note .q {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 600;
}

.ref-note .a {
  margin: 0;
}

.ref-note .a em {
  font-family: var(--serif);
  color: var(--text);
}

.visual-caption {
  margin: 14px 0 0;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff52;
}

/* Topics strip ---------------------------------------------------------- */
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  font-size: 14px;
  color: var(--soft);
}

.strip .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.strip svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

/* Section headings ----------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 72px);
}

.section-head h2,
.split-head h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-head h2 .serif,
.split-head h2 .serif {
  display: block;
}

.section-head p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.split-head p {
  max-width: 300px;
  margin: 0 0 10px;
  color: var(--muted);
  text-align: right;
}

/* 01 / Where a treaty comes from ----------------------------------------- */
.origin {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
}

.panel {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--night-2) 100%);
  border: 1px solid var(--line);
}

.merge {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  overflow: hidden;
}

.wants {
  border-radius: 18px;
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 3px solid;
}

.wants.parent {
  border-top-color: var(--amber);
}

.wants.teen {
  border-top-color: var(--teal);
}

.wants h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
}

.wants .lock {
  color: var(--muted);
  margin-bottom: 12px;
}

.wants ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.45;
}

.wants li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.wants li::before {
  content: "“";
  font-family: var(--serif);
  color: var(--muted);
  margin-right: 2px;
}

.wants li::after {
  content: "”";
  font-family: var(--serif);
  color: var(--muted);
}

.merge-arrow {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--violet);
}

.merge-arrow svg {
  width: 100%;
  max-width: 420px;
  height: 46px;
}

.drafted {
  grid-column: 1 / -1;
  border-radius: 18px;
  padding: 18px 20px;
  background: var(--paper);
  color: var(--paper-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.drafted small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 4px;
}

.drafted p {
  margin: 0;
  color: var(--paper-ink);
  font-size: 15px;
}

.drafted .time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--violet-deep);
  white-space: nowrap;
}

.steps {
  padding: clamp(24px, 3vw, 36px);
}

.steps-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--muted);
}

.steps-kicker svg {
  width: 16px;
  height: 16px;
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 14px 0;
}

.steps .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.steps li:first-child .n {
  background: var(--seal);
  color: #fff;
  border-color: transparent;
}

.steps h3 {
  margin: 3px 0 6px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* 02 / A mediator, not a monitor --------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 26px;
  min-height: 420px;
}

.feature .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.feature .icon svg {
  width: 19px;
  height: 19px;
}

.feature h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.03em;
}

.feature > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
}

.mini {
  margin-top: auto;
  border-radius: 16px;
  background: var(--night);
  border: 1px solid var(--line);
  padding: 14px;
  font-size: 13px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.mini-row:last-child {
  border-bottom: 0;
}

.mini-row .lock {
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot.parent {
  background: var(--amber);
}

.dot.teen {
  background: var(--teal);
}

.dot.both {
  background: var(--violet);
}

.bubble {
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 8px;
  line-height: 1.45;
}

.bubble.q {
  background: var(--panel-2);
  color: var(--text);
  margin-left: 18%;
}

.bubble.a {
  background: #c0a2f51f;
  color: var(--soft);
  margin-right: 10%;
}

.bubble.a small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 4px;
}

.balance {
  display: grid;
  gap: 10px;
}

.balance-row {
  display: grid;
  grid-template-columns: 70px 1fr 18px;
  align-items: center;
  gap: 10px;
  color: var(--soft);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.fill.both {
  background: var(--violet);
}

.fill.parent {
  background: var(--amber);
}

.fill.teen {
  background: var(--teal);
}

.balance-row b {
  color: var(--text);
  text-align: right;
}

.note-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 22px 26px;
}

.note-band .left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.note-band .left svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  flex: none;
}

.note-band strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.note-band span {
  font-size: 13.5px;
  color: var(--muted);
}

.note-band .serif {
  font-size: 22px;
  color: var(--soft);
  white-space: nowrap;
}

/* 03 / Inside the app -------------------------------------------------- */
.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1060px;
  margin-inline: auto;
}

.tour-steps {
  display: grid;
  gap: 8px;
}

.tour-steps button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  text-align: left;
  font: inherit;
  color: var(--soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.tour-steps button:hover {
  background: #ffffff08;
}

.tour-steps .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 3px;
}

.tour-steps strong {
  display: block;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
}

.tour-steps .more {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.tour-steps button[aria-selected="true"] {
  background: var(--panel);
  border-color: var(--line-strong);
}

.tour-steps button[aria-selected="true"] .n {
  color: var(--teal);
}

.tour-steps button[aria-selected="true"] .more {
  display: block;
}

.tour-device {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.tour-phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 400 / 870;
  border-radius: 48px;
  background: #07090c;
  border: 1px solid #ffffff2b;
  box-shadow:
    0 50px 90px -36px #000000e6,
    0 0 120px -30px #c0a2f540,
    inset 0 0 0 1px #00000080;
}

.tour-screen {
  position: absolute;
  inset: 9px;
  overflow: hidden;
  border-radius: 39px;
  background: var(--paper);
}

.tour-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-screen img[hidden] {
  display: none;
}

.tour-note {
  font-size: 12px;
  color: var(--muted);
}

/* 04 / Questions ------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 550;
}

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

.plus {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: var(--soft);
  transition: rotate 0.25s;
}

.plus::after {
  rotate: 90deg;
}

details[open] .plus::after {
  rotate: 0deg;
}

.faq-list details p {
  margin: -4px 4px 24px;
  max-width: 700px;
  color: var(--muted);
}

.faq-list details a {
  color: var(--teal);
}

.faq-more {
  margin: 30px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.faq-more a {
  color: var(--text);
}

/* Get Treaty ----------------------------------------------------------- */
.download {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 32px;
  padding: clamp(56px, 8vw, 96px) 24px;
  background:
    radial-gradient(40rem 20rem at 0% 0%, #f4b84233, transparent 60%),
    radial-gradient(40rem 20rem at 100% 100%, #3ad8c22e, transparent 60%),
    var(--paper);
  color: var(--paper-body);
}

.download img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 26px;
  box-shadow: 0 16px 30px -12px #0000004d;
}

.download .eyebrow {
  color: var(--violet-deep);
}

.download h2 {
  margin: 0 0 18px;
  color: var(--paper-ink);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.045em;
}

.download h2 .serif {
  display: block;
  color: var(--violet-deep);
}

.download > p {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 17px;
}

.download .stores {
  justify-content: center;
}

.download .store {
  border-color: #17191e2e;
  color: var(--paper-ink);
  background: #ffffffa6;
}

.download .store small {
  color: var(--paper-muted);
}

.download .fine {
  margin: 26px auto 6px;
  font-size: 13px;
  color: var(--paper-muted);
}

.download .fine a {
  color: var(--paper-ink);
}

/* Footer --------------------------------------------------------------- */
.site-footer {
  padding-block: 56px 36px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.footer-top .brand {
  font-size: 28px;
}

.footer-top .tagline {
  margin-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-top a.top {
  color: var(--soft);
  text-decoration: none;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-bottom a {
  color: var(--soft);
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-top a.top:hover {
  color: var(--text);
}

/* Motion: only when the person has not asked for less. ----------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: arrive 0.8s both;
  }

  .hero-visual {
    animation: arrive 1s 0.12s both;
  }

  .reveal.is-ready {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.7s,
      transform 0.7s;
  }

  .reveal.is-ready.is-visible {
    opacity: 1;
    transform: none;
  }

  .stage.enter,
  .tour-screen img.enter {
    animation: panel-in 0.3s ease-out;
  }
}

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

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0.35;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Narrower screens ----------------------------------------------------- */
@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .origin {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .strip ul {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav a:not(.cta) {
    display: none;
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 64px);
  }

  .doc {
    --turn: 0deg;
    padding: 20px;
  }

  .doc::before {
    display: none;
  }

  .ref-note {
    width: auto;
    margin: -14px 12px 0;
    --turn: 0deg;
  }

  .visual-caption {
    margin-top: 16px;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .visual-caption {
    text-align: center;
  }

  .merge {
    grid-template-columns: 1fr;
  }

  .merge-arrow svg {
    height: 34px;
  }

  .drafted {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-head p {
    text-align: left;
  }

  .note-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .tour {
    grid-template-columns: 1fr;
  }

  .tour-device {
    order: -1;
  }

  .signatures {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .signature .ink {
    font-size: 28px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top .tagline {
    display: block;
    margin: 6px 0 0;
  }
}
