/* openhour launch site — tokens from openhour brand guidelines v1.1 */
:root {
  /* Colour, type, radius and shadow come from openhour-tokens.css (source of truth).
     One override: pure white canvas per the guidelines; highlight bands use the token file's
     sand --bg-sunken so sections read as distinct surfaces. */
  --bg-canvas: #FFFFFF;
  --measure: 66ch; --pad: clamp(20px, 5vw, 64px);
  --r-control: var(--radius-sm); --r-button: var(--radius-md); --r-card: var(--radius-lg);
  --sans: var(--font-sans); --mono: var(--font-mono);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg-canvas); color: var(--text-primary); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--coral-700); text-underline-offset: 3px; }
a:hover { color: var(--coral-800); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font-weight: 700; font-size: clamp(40px, 6vw, 74px); letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; }
h3 { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; } p + p { margin-top: 1em; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--text-secondary); max-width: var(--measure); line-height: 1.5; }
.muted { color: var(--text-secondary); } .faint { color: var(--text-muted); } .small { font-size: 14px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.logo { display: inline-block; line-height: 0; }
.logo img { width: 300px; max-width: 60vw; height: auto; display: block; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .nav { gap: 12px 16px; font-size: 14px; }
}
.nav a { color: var(--text-primary); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--action); }

/* buttons come from the .btn / .btn-primary / .btn-secondary recipes in openhour-tokens.css */
.btn { font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-secondary { background: var(--bg-canvas); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); }
.hero .ornament { position: absolute; right: max(-160px, -14vw); top: -32%; width: clamp(280px, 42vw, 620px); height: clamp(280px, 42vw, 620px); border-radius: 50%; background: var(--coral-50); z-index: 0; }
.hero .ornament::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--coral-100); }
.hero .wrap { position: relative; z-index: 1; }
.hero .city { font-weight: 600; color: var(--coral-700); margin-bottom: 18px; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 24px; }
.hero .doors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.sunken { background: var(--bg-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: var(--measure); margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--text-secondary); }
.cols { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--text-secondary); }

/* doors */
.doors-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.door { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-card); background: var(--bg-canvas); border: 1px solid var(--border); }
.door .who { font-weight: 600; color: var(--text-secondary); font-size: 15px; }
.door h3 { font-size: 24px; }
.door p { color: var(--text-secondary); }
.door .btn { align-self: flex-start; margin-top: auto; }

/* the "not" list: a rule on the left, coral as ornament */
.nots { display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.not { padding-left: 20px; border-left: 3px solid var(--decor-ornament); }
.not h3 { margin-bottom: 6px; }
.not p { color: var(--text-secondary); }

/* zero */
.zero { display: grid; gap: 24px 56px; grid-template-columns: auto minmax(280px, 1fr); align-items: center; }
.zero .num { font-size: clamp(96px, 13vw, 180px); font-weight: 700; line-height: 1; color: var(--decor-ornament); letter-spacing: -0.04em; white-space: nowrap; }
@media (max-width: 720px) { .zero { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--bg-sunken); }
td:first-child { font-weight: 600; }
td .mono { color: var(--text-primary); }

/* categories */
.cats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cat { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); font-weight: 500; font-size: 15px; background: var(--bg-canvas); }
.cat.first { border-color: var(--coral-250); background: var(--coral-50); }
.cat small { display: block; font-weight: 400; color: var(--text-muted); margin-top: 2px; font-size: 13px; }

/* timeline (numbered by date, a real sequence) */
.timeline { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding-top: 18px; border-top: 3px solid var(--border-strong); }
.step:first-child { border-top-color: var(--decor-ornament); }
.step .when { font-family: var(--mono); font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-secondary); }

/* faq */
details { border-top: 1px solid var(--border); padding: 16px 0; }
details:last-child { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--action); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--text-secondary); max-width: var(--measure); }

/* footer */
footer { padding: 36px 0 52px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer a { color: var(--text-secondary); }

/* forms */
.form-page { display: grid; gap: 48px; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.5fr); align-items: start; }
@media (max-width: 860px) { .form-page { grid-template-columns: 1fr; } }
.form-aside { position: sticky; top: 24px; }
.form-aside .city { font-weight: 600; color: var(--coral-700); margin-bottom: 12px; }
.form-aside h1 { font-size: clamp(32px, 4.2vw, 50px); max-width: 14ch; }
.form-aside .lede { margin-top: 16px; font-size: 18px; }
.form-aside ul { padding-left: 20px; color: var(--text-secondary); margin-top: 20px; }
.form-aside li + li { margin-top: 8px; }
form { display: flex; flex-direction: column; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
legend { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; padding: 0; margin-bottom: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lbl { font-weight: 700; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-secondary); }
.field .hint { font-size: 14px; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], select, textarea {
  font: inherit; font-size: 15px; padding: 11px 12px; border-radius: var(--r-button); border: 1px solid var(--border-strong); background: var(--bg-canvas); color: var(--text-primary); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus-ring); outline: none; box-shadow: 0 0 0 3px rgba(58, 50, 115, 0.18); }
