/*
 * getistar.com (ACT-197). BD-079 palette only; checked by tools/checks/website.ts (every colour here is a palette
 * colour, golden yellow, terracotta and the border colour are never text, every text pair is at least 4.5:1).
 * System fonts (as in the app), nothing loaded from outside. Sizes in rem so text works at 200% zoom.
 * Motion is subtle and off under prefers-reduced-motion.
 */
:root {
  --bg: #FAF7F2;          /* warm white: background */
  --ink: #000000;         /* black: text and the main button */
  --lilac: #D9CDF0;       /* calm highlights */
  --gold: #F5B42A;        /* golden yellow: fill only, never text */
  --gold-tint: #FDEFD0;   /* behind words, with brown text */
  --brown: #6E4400;       /* text on the gold tint */
  --grey: #5E5A57;        /* warm grey: secondary text */
  --line: #C9C1D6;        /* borders */
  --white: #FFFFFF;
  --radius: 1.25rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 0.25rem; }
main:focus { outline: none; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 46rem); }
.center { text-align: center; }

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

.skip {
  position: absolute; left: 1rem; top: -10rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; border-radius: 0.5rem;
}
.skip:focus { top: 1rem; }

.preview-banner {
  margin: 0; padding: 0.6rem 1.25rem; text-align: center; font-size: 0.95rem;
  background: var(--gold-tint); color: var(--brown);
}

/* Header with the one sticky "Reserve a founding place" button */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; padding-block: 0.5rem; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); }
@media (max-height: 30rem) { .site-header { position: static; } }

/* Buttons: at least 48px high */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--ink); cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--lilac); }
.btn[disabled] { background: var(--white); color: var(--grey); border: 2px dashed var(--grey); cursor: not-allowed; }
.btn-sticky { padding-inline: 1.1rem; }

.eyebrow { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-bottom: 0.75rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--grey); max-width: 38rem; }
.note { color: var(--grey); font-size: 0.95rem; }

section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 2rem + 3vw, 5rem); }
.orbits { position: absolute; z-index: 0; width: min(56rem, 120vw); height: auto; right: -18rem; top: -10rem; opacity: 0.85; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
}

