/* Tabula sites: shared components. Uses tokens.css names only. No raw colours below this line,
   except transparent and currentColor. One file for all three sites. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 400 var(--fs-3)/var(--lh-read) var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
/* Headings break as balanced lines, never with one word left alone. Body text avoids a lone last word. */
p, li { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); font-weight: 750; letter-spacing: -.022em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 700; }
h3 { font-size: var(--fs-5); line-height: 1.25; font-weight: 650; }
h4 { font-size: var(--fs-4); line-height: 1.3; font-weight: 650; }
p { margin: 0; }
p + p { margin-top: var(--s4); }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--font-mono); font-size: .92em; background: var(--sunk); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px; overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.wrap-text { max-width: var(--wrap-text); }
@media (max-width: 560px) { .wrap { padding: 0 var(--s4); } }


/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand .mark { height: 30px; width: auto; }
.brand .word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand .word span { font-weight: 500; color: var(--text-2); }
.nav { display: flex; align-items: center; gap: var(--s1); margin-left: var(--s4); }
.nav a { color: var(--text-2); text-decoration: none; font-size: var(--fs-2); font-weight: 500; padding: 8px 10px; border-radius: var(--r-md); }
.nav a:hover { color: var(--text); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.head-end { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.head-end .signin { color: var(--text-2); text-decoration: none; font-size: var(--fs-2); font-weight: 500; padding: 8px 10px; }
.head-end .signin:hover { color: var(--text); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--sunk); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

/* Phone menu: a <details>, so it works with no script. */
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; width: min(300px, calc(100vw - 32px)); background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s2); display: grid; }
.menu-panel a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: var(--r-md); font-weight: 500; }
.menu-panel a:hover { background: var(--sunk); }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: var(--s2) 0; }
@media (max-width: 900px) {
  .nav, .head-end .signin, .head-end .btn { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-md); font: 600 var(--fs-3)/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background var(--dur), border-color var(--dur), transform var(--dur); white-space: nowrap; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-2); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 86%, var(--text)); }
.btn-secondary { background: var(--panel); color: var(--text); border-color: var(--border-ctl); }
.btn-secondary:hover { background: var(--sunk); }
.btn-quiet { color: var(--text); padding: 0 6px; }
.btn-quiet:hover { text-decoration: underline; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }

/* ---------- Sections ---------- */
.section { padding: var(--s9) 0; }
.section-tight { padding: var(--s8) 0; }
.band { background: var(--sunk); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .section { padding: var(--s8) 0; } .section-tight { padding: var(--s7) 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-1)/1 var(--font-sans); letter-spacing: .02em; color: var(--brand-text); }
.eyebrow .dots { display: inline-flex; gap: 4px; }
.eyebrow .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dots .c-blue { background: var(--call-blue); } .dots .c-red { background: var(--call-red); } .dots .c-green { background: var(--call-green); }
.lede { font-size: var(--fs-4); color: var(--text-2); max-width: 60ch; }
.sec-head { max-width: 760px; margin-bottom: var(--s7); }
.sec-head h2 { margin-top: var(--s3); }
.sec-head p { margin-top: var(--s4); color: var(--text-2); font-size: var(--fs-4); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-2); }

/* ---------- Hero ---------- */
.hero { padding: var(--s8) 0 var(--s8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s7); align-items: center; }
.hero h1 { margin-top: var(--s4); }
.hero-grid h1 { font-size: clamp(34px, 4.2vw, 54px); }
.hero .lede { margin-top: var(--s5); }
.hero .actions { margin-top: var(--s6); }
.hero .fine { margin-top: var(--s4); font-size: var(--fs-2); color: var(--text-3); }
.hero-center { text-align: center; }
.hero-center .lede { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.hero-pic { margin-top: var(--s8); text-align: left; }
figure { margin: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); }
.card h3 { font-size: var(--fs-4); }
.card p { margin-top: var(--s2); color: var(--text-2); }
.card-link { display: block; color: var(--text); text-decoration: none; transition: border-color var(--dur); }
.card-link:focus-visible { border-radius: var(--r-lg); }
.card-link:hover { border-color: var(--border-ctl); }
.card-link h3::after { content: " \2192" / ""; }

