/*
  The beta page (index.html): invitation-only. Shared pieces come from site.css; these are the page's own.
  Fewer lines: surfaces and spacing separate things, borders only where they carry meaning. Nothing below 13px.
*/

/* Surfaces, the three differences, the comments on the demo, the beta map and the signature line. */
.card-s { border-radius: var(--radius-panel); background: var(--bg-paper); box-shadow: var(--elevation-card); }
.initials { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--accent-subtle); color: var(--accent-text); font-size: 13px; font-weight: 650; font-style: normal; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.three > div { padding: 24px; }
.three .no { font-size: 13.5px; color: var(--text-tertiary); text-decoration: line-through; }
.three h3 { margin-top: 8px; font-family: var(--font-display); font-stretch: 94%; font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
.three p { margin-top: 8px; font-size: 15.5px; color: var(--text-secondary); }
.beta-demo .desk { outline: 0; }
.beta-demo .sheet-bar { border-bottom: 0; }
.beta-demo .margin { display: grid; gap: 12px; align-content: start; }
.note.person-note { background: var(--bg-paper); box-shadow: var(--elevation-card); }
.note .initials { width: 28px; height: 28px; font-size: 12px; }
.note .quote { display: block; margin-bottom: 6px; padding-left: 8px; border-left: 2px solid var(--highlight); color: var(--text-tertiary); font-size: 13.5px; }
.note .mention { color: var(--accent-text); font-weight: 550; }
:root[data-theme='dark'] .note .mention { color: var(--accent); }
.beta-title { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.03em; }
.beta-title span { display: block; }
.beta-title .pencil { color: var(--pencil-display); }
.map { margin-top: 32px; }
.band { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.band-label { width: 100%; font-size: 14px; font-weight: 550; color: var(--text-tertiary); }
.chip2 { padding: 7px 13px; border-radius: var(--radius-pill); font-size: 14.5px; }
.band.not .chip2 { border: 1.5px dashed var(--border-strong); color: var(--text-tertiary); }
.band.pen .chip2 { background: var(--bg-paper); color: var(--pencil); filter: url(#grain); }
.band.ink .chip2 { background: var(--ink); color: var(--bg-app); }
.inkline { position: relative; height: 3px; margin: 8px 0; background: var(--ink); }
.inkline span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 12px; border-radius: var(--radius-pill); background: var(--ink); color: var(--bg-app); font-size: 13.5px; font-weight: 550; white-space: nowrap; }
.sign { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; }
.sign .line { min-height: 52px; display: flex; align-items: flex-end; padding-bottom: 6px; border-bottom: 2px solid var(--accent); font-size: 14px; color: var(--accent-text); }
:root[data-theme='dark'] .sign .line { color: var(--accent); }
#download .requirement { border-top: 0; padding-top: 0; font-size: 15px; }
#download .meta { font-size: 13.5px; }
.site-footer { border-top: 0; }
@media (max-width: 960px) {
  .three { grid-template-columns: minmax(0, 1fr); }
  .sign { grid-template-columns: minmax(0, 1fr); }
}

/* The page: headline, the file mid-work, three facts, then the beta map and the invitation side by side. */
.beta-hero { padding-top: clamp(48px, 7vw, 88px); text-align: center; }
.beta-hero .chip { margin-inline: auto; }
.beta-hero h1 { margin: 20px auto 0; font-size: clamp(40px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.036em; }
.beta-hero .lede { margin-inline: auto; max-width: 36em; }
.beta-hero .actions { justify-content: center; }
.beta-demo { margin-top: clamp(40px, 6vw, 64px); }
.beta-demo .demo-caption { text-align: center; }
.beta-facts .three { margin-top: 0; }
.beta-end { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.beta-end .map { margin-top: 20px; }
.beta-end .band { padding: 10px 0; }
.beta-get { padding: clamp(24px, 4vw, 36px); }
.beta-get h3 { font-family: var(--font-display); font-stretch: 94%; font-weight: 600; font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; }
.beta-get .sign { margin-top: 20px; grid-template-columns: minmax(0, 1fr); }
.beta-get .sign .btn { justify-self: start; }
.beta-get .requirement { border-top: 0; padding-top: 0; }
.beta-get .beta-notes { margin-top: 20px; font-size: 15px; color: var(--text-secondary); }
.beta-get .beta-notes a { font-weight: 550; }
.beta-close { padding-bottom: clamp(24px, 4vw, 48px); }

/* Invitation only: two faces chosen by html[data-invite] (none, loading, valid, invalid), set by assets/invite.js. */
:root:not([data-invite='none']):not([data-invite='invalid']) .for-request { display: none !important; }
:root:not([data-invite='valid']) .for-invited { display: none !important; }
:root:not([data-invite='invalid']) .for-invalid { display: none !important; }
:root[data-seats='none'] .for-seats { display: none !important; }
.inv-pill { margin-left: auto; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.beta-meta { margin-top: 16px; font-size: 14px; }
.beta-status { min-height: 1.4em; margin-top: 8px; font-size: 14px; color: var(--danger); }
[aria-busy='true'] { opacity: 0.6; pointer-events: none; }

/* The invitation as a ticket: a stub, the perforation, the body. */
.ticket { position: relative; border-radius: var(--radius-sheet); background: var(--bg-paper); box-shadow: var(--elevation-raised); }
.ticket-stub { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 3vw, 32px); }
.ticket-stub b { font-family: var(--font-display); font-stretch: 94%; font-weight: 600; font-size: 21px; letter-spacing: -0.012em; color: var(--ink); }
.ticket-stub > span { font-size: 13.5px; color: var(--text-tertiary); white-space: nowrap; }
.ticket-cut { position: relative; height: 0; margin: 0 18px; border-top: 2px dashed var(--border-strong); }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-app); }
.ticket-cut::before { left: -28px; }
.ticket-cut::after { right: -28px; }
.beta-sub { margin-top: 8px; font-size: 15.5px; color: var(--text-secondary); }
.beta-warn { margin-bottom: 16px; padding: 10px 14px; border-radius: var(--radius-card); background: var(--danger-subtle); color: var(--danger); font-size: 14.5px; }
.beta-form { display: grid; gap: 14px; margin-top: 20px; }
.beta-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 550; }
.beta-form .opt { font-weight: 400; color: var(--text-tertiary); }
.beta-form input, .beta-form select, .beta-form textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-control); background: var(--bg-app); color: var(--text-primary); font: inherit; font-size: 15px; font-weight: 400; box-shadow: inset 0 0 0 1px var(--border-hairline); }
.beta-form input:focus-visible, .beta-form select:focus-visible, .beta-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.beta-form textarea { resize: vertical; }
.beta-form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.beta-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-form .btn { justify-self: start; }
.form-error { min-height: 1.3em; font-size: 14px; color: var(--danger); }
.fine { font-size: 13.5px; color: var(--text-tertiary); }
.sent h3 + p { margin-top: 8px; color: var(--text-secondary); }
.colleagues { margin-top: 28px; }
.colleagues h4 { font-family: var(--font-display); font-stretch: 94%; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.colleagues > p { margin-top: 6px; font-size: 15px; color: var(--text-secondary); }
.colleagues .beta-form { margin-top: 12px; }
.colleague-links { display: grid; gap: 8px; margin-top: 4px; font-size: 14px; }
.colleague-links li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-card); background: var(--bg-app); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .beta-form .row2 { grid-template-columns: minmax(0, 1fr); }
  .site-header .btn { display: none; }
}
@media (max-width: 960px) { .beta-end { grid-template-columns: minmax(0, 1fr); } }
