/* Barello — the marketing site's stylesheet (index, join, privacy).
   NOT the app (styles.css) and NOT the cocktail library (seo.css). The three share tokens
   and typefaces so they read as one thing; they do not share rules, because a change to a
   button on the landing page must not move a button in the app.

   Tokens are the app's, verbatim (app/styles.css :root). If those move, move these. */
:root {
  --room:   #12251c;   /* bottle green */
  --panel:  #0d1c15;   /* deeper: frames, cards */
  --ink:    #ece4d2;
  --ink-2:  #9db0a3;
  --ink-3:  #7f9384;
  --line:   #2a3f33;
  --brass:  #c9a227;   /* money, ornament, ACTIONS */
  --brass-lt: #e0bd48;
  --acid:   #ccff33;   /* live state and nothing else */
  --coral:  #e0745c;   /* past peak */
  --serif:  "Cormorant Garamond", Georgia, serif;
  --sans:   "Jost", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--room); color: var(--ink);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brass); }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.narrow { max-width: 720px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Masthead ───────────────────────────────────────────── */
.topbar { border-bottom: 1.5px solid var(--brass); }
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  /* Longhands on purpose: .wrap sets the horizontal padding and a `padding: 16px 0` shorthand
     here would win the tie and zero it. It did, once, on a phone. */
  padding-top: 16px; padding-bottom: 16px;
}
.wordmark {
  font-family: "Archivo", var(--sans); font-weight: 700; font-stretch: 70%;
  font-size: 22px; letter-spacing: .015em; text-transform: uppercase; line-height: 1;
  margin: 0; color: #f4eddc; text-decoration: none;
}
.mast-nav { display: flex; gap: 20px; align-items: center; }
.mast-nav a {
  font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .02em;
  color: var(--ink-2); text-decoration: none; padding: 8px 0; white-space: nowrap;
}
.mast-nav a:hover { color: var(--ink); }
.mast-nav a.signin-link { color: var(--brass); }
.mast-nav a.signin-link:hover { color: var(--brass-lt); }
.mast-nav a.nav-btn {
  background: var(--brass); color: var(--room); font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
}
.mast-nav a.nav-btn:hover { background: var(--brass-lt); color: var(--room); }
@media (max-width: 640px) {
  .mast-nav { gap: 14px; }
  .mast-nav a.hide-sm { display: none; }
}

/* ── Buttons and forms ──────────────────────────────────── */
.btn {
  display: inline-block; background: var(--brass); color: var(--room);
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; padding: 13px 28px; border-radius: 10px; border: 0; cursor: pointer;
  line-height: 1.3;
}
.btn:hover { background: var(--brass-lt); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--brass); border: 1px solid var(--brass); }
.btn.ghost:hover { color: var(--brass-lt); border-color: var(--brass-lt); background: transparent; }

.join-form { display: flex; gap: 10px; max-width: 460px; }
.join-form input[type="email"] {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; font-weight: 400;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
}
.join-form input[type="email"]::placeholder { color: var(--ink-3); }
.join-form input[type="email"]:focus { outline: none; border-color: var(--brass); }
.join-form .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .join-form { flex-direction: column; }
  .join-form .btn { width: 100%; text-align: center; }
}
.form-note { font-size: 13.5px; color: var(--ink-3); margin: 12px 0 0; max-width: 46ch; }
.form-note a { color: var(--ink-2); }
/* The honeypot: off-screen, not display:none, so a bot that skips hidden fields still sees
   a field to fill. A person never sees it and tab skips it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Type ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px;
}
h1.headline {
  font-family: var(--serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(34px, 5.4vw, 56px); margin: 0; color: var(--ink);
}
h1.headline em, h2 em { font-style: italic; color: var(--acid); font-weight: 500; }
.lede {
  font-family: var(--sans); font-weight: 300; font-size: 17.5px; line-height: 1.65;
  color: var(--ink-2); max-width: 50ch; margin: 20px 0 0;
}
h2.sect {
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15; margin: 0 0 12px; color: var(--ink); max-width: 22ch;
}
.dept {
  font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 10px;
}
section.block { padding: 64px 0 24px; }
section.block + section.block { border-top: 1px solid var(--line); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; display: grid; gap: 40px; align-items: center; }
.hero .cta-row { margin-top: 30px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding: 72px 0 56px; }
}
.hero-mark { width: 56px; height: 56px; margin: 0 0 20px; display: block; }

/* ── The phone ──────────────────────────────────────────── */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto; padding: 9px;
  border-radius: 40px; background: #08130d; border: 1px solid #2f4a3a;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; background: var(--room); }
.phone.tilt { transform: rotate(-2deg); }
@media (max-width: 859px) { .phone.tilt { transform: none; } }

/* ── The three facts under the hero ─────────────────────── */
.facts {
  display: grid; gap: 22px; padding: 30px 0 34px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.fact h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 6px; color: var(--ink); }