/* Feature row: text beside a visual. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s8); align-items: center; }
.feature + .feature { margin-top: var(--s9); }
.feature.flip > :first-child { order: 2; }
.feature h2 { margin-top: var(--s3); }
.h2-size { font-size: var(--fs-h2); line-height: 1.15; font-weight: 700; margin-top: var(--s3); }
.feature p { margin-top: var(--s4); color: var(--text-2); font-size: var(--fs-4); }
.feature ul { margin-top: var(--s5); }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; gap: var(--s6); } .feature.flip > :first-child { order: 0; } .feature + .feature { margin-top: var(--s8); } }

/* Check list */
.checks { list-style: none; display: grid; gap: var(--s3); }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='%237d8690' stroke-width='1.4'/%3E%3Cpath d='M6 10.4l2.7 2.7L14.2 7.6' fill='none' stroke='%237d8690' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 3px / 19px 19px no-repeat; }
/* No ::before here on purpose: some browser extensions inject "ul li::before { display: none !important }". */
.checks strong { color: var(--text); font-weight: 600; }


/* Product cards on the parent site */
.product { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s4); padding: var(--s6); border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--panel); }
.product::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.product > * { position: relative; z-index: 1; }
.product.debate::after { background: linear-gradient(90deg, var(--call-blue) 0 50%, var(--call-red) 50% 100%) top / 100% 5px no-repeat, radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--call-blue) 14%, transparent), transparent 60%), radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--call-red) 12%, transparent), transparent 60%); }
.product.events::after { background: linear-gradient(90deg, var(--call-green) 0 50%, var(--call-green-2) 50% 100%) top / 100% 5px no-repeat, radial-gradient(140% 100% at 0% 0%, color-mix(in srgb, var(--call-green) 22%, transparent), transparent 65%); }
.product .p-mark { height: 44px; width: auto; }
.product h3 { font-size: var(--fs-5); }
.product .tag { display: inline-block; font-size: var(--fs-1); font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--text-2); margin-left: var(--s2); vertical-align: middle; }
.product .tag.live { border-color: var(--ok); color: var(--ok); }
.product p { color: var(--text-2); }
.product .actions { margin-top: var(--s2); }

/* ---------- Plans ---------- */
.plan { display: flex; flex-direction: column; gap: var(--s4); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s6); }
.plan .p-for { color: var(--text-2); }
.plan .p-price { font: 700 var(--fs-6)/1.1 var(--font-display); letter-spacing: -.02em; }
.plan .p-price small { font: 500 var(--fs-2)/1.4 var(--font-sans); color: var(--text-3); display: block; letter-spacing: 0; margin-top: 4px; }
.plan .checks { margin-top: var(--s2); }
.pill { display: inline-block; font-size: var(--fs-1); font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-text); border: 1px solid var(--brand-edge); }
.pill-quiet { background: transparent; color: var(--text-2); border-color: var(--border-ctl); }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-2); min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-weight: 600; color: var(--text); background: var(--sunk); }
tbody th { font-weight: 500; color: var(--text); }
td { color: var(--text-2); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s5) 0; font: 600 var(--fs-4)/1.35 var(--font-display); display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--text-3); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 var(--s5); color: var(--text-2); max-width: 70ch; }

/* ---------- Callout and CTA band ---------- */
.callout { border: 1px solid var(--brand-edge); background: var(--brand-tint); border-radius: var(--r-lg); padding: var(--s5) var(--s6); color: var(--text); }
.callout strong { font-weight: 650; }
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin: 0 auto; }
.cta p { margin: var(--s4) auto 0; color: var(--text-2); font-size: var(--fs-4); max-width: 56ch; }
.cta .actions { justify-content: center; margin-top: var(--s6); }

