/* STYLST — the website's one stylesheet.
 *
 * The colour system (tmp/stylst-color-system.png): Berry Wine is the
 * signature, used selectively; Editorial Ink is the text; Porcelain is the
 * ground; Plum Smoke is secondary text; Berry Veil is the quiet surface. The
 * derived tones below are the mock-up's rules, borders and the dark card.
 *
 * ET Book is the display face, as in the app; Jost is the text. Both are
 * served from here, from nowhere else. */

@font-face { font-family: "ET Book"; src: url("fonts/ETBook-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ET Book"; src: url("fonts/ETBook-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "ET Book"; src: url("fonts/ETBook-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "ET Book"; src: url("fonts/ETBook-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-400-Book.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-400-BookItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-500-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --berry: #6C1D3B;
  --berry-deep: #85284C;
  --ink: #20191D;
  --porcelain: #F7F5F3;
  --white: #FFFFFF;
  --plum: #746A70;
  --veil: #EFE9EC;
  --veil-deep: #E8E0E4;
  --body: #4A4247;
  --rule: #E4DEE1;
  --rule-strong: #DCD3D8;
  --rule-soft: #ECE6E9;
  --rose: #D9B8C6;
  --mist: #B5ABB0;
  --mist-soft: #C4BBC0;
  --dark: #20191D;
  --dark-card: #2A2126;
  --dark-rule: #3A2F35;
  --dark-foot: #33292E;
  --serif: "ET Book", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--berry); }
h1, h2, h3, .youre-in, .demo-q, .quote, .sign, .big, .count { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }
input, button { font: inherit; }
input::placeholder { color: var(--plum); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.berry { color: var(--berry); }
.plum { color: var(--plum); }
.rose { color: var(--rose); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row.gap { justify-content: flex-start; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 620px; }
.problem-line { color: var(--berry); font-size: 14px; flex-basis: 100%; }

.wordmark { font-family: var(--serif); letter-spacing: 0.32em; font-size: 24px; display: inline-block; }
.wordmark.small { font-size: 20px; color: var(--porcelain); }
footer .wordmark.small { color: var(--porcelain); }

/* ------------------------------------------------------------ buttons */
button, .pill {
  border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  background: var(--berry); color: var(--white); font-weight: 500; letter-spacing: 0.04em;
  transition: background 160ms ease, transform 160ms ease;
}
button:hover, .pill:hover { background: var(--ink); color: var(--white); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: wait; }
button.dark { background: var(--ink); }
button.dark:hover { background: var(--berry); }
button.berry { background: var(--berry); }
button.berry:hover { background: var(--berry-deep); }
button.linkish { background: none; color: var(--plum); padding: 0; letter-spacing: 0; font-weight: 400; }
button.linkish:hover { color: var(--berry); background: none; }
.pill.small { padding: 6px 14px; font-size: 13px; background: var(--ink); }

/* ----------------------------------------------------------- scarcity */
.scarcity {
  border-bottom: 1px solid var(--rule); padding: 10px 24px; display: flex; justify-content: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum);
}
.scarcity .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--berry); align-self: center; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.55; } }

/* --------------------------------------------------------------- header */
.top { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.top nav a { color: var(--plum); }
.top nav a.pill { color: var(--white); }
.top nav a:hover { color: var(--berry); }
.top nav a.pill:hover { color: var(--white); }
@media (max-width: 640px) { .top nav a:not(.pill) { display: none; } }

/* ----------------------------------------------------------------- hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.02em; }
.hero h1 em { color: var(--plum); }
.hero .lede { max-width: 480px; }
.hero-copy > .small { margin-top: -16px; }
.join-slot { max-width: 480px; }
.hero-form { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-form input[type=email] {
  flex: 1 1 220px; height: 52px; padding: 0 20px; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--white); font-size: 15px; color: var(--ink); outline: none;
}
.hero-form input:focus { border-color: var(--berry); }
.hero-form button { height: 52px; padding: 0 26px; font-size: 15px; }

.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 28px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.demo { box-shadow: 0 30px 60px -30px rgba(32, 25, 29, 0.16); max-width: 520px; width: 100%; justify-self: center; }
.demo-q { font-size: 34px; line-height: 1; }
.demo-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 150px 110px; gap: 8px; }
.swatch {
  border-radius: 14px; background: repeating-linear-gradient(135deg, var(--veil) 0 8px, var(--veil-deep) 8px 16px);
  display: flex; align-items: flex-end; padding: 10px; font-size: 10px; color: var(--plum);
}
.swatch.tall { grid-row: span 2; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--rule-soft); padding-top: 18px; font-size: 14px; color: var(--body); }
.yesno { display: flex; gap: 6px; }
.yesno span { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.yesno .no { border: 1px solid var(--rule); color: var(--plum); }
.yesno .yes { background: var(--ink); color: var(--porcelain); }
.quote { font-style: italic; font-size: 19px; line-height: 1.35; color: var(--plum); }

/* -------------------------------------------------------------- answers */
.answers { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.answers .wrap { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 56px; }
.answers-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: end; }
.answers h2, .features h2, .aday h2, .faq h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; }
.answers-head p { max-width: 440px; justify-self: end; }
.answers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--ink); }
.answer { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.answer .n { font-size: 11px; color: var(--berry); }
.answer .q { font-family: var(--serif); font-size: 30px; line-height: 1.05; }

/* -------------------------------------------------------------- problem */
.problem { max-width: 1040px; margin: 0 auto; padding: clamp(80px, 10vw, 144px) var(--gutter); display: flex; flex-direction: column; gap: 28px; text-align: center; align-items: center; }
.problem h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; }