/* Bento tiles: a change, then the re-plan */
.bento-section { padding-top: 0; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tile { border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile p { margin: 0; }
.tile-when { font-size: 0.9rem; font-weight: 700; color: var(--grey); }
.tile-change { font-size: 1.1rem; margin-top: 0.4rem !important; }
.tile-arrow { margin: 0.8rem 0 !important; }
.tile-arrow svg { display: block; }
.tile-plan { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.tile-white { background: var(--white); }
.tile-lilac { background: var(--lilac); border-color: var(--lilac); }
.tile-lilac .tile-when { color: var(--ink); }
.tile-gold { background: var(--gold-tint); border-color: var(--gold-tint); color: var(--brown); }
.tile-gold .tile-when, .tile-gold .tile-plan, .tile-gold .tile-change { color: var(--brown); }
@media (min-width: 48rem) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile-wide { grid-column: span 2; }
}

/* Intro */
.intro { padding-block: 1rem 2rem; }
.intro-line { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; text-align: center; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.step p { color: var(--grey); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 800; margin-bottom: 1rem;
}
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* A Tuesday with I-STAR */
.tuesday { background: var(--white); border-block: 1px solid var(--line); }
.story { font-size: 1.15rem; max-width: 46rem; }
.phones { display: grid; gap: 2.5rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }

/* Phone frames: HTML illustrations of planned screens, invented family */
.phone-figure { margin: 0; max-width: 20rem; margin-inline: auto; width: 100%; }
.phone { background: var(--ink); border-radius: 2.6rem; padding: 0.7rem; box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.35); }
.phone-screen { background: var(--bg); border-radius: 2rem; padding: 1rem 1rem 1.4rem; min-height: 26rem; }
.phone-status { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--grey); margin-bottom: 1rem; }
.phone-screen-name { text-align: right; }
.ps-title { font-size: 1.15rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.8rem; }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ps-card, .ps-option { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: 0.75rem; display: grid; gap: 0.3rem; font-size: 0.92rem; line-height: 1.35; }
.ps-card { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.6rem; }
.ps-card .chip, .ps-card .ps-because { grid-column: 2; }
.ps-card-alert { border: 2px solid var(--gold); }
.ps-time { font-weight: 800; }
.ps-what { font-weight: 700; }
.ps-because { color: var(--grey); }
.ps-option { min-height: 9rem; align-content: start; }
.ps-btn { display: inline-block; justify-self: start; margin-top: 0.3rem; padding: 0.35rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.ps-btn-dark { background: var(--ink); color: var(--white); }
.ps-bubble { background: var(--lilac); border-radius: 1rem 1rem 1rem 0.25rem; padding: 0.85rem; font-size: 0.92rem; line-height: 1.4; }
.ps-done { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--grey); margin-top: 1.2rem; }
.phone-figure figcaption { margin-top: 0.9rem; font-size: 0.88rem; color: var(--grey); line-height: 1.45; }
.fig-screen { font-weight: 700; color: var(--ink); }

/* Status chips: word, shape and colour together (B1.4 A.1) */
.chip { display: inline-flex; align-items: center; gap: 0.3rem; justify-self: start; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.chip svg { flex: none; }
.chip-planned { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.chip-at-risk { background: var(--gold-tint); color: var(--brown); }
.chip-confirmed { background: var(--lilac); color: var(--ink); }

/* Cards and lists */
.card { border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.card-lilac { background: var(--lilac); }
.not-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.not-list li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.25rem 1rem 3.25rem; }
.not-list li::before {
  content: ""; position: absolute; left: 1.25rem; top: 1.35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid var(--ink); background: linear-gradient(135deg, transparent 45%, var(--ink) 45%, var(--ink) 58%, transparent 58%);
}

/* Price */
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.price-big { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); font-weight: 700; }
.price-big span:not(.price-or) { font-size: 1.5em; font-weight: 800; box-shadow: inset 0 -0.3em 0 var(--gold-tint); }
.price-or { color: var(--grey); font-weight: 400; }

/* Founding families and the short notice (text A) */
.founding { background: var(--lilac); }
.founding-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .founding-grid { grid-template-columns: 1.4fr 1fr; } }
.notice { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); font-size: 0.98rem; }
.notice h3 { font-size: 1.05rem; }
.notice-inline { margin-top: 2rem; }

/* Questions */
.faq { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.5rem; }
.faq dt { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.4rem; }
.faq dd { margin: 0; }

/* Legal pages */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.legal p { max-width: 44rem; }
.pdf-link { margin-bottom: 2rem; }
.placeholder { background: var(--gold-tint); color: var(--brown); padding: 0.05rem 0.3rem; border-radius: 0.3rem; font-weight: 700; }

/* Check and pay */
main > .wrap.narrow { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.summary { margin: 2rem 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 1.5rem; }
.sum-row { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: 0; }
.summary dt { font-weight: 800; margin-bottom: 0.25rem; }
.summary dd { margin: 0; }
.pay-box { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.agree { display: flex; gap: 0.75rem; align-items: center; font-weight: 700; }
.agree input { width: 1.5rem; height: 1.5rem; accent-color: var(--ink); flex: none; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.opens-soon { margin: 1rem 0 0; color: var(--brown); background: var(--gold-tint); border-radius: 0.6rem; padding: 0.6rem 0.9rem; font-weight: 700; }

/* Holding page */
.holding { position: relative; overflow: hidden; min-height: 62vh; display: grid; align-items: center; }
.holding .orbits { right: 50%; transform: translateX(50%); top: -6rem; opacity: 0.6; }
.holding .wrap { position: relative; z-index: 1; }
.holding .lede { margin-inline: auto; }
.holding-mail { font-size: 1.2rem; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; background: var(--bg); }
.footer-legal { margin-top: 1rem; font-size: 0.9rem; color: var(--grey); max-width: 60rem; }

/* Motion: subtle, and only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-visual { animation: rise 0.7s ease-out both; }
  .hero-visual { animation-delay: 0.12s; }
  .btn { transition: background-color 0.15s ease, color 0.15s ease; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .skip, .orbits { display: none; }
}