.fact p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ── Screens: text beside a phone, alternating ──────────── */
.screen {
  /* Top-aligned, not centred: the phone is ~600px tall and the copy ~200px, so centring
     dropped the copy halfway down the frame and left a slab of empty green above it. */
  display: grid; gap: 28px; align-items: start; padding: 34px 0;
  border-top: 1px solid var(--line);
}
.screen:first-of-type { border-top: 0; }
.screen h3 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15; margin: 0 0 12px; color: var(--ink);
}
.screen p { margin: 0 0 12px; font-size: 16px; color: var(--ink-2); max-width: 50ch; }
.screen p:last-child { margin-bottom: 0; }
.screen .tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); font-weight: 500; margin-bottom: 12px;
}
.screen .phone { max-width: 270px; }
@media (min-width: 760px) {
  .screen { grid-template-columns: 1fr 320px; gap: 56px; padding: 48px 0; }
  .screen .copy { padding-top: 36px; }   /* level with the phone's screen, not its bezel */
  .screen.flip { grid-template-columns: 320px 1fr; }
  .screen.flip .copy { order: 2; }
}

/* A faithful quotation of the cellar's live-state device: the ONE place acid appears in prose. */
.peek-demo {
  display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 0;
  padding: 10px 16px 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
}
.peek-name { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }
.window-pill {
  background: var(--acid); color: var(--room); font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: grid; gap: 26px; counter-reset: step; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.steps li { position: relative; padding-top: 44px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 30px;
  font-weight: 500; color: var(--brass); line-height: 1;
}
.steps h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ── Founder note ───────────────────────────────────────── */
.note-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 30px 26px; max-width: 700px;
}
.note-card p { margin: 0 0 14px; font-size: 16.5px; color: var(--ink-2); }
.note-card p:last-of-type { margin-bottom: 18px; }
.note-card .sig { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); margin: 0; }

/* ── The beta deal ──────────────────────────────────────── */
.deal { display: grid; gap: 28px; margin: 26px 0 0; }
@media (min-width: 760px) { .deal { grid-template-columns: 1fr 1fr; gap: 44px; } }
.deal h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 10px; }
.deal ul { margin: 0; padding: 0; list-style: none; }
.deal li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; color: var(--ink-2); }
.deal li::before { content: ""; position: absolute; left: 0; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.deal li strong { color: var(--ink); font-weight: 500; }
.deal-cta { margin-top: 34px; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 20px 0 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 34px 17px 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; color: var(--brass);
  font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; font-size: 15.5px; color: var(--ink-2); max-width: 60ch; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ── Free tools (kept from the first page; the hubs link from here) ─ */
.feature { padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 0 0 7px; color: var(--ink); }
.feature h3 a { color: var(--brass); text-decoration: none; }
.feature h3 a:hover { color: var(--brass-lt); }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-2); max-width: 58ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.pills a {
  display: inline-block; padding: 6px 13px; font-size: 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--panel); color: var(--ink-2); text-decoration: none;
}
.pills a:hover { border-color: var(--brass); color: var(--ink); }
@media (min-width: 720px) {
  .feature { display: grid; grid-template-columns: 190px 1fr; gap: 8px 34px; align-items: baseline; }
  .feature h3 { margin: 0; }
  .feature .pills { grid-column: 2; }
}

/* ── Foot ───────────────────────────────────────────────── */
.foot { text-align: center; margin-top: 48px; padding: 46px 0 60px; border-top: 1.5px solid var(--brass); }
.foot h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 20px; color: var(--ink); }
.foot-links { font-size: 14px; color: var(--ink-3); margin: 26px 0 0; }
.foot-links a { color: var(--brass); text-decoration: none; }
.foot-note { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; letter-spacing: .02em; }
.foot-note a { color: var(--ink-3); }

/* ── Join and privacy pages ─────────────────────────────── */
.card-page { padding: 56px 0 70px; max-width: 560px; }
.card-page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 44px); line-height: 1.12; margin: 0 0 14px; }
.card-page .lede { margin-top: 0; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; margin: 28px 0 0;
}
.card .join-form { flex-direction: column; max-width: none; }
.card .join-form .btn { width: 100%; text-align: center; }
.cf-turnstile { margin: 14px 0 4px; min-height: 66px; }
.state { display: none; }
.state.show { display: block; }
.state h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 10px; }
.state p { margin: 0 0 12px; font-size: 16px; color: var(--ink-2); }
.state p:last-child { margin-bottom: 0; }
.state strong { color: var(--ink); font-weight: 500; }
.err { color: var(--coral); }
.back { display: inline-block; font-size: 14px; color: var(--ink-2); text-decoration: none; margin: 0 0 26px; }
.back:hover { color: var(--ink); }

.prose { max-width: 680px; font-size: 16px; color: var(--ink-2); }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 44px); line-height: 1.12; margin: 0 0 6px; color: var(--ink); }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 36px 0 8px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--brass); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose .stamp { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 28px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.prose td:first-child { color: var(--ink); width: 38%; }