/* ------------------------------------------------------------- features */
.features { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 128px); display: flex; flex-direction: column; gap: 48px; }
.features-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.features-head h2 { max-width: 640px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; }
.feature { background: var(--porcelain); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; transition: background 200ms ease; }
.feature:hover { background: var(--white); }
.feature .n { font-size: 11px; color: var(--berry); }
.feature h3 { font-size: 28px; line-height: 1.08; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--plum); }
.feature.dark { background: var(--dark); color: var(--porcelain); justify-content: space-between; gap: 24px; }
.feature.dark .n { color: var(--rose); }
.feature.dark .big { font-size: 28px; line-height: 1.1; color: var(--porcelain); }

/* ----------------------------------------------------------------- a day */
.aday { background: var(--veil); }
.aday .wrap { padding-top: clamp(80px, 10vw, 128px); padding-bottom: clamp(80px, 10vw, 128px); display: flex; flex-direction: column; gap: 56px; }
.aday h2 em { color: var(--plum); }
.day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.moment { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--ink); padding-top: 20px; }
.moment .time { font-size: 13px; }
.moment p { color: var(--body); }

/* -------------------------------------------------------------- founder */
.founder { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 128px) var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }
.portrait { display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--veil); }
.founder-copy { display: flex; flex-direction: column; gap: 28px; }
.founder h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; }
.founder p { font-size: 17px; line-height: 1.65; color: var(--body); }
.founder .sign { font-style: italic; font-size: 24px; color: var(--ink); }

