/*
  my-conference.net · one design system for the whole central application (public site and signed-in panels).
  Tokens first, then base, components, the two layouts, and the sections of the public pages.
  Light and dark follow the visitor's system. Mobile first: every rule below works at 320px and is widened at 640 / 900 / 1100.
*/
:root {
  --bg: #ffffff; --alt: #f5f7fb; --surface: #ffffff; --surface-2: #f9fafc;
  --text: #0f172a; --text-2: #334155; --muted: #566478; --line: #e2e8f0; --line-strong: #cbd5e1;
  --brand: #1e3a8a; --brand-hover: #172e6e; --on-brand: #ffffff; --accent: #2563eb; --accent-soft: #e8f0fe; --accent-line: #bfd3fb;
  --ok: #166534; --ok-bg: #e7f6ec; --ok-line: #b7e1c4;
  --warn: #8a4b00; --warn-bg: #fff4e0; --warn-line: #f2d49a;
  --bad: #a1241c; --bad-bg: #fdeceb; --bad-line: #f1bdb9;
  --hero-from: #eef4ff; --hero-to: #ffffff;
  --radius-s: 8px; --radius: 12px; --radius-l: 18px;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .22), 0 3px 10px rgba(15, 23, 42, .05);
  --shadow-l: 0 24px 60px -20px rgba(15, 23, 42, .32), 0 6px 18px rgba(15, 23, 42, .07);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --alt: #0e1628; --surface: #121b30; --surface-2: #162038;
    --text: #f1f5f9; --text-2: #cbd5e1; --muted: #9aa8bd; --line: #243049; --line-strong: #34425e;
    --brand: #bcd2fb; --brand-hover: #d7e5fd; --on-brand: #0b1120; --accent: #6aa3f7; --accent-soft: #14264a; --accent-line: #264378;
    --ok: #6ee09a; --ok-bg: #11291c; --ok-line: #1f5236;
    --warn: #f3c46f; --warn-bg: #2f2410; --warn-line: #5b4417;
    --bad: #f5a29b; --bad-bg: #321716; --bad-line: #62302d;
    --hero-from: #0f1c3a; --hero-to: #0b1120;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7), 0 3px 10px rgba(0, 0, 0, .3); --shadow-l: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 6px 18px rgba(0, 0, 0, .4);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.app-page { background: var(--alt); }
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.2rem); font-weight: 750; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 700; margin-top: 2rem; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.small { font-size: .875rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .9rem; margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: 0 0 var(--radius-s) var(--radius-s); text-decoration: none; }
.skip:focus { top: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- components ---------- */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .6rem 1.15rem; border: 1px solid var(--brand); border-radius: var(--radius-s); background: var(--brand); color: var(--on-brand) !important; font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn.secondary, .btn.ghost { background: transparent; color: var(--brand) !important; border-color: var(--line-strong); }
.btn.secondary:hover, .btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff !important; }
.btn.small { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
.btn.big { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

label { display: block; font-weight: 600; font-size: .95rem; margin: 16px 0 6px; }
label.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; margin: 14px 0 0; }
label.check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--accent); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=tel], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
input:disabled, select:disabled, textarea:disabled { background: var(--alt); color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.error { color: var(--bad); font-size: .9rem; margin-top: 6px; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-s); }
.card > :last-child { margin-bottom: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }

.alert, .notice { padding: .8rem 1rem; border-radius: var(--radius-s); margin-bottom: 16px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.alert.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.notice { background: var(--accent-soft); color: var(--text); border-color: var(--accent-line); }
.badge { display: inline-flex; align-items: center; padding: .12rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--alt); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table th:first-child, .table-wrap table td:first-child { padding-left: 1rem; }
.bar-outer { background: var(--line); border-radius: 99px; height: .5rem; overflow: hidden; min-width: 90px; }
.bar-inner { background: var(--ok); height: 100%; }
.bar-inner.warn { background: var(--warn); } .bar-inner.bad { background: var(--bad); }
.price { font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.slugline { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.slugline span { color: var(--muted); white-space: nowrap; }
.pagination { display: flex; gap: .3rem; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: block; min-width: 38px; text-align: center; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; background: var(--surface); }
.pagination li.active span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
nav[role=navigation] svg { width: 1rem; height: 1rem; }

.startbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; margin-bottom: 4px; background: var(--surface-2); }
.startbox .opt { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; margin: .8rem 0; cursor: pointer; }
.startbox .opt input { margin-top: .3rem; flex: none; width: auto; min-height: 0; }
.startbox .opt .hint { display: block; }
.startbox .opt.small { margin: .4rem 0; }
.startbox .sub { margin: 0 0 .6rem 1.7rem; padding-left: .9rem; border-left: 3px solid var(--line); }
.startbox .sub select { max-width: 100%; margin-bottom: .5rem; }

/* ---------- header (both layouts) ---------- */
.site-top, header.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; line-height: 0; flex: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; } .nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); } .nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.nav-panel { display: flex; align-items: center; gap: 1.6rem; }
.nav-panel nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-panel nav a, .nav-panel .link { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .95rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.nav-panel nav a:hover, .nav-panel .link:hover, .nav-panel nav a[aria-current] { color: var(--brand); }
.nav-panel nav a[aria-current] { box-shadow: 0 2px 0 var(--accent); padding-bottom: 2px; }
.nav-panel .actions { display: flex; align-items: center; gap: .9rem; }
.nav-panel .actions .btn { min-height: 40px; padding: .45rem 1.05rem; font-size: .93rem; }
.nav-panel form { margin: 0; }
.nav-panel .lang { color: var(--muted); font-size: .8rem; border: 1px solid var(--line); padding: .15rem .5rem; border-radius: 6px; text-decoration: none; }
@media (max-width: 899.98px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s, visibility .18s; }
  .nav-open .nav-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .nav-panel nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-panel nav a, .nav-panel .link { display: block; padding: .95rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .nav-panel nav a[aria-current] { box-shadow: none; color: var(--brand); }
  .nav-panel .actions { flex-direction: column; align-items: stretch; gap: .7rem; padding-top: 16px; }
  .nav-panel .actions .btn { min-height: 48px; }
  .nav-panel .actions .link { border-bottom: 0; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: .8rem; }
  .nav-panel .lang { align-self: flex-start; }
}

/* ---------- app pages (signed in) ---------- */
.app-page main { padding-block: 28px 72px; }
.app-page main > .wrap, .app-page main.wrap { max-width: 1080px; }
.app-page main.narrow, .app-page main > .wrap.narrow { max-width: 480px; }
.app-page h1 { margin-bottom: .5rem; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title p { margin: .35rem 0 0; color: var(--muted); }
.app-page .alert { margin-top: 0; }
.auth-card { max-width: 440px; margin: 24px auto 0; }
.auth-card .card { padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 1.2rem; font-size: 1.6rem; }
.auth-aside { text-align: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
@media (max-width: 599.98px) {
  .app-page main { padding-block-start: 20px; }
  .card { padding: 16px; }
  .auth-card .card { padding: 20px; }
  .page-title .btn { width: 100%; }
}

/* ---------- footer ---------- */
.site-foot, body > footer { flex: none; background: var(--alt); border-top: 1px solid var(--line); padding: 44px 0 24px; color: var(--muted); }
body > footer.simple { padding: 20px; display: flex; gap: .5rem 1.4rem; flex-wrap: wrap; justify-content: center; font-size: .9rem; }
body > footer.simple a { color: var(--muted); text-decoration: none; } body > footer.simple a:hover { color: var(--text); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.foot-grid h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .7rem; font-weight: 700; }
.foot-grid a { display: block; color: var(--text-2); text-decoration: none; padding: .22rem 0; font-size: .95rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { max-width: 38ch; margin: .6rem 0 0; font-size: .95rem; }
.foot-logo { display: block; height: 26px; width: auto; }
.foot-copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- public site ---------- */
.site-page section { padding: 56px 0; }
@media (min-width: 900px) { .site-page section { padding: 88px 0; } }
.site-page section.alt { background: var(--alt); }
.site-page section.tight { padding-top: 0; }
.eyebrow { display: inline-block; padding: .28rem .85rem; border-radius: 999px; background: var(--accent-soft); color: var(--brand); font-size: .82rem; font-weight: 650; border: 1px solid var(--accent-line); margin-bottom: 1.1rem; }
.head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.head h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 780; }
.head p { color: var(--muted); font-size: 1.1rem; margin: .9rem 0 0; }
.head.left { text-align: left; margin-left: 0; }

.hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: 56px 0 24px !important; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 88px 0 40px !important; } }
.hero .copy { max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-2); margin: 1.2rem auto 0; max-width: 62ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.hero .fine { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 479.98px) { .hero .cta .btn { width: 100%; } }
.frame { margin: 40px auto 0; max-width: 1040px; border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-l); border: 1px solid var(--line); overflow: hidden; }
.frame .dots { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.frame .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.frame img { display: block; width: 100%; }

.strip { padding: 22px 0 !important; border-bottom: 1px solid var(--line); background: var(--bg); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 2rem; grid-template-columns: 1fr; color: var(--text-2); font-weight: 550; font-size: .95rem; }
@media (min-width: 640px) { .strip ul { grid-template-columns: repeat(2, auto); justify-content: center; } }
@media (min-width: 1000px) { .strip ul { display: flex; justify-content: center; flex-wrap: wrap; } }
.strip li::before { content: ""; display: inline-block; width: .5rem; height: .5rem; background: var(--ok); border-radius: 50%; margin-right: .6rem; vertical-align: .1em; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.features.three { }
@media (min-width: 1000px) { .features.three { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-s); }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); border: 1px solid var(--accent-line); font-weight: 750; margin-bottom: 14px; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.feature h3 { margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

.steps { display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 750; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }

.two-col { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { position: relative; padding: .4rem 0 .4rem 1.8rem; color: var(--text-2); }
.list-check li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 1rem; height: .55rem; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) scale(.9); }
.list-dash li::before { border: 0; width: .7rem; height: 2.5px; background: var(--muted); transform: none; top: 1.05rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow-s); }
.panel h3 { font-size: 1.2rem; margin-bottom: .8rem; }

