/* Sora Books public site. Built from the app's design tokens (src/Sora.Web/wwwroot/css/app.css):
   "Sora" means sky, so indigo to sky blue. Base text 16px; nothing smaller than 14px. No web fonts. */

:root {
    --s-indigo: #4338ca;
    --s-indigo-dark: #3730a3;
    --s-indigo-mid: #6366f1;
    --s-sky: #0ea5e9;
    --s-sky-dark: #0369a1;
    --s-grad: linear-gradient(135deg, #4338ca 0%, #6366f1 45%, #0ea5e9 100%);
    /* Deeper versions of the same gradient, for places with white text on top (keeps WCAG AA contrast). */
    --s-grad-deep: linear-gradient(135deg, #312e81 0%, #4338ca 48%, #0369a1 100%);
    --s-grad-btn: linear-gradient(135deg, #4338ca 0%, #4f46e5 55%, #2563eb 100%);
    --s-bg: #f4f6fb;
    --s-surface: #ffffff;
    --s-text: #0f172a;
    --s-muted: #5b6474;
    --s-line: #e4e8f1;
    --s-soft: #eef1fb;
    --s-green: #059669;
    --s-amber: #b45309;
    --s-red: #dc2626;
    --s-radius: 14px;
    --s-radius-lg: 22px;
    --s-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
    --s-shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 18px 48px rgba(30, 27, 75, .12);
    --s-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --s-font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --s-max: 1180px;
    --s-gutter: 24px;
    --s-header-h: 68px;
    --s-check-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.4l2.2 2.2 4.6-5' fill='none' stroke='%23047857' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --s-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.4l2.2 2.2 4.6-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--s-header-h) + 12px); }
body { margin: 0; font-family: var(--s-font); font-size: 1rem; line-height: 1.6; color: var(--s-text); background: var(--s-bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--s-font-display); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 800; }
h2 { font-weight: 750; }
h3 { font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--s-indigo); text-underline-offset: 3px; }
a:hover { color: var(--s-indigo-dark); }
img, svg { max-width: 100%; }
img { height: auto; }
ul, ol { padding-left: 1.3em; }
[hidden] { display: none !important; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--s-sky); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--s-text); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--s-muted); }
.fine-print { color: var(--s-muted); font-size: .9375rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; border-radius: 12px; border: 1px solid transparent; font: 650 1rem/1.2 var(--s-font); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--s-grad-btn); color: #fff; box-shadow: 0 6px 18px rgba(67, 56, 202, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 24px rgba(67, 56, 202, .36); }
.btn-ghost { background: var(--s-surface); color: var(--s-indigo); border-color: var(--s-line); }
.btn-ghost:hover { border-color: #c7d2fe; color: var(--s-indigo-dark); }
.btn-light { background: #fff; color: var(--s-indigo-dark); box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }
.btn-light:hover { color: var(--s-indigo-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .9375rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .875rem; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-now { background: #d1fae5; color: #047857; }
.badge-soon { background: #e0e7ff; color: var(--s-indigo-dark); }
.badge-coming { background: #e0f2fe; color: var(--s-sky-dark); }
.badge-later { background: #eef0f4; color: #475569; }
.on-dark .badge, .slide-featured .badge { background: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--s-line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--s-header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--s-text); flex-shrink: 0; }
.brand img { display: block; border-radius: 10px; }
.brand-name { font: 750 1.3rem var(--s-font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover { color: var(--s-text); }
.nav-main { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.nav-main a { color: var(--s-muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav-main a:hover { color: var(--s-text); background: var(--s-soft); }
.nav-main a[aria-current="page"] { color: var(--s-indigo); background: var(--s-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-signin { display: none; color: var(--s-text); font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav-signin:hover { background: var(--s-soft); color: var(--s-indigo); }

.nav-mobile summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-text); cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--s-soft); border-color: #c7d2fe; color: var(--s-indigo); }
.nav-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--s-surface); border-bottom: 1px solid var(--s-line); box-shadow: 0 18px 30px rgba(15, 23, 42, .12); padding: 10px var(--s-gutter) 20px; display: grid; gap: 2px; max-height: calc(100vh - var(--s-header-h)); overflow-y: auto; }
.nav-mobile-panel > a { color: var(--s-text); text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: 12px 10px; border-radius: 10px; }
.nav-mobile-panel > a:hover, .nav-mobile-panel > a[aria-current="page"] { background: var(--s-soft); color: var(--s-indigo); }
.nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

@media (min-width: 720px) { .nav-signin { display: inline-flex; } }
@media (min-width: 1100px) {
    .nav-main { display: flex; }
    .nav-mobile { display: none; }
}
@media (max-width: 420px) { .header-signup { display: none; } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--s-surface); border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
.section-tight { padding: 56px 0; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2, .h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.eyebrow { display: inline-block; color: var(--s-indigo); font-weight: 700; font-size: .9375rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.lead { font-size: 1.1875rem; color: var(--s-muted); line-height: 1.55; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--s-grad-deep); color: #fff; padding: 76px 0 92px; }
.hero::before { content: ""; position: absolute; right: -180px; top: -200px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 165, 233, .55) 0%, rgba(14, 165, 233, 0) 68%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--s-bg); clip-path: ellipse(75% 100% at 50% 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9375rem; margin-bottom: 22px; }
.hero-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 0 4px rgba(253, 230, 138, .25); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero h1 .soft { color: #bae6fd; display: inline-block; }
.hero .lead { color: rgba(255, 255, 255, .9); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 600px; }
.hero .lead strong { color: #fff; }
.hero-actions { margin: 30px 0 22px; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: rgba(255, 255, 255, .88); font-size: .9375rem; }
.hero-art { position: relative; }
.hero-art img, .hero-art .art { display: block; width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 24px 40px rgba(15, 23, 42, .28)); }
.hero-art-panel { background: rgba(255, 255, 255, .96); border-radius: var(--s-radius-lg); padding: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); max-width: 520px; margin-left: auto; }
.hero-art-panel .art { filter: none; }

/* simple page heading (non-landing pages) */
.page-hero { background: linear-gradient(180deg, #e7eafb 0%, var(--s-bg) 100%); padding: 64px 0 36px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.025em; }
.page-hero .lead { max-width: 720px; }

/* ---------- lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin: 0 0 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .18em; width: 22px; height: 22px; border-radius: 50%; background: #d1fae5 var(--s-check-green) center / 13px no-repeat; }
.on-dark .check-list li::before, .check-list.on-dark li::before { background-color: rgba(255, 255, 255, .2); background-image: var(--s-check-white); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel-viewport { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); box-shadow: var(--s-shadow-lg); }
.carousel.is-enhanced .carousel-viewport { scrollbar-width: none; }
.carousel.is-enhanced .carousel-viewport::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 56px; }
.slide-art { background: linear-gradient(160deg, #eef1fb 0%, #e0f2fe 100%); border-radius: 18px; padding: 22px; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; }
.slide-art .art { width: 100%; max-width: 420px; height: auto; display: block; }
.slide-count { color: var(--s-muted); font-weight: 600; font-size: .9375rem; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.slide h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.slide p { font-size: 1.125rem; color: var(--s-muted); margin-bottom: .6em; }
.slide .slide-link { display: inline-block; margin-top: 10px; font-weight: 650; }
.slide-featured { background: var(--s-grad-deep); color: #fff; }
.slide-featured .slide-art { background: rgba(255, 255, 255, .96); }
.slide-featured .slide-count, .slide-featured p { color: rgba(255, 255, 255, .9); }
.slide-featured .slide-link { color: #fff; }
.slide-featured .slide-link:hover { color: #bae6fd; }
.slide-featured .highlight { display: inline-block; background: #fde68a; color: #422006; font-weight: 700; padding: 2px 10px; border-radius: 8px; font-size: .9375rem; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--s-shadow); transition: background-color .15s ease, color .15s ease; }
.carousel-btn:hover { background: var(--s-soft); color: var(--s-indigo); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.carousel-dot { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.carousel-dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #c7d2fe; transition: width .2s ease, background-color .2s ease; }
.carousel-dot:hover::before { background: var(--s-indigo-mid); }
.carousel-dot[aria-current="true"]::before { width: 24px; background: var(--s-indigo); }
.carousel-pause .icon-play { display: none; }
.carousel-pause[data-state="paused"] .icon-play { display: block; }
.carousel-pause[data-state="paused"] .icon-pause { display: none; }

/* ---------- cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); box-shadow: var(--s-shadow); padding: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-top h3 { margin: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--s-grad-btn); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font: 800 1.25rem var(--s-font-display); }
.icon-tile svg { width: 24px; height: 24px; }

/* why free */
.why-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.quote-card { background: var(--s-grad-deep); color: #fff; border-radius: var(--s-radius-lg); padding: 40px; box-shadow: var(--s-shadow-lg); position: relative; overflow: hidden; }
.quote-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.quote-card .big { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.2 var(--s-font-display); letter-spacing: -0.02em; margin-bottom: 16px; }
.quote-card p { color: rgba(255, 255, 255, .9); }

/* comparison strip */
.compare-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.price-tile { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 16px; padding: 22px; box-shadow: var(--s-shadow); }
.price-tile .who { font-weight: 700; font-size: 1.0625rem; }
.price-tile .plan { color: var(--s-muted); font-size: .9375rem; }
.price-tile .amount { font: 800 2.1rem/1.1 var(--s-font-display); letter-spacing: -0.02em; margin: 12px 0 4px; }
.price-tile .amount small { font-size: 1rem; font-weight: 600; color: var(--s-muted); letter-spacing: 0; }
.price-tile .per { color: var(--s-muted); font-size: .9375rem; margin: 0; }
.price-tile.is-sora { background: var(--s-grad-deep); color: #fff; border-color: transparent; box-shadow: var(--s-shadow-lg); }
.price-tile.is-sora .plan, .price-tile.is-sora .per, .price-tile.is-sora .amount small { color: rgba(255, 255, 255, .88); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 28px; box-shadow: var(--s-shadow); }
.step-num { width: 46px; height: 46px; border-radius: 14px; background: var(--s-grad-btn); color: #fff; font: 800 1.3rem var(--s-font-display); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--s-muted); margin: 0; }

/* call to action band */
.section-cta { padding-top: 24px; }
.cta-band { background: var(--s-grad-deep); color: #fff; border-radius: 26px; padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--s-shadow-lg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 165, 233, .5) 0%, rgba(14, 165, 233, 0) 70%); }
.cta-text { position: relative; max-width: 620px; }
.cta-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 10px; }
.cta-text p { color: rgba(255, 255, 255, .9); font-size: 1.125rem; margin: 0; }
.cta-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* notices */
.notice { background: #eef2ff; border: 1px solid #c7d2fe; border-left: 5px solid var(--s-indigo); border-radius: 12px; padding: 18px 22px; }
.notice p:last-child { margin-bottom: 0; }
.notice h2, .notice h3 { font-size: 1.15rem; margin-bottom: 6px; }
.draft-banner { background: #fef3c7; border: 2px solid #f59e0b; color: #78350f; border-radius: 12px; padding: 16px 20px; font-weight: 650; font-size: 1.0625rem; margin-bottom: 32px; }
.placeholder { background: #fef9c3; color: #713f12; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* ---------- features page ---------- */
.feature-group { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; padding: 56px 0; border-top: 1px solid var(--s-line); }
.feature-group:first-of-type { border-top: 0; padding-top: 16px; }
.feature-group-intro { position: sticky; top: calc(var(--s-header-h) + 24px); }
.feature-group-intro h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.feature-group-intro p { color: var(--s-muted); }
.feature-group-art { background: linear-gradient(160deg, #eef1fb 0%, #e0f2fe 100%); border-radius: 18px; padding: 18px; margin-top: 18px; }
.feature-group-art .art { display: block; width: 100%; height: auto; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 14px; padding: 18px 20px; }
.feature-list .feature-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 14px; flex-wrap: wrap; }
.feature-list strong { font-size: 1.0625rem; }
.feature-list p { color: var(--s-muted); margin: 6px 0 0; }
.status-key { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }

/* ---------- pricing ---------- */
.pricing-card { max-width: 640px; margin: 0 auto; background: linear-gradient(var(--s-surface), var(--s-surface)) padding-box, var(--s-grad) border-box; border: 3px solid transparent; border-radius: 26px; padding: 40px; box-shadow: var(--s-shadow-lg); }
.pricing-card .plan-name { font: 750 1.4rem var(--s-font-display); margin-bottom: 4px; }
.price { font: 800 clamp(3.4rem, 8vw, 4.6rem)/1 var(--s-font-display); letter-spacing: -0.04em; margin: 14px 0 4px; }
.price small { font-size: 1.125rem; font-weight: 600; color: var(--s-muted); letter-spacing: 0; }
.pricing-card .check-list { margin: 26px 0 30px; }
.pricing-card .check-list .badge { margin-left: 6px; vertical-align: 1px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-surface); box-shadow: var(--s-shadow); }
table.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 1rem; }
.compare-table caption { text-align: left; padding: 16px 18px 6px; color: var(--s-muted); font-size: .9375rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--s-line); }
.compare-table thead th { background: var(--s-soft); font-size: .9375rem; color: var(--s-muted); font-weight: 700; white-space: nowrap; }
.compare-table tbody th { font-weight: 700; white-space: nowrap; position: sticky; left: 0; background: var(--s-surface); z-index: 1; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tr.is-sora th, .compare-table tr.is-sora td { background: #eef2ff; }
.compare-table tr.is-sora th { color: var(--s-indigo-dark); }
.compare-table .note { display: block; color: var(--s-muted); font-size: .9375rem; margin-top: 4px; }
table.compare-table.compact { min-width: 600px; }
.approx { color: var(--s-amber); font-weight: 700; }

/* On phones the five-column price table becomes one card per provider. */
@media (max-width: 640px) {
    .table-wrap.stack-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
    table.compare-table.stack { min-width: 0; }
    .compare-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .compare-table.stack, .compare-table.stack tbody, .compare-table.stack tr, .compare-table.stack th, .compare-table.stack td { display: block; width: 100%; }
    .compare-table.stack caption { display: block; padding: 0 0 12px; }
    .compare-table.stack tbody tr { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); box-shadow: var(--s-shadow); margin-bottom: 14px; overflow: hidden; }
    .compare-table.stack tbody th { position: static; font-size: 1.125rem; padding: 14px 18px; border-bottom: 1px solid var(--s-line); white-space: normal; }
    .compare-table.stack td { border-bottom: 0; padding: 8px 18px; }
    .compare-table.stack td:last-child { padding-bottom: 16px; }
    .compare-table.stack td::before { content: attr(data-label); display: block; font-size: .875rem; font-weight: 700; color: var(--s-muted); }
    .compare-table.stack tbody tr:last-child th { border-bottom: 1px solid var(--s-line); }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); box-shadow: var(--s-shadow); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 60px 18px 22px; font-weight: 650; font-size: 1.0625rem; position: relative; border-radius: var(--s-radius); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--s-soft); color: var(--s-indigo); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 600; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose li { margin-bottom: .4em; }
.prose .schedule-heading { margin-top: 2.6em; padding-top: 1.2em; border-top: 2px solid var(--s-line); }
.prose .table-wrap { margin: 1em 0 1.2em; }

/* contact */
.contact-card { text-align: center; padding: 44px 28px; }
.contact-email { display: inline-block; font: 750 clamp(1.3rem, 4vw, 1.9rem) var(--s-font-display); margin: 8px 0 18px; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 64px 0 28px; margin-top: 40px; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { max-width: 360px; margin-top: 14px; }
.brand-light .brand-name { color: #fff; font-size: 1.2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #1e293b; margin-top: 44px; padding-top: 22px; font-size: .9375rem; }
.footer-base p { margin: 0; }

/* ---------- error pages ---------- */
.error-page { text-align: center; padding: 80px 0; }
.error-page img { width: 240px; margin-bottom: 20px; }
.error-actions { justify-content: center; margin-top: 24px; }

/* ---------- small spacing helpers ---------- */
.section-more { margin: 32px 0 0; }
.compare-note, .sources { margin: 22px auto 0; max-width: 820px; }
.later-note { margin-top: 24px; }
.pricing-lead { margin-left: auto; margin-right: auto; }
.pricing-cta { width: 100%; }
.pricing-fine { text-align: center; margin: 16px 0 0; }
.contact-more { margin-top: 20px; }
.why-grid .feature-list { margin-top: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .why-grid, .feature-group { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .hero-art img, .hero-art .art, .hero-art-panel, .status-card { margin: 0 auto; }
    .feature-group-intro { position: static; }
    .feature-group-art { max-width: 420px; }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .slide { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px 30px; align-content: start; }
    .slide-art { padding: 14px; }
    .cta-band { padding: 36px 26px; }
}
@media (max-width: 640px) {
    :root { --s-gutter: 16px; --s-header-h: 62px; }
    .section { padding: 60px 0; }
    .section-tight { padding: 40px 0; }
    .section-head { margin-bottom: 32px; }
    .hero { padding: 48px 0 72px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .page-hero { padding: 44px 0 24px; }
    .brand-name { font-size: 1.15rem; }
    .brand img { width: 32px; height: 32px; }
    .header-inner { gap: 12px; }
    .card, .step { padding: 22px; }
    .quote-card { padding: 28px; }
    .pricing-card { padding: 28px 22px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cta-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .btn:hover { transform: none; }
}

@media print {
    .site-header, .site-footer, .carousel-controls, .section-cta, .skip-link { display: none !important; }
    body { background: #fff; }
    .hero, .page-hero { background: none; color: var(--s-text); padding: 20px 0; }
    .hero .lead, .hero-note { color: var(--s-text); }
}

/* ---------- contact form (the address itself is never on a page) ---------- */
.contact-card .contact-form { text-align: left; display: grid; gap: 16px; margin-top: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    font: 400 1rem var(--s-font); padding: 12px 14px; border: 1px solid var(--s-line, #e4e8f1); border-radius: 10px;
    background: #fff; color: var(--s-text); width: 100%; box-sizing: border-box;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--s-indigo-mid); outline-offset: 1px; border-color: transparent; }
.contact-form button { justify-self: start; }
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* the waiting-list box ("tell me when sign-up opens"): shown unless another topic is chosen (no script; older browsers always show it) */
.contact-form label.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.contact-form label.consent input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--s-indigo-mid); }
.contact-form:has(select[name="Topic"] option:checked:not([value="interest"])) label.consent { display: none; }
.form-problem { color: #b91c1c; font-weight: 600; }
.form-problem ul { margin: 0; padding-left: 18px; }
/* an empty validation summary (no errors yet) must not show its empty list as a stray red dot */
.form-problem.validation-summary-valid { display: none; }
.contact-form .field-validation-error, .contact-form .input-validation-error { border-color: #dc2626; }

/* ---------- language switch (header) and flags ---------- */
.flag { display: inline-block; flex-shrink: 0; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .2); vertical-align: middle; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-text); font-weight: 600; cursor: pointer; white-space: nowrap; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang-switch[open] summary { background: var(--s-soft); border-color: #c7d2fe; color: var(--s-indigo); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 14px; box-shadow: var(--s-shadow-lg); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--s-text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--s-soft); color: var(--s-indigo); }
.lang-menu a[aria-current="true"]::after { content: ""; margin-left: auto; width: 16px; height: 16px; background: var(--s-check-green) center / 13px no-repeat; }
/* on small screens only the flag shows; the name stays for screen readers */
@media (max-width: 720px) {
    .lang-switch summary { padding: 0 10px; }
    .lang-current { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (max-width: 600px) { .header-interest { display: none; } }
/* a full header between 1100 and 1279 pixels: the switch shows only its flag, and the localised pages
   (longer words, see Localization/Texts) keep the menu button until 1280 */
@media (min-width: 1100px) and (max-width: 1279px) {
    .lang-current { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .locale-ca .nav-main, .locale-ja .nav-main, .locale-de .nav-main { display: none; }
    .locale-ca .nav-mobile, .locale-ja .nav-mobile, .locale-de .nav-mobile { display: block; }
}

/* footer: the same languages as a list, and the note that the legal pages are in English */
.footer-langs { flex-basis: 100%; }
.footer-langs ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-langs li { margin: 0; }
.footer-langs a { display: inline-flex; align-items: center; gap: 8px; }
.footer-langs a[aria-current="true"] { color: #fff; font-weight: 700; }
.footer-legal-note { color: #94a3b8; font-size: .875rem; margin: 12px 0 0; max-width: 260px; }

/* ---------- localised pages (/ca/, /ja/, /de/) ---------- */
.country-bar { background: #fef3c7; border-bottom: 1px solid #fcd34d; color: #78350f; }
.country-bar p { margin: 0; padding: 10px 0; font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.country-bar a { color: #78350f; font-weight: 700; }
.country-bar a:hover { color: #451a03; }
.status-card { background: rgba(255, 255, 255, .97); color: var(--s-text); border-radius: var(--s-radius-lg); padding: 28px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); max-width: 460px; margin-left: auto; }
.status-card h2 { font-size: 1.25rem; margin-bottom: 14px; }
.status-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.status-card li { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--s-line); border-radius: 12px; font-weight: 600; }
.status-card-price { margin: 0; color: var(--s-muted); font-weight: 600; }
.status-card-price .amount { font: 800 2rem/1 var(--s-font-display); color: var(--s-text); margin-right: 6px; }
.badge-not { background: #f1f5f9; color: #334155; box-shadow: inset 0 0 0 1px #94a3b8; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 32px; max-width: 980px; margin: 0 auto; }
.pricing-status { margin: 0 0 4px; font-weight: 600; }
.filing-notice { margin: 28px 0; }
.impressum h2:first-child { margin-top: 0; }

/* Japanese pages: the system's Japanese fonts (no web fonts), roomier lines, no negative letter spacing */
:root:lang(ja) {
    --s-font: "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
    --s-font-display: "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}
html:lang(ja) body { line-height: 1.85; line-break: strict; word-break: auto-phrase; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { letter-spacing: .01em; line-height: 1.4; }
html:lang(ja) .hero h1, html:lang(ja) .page-hero h1 { letter-spacing: 0; line-height: 1.3; }
html:lang(ja) .lead, html:lang(ja) .slide p { line-height: 1.8; }
html:lang(ja) .btn { line-height: 1.4; }

/* German pages: long compound words may break */
html:lang(de) p, html:lang(de) li, html:lang(de) h1, html:lang(de) h2, html:lang(de) h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
html:lang(de) .btn { white-space: normal; text-align: center; }
html:lang(de) .hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); }