/* ---------- Prose pages (trust, legal, school IT) ---------- */
.prose { max-width: var(--wrap-text); }
.prose h2 { font-size: var(--fs-6); margin-top: var(--s8); }
.prose h3 { margin-top: var(--s6); }
.prose p, .prose ul, .prose ol { margin-top: var(--s4); color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: var(--s2); }
.prose .table-wrap { margin-top: var(--s5); }
.page-head { padding: var(--s8) 0 var(--s6); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); margin-top: var(--s3); }
.page-head .lede { margin-top: var(--s4); }
.toc { position: sticky; top: 96px; font-size: var(--fs-2); }
.toc a { display: block; color: var(--text-2); text-decoration: none; padding: 6px 0; }
.toc a:hover { color: var(--text); }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s8); }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- Sign-in card ---------- */
.auth { max-width: 440px; margin: 0 auto; }
.auth .card { padding: var(--s7) var(--s6); text-align: center; }
.auth .card img { height: 48px; width: auto; margin: 0 auto var(--s5); }
.auth h1 { font-size: var(--fs-6); }
.auth .card p { margin-top: var(--s3); }
.auth .stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-top: var(--s6); }
.auth .stack .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
.auth-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s5); text-align: left; }
.auth-form label { font-weight: 600; font-size: var(--fs-2); }
.auth-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-ctl); border-radius: var(--r-md); background: var(--sunk); color: var(--text); font: 400 var(--fs-4)/1 var(--font-sans); }
.auth-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-ctl); border-radius: var(--r-md); background: var(--sunk); color: var(--text); font: 400 var(--fs-3)/1.5 var(--font-sans); resize: vertical; }
.acct-welcome { margin-bottom: var(--s6); }
.acct-profile { margin-top: var(--s7); }
.acct-profile h2 { font-size: var(--fs-5); }
.acct-profile .auth-form .btn { width: auto; justify-self: start; }
.acct-photo { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); }
.acct-photo > div { min-width: 0; flex: 1; }
.acct-photo input[type="file"] { max-width: 100%; font-size: var(--fs-2); }
.acct-photo img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.acct-photo label { display: block; font-weight: 600; font-size: var(--fs-2); margin-bottom: var(--s2); }
.acct-teams { margin: var(--s3) 0 0; padding-left: 1.2em; }
.auth-form input[name="code"] { font-family: var(--font-mono); letter-spacing: .3em; }
.auth-form input:focus-visible, .auth-form textarea:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.auth-form .btn { width: 100%; margin-top: var(--s3); white-space: normal; line-height: 1.25; padding-block: 10px; }
.auth-form .btn[disabled] { opacity: .6; cursor: progress; }
.auth-msg { margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--border-ctl); border-radius: var(--r-md); background: var(--sunk); color: var(--text); font-size: var(--fs-2); text-align: left; }
.auth-link-btn { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.account { max-width: 880px; }
.acct-head { text-align: center; margin-bottom: var(--s7); }
.acct-eyebrow { font-size: var(--fs-2); font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.acct-head h1 { font-size: clamp(1.25rem, 5.2vw, var(--fs-6)); margin-top: var(--s2); overflow-wrap: anywhere; }
.acct-out { text-align: center; max-width: 440px; margin: 0 auto; }
.acct-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-top: var(--s5); }
.acct-actions .btn, .acct-apps .btn { white-space: normal; line-height: 1.25; padding-block: 10px; }
.acct-apps .product h2 { font-size: var(--fs-5); }
.acct-apps .actions .btn { width: 100%; }
.acct-foot { display: flex; justify-content: center; gap: var(--s6); margin-top: var(--s6); font-size: var(--fs-2); }
.account .auth-msg { max-width: 440px; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--sunk); padding: var(--s8) 0 var(--s6); font-size: var(--fs-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: var(--s6); }
.foot-grid h4 { font: 600 var(--fs-1)/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s4); }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; }
.foot-about p { color: var(--text-3); margin-top: var(--s3); max-width: 34ch; }
.foot-base { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); color: var(--text-3); }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }

/* ---------- Marks: light/dark pairs follow the theme ---------- */
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .on-light { display: none !important; } :root:not([data-theme]) .on-dark { display: block !important; } }

/* Debate formats: available = filled; coming soon = pale tint of the red and blue family. */
.formats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s5); }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }
.fmt { border-radius: var(--r-xl); padding: var(--s6); border: 1px solid var(--border); display: grid; gap: var(--s2); align-content: start; }
.fmt h3 { font-size: var(--fs-5); }
.fmt p { color: var(--text-2); }
.fmt .state { font-size: var(--fs-1); font-weight: 650; letter-spacing: .04em; }
.fmt.live { background: var(--fmt-live); border-color: var(--fmt-live); }
.fmt.live h3, .fmt.live p, .fmt.live .state { color: var(--on-fmt-live); }
.fmt.live a { color: var(--on-fmt-live); }
.fmt.ld { background: var(--fmt-ld); border-color: var(--fmt-ld-edge); }
.fmt.pf { background: var(--fmt-pf); border-color: var(--fmt-pf-edge); }

