/* Public page only. Shared tokens and form primitives live in theme.css; fonts, sky, header, glass panel and footer live in shell.css. */
/* Stage: one calm column. Hero first, then teasers, vision, the action cards and the social row. */
.stage { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 120px); padding-block: clamp(8px, 3vh, 40px) clamp(32px, 6vh, 72px); }
.hero { min-width: 0; padding-block: clamp(16px, 6vh, 72px) 0; }
.wordmark {
  margin: 0; font-size: clamp(72px, 14vw, 200px); font-weight: 600; line-height: 1.45; letter-spacing: 0; color: var(--text);
  text-shadow: 0 0 2px rgba(234,241,255,.35), 0 0 42px rgba(234,241,255,.22);
  animation: resolve 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes resolve { from { opacity: 0; filter: blur(18px); } 55% { opacity: 1; } to { opacity: 1; filter: blur(0); } }
.tagline { margin: 0; max-width: 30em; text-wrap: balance; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.65; color: var(--text); }
/* The one dust gold hairline: a short rule between the wordmark and the promise. */
.tagline::before { content: ""; display: block; width: 56px; height: 1px; margin-block-end: 20px; background: #f3c77a; }
.status { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(46,230,200,.6); }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2); opacity: 0; } }

.panel h2 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.4; }
.lead { margin: 4px 0 20px; text-wrap: pretty; color: var(--muted); font-size: 15px; line-height: 1.6; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
.fields .field { gap: 6px; min-width: 0; align-content: start; margin-block-end: 10px; }
.fields .full { grid-column: 1 / -1; }
.fields .err { min-height: 18px; line-height: 18px; }
.fields textarea.input { min-height: 104px; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  background-position: right 21px center, right 15px center;
}
[dir="rtl"] .select { background-position: left 15px center, left 21px center; }
.select:has(option[value=""]:checked) { color: var(--muted); }
.select option { background: #0b1030; color: var(--text); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-block-start: 8px; }
.send { min-height: 48px; padding-inline: 28px; }
.actions .msg { flex: 1 1 180px; margin: 0; min-height: 0; font-size: 14px; line-height: 1.5; }

/* Teasers: a typographic set. Each item hangs from a hairline at the same top edge, no boxes.
   --tgap is shared with the vision measure so both sit on the same column edges. */
.stage { --tgap: clamp(28px, 4vw, 64px); }
.teasers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tgap); }
.teasers li { padding-block-start: 20px; border-block-start: 1px solid rgba(234,241,255,.2); }
.teasers h3 { margin: 0 0 10px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; line-height: 1.4; color: var(--text); }
.teasers p { margin: 0; max-width: 24em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.8; color: var(--soft); text-wrap: pretty; }

/* Vision: the section the page sells. Real heading scale; the measure spans two teaser columns. */
.vision { max-width: calc((100% - 2 * var(--tgap)) / 3 * 2 + var(--tgap)); }
.vision h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1.35; color: var(--text); }
.vision p { margin: 0; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.9; color: var(--soft); text-wrap: pretty; }

/* Action cards on the column grid. Signup leads (first in the DOM, wider, accent hairline); contact follows. */
.actions-row { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; align-items: start; gap: var(--tgap); }
.actions-row:has(#signup:not([hidden])) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); justify-content: stretch; }
#signup { border-color: rgba(46,230,200,.32); padding: clamp(26px, 3vw, 40px); }
#signup h2 { font-size: clamp(26px, 2.6vw, 34px); }
#signup .lead { font-size: 16px; margin-block-end: 24px; }
#signup .fields { grid-template-columns: minmax(0, 1fr); }
.actions-row:has(#signup:not([hidden])) #contact h2 { font-size: 20px; }
.consent { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.fields .actions { margin-block-start: 4px; }

/* Social row: quiet text links. */
.social h2 { margin: 0 0 8px; font-size: 15px; font-weight: 400; color: var(--muted); }
.social ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.social a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-decoration-color: rgba(234,241,255,.3); text-underline-offset: 6px; border-radius: 6px; }
.social a:hover { text-decoration-color: var(--accent); }
.social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Confirm and unsubscribe pages. */
.stage.token { justify-content: center; align-items: center; gap: clamp(20px, 4vh, 40px); }
.token .wordmark { font-size: clamp(64px, 12vw, 112px); line-height: 1.5; text-align: center; }
.token .msg:empty { display: none; }
.token .lead { margin-block-end: 24px; }
.token .panel.card { width: 100%; max-width: 520px; margin-inline: auto; }
.token h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.4; }
.token .actions { margin-block-start: 0; }
.token .msg { margin: 16px 0 0; line-height: 1.7; }
.token .back { margin: 20px 0 0; font-size: 14px; }
.token .back a { color: var(--muted); text-underline-offset: 5px; border-radius: 4px; }
.token .back a:hover { color: var(--text); }
.token .back a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Short laptop screens: keep the whole panel above the fold. */
@media (min-width: 961px) and (max-height: 780px) {
  .lead { margin-block-end: 14px; }
  .fields .field { margin-block-end: 6px; }
}

/* Tablet and phone: one column, the wordmark leads, the panel follows. */
@media (max-width: 960px) {
  .stage { gap: clamp(48px, 9vw, 72px); }
  .hero { text-align: center; }
  .wordmark { font-size: clamp(72px, 22vw, 168px); }
  .tagline { margin-inline: auto; }
  .tagline::before { margin-inline: auto; }
  .status { justify-content: center; }
  .actions-row, .actions-row:has(#signup:not([hidden])) { width: 100%; max-width: 620px; margin-inline: auto; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .social { justify-self: center; }
}
@media (max-width: 760px) {
  .teasers { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vision { max-width: none; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  #signup { padding: 22px 18px; }
  .send { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
  .dot::after { display: none; }
}

/* Privacy note above the copyright line. */
.foot-note { margin: 0 0 8px; max-width: 62em; line-height: 1.7; text-wrap: pretty; }
@media (max-width: 960px) { .foot-note { margin-inline: auto; } }
