/* tipi · waitlist site
   Palette checked against WCAG 2.1 AA (4.5:1 for text on its background). */
:root {
  --bg: #F6EDE3;
  --bg-2: #FBF6F0;
  --card: #FFFFFF;
  --ink: #22344F;          /* headings: 11.3:1 on bg */
  --text: #43505B;         /* body: 7.4:1 on bg */
  --muted: #5E6A73;        /* secondary: 4.8:1 on bg, 5.6:1 on white */
  --sage: #4F7466;         /* small labels: 4.5:1 on bg */
  --sage-soft: #DCEAE3;
  --accent: #B8582A;       /* buttons: white text 4.7:1 */
  --accent-hover: #9E4A22;
  --accent-text: #A9501F;  /* accent as text: 4.7:1 on bg */
  --highlight: #EDA37A;    /* brush behind dark ink only */
  --line: #E6DACD;
  --stripe-mint: #BFE0D6;
  --stripe-rose: #EDC3C9;
  --stripe-peach: #F9C197;
  --stripe-sky: #C0DCE0;
  --focus: #1D5FD1;
  --error: #A3321F;
  --radius: 22px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70rem 30rem at 12% -8%, #FBE3D2 0%, rgba(251,227,210,0) 60%),
    radial-gradient(56rem 26rem at 100% 0%, #E3EFE8 0%, rgba(227,239,232,0) 55%),
    var(--bg);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; 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: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; color: #fff; }

/* ---------- header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand img { height: 3.1rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a.link { font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.nav a.link:hover { text-decoration: underline; }
.a11y-btn {
  display: inline-flex; align-items: center; gap: .45rem; font: 500 .85rem var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .8rem .45rem .5rem; cursor: pointer;
}
.a11y-btn svg { width: 1.35rem; height: 1.35rem; }
.a11y-btn:hover { border-color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; cursor: pointer;
  font: 600 1.05rem/1.2 var(--sans); color: #fff; background: var(--accent); border: 0; border-radius: 14px;
  padding: 1rem 1.4rem; box-shadow: 0 .5rem 1.25rem rgba(184,88,42,.28); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: default; }
.btn.small { font-size: .9rem; padding: .6rem 1rem; border-radius: 999px; box-shadow: none; }
.btn.block { width: 100%; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: start; padding-block: .5rem 3.5rem; }
.hero > * { min-width: 0; }
.tribe { width: min(100%, 25rem); margin: 0 0 .75rem -.4rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--sage); margin: 0; }
h1 { font: 700 clamp(2.5rem, 7.2vw, 4.6rem)/1.0 var(--serif); letter-spacing: -.015em; color: var(--ink); margin: .6rem 0 .9rem; text-wrap: balance; }
.brush { position: relative; white-space: nowrap; z-index: 0; }
.brush::before {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.16em; top: .2em; bottom: .02em;
  background: var(--highlight); border-radius: .2em .5em .28em .44em; transform: rotate(-1.2deg);
}
.pillars { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: 0 0 1rem; padding: 0; list-style: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pillars li + li::before { content: "·"; color: var(--accent-text); margin-right: .7rem; }
.lead { font-size: 1.08rem; max-width: 34ch; margin: 0 0 1.4rem; }
.lead strong { color: var(--ink); font-weight: 600; }

.proof {
  display: grid; grid-template-columns: 4.6rem 1fr; gap: .8rem; align-items: center; max-width: 28rem;
  background: rgba(255,255,255,.92); border-radius: 18px; padding: .6rem .9rem .6rem .6rem;
  box-shadow: 0 .6rem 1.6rem rgba(60,50,40,.09);
}
.proof img { width: 4.6rem; height: 4.6rem; border-radius: 12px; object-fit: cover; }
.proof .top { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.proof .top strong { color: var(--ink); }
.proof .title { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.proof .msg { font-size: .95rem; }
.proof-cap { font-size: .8rem; color: var(--muted); margin: .5rem 0 0 .2rem; }

/* ---------- form card ---------- */
.formcard { position: relative; overflow: hidden; background: var(--card); border-radius: 26px; padding: 1.9rem 1.6rem 1.4rem; box-shadow: 0 1.4rem 3.4rem rgba(60,50,40,.13); scroll-margin-top: 1rem; }
.formcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: linear-gradient(90deg, var(--stripe-mint) 0 25%, var(--stripe-rose) 25% 50%, var(--stripe-peach) 50% 75%, var(--stripe-sky) 75% 100%); }
.formcard h2 { font: 700 1.7rem/1.12 var(--serif); color: var(--ink); margin: 0 0 .3rem; }
.formcard .sub { font-size: .92rem; color: var(--muted); margin: 0 0 1rem; }
.badge-line { display: flex; gap: .6rem; align-items: center; font-size: .86rem; font-weight: 500; color: var(--ink); background: var(--bg-2); border-radius: 12px; padding: .6rem .8rem; margin: 0 0 1.1rem; }
.badge-line svg { flex: none; width: 1.4rem; height: 1.4rem; }
form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label, legend { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--accent-text); }
input[type=text], input[type=tel] {
  font: 400 1rem var(--sans); color: var(--ink); background: #FFFCF9; width: 100%;
  border: 1.5px solid #CDBFB1; border-radius: 12px; padding: .85rem .9rem;
}
input::placeholder { color: #7B858C; }
input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--error); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; cursor: pointer; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid #CDBFB1; background: #FFFCF9; font-size: .92rem; font-weight: 500; color: var(--text); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.error-box { font-size: .9rem; color: var(--error); background: #FBEAE6; border-radius: 10px; padding: .7rem .85rem; }
.consent { font-size: .74rem; line-height: 1.5; color: var(--muted); margin: .1rem 0 0; }
.consent a { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.thanks { text-align: center; display: grid; gap: .7rem; padding: .5rem 0; }
.thanks h2 { font-size: 2rem; }
.share { display: flex; gap: .5rem; margin-top: .3rem; }
.share input { flex: 1; font-size: .9rem; }
.share button { font: 600 .9rem var(--sans); border: 0; border-radius: 12px; background: var(--ink); color: #fff; padding: 0 1rem; cursor: pointer; }

/* ---------- sections ---------- */
section.block { padding-block: 3.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h2.section { font: 700 clamp(1.8rem, 4.2vw, 2.5rem)/1.12 var(--serif); color: var(--ink); margin: 0 0 .6rem; text-wrap: balance; letter-spacing: -.01em; }
.section-sub { max-width: 44ch; margin: 0 0 2rem; }

.how { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.how figure { margin: 0; position: relative; }
.how figure img { border-radius: 24px; box-shadow: 0 1.2rem 3rem rgba(60,50,40,.16); width: 100%; max-width: 24rem; aspect-ratio: 506 / 700; object-fit: cover; object-position: 50% 62%; }
.how figcaption { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.steps .num { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font: 700 1.25rem var(--serif); color: var(--ink); }
.steps li:nth-child(1) .num { background: var(--stripe-mint); }
.steps li:nth-child(2) .num { background: var(--stripe-rose); }
.steps li:nth-child(3) .num { background: var(--stripe-peach); }
.steps h3 { margin: .15rem 0 .2rem; font-size: 1.1rem; color: var(--ink); }
.steps p { margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value { background: var(--card); border-radius: var(--radius); padding: 1.5rem 1.4rem; position: relative; overflow: hidden; }
.value::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.value:nth-child(1)::before { background: var(--stripe-rose); }
.value:nth-child(2)::before { background: var(--stripe-mint); }
.value:nth-child(3)::before { background: var(--stripe-peach); }
.value .kicker { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.value h3 { font: 700 1.35rem/1.2 var(--serif); color: var(--ink); margin: .35rem 0 .4rem; }
.value p { margin: 0; font-size: .96rem; }
.value svg { width: 2.2rem; height: 2.2rem; margin-bottom: .6rem; }

.founding { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; background: var(--ink); color: #E9EEF2; border-radius: 28px; padding: 2.4rem; }
.founding h2.section { color: #fff; }
.founding .section-sub { color: #D5DEE5; margin-bottom: 1.2rem; }
.seal { width: 11rem; height: 11rem; border-radius: 50%; background: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 0 16px rgba(255,255,255,.04); }
.seal img { width: 6.4rem; }
.seal .star { position: absolute; top: .9rem; color: #E9B949; font-size: 1.4rem; line-height: 1; }
.perks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .8rem; }
.perks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; }
.perks svg { width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.perks strong { color: #fff; }
.founding .btn { background: #fff; color: var(--ink); box-shadow: none; }
.founding .btn:hover { background: var(--stripe-peach); color: var(--ink); }

.faq { display: grid; gap: .7rem; max-width: 46rem; }
.faq details { background: var(--card); border-radius: 16px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; }

.closing { text-align: center; padding-block: 3.5rem 5rem; }
.closing .tribe { margin: 0 auto .8rem; width: min(80%, 20rem); }
.closing h2.section { margin-bottom: 1.4rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 6rem; font-size: .88rem; color: var(--muted); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin: 0; padding: 0; }
.site-footer a { color: var(--ink); }
.site-footer img { height: 2.4rem; width: auto; }

/* ---------- sticky mobile CTA ---------- */
.sticky { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 20; }

/* ---------- legal pages ---------- */
.doc { max-width: 46rem; padding-block: 1rem 4rem; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.doc h2 { font: 700 1.4rem/1.25 var(--serif); color: var(--ink); margin: 2.2rem 0 .6rem; }
.doc h3 { font-size: 1.05rem; color: var(--ink); margin: 1.4rem 0 .4rem; }
.doc p, .doc li { max-width: 68ch; }
.doc .updated { color: var(--muted); font-size: .9rem; }
.doc .note { background: var(--card); border-left: 4px solid var(--stripe-peach); border-radius: 12px; padding: .9rem 1.1rem; }

/* ---------- accessibility menu ---------- */
.a11y-panel {
  position: fixed; z-index: 60; right: 1rem; top: 4.8rem; width: min(22rem, calc(100vw - 2rem));
  background: #fff; color: var(--ink); border-radius: 18px; padding: 1.1rem; box-shadow: 0 1.4rem 3.4rem rgba(20,30,40,.25); border: 1px solid var(--line);
}
.a11y-panel h2 { font: 700 1.2rem var(--serif); margin: 0 0 .8rem; display: flex; justify-content: space-between; align-items: center; }
.a11y-panel .close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); padding: .2rem .4rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button {
  font: 500 .85rem/1.25 var(--sans); color: var(--ink); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: .75rem .6rem; cursor: pointer; text-align: left; display: grid; gap: .3rem;
}
.a11y-grid button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y-grid button .ic { font-size: 1.1rem; }
.a11y-panel .foot { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; font-size: .82rem; }
.a11y-panel .reset { background: none; border: 0; color: var(--accent-text); font: 600 .85rem var(--sans); cursor: pointer; text-decoration: underline; }

/* accessibility modes */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-links a { text-decoration: underline !important; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable .btn, html.a11y-readable input, html.a11y-readable button { font-family: Verdana, Arial, sans-serif !important; letter-spacing: .01em; }
html.a11y-spacing body { line-height: 1.9; word-spacing: .12em; letter-spacing: .03em; }
html.a11y-contrast { --bg: #FFFFFF; --bg-2: #FFFFFF; --text: #000000; --muted: #1A1A1A; --ink: #000000; --sage: #0B3D2E; --accent: #7A2E0C; --accent-hover: #000; --accent-text: #7A2E0C; --line: #000000; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .formcard, html.a11y-contrast .value, html.a11y-contrast .faq details, html.a11y-contrast .proof { border: 2px solid #000; box-shadow: none; }
html.a11y-contrast .brush::before { background: #FFD27A; }
html.a11y-contrast .founding { background: #000; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- responsive ---------- */
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .how { grid-template-columns: 1fr; gap: 1.8rem; }
  .how figure img { max-width: 100%; aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; }
  .founding { grid-template-columns: 1fr; padding: 1.8rem 1.4rem; text-align: left; }
  .seal { width: 8rem; height: 8rem; }
  .seal img { width: 4.8rem; }
  .nav a.link { display: none; }
  .tribe { width: min(78%, 18.5rem); }
  .proof { grid-template-columns: 3.8rem 1fr; }
  .proof img { width: 3.8rem; height: 3.8rem; }
}
@media (min-width: 52.01rem) { .sticky { display: none !important; } }
@media (max-width: 26rem) { .a11y-btn .label { display: none; } .a11y-btn { padding: .45rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