/* ------------------------------------------------------------------ faq */
.faq { border-top: 1px solid var(--rule); }
.faq .wrap { padding-top: clamp(80px, 10vw, 128px); padding-bottom: clamp(80px, 10vw, 128px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign::before { content: "+"; }
.faq details[open] summary .sign::before { content: "–"; }
.faq details p { padding: 0 48px 24px 0; color: var(--plum); line-height: 1.6; }
.faq details[open] p { animation: reveal 220ms ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- join */
.join { background: var(--dark); color: var(--porcelain); }
.join .wrap { padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(80px, 10vw, 136px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(48px, 6vw, 96px); align-items: center; }
.join-copy { display: flex; flex-direction: column; gap: 28px; }
.join h2 { font-size: clamp(44px, 5.4vw, 80px); line-height: 0.98; }
.join h2 em { color: var(--mist); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; font-size: 14px; line-height: 1.5; color: var(--mist-soft); }
.perks div { display: flex; flex-direction: column; gap: 6px; }
.perks span { color: var(--porcelain); font-weight: 500; }
.join-card { background: var(--dark-card); border: 1px solid var(--dark-rule); border-radius: 28px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.join-card .join-slot { max-width: none; }
.meter { display: flex; flex-direction: column; gap: 12px; }
.meter .row { align-items: baseline; }
.meter .count { font-size: 44px; line-height: 1; }
.meter .eyebrow { color: var(--mist); letter-spacing: 0.08em; }
.meter .bar { height: 4px; border-radius: 2px; background: var(--dark-rule); overflow: hidden; }
.meter .bar div { height: 100%; background: var(--rose); transition: width 600ms ease; }
.join-form { display: flex; flex-direction: column; gap: 10px; }
.join-form input { height: 52px; padding: 0 20px; border: 1px solid var(--dark-rule); border-radius: 14px; background: var(--dark); font-size: 15px; color: var(--porcelain); outline: none; }
.join-form input:focus { border-color: var(--rose); }
.join-form button { height: 54px; border-radius: 14px; font-size: 15px; margin-top: 6px; }
.join-form button:hover { background: var(--berry-deep); }
.join-card .welcome { color: var(--porcelain); }
.join-card .welcome .founding { background: var(--dark); }
.join-card .welcome .share, .join-card .welcome .questions { border-color: var(--dark-rule); }
.join-card .welcome input { background: var(--dark); color: var(--porcelain); border-color: var(--dark-rule); }
.join-card .welcome .tick { background: var(--dark-rule); color: var(--porcelain); }
.join-card .welcome .radios label { border-color: var(--dark-rule); }

/* ------------------------------------------------------------ you're in */
.welcome { display: flex; flex-direction: column; gap: 24px; align-items: stretch; animation: reveal 300ms ease; }
.welcome .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--porcelain); display: flex; align-items: center; justify-content: center; font-size: 28px; align-self: center; }
.welcome .youre-in { font-size: 44px; text-align: center; line-height: 1.05; }
.welcome .number { text-align: center; font-size: 18px; color: var(--body); }
.join-card .welcome .number { color: var(--mist-soft); }
.welcome .founding { background: var(--ink); color: var(--porcelain); padding: 20px 24px; text-align: center; line-height: 1.5; }
.welcome .share, .welcome .questions { border: 1px solid var(--rule); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.welcome .share p, .welcome .questions > p { color: var(--body); }
.join-card .welcome .share p, .join-card .welcome .questions > p { color: var(--mist-soft); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row input { flex: 1 1 200px; height: 52px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 15px; min-width: 0; }
.share-row button { height: 52px; border-radius: 12px; padding: 0 22px; }
.welcome fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.welcome legend { padding: 0; margin-bottom: 10px; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radios label { border: 1px solid var(--rule-strong); border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--berry); }
.radios input { accent-color: var(--berry); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field small { color: var(--plum); font-size: 13px; }
.field input { height: 52px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 15px; }
.field input:focus { outline: none; border-color: var(--berry); }
.field .consent { line-height: 1.45; }
.welcome hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
.welcome .questions button { height: 54px; border-radius: 12px; }
.welcome .questions.done { text-align: center; }
.welcome .follow { text-align: center; color: var(--plum); }
.welcome .follow a { color: var(--berry); }

/* ------------------------------------------------------------- narrow */
main.narrow { max-width: 560px; margin: 0 auto; padding: 32px var(--gutter) 80px; display: flex; flex-direction: column; gap: 28px; align-items: stretch; }
main.narrow .wordmark { align-self: center; }
main.narrow .card { padding: clamp(24px, 4vw, 40px); }
main.narrow .card h2 { font-size: 36px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack button { height: 52px; border-radius: 12px; }

main.status { max-width: 560px; margin: 0 auto; padding: 80px var(--gutter); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
main.status h1 { font-size: 44px; }
main.status a { color: var(--berry); }

/* --------------------------------------------------------------- prose */
main.prose { max-width: 760px; margin: 0 auto; padding: 16px var(--gutter) 96px; color: var(--body); line-height: 1.65; }
main.prose h1 { font-size: clamp(36px, 4vw, 52px); color: var(--ink); margin: 0 0 24px; }
main.prose h2 { font-size: 30px; color: var(--ink); margin: 40px 0 12px; }
main.prose h3 { font-size: 22px; color: var(--ink); margin: 28px 0 8px; }
main.prose p { margin: 0 0 16px; }
main.prose ul, main.prose ol { padding-left: 24px; margin: 0 0 16px; }
main.prose a { color: var(--berry); text-decoration: underline; text-underline-offset: 2px; }
main.prose table { border-collapse: collapse; width: 100%; margin: 0 0 24px; font-size: 15px; }
main.prose th, main.prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }

/* ----------------------------------------------------------- dashboard */
main.dash { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 96px; display: flex; flex-direction: column; gap: 32px; }
main.dash h1 { font-size: clamp(36px, 4vw, 56px); }
main.dash h2 { font-size: 30px; margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.tile { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tile .big { font-size: 44px; line-height: 1; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.link-card { gap: 16px; }
.link-card .qr { width: 220px; height: 220px; border: 1px solid var(--rule); border-radius: 12px; align-self: flex-start; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.board { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.board table { border-collapse: collapse; width: 100%; font-size: 15px; }
.board th { text-align: left; font-weight: 500; color: var(--plum); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
.board td { padding: 10px 6px; border-bottom: 1px solid var(--rule-soft); }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board tr.me td { color: var(--berry); font-weight: 500; }

/* --------------------------------------------------------------- footer */
footer { background: var(--dark); color: var(--plum); border-top: 1px solid var(--dark-foot); }
footer, footer > * { font-size: 13px; }
footer { padding: 32px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 24px; }
footer a:hover { color: var(--rose); }

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