/* Library list */
.lib { list-style: none; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.lib li + li { border-top: 1px solid var(--border); }
.lib a { display: grid; grid-template-columns: 1fr auto; gap: var(--s4); padding: var(--s4) var(--s5); text-decoration: none; color: var(--text); }
.lib a:hover { background: var(--sunk); }
.lib a span { color: var(--text-3); font-size: var(--fs-2); }
.lib b { font-weight: 600; }

/* Event chips (Speech Events) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips span { padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--brand-edge); background: var(--brand-tint); color: var(--text); font-weight: 500; font-size: var(--fs-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .header, .footer { display: none; } }

/* Spacing helpers (the CSP blocks inline style attributes). */
.mt3 { margin-top: var(--s3); } .mt4 { margin-top: var(--s4); } .mt5 { margin-top: var(--s5); } .mt6 { margin-top: var(--s6); }

/* ---------- Pricing page ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.center-head { text-align: center; border-bottom: 0; }
.center-head .lede { margin-left: auto; margin-right: auto; }
.trial-line { max-width: 1040px; margin: 0 auto var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; font-weight: 600; color: var(--text); }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); max-width: 1040px; margin: 0 auto; align-items: start; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 520px; } }
.pricing .plan { border-radius: var(--r-md); padding: var(--s5); gap: var(--s3); }
.pricing .plan .btn { margin-top: var(--s2); }
.plan-pass { border-color: var(--text); }
.plan .p-name, .plan-row .p-name { font: 700 var(--fs-5)/1.2 var(--font-display); letter-spacing: -.01em; }
.plan .p-scope { font-size: var(--fs-2); color: var(--text-3); }
.plan .p-plus { font-size: var(--fs-2); font-weight: 600; margin-top: var(--s2); }
.plan .p-price { font-variant-numeric: tabular-nums; }
.plan .p-price .per { font: 500 var(--fs-3)/1 var(--font-sans); color: var(--text-3); letter-spacing: 0; }
/* Billing toggle: radio inputs, no script. Without :has support, both prices show in one line. */
.period { margin: 0; display: inline-flex; gap: 2px; background: var(--sunk); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; width: max-content; }
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period label { padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-2); font-weight: 600; color: var(--text-2); cursor: pointer; }
.period input:checked + label { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.period input:focus-visible + label { outline: 2px solid var(--ring); outline-offset: 2px; }
/* Period toggle: .price-month / .price-year / .price-both also carry the round counts (.p-rounds). Without :has, both lines show via .price-both. */
.price-month, .price-year { display: none; }
@supports selector(:has(*)) {
  .plan-pass:has(#per-month:checked) .price-month, .plan-pass:has(#per-year:checked) .price-year { display: inline; }
  .plan-pass .p-price .price-both, .plan-pass .p-rounds .price-both { display: none; }
}
.plan-row { max-width: 1040px; margin: var(--s4) auto 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s5); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s5); background: var(--panel); }
.plan-row .p-for { color: var(--text-2); margin-top: var(--s2); max-width: 70ch; }
@media (max-width: 640px) { .plan-row { flex-direction: column; align-items: flex-start; } }
.fine-print { max-width: 1040px; margin: var(--s5) auto 0; font-size: var(--fs-2); color: var(--text-3); }
caption { text-align: left; font: 700 var(--fs-5)/1.2 var(--font-display); padding: var(--s4) var(--s4) var(--s3); color: var(--text); }
details[name="faq"] summary { scroll-margin-top: 96px; }

/* ---------- Legal documents ---------- */
.doc-meta { margin-top: var(--s4); color: var(--text-3); font-size: var(--fs-2); }
.doc { font-size: 17px; }
.doc section { scroll-margin-top: 96px; }
.doc h2 { font-size: var(--fs-5); margin-top: var(--s7); }
.doc section:first-child h2 { margin-top: 0; }
.doc .summary { margin-top: var(--s3); border-left: 2px solid var(--text); padding: 2px 0 2px var(--s4); color: var(--text); }
.doc table { min-width: 0; }
.doc dl { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 0; margin-top: var(--s5); border-top: 1px solid var(--border); }
.doc dt, .doc dd { margin: 0; padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.doc dt { font-weight: 650; color: var(--text); padding-right: var(--s4); }
.doc dd { color: var(--text-2); }
@media (max-width: 560px) { .doc dl { grid-template-columns: 1fr; } .doc dt { border-bottom: 0; padding-bottom: 0; } }
.toc a:target { color: var(--text); font-weight: 600; }
@media print {
  .toc, .skip { display: none !important; }
  .with-toc { display: block; }
  body { background: white; color: black; font-size: 11pt; }
  .doc a[href^="http"]::after, .doc a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .doc .summary { break-inside: avoid; }
  @page { margin: 2cm; }
}
@media (max-width: 380px) { .brand .word { font-size: 16px; } .brand .mark { height: 24px; width: auto; } .head-end { gap: 4px; } }
