/*
 * The Teamly website. Design system "C · Tim" (the app's teamly.css): the same tokens, radii, pills and type, with the
 * night gradient for the hero. Light and dark follow the visitor's system (prefers-color-scheme). The font stack starts
 * with Figtree when it is installed; nothing is loaded from third parties.
 */

:root {
	--bg: #edf2f5;
	--surface: #ffffff;
	--surface-2: #f4f7f9;
	--ink: #10202c;
	--ink-2: #33475a;
	--muted: #5a6d7e;
	--line: #dde5eb;
	--primary: #1f6fb2;
	--primary-hover: #165489;
	--on-primary: #ffffff;
	--primary-soft: #e6f0fa;
	--teal: #0b6f78; /* 5.2:1 on --bg: small bold text (eyebrows, limits) stays readable */
	--teal-soft: #dff3f4;
	--hover: #f1f5f8;
	--danger: #c93a3f;
	--holiday: #7428cc;
	--holiday-bg: #f5effd;
	--focus-ring: rgb(31 111 178 / 22%);
	--shadow-card: 0 1px 2px rgb(16 32 44 / 5%), 0 8px 28px rgb(16 32 44 / 7%);
	--shadow-pop: 0 12px 40px rgb(16 32 44 / 16%);
	--night: linear-gradient(183deg, #0f1b2d 0%, #123a63 60%, #0f1b2d 100%);
	--night-ink: #ffffff;
	--night-ink-2: #c5d3df;
	--night-accent: #7fd8de;
	--radius-field: 14px;
	--radius-tile: 18px;
	--radius-card: 24px;
	--radius-dialog: 28px;
	--font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0a1014;
		--surface: #121a20;
		--surface-2: #18222a;
		--ink: #e6eef2;
		--ink-2: #c2d0d9;
		--muted: #8fa2b0;
		--line: #22303a;
		--primary: #6aaef0;
		--primary-hover: #9ccbf7;
		--on-primary: #0b1a2b;
		--primary-soft: #14273b;
		--teal: #4fd1d9;
		--teal-soft: #0d2a2d;
		--hover: #17212a;
		--danger: #f26b70;
		--holiday: #b993ff;
		--holiday-bg: #1c1530;
		--focus-ring: rgb(106 174 240 / 30%);
		--shadow-card: 0 0 0 1px #1d2933;
		--shadow-pop: 0 0 0 1px #22303a, 0 16px 48px rgb(0 0 0 / 60%);
		--night: linear-gradient(183deg, #05080a 0%, #0f1d30 62%, #05080a 100%);
		color-scheme: dark;
	}
}

/* Tones (chips, icons, calendar bars): --c the mark, --cc its background. */
.tone-blue { --c: #1d4ed8; --cc: #e0eaff; }
.tone-teal { --c: #0f766e; --cc: #d5f5ef; }
.tone-violet { --c: #7428cc; --cc: #efe5fd; }
.tone-green { --c: #137538; --cc: #dcf5e5; }
.tone-amber { --c: #b45309; --cc: #fef3c7; }
.tone-pink { --c: #c2186f; --cc: #fde4f1; }
.tone-steel { --c: #2d6297; --cc: #dde9f5; }
.tone-sea { --c: #1d6e46; --cc: #d2ede0; }
.tone-orange { --c: #b23a0a; --cc: #ffe8d6; }
.tone-gold { --c: #8a6500; --cc: #fff1b8; }
.tone-gray { --c: #52627a; --cc: #e8edf3; }
.tone-red { --c: #c81e1e; --cc: #fde3e3; }
@media (prefers-color-scheme: dark) {
	.tone-blue { --c: #60a5fa; --cc: #10192e; }
	.tone-teal { --c: #2dd4bf; --cc: #0b2826; }
	.tone-violet { --c: #b993ff; --cc: #25183e; }
	.tone-green { --c: #34d399; --cc: #0f2a20; }
	.tone-amber { --c: #fbbf24; --cc: #2c1d05; }
	.tone-pink { --c: #ff8ac4; --cc: #3a1229; }
	.tone-steel { --c: #86b6e6; --cc: #14253a; }
	.tone-sea { --c: #56c98f; --cc: #0f2a1d; }
	.tone-orange { --c: #fb923c; --cc: #2f1a0b; }
	.tone-gold { --c: #ffd84a; --cc: #33290a; }
	.tone-gray { --c: #a3aebf; --cc: #1f2430; }
	.tone-red { --c: #ff8080; --cc: #3b1517; }
}

/* ---- Base ---- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
/* A link inside running text is underlined: colour alone does not set it apart from the text (WCAG 1.4.1). */
main :is(p, li, label) :is(a:not(.btn), .linkb) { text-decoration: underline; text-underline-offset: .15em; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: break-word; }
/* A long word ("Datenschutzerklärung") breaks with a hyphen on a narrow screen instead of running off it. */
@media (max-width: 479px) { h1, h2 { hyphens: auto; -webkit-hyphens: auto; } }
p { margin: 0; }
ul, ol { margin: 0; }
[hidden] { display: none !important; }
main { display: block; outline: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 359px) { .wrap { padding: 0 10px; } }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.center .cta-row, .center.stack, .center.stack-lg { justify-content: center; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }

.t-display { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.t-hero { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.t-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.t-card { font-size: 18px; line-height: 1.3; font-weight: 800; }
.t-muted { color: var(--muted); font-size: 14.5px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.hint { font-size: 13.5px; color: var(--muted); }
.opt { font-weight: 500; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }

/* ---- Buttons, pills, chips ---- */

.btn { font: inherit; font-size: 15px; font-weight: 700; height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn-fill { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-fill:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-ghost { background: transparent; border-color: rgb(255 255 255 / 35%); color: var(--night-ink); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-icon { width: 46px; padding: 0; }
.btn-block { width: 100%; }
.linkb { font: inherit; border: 0; background: transparent; padding: 0; color: var(--primary); font-weight: 700; cursor: pointer; }
.linkb:hover { text-decoration: underline; }

.pill { font: inherit; border: 0; background: transparent; cursor: pointer; height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.pill:hover { background: var(--hover); text-decoration: none; }
.pill[aria-current='page'] { background: var(--primary-soft); color: var(--primary); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c); background: var(--cc); white-space: nowrap; }
.av { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--c); background: var(--cc); flex: none; box-shadow: 0 0 0 3px var(--surface); }
.av-sm { width: 32px; height: 32px; font-size: 11.5px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lg i { width: 18px; height: 10px; border-radius: 4px; background: var(--cc); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); display: inline-block; }
.lg i.lg-hol { background: var(--holiday-bg); box-shadow: inset 0 0 0 1.5px var(--holiday); }
.alert { margin: 0; border-radius: 14px; padding: 11px 14px; font-size: 14.5px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; background: var(--cc); color: var(--c); }
.alert svg { flex: none; margin-top: 2px; }

/* ---- Header ---- */

.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.hdr-in { display: flex; align-items: center; gap: 16px; height: 70px; }
.brand { color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--teal); color: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.logo-name { font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.logo-name b { font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 200px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 8px; list-style: none; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.mi { font: inherit; width: 100%; border: 0; background: transparent; cursor: pointer; min-height: 46px; padding: 0 14px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; }
.mi:hover { background: var(--hover); text-decoration: none; }
.mi[aria-current] { color: var(--primary); }
.menu { display: none; }
.menu .menu-close { display: none; }
.menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: inline; }
.menu-panel { width: min(320px, calc(100vw - 32px)); gap: 8px; }
.menu-panel nav { display: flex; flex-direction: column; gap: 2px; }

@media (max-width: 899px) {
	.nav, .wide-only { display: none; }
	.menu { display: block; }
}

/* ---- Sections ---- */

.sec { padding: 88px 0; }
.sec.tight { padding: 8px 0 24px; }
.sec-alt { background: var(--surface); }
.sec-head { max-width: 720px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.page-head { padding-top: 64px; padding-bottom: 56px; }
@media (max-width: 639px) {
	.sec { padding: 60px 0; }
	.page-head { padding-top: 40px; padding-bottom: 40px; }
}

.night { background: var(--night); color: var(--night-ink); }
.night .eyebrow, .eyebrow.on-night { color: var(--night-accent); }
.on-night { color: var(--night-ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Hero ---- */

.hero { padding: 72px 0 104px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--night-ink-2); font-weight: 600; }
.hero-note svg { color: var(--night-accent); }
@media (max-width: 959px) {
	.hero { padding: 48px 0 88px; }
	.hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

.preview { position: relative; padding: 44px 12px 60px 0; color: var(--ink); }
.pv-card { background: var(--surface); border-radius: var(--radius-dialog); padding: 20px; box-shadow: 0 30px 80px rgb(0 0 0 / 35%); display: flex; flex-direction: column; gap: 16px; }
.pv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pv-head b { font-size: 18px; margin-right: auto; }
.pv-grid { display: grid; grid-template-columns: 36px repeat(5, minmax(0, 1fr)); grid-auto-rows: minmax(34px, auto); gap: 10px 6px; align-items: center; }
.pv-wd { grid-row: 1; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.pv-wd b { font-size: 15px; color: var(--ink); letter-spacing: 0; }
.pv-hol { align-self: stretch; background: var(--holiday-bg); border-radius: 12px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--holiday) 30%, transparent); }
.pv-grid .av { grid-column: 1; }
.pv-bar { height: 32px; border-radius: 999px; background: var(--cc); color: var(--c); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.pv-bar.pending { background: color-mix(in srgb, var(--cc) 45%, transparent); border: 1.5px dashed var(--c); }
.pv-toast { position: absolute; left: -18px; bottom: 0; display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-pop); max-width: min(340px, 92%); animation: rise .6s .3s ease-out both; }
.pv-toast b { display: block; font-size: 14px; }
.pv-toast .chip { margin-top: 4px; }
.pv-ok { width: 34px; height: 34px; border-radius: 50%; background: #137538; color: #fff; display: grid; place-items: center; flex: none; }
.pv-tile { position: absolute; right: -6px; top: 0; background: var(--surface); border-radius: 18px; padding: 10px 16px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: rise .6s .5s ease-out both; }
.pv-tile span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pv-tile b { font-size: 22px; color: var(--teal); }
@media (max-width: 639px) {
	.preview { padding: 44px 0 64px; }
	.pv-card { padding: 14px; }
	.pv-grid { grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 8px 4px; }
	.pv-bar { padding: 0 8px; font-size: 12px; height: 28px; }
	.av-sm { font-size: 12px; }
	.pv-head .lg { display: none; }
	.pv-toast { left: 0; }
	.pv-tile { right: 0; }
}

/* ---- Features, steps, banner, FAQ ---- */

.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius-card); padding: 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-card); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }
.feature-icon { width: 50px; height: 50px; border-radius: 16px; background: var(--cc); color: var(--c); display: grid; place-items: center; margin-bottom: 4px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--surface-2); border-radius: var(--radius-card); padding: 26px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.step::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); }

.banner { border-radius: var(--radius-dialog); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; background: linear-gradient(120deg, var(--primary-soft), var(--teal-soft)); }
.banner .grow { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 639px) { .banner { padding: 28px 22px; } }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface-2); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }
.final .t-title { color: var(--night-ink); }

/* ---- Pricing ---- */

.plans { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 899px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; background: var(--surface); border-radius: var(--radius-card); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card); }
.plan.featured { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-card); }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--primary); color: var(--on-primary); font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-size: 22px; }
.plan-tagline { color: var(--ink-2); font-size: 15px; min-height: 46px; }
.plan-price { display: flex; flex-direction: column; }
.plan-price b { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; }
.plan-price span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.plan-limit { font-size: 14px; font-weight: 700; color: var(--teal); }
.plan .ticks { flex: 1; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks svg { color: var(--teal); flex: none; margin-top: 2px; }
.ticks.big { font-size: 16px; gap: 10px; }

.table-card { background: var(--surface); border-radius: var(--radius-card); overflow-x: auto; box-shadow: var(--shadow-card); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-size: 15px; font-weight: 800; }
.compare thead th span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.compare th[scope='row'], .compare thead th:first-child { text-align: left; font-weight: 600; color: var(--ink); position: sticky; left: 0; background: var(--surface); max-width: 320px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--teal); }
.compare .no { color: var(--muted); opacity: .6; }

/* Below the table's width the comparison is one plan at a time (the table would show only its first columns). */
.compare-cards { display: none; flex-direction: column; gap: 10px; }
@media (max-width: 759px) {
	.table-card { display: none; }
	.compare-cards { display: flex; }
}
.cmp-plan { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); }
.cmp-plan summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-radius: 18px; }
.cmp-plan summary::-webkit-details-marker { display: none; }
.cmp-plan summary b { font-size: 17px; margin-right: 6px; }
.cmp-plan summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.cmp-plan[open] summary svg { transform: rotate(180deg); }
.cmp-list { list-style: none; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.cmp-list li { display: flex; gap: 10px; align-items: flex-start; }
.cmp-list li svg { flex: none; margin-top: 1px; }
.cmp-list .yes svg { color: var(--teal); }
.cmp-list .no { color: var(--muted); }
.cmp-list .kv { justify-content: space-between; }
.cmp-list .kv b { color: var(--ink); text-align: right; }


.calc { background: var(--surface); border-radius: var(--radius-dialog); padding: 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; box-shadow: var(--shadow-card); }
@media (max-width: 899px) { .calc { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.calc-inputs { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.calc-inputs .fld { width: 100%; }
.calc-inputs input[type='number'] { max-width: 200px; }
.calc-adjust { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.calc-result { background: var(--surface-2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.calc-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.calc-total output { font-size: clamp(36px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.calc-total span { font-weight: 700; color: var(--muted); }
.calc-breakdown { font-weight: 600; color: var(--ink-2); }
.calc-note { font-size: 14.5px; color: var(--ink-2); }
.calc-note.good { color: var(--teal); font-weight: 700; }
.calc-note.warn { color: var(--danger); font-weight: 700; }
.calc-result .btn { margin-top: 8px; }
.js .calc [data-calc-submit] { display: none; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.choice span .chip { padding: 2px 8px; font-size: 11.5px; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.choice input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }

.notes { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.notes li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.notes svg { color: var(--teal); flex: none; margin-top: 1px; }

/* ---- Forms ---- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 959px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.form-card { background: var(--surface); border-radius: var(--radius-dialog); padding: 32px; box-shadow: var(--shadow-card); }
@media (max-width: 639px) { .form-card { padding: 22px 18px; } }
/* The narrowest phones (320 px): the captcha is at least 300 px wide, so the form takes the whole width, without the
   card around it. */
@media (max-width: 359px) { .form-card { padding: 20px 0; background: none; box-shadow: none; border-radius: 0; } }
.side-card { background: var(--surface); border-radius: var(--radius-card); padding: 22px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mail-link { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; word-break: break-all; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld > label, .fld-label { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0; }
legend.fld-label { margin-bottom: 7px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.box { height: 50px; border-radius: var(--radius-field); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; width: 100%; outline: none; }
textarea.box { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.box { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a6d7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.box.file { padding: 11px 14px; height: auto; font-size: 14.5px; }
.box::placeholder { color: var(--muted); opacity: .8; }
.box:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus-ring); }
.box.err { border-color: var(--danger); }
.box.code { font-size: 24px; font-weight: 800; letter-spacing: .4em; text-align: center; max-width: 240px; }
.errmsg { font-size: 13.5px; font-weight: 600; color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.pw-rules { display: flex; flex-direction: column; gap: 6px; }
.checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks li svg { opacity: .35; }
.checks li.ok { color: var(--teal); font-weight: 600; }
.checks li.ok svg { opacity: 1; }
.resend .hint { display: inline; }
.sent { padding: 24px 0; }
.big-ok { width: 68px; height: 68px; border-radius: 50%; background: #137538; color: #fff; display: grid; place-items: center; margin: 0 auto; }
.spinner-lg { width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--primary); animation: spin .9s linear infinite; margin: 0 auto; }
.next-steps { text-align: left; background: var(--surface-2); border-radius: 20px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.next-steps ol { padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

.signup-steps { display: flex; flex-direction: column; gap: 10px; }
.signup-steps ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.signup-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.signup-steps .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.signup-steps li.on { color: var(--ink); }
.signup-steps li.on .dot { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.signup-steps li.done .dot { background: var(--teal); color: var(--surface); box-shadow: none; }

/* ---- Legal ---- */

.legal { max-width: 800px; display: flex; flex-direction: column; gap: 18px; }
.legal section { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; scroll-margin-top: 90px; }
.legal section p, .legal section li { color: var(--ink-2); }
.legal section ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.toc { background: var(--surface); border-radius: var(--radius-card); padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.toc ul { list-style: none; padding: 0; columns: 2 240px; column-gap: 32px; }
.toc li { padding: 2px 0; break-inside: avoid; }
.draft { align-self: flex-start; }

/* ---- Footer ---- */

.ftr { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 899px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .ftr-grid { grid-template-columns: minmax(0, 1fr); } }
.ftr-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.ftr-brand p { color: var(--muted); }
.ftr nav { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ftr nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.ftr nav a { color: var(--ink-2); overflow-wrap: anywhere; padding-block: 2px; }
.ftr-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---- Focus and motion ---- */

a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible, .pill:focus-visible, .mi:focus-visible, input[type='checkbox']:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}
.night a:focus-visible, .night .btn:focus-visible { outline-color: var(--night-accent); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