.showcase { display: grid; gap: 56px; }
.showcase .row { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .showcase { gap: 80px; } .showcase .row { grid-template-columns: 1fr 1.35fr; gap: 48px; } .showcase .row.flip { grid-template-columns: 1.35fr 1fr; } .showcase .row.flip .text { order: 2; } }
.showcase .text h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 780; margin-bottom: .7rem; }
.showcase .text p { color: var(--muted); margin: 0 0 1rem; }
.showcase .frame { margin: 0; }

.band { background: linear-gradient(135deg, #0b3a63, #1e3a8a 60%, #243b9a); color: #fff; border-radius: var(--radius-l); padding: 44px 24px; text-align: center; }
@media (min-width: 700px) { .band { padding: 60px 40px; } }
.band h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 780; }
.band p { color: #d3deee; max-width: 60ch; margin: .9rem auto 1.6rem; font-size: 1.05rem; }
.band .btn { background: #fff; color: #0b2a52 !important; border-color: #fff; margin: .25rem; }
.band .btn:hover { background: #e8f0fe; border-color: #e8f0fe; }
.band .btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.band .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 479.98px) { .band .btn { width: 100%; margin: .3rem 0; } }

/* plans */
.free-card { max-width: 860px; margin: 0 auto 24px; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius-l); padding: 24px; display: grid; gap: 18px 32px; grid-template-columns: 1fr; align-items: center; box-shadow: var(--shadow); }
@media (min-width: 700px) { .free-card { grid-template-columns: 1fr auto; padding: 28px 32px; } }
.free-card.wide { max-width: 1040px; }
.free-card h3 { font-size: 1.5rem; }
.free-card .price { font-size: 2.4rem; font-weight: 800; }
.free-card ul { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .3rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); color: var(--text-2); }
.free-card li::before { content: "✓"; color: var(--ok); margin-right: .45rem; font-weight: 700; }
.free-card .buy { text-align: left; } @media (min-width: 700px) { .free-card .buy { text-align: right; } }
.site-page .table-wrap { max-width: 860px; margin: 0 auto; box-shadow: var(--shadow-s); }
.site-page .table-wrap.wide { max-width: 1040px; }
table.plans { font-size: .96rem; }
table.plans th, table.plans td { white-space: nowrap; padding: 14px 18px; }
table.plans td.price { font-size: 1rem; font-weight: 750; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; width: 150px; }
table.compare td { white-space: normal; }
td.yes { color: var(--ok); font-weight: 750; font-size: 1.1rem; } td.no { color: var(--muted); }
.plans-note { max-width: 860px; margin: 16px auto 0; color: var(--muted); font-size: .93rem; text-align: center; }
.plans-note.wide { max-width: 1040px; }
@media (max-width: 679.98px) {
  /* a plan becomes a card on a phone: nothing to scroll sideways */
  table.plans.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.plans.stack, table.plans.stack tbody, table.plans.stack tr, table.plans.stack td { display: block; width: 100%; }
  table.plans.stack tr { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  table.plans.stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .25rem 14px; white-space: normal; text-align: right; }
  table.plans.stack td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; }
  table.plans.stack td:first-child { font-weight: 750; font-size: 1.05rem; text-align: left; justify-content: flex-start; padding-bottom: .5rem; }
  table.plans.stack td:first-child::before { content: none; }
}

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 0 0 18px; max-width: 70ch; }
.faq-group { max-width: 820px; margin: 48px auto 8px; font-size: 1.45rem; font-weight: 780; }
.toc { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0 0 8px; }
.toc a { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); color: var(--text-2); text-decoration: none; font-size: .93rem; font-weight: 550; border: 1px solid var(--line-strong); }
.toc a:hover { border-color: var(--accent); color: var(--brand); }

