/* joinsugarcane.com: same look as the app (app-mockup v27, "Elite" style).
   Layout: one narrow column on black, like an app screen. Rounded dark-glass bars hold the waitlist, steps and FAQs.
   Plain grey text links on top (current page underlined), underlined small-caps actions, Arial everywhere.
   Dark only on purpose: it's the brand look. */
:root {
  --bg: #000000;
  --ink: #f5f5f7;          /* headings, links, actions */
  --body: #d1d1d6;         /* running text */
  --muted: #8e8e93;        /* secondary text (same grey as the app) */
  --rule: #2c2c2e;         /* hairlines */
  --edge: rgba(255, 255, 255, .07);
  --bar-top: #232327;      /* glass bar gradient, same as the app's --gbar */
  --bar-bottom: #161619;
  --field: rgba(255, 255, 255, .08);
  --error: #ff6961;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font);
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
}
.col { width: 100%; max-width: 680px; margin-inline: auto; }
main.col { flex: 1; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Top: SUGARCANE wordmark (Arial Bold, caps, letters pulled tight) + plain text links */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-block: 20px 4px; }
.brand { font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: -.06em; color: var(--ink); text-decoration: none;
  transform: scaleX(.92); transform-origin: left center; padding-block: 10px; }
.links { display: flex; gap: 20px; }
.links a { color: var(--muted); text-decoration: none; font-size: 13px; padding-block: 10px; }
.links a:hover { color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1.5px; }

/* Shared pieces */
.label { margin: 0; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bar { background: linear-gradient(180deg, var(--bar-top), var(--bar-bottom)); border: 1px solid var(--edge); border-radius: 16px; }
.act { flex: none; display: inline-block; background: none; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  color: var(--ink); font: 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 9px 0 6px; }
.act:disabled { color: var(--muted); border-color: var(--muted); cursor: default; }
.fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.fine a { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }

/* Home */
.hero { display: grid; gap: 22px; padding-block: 56px 36px; }
.hero h1 { margin: 0; font-size: clamp(34px, 7.4vw, 56px); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; }
.hero h1 .dim { color: var(--muted); }
.lede { margin: 0; max-width: 34em; font-size: 17px; color: var(--body); }

.join { display: grid; gap: 12px; padding: 18px 18px 16px; }
.join .ask { margin: 0; font-size: 17px; font-weight: 700; }
.wl { display: flex; align-items: center; gap: 18px; }
.wl input { flex: 1; min-width: 0; font: 16px var(--font); color: var(--ink); background: var(--field); border: 1px solid var(--edge);
  border-radius: 12px; padding: 12px 14px; }
.wl input::placeholder { color: var(--muted); }
.wl input:focus-visible { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#wl-msg[data-kind="error"] { color: var(--error); }
#wl-msg[data-kind="ok"] { color: var(--ink); font-size: 15px; }

.section-label { padding-block: 44px 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 12px; padding: 16px 18px; }
.steps .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.steps h3 { margin: 0; font-size: 16px; }
.steps p { grid-column: 2; margin: 0; font-size: 14.5px; color: var(--body); }
.kinds { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 4px 0 2px; padding: 0;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

.venue { display: grid; gap: 8px; margin-top: 10px; padding: 16px 18px; }
.venue h3 { margin: 0; font-size: 16px; }
.venue p { margin: 0; font-size: 14.5px; color: var(--body); }
.venue .act { justify-self: start; margin-top: 4px; }

/* Legal pages */
.doc { padding-block: 40px 0; }
.doc h1 { margin: 0; font-size: clamp(30px, 6vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.updated { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.doc .intro { margin: 22px 0 0; color: var(--body); }
.short { margin-top: 24px; padding: 18px 18px 14px; }
.short ul { margin: 10px 0 0; }
.toc { margin-top: 26px; }
.toc ol { margin: 10px 0 0; padding-left: 1.4em; columns: 2 220px; column-gap: 28px; font-size: 14px; }
.toc li { break-inside: avoid; padding-block: 3px; color: var(--muted); }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.doc h2 { margin: 42px 0 10px; font-size: 18px; letter-spacing: -.01em; scroll-margin-top: 16px; }
.doc h2.label { margin: 0; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; }
.doc h3 { margin: 22px 0 6px; font-size: 15.5px; }
/* zero-specificity defaults so .fine, .mail, .updated etc. still win inside legal pages */
:where(.doc) :where(p, li) { font-size: 15.5px; line-height: 1.65; color: var(--body); }
:where(.doc) p { margin: 10px 0 0; max-width: 40em; }
.doc ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 40em; }
.doc strong { color: var(--ink); }

/* Support */
.contact { margin-top: 24px; padding: 18px; display: grid; gap: 8px; }
.mail { font-size: clamp(20px, 5.2vw, 28px); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mail a { text-decoration: none; }
.faq { display: grid; gap: 10px; margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 16px 46px 16px 18px; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 18px 16px; font-size: 15px; color: var(--body); }
.faq .a p { margin: 0; }
.faq .a p + p { margin-top: 8px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 64px; padding-block: 18px 28px;
  border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