textarea { min-height: 110px; resize: vertical; }
.checks { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-primary); }
.check input { margin-top: 3px; accent-color: var(--action); width: 18px; height: 18px; flex: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.consent { font-size: 14px; color: var(--text-secondary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 16px; border-radius: var(--r-button); font-size: 15px; display: none; border: 1px solid var(--border-strong); background: var(--bg-sunken); }
.status.err { display: block; }
.done { display: none; padding: 28px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--coral-50); }
.done h2 { margin-bottom: 10px; }
.done p { color: var(--text-secondary); }
.done.show { display: block; }
form.sent { display: none; }

/* comparison */
table.compare { min-width: 900px; }
table.compare th:first-child { width: 190px; }
table.compare td.yes { background: var(--coral-50); font-weight: 500; }
table.compare th:nth-child(2) { color: var(--action); }

/* structure trees */
.trees { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tree { padding: 24px; border-radius: var(--r-card); background: var(--bg-canvas); border: 1px solid var(--border); }
.tree h3 { margin-bottom: 4px; }
.tree > p.small { margin-bottom: 12px; }
.tree ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.tree ul ul { margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--border-strong); }
.tree li { padding: 4px 0; }
.tree li b { font-weight: 600; }
.tree > ul + p { margin-top: 14px; }

/* structure tab picker */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tab-btn { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-canvas); color: var(--text-secondary); cursor: pointer; transition: background .12s ease-out, color .12s ease-out, border-color .12s ease-out; }
.tab-btn:hover { border-color: var(--action); color: var(--text-primary); }
.tab-btn[aria-selected="true"] { background: var(--action); border-color: var(--action); color: var(--action-text); }
.tab-panel { margin-top: 28px; display: none; }
.tab-panel.active { display: grid; gap: 24px; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.3fr); align-items: start; }
@media (max-width: 720px) { .tab-panel.active { grid-template-columns: 1fr; } }
.tab-panel .kicker { font-size: 15px; color: var(--text-muted); margin-bottom: 4px; }
.tree-box { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-canvas); padding: 24px 28px; }
.tree-box ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.tree-box ul ul { margin-left: 16px; padding-left: 16px; border-left: 2px solid var(--border-strong); margin-top: 6px; }
.tree-box li { padding: 5px 0; }
.tree-box li b { font-weight: 600; }
.tree-box .lvl { color: var(--text-muted); font-size: 13px; margin-right: 4px; }
.tab-panel .explain { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.tab-panel .explain p { color: var(--text-secondary); font-size: 17px; line-height: 1.5; }

/* community mode: platform view vs. inside-a-community view */
.mode-demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 32px; }
.mode-panel { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-canvas); padding: 24px 28px; }
.mode-panel.active { border-color: var(--coral-250); background: var(--coral-50); }
.mode-label { font-weight: 600; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.mode-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mode-bar span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-canvas); color: var(--text-secondary); }
.mode-panel.active .mode-bar span { border-color: var(--coral-250); background: var(--bg-canvas); color: var(--coral-800); }
.mode-panel p:last-child { color: var(--text-secondary); margin: 0; }
.mode-arrow { font-size: 26px; color: var(--text-muted); justify-self: center; }
@media (max-width: 720px) {
  .mode-demo { grid-template-columns: 1fr; }
  .mode-arrow { transform: rotate(90deg); justify-self: start; margin-left: 8px; }
}

/* required marks + inline field errors */
.req { color: var(--coral-700); margin-left: 3px; }
.field-error, .group-error { display: none; color: var(--coral-800); font-size: 14px; font-weight: 600; margin-top: 6px; text-transform: none; letter-spacing: 0; }
.field-error.show, .group-error.show { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral-700); }
.field.has-error > label, .field.has-error > .lbl { color: var(--coral-800); }
.group.has-error .group-legend { color: var(--coral-800); }
.group-error { padding: 2px 0 0; }
.form-status-banner { display: none; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-button); background: var(--coral-50); border: 1px solid var(--coral-250); color: var(--coral-800); font-weight: 600; font-size: 15px; }
.form-status-banner.show { display: flex; }

/* Join dropdown in the header */
.join-menu { position: relative; }
.nav a.nav-join, .nav a.nav-join:hover { color: var(--action-text); padding: 8px 18px; font-size: 15px; }
.join-panel { display: none; position: absolute; right: 0; top: 100%; z-index: 30; padding-top: 8px; }
.join-menu.open .join-panel { display: block; }
.join-card { display: flex; flex-direction: column; min-width: 220px; padding: 6px; background: var(--bg-canvas); border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.nav .join-card a { padding: 10px 12px; border-radius: 8px; color: var(--text-primary); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav .join-card a:hover { background: var(--bg-sunken); color: var(--text-primary); }
@media (max-width: 480px) { .join-panel { right: auto; left: 0; } }