/* inner page heads, contact */
.page-hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: 52px 0 8px !important; }
@media (min-width: 900px) { .page-hero { padding: 76px 0 8px !important; } }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.page-hero .head { margin-bottom: 0; }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; } }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .card-form { padding: 30px; } }
.card-form > label:first-of-type { margin-top: 0; }
.card-form .two { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-form .two { grid-template-columns: 1fr 1fr; } }
.card-form .notice.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.contact-side { display: grid; gap: 16px; }

/* long texts (legal) */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: .4rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.3rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin: .3rem 0; }
.prose table { display: block; overflow-x: auto; font-size: .93rem; border: 1px solid var(--line); border-radius: var(--radius-s); margin: 0 0 1.2rem; }
.prose th, .prose td { min-width: 130px; }
.prose a { word-break: break-word; }

/* admin sub-navigation */
.subnav { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.subnav .btn { flex: none; }

.btn.block { width: 100%; }
.app-page main.narrow > h1 { text-align: center; margin: 12px 0 20px; }
.app-page main.narrow .card { padding: 26px; box-shadow: var(--shadow); }
.app-page main.narrow .auth-aside { text-align: center; margin-top: 18px; color: var(--muted); }

/* panels on a phone: a title with its buttons stacks, buttons stay easy to hit */
@media (max-width: 599.98px) {
  .row.between { align-items: flex-start; }
  .row.between > .row, .row.between > form { width: 100%; }
  .row.between .btn.small { flex: 1 1 auto; }
  .table-wrap table th, .table-wrap table td { padding: .55rem .6rem; }
}
@media (min-width: 560px) and (max-width: 999.98px) { .features.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599.98px) {
  .row.between > .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: stretch; }
  .row.between > .row > .badge { grid-column: 1 / -1; justify-self: start; }
  .row.between > .row > form .btn, .row.between > .row > .btn { width: 100%; }
  .row.between > .row > .btn:only-of-type { grid-column: 1 / -1; }
}
@media (max-width: 599.98px) { .row.between > .row > form:last-child { grid-column: 1 / -1; } }
.slugline { flex-wrap: nowrap; } .slugline input { flex: 1 1 90px; min-width: 0; width: auto; }
@media (max-width: 599.98px) { .row.between > div[style*="text-align:right"] { text-align: left !important; } }
