/* uniacross.com: modern design system, no framework */
:root {
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #eef2f8; --fg: #0f1b2d; --muted: #5a6780; --line: #e3e8f0;
  --brand: #2d5bd7; --brand-2: #1d3f9e; --teal: #0fb5a5; --accent: #ff7a3d; --accent-2: #e8601f;
  --brand-soft: #e9efff; --teal-soft: #e2f7f4; --accent-soft: #fff0e6;
  --ok: #138a5b; --warn: #b26b00; --danger: #c62f2f;
  --grad: linear-gradient(120deg, #1d3f9e 0%, #2d5bd7 45%, #0fb5a5 100%);
  --radius: 18px; --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .05);
  --shadow: 0 2px 6px rgba(15, 27, 45, .05), 0 12px 32px rgba(15, 27, 45, .07);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, .18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --surface: #111a2c; --surface-2: #17223a; --fg: #e8edf6; --muted: #9aa7bd; --line: #24314b;
    --brand: #7aa2ff; --brand-2: #a8c1ff; --teal: #3fd6c6; --accent: #ff9a63; --accent-2: #ffb488;
    --brand-soft: #18264a; --teal-soft: #0f2e30; --accent-soft: #3a2416;
    --ok: #4cc98f; --warn: #e3a64b; --danger: #f07c7c;
    --shadow: 0 1px 0 rgba(255,255,255,.03); --shadow-lg: 0 24px 60px rgba(0,0,0,.5); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.022em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
code { background: var(--surface-2); padding: .12em .4em; border-radius: 6px; font-size: .88em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.narrow-doc { max-width: 840px; }
.section { padding: 56px 20px; }
.section-tight { padding: 32px 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 68ch; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 750; color: var(--brand); margin: 0 0 6px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 10px 14px; z-index: 99; border-radius: 10px; }
mark.todo { background: #fff2b3; color: #5a4300; padding: 0 .3em; border-radius: 4px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.32rem; color: var(--fg); text-decoration: none; letter-spacing: -.03em; margin: 0; }
.logo-text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(45, 91, 215, .35); flex: none; }
.logo-mark svg { width: 20px; height: 20px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { color: var(--fg); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { background: var(--surface-2); color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.site-nav .nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; }
.site-nav a.btn { color: #fff; padding: 9px 16px; margin-left: 4px; }
.nav-toggle { display: none; background: var(--surface-2); border: 0; border-radius: 10px; padding: 9px 14px; color: var(--fg); font: 600 .95rem var(--font); }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .site-nav .nav-sep { display: none; }
  .site-nav a.btn { text-align: center; margin: 8px 0 0; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; font: 650 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; box-shadow: 0 6px 16px rgba(45, 91, 215, .25); }
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(45, 91, 215, .32); }
.btn:active { transform: none; }
.btn-accent { background: var(--accent); box-shadow: 0 8px 22px rgba(255, 122, 61, .35); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 12px 28px rgba(255, 122, 61, .42); }
.btn-ghost { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-2); box-shadow: none; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.26); color: #fff; box-shadow: none; }
.btn-small { padding: 7px 13px; font-size: .9rem; border-radius: 10px; }
.btn-large { padding: 15px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-google { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-google:hover { background: var(--surface-2); color: var(--fg); box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .btn:not(.btn-ghost):not(.btn-google):not(.btn-light) { color: #0b1220; } }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.danger { color: var(--danger); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 22px; }
.grid > .card { margin-bottom: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }
a.card { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.more { font-weight: 650; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .15s; }
a:hover .more::after, .more:hover::after { transform: translateX(3px); }

/* photo element (picture) */
.ph { position: relative; overflow: hidden; }
.ph picture, .ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph img { object-fit: cover; }

/* tool cards with photos */
.tool-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tool-card .ph { aspect-ratio: 16 / 9; }
.tool-card .ph img { transition: transform .5s ease; }
.tool-card:hover .ph img { transform: scale(1.05); }
.tool-card .tool-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-card h3 { margin: 0; font-size: 1.15rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.tool-card .more { margin-top: auto; padding-top: 10px; }
.tool-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.35rem; margin-top: -42px; position: relative; border: 3px solid var(--surface); box-shadow: var(--shadow); }

/* country cards */
.country-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.country-card .cc-top { position: relative; height: 112px; overflow: hidden; }
.country-card .cc-top .ph { position: absolute; inset: 0; }
.country-card .cc-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 18, 34, .55)); }
.country-card .cc-flag { position: absolute; left: 18px; bottom: 12px; z-index: 1; font-size: 2rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.country-card .cc-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.country-card h3, .country-card h2 { margin: 0; font-size: 1.15rem; }
.country-card h2 a { color: inherit; text-decoration: none; }
.country-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.country-card ul { padding-left: 1.1em; margin: .3em 0 .6em; color: var(--muted); font-size: .95rem; }
.country-card .more { margin-top: auto; padding-top: 8px; }
/* flag-coloured backgrounds for countries without a photo */
.flagbg { position: absolute; inset: 0; }
.flagbg-nl { background: linear-gradient(180deg, #ae1c28 0 33.3%, #f2f2f2 33.3% 66.6%, #21468b 66.6%); }
.flagbg-de { background: linear-gradient(180deg, #111 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flagbg-ie { background: linear-gradient(90deg, #169b62 0 33.3%, #f2f2f2 33.3% 66.6%, #ff883e 66.6%); }
.flagbg-ch { background: radial-gradient(circle at 70% 50%, #ff3b3b 0, #d52b1e 60%); }
.flagbg-es { background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flagbg-uk { background: linear-gradient(135deg, #012169, #c8102e); }
.flagbg-us { background: linear-gradient(135deg, #3c3b6e, #b22234); }
.flagbg-fr { background: linear-gradient(90deg, #0055a4 0 33.3%, #f2f2f2 33.3% 66.6%, #ef4135 66.6%); }
.flagbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15, 27, 45, .25), rgba(15, 27, 45, .05)); }

/* ---------- hero (home) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero .ph { position: absolute; inset: 0; z-index: -2; }
.hero .ph img { object-position: 70% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 22, 52, .94) 0%, rgba(16, 38, 96, .82) 38%, rgba(16, 38, 96, .25) 70%, rgba(16, 38, 96, .05) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 40px; align-items: center; padding-top: 84px; padding-bottom: 96px; min-height: 620px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 span { background: linear-gradient(90deg, #8fb4ff, #5fe3d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 54ch; }
.hero .eyebrow { color: #8fe6da; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: rgba(255,255,255,.82); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(95, 227, 211, .22); color: #8fe6da; font-size: .75rem; font-weight: 800; }
.glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-radius: 22px; padding: 22px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); color: #fff; }
.glass h2 { font-size: 1.05rem; margin: 0 0 10px; color: #fff; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.glass h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fe3d3; box-shadow: 0 0 0 4px rgba(95, 227, 211, .25); }
.glass .deadline-list li { border-color: rgba(255,255,255,.16); }
.glass .deadline-list time { color: #9fc2ff; }
.glass a { color: #fff; font-weight: 650; }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 60px; min-height: 0; } .hero::before { background: linear-gradient(180deg, rgba(10, 22, 52, .9), rgba(16, 38, 96, .78)); } }

/* stats strip */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font-size: 1.9rem; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.15; }
.stat-item span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats-inner { grid-template-columns: 1fr 1fr; } .stat-item:nth-child(2) { border-right: 0; } .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(45, 91, 215, .3); }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* split feature with photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .ph { aspect-ratio: 4 / 3; border-radius: 24px; box-shadow: var(--shadow-lg); }
.split ul.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.split ul.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.split ul.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: .85rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; color: #fff; padding: 56px 48px; }
.cta-band .ph { position: absolute; inset: 0; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(29, 63, 158, .95), rgba(15, 181, 165, .78)); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 56ch; }
@media (max-width: 640px) { .cta-band { padding: 36px 24px; border-radius: 22px; } }

/* band */
.band { background: var(--surface-2); padding: 56px 0; }
.band h3 { margin-top: 0; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--surface); box-shadow: var(--shadow); }
.feature h3 { margin: 4px 0 4px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--grad); }
.page-hero .ph { position: absolute; inset: 0; z-index: -2; }
.page-hero .flagbg { z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 22, 52, .92) 0%, rgba(16, 38, 96, .72) 50%, rgba(16, 38, 96, .3) 100%); }
.page-hero-inner { padding-top: 44px; padding-bottom: 52px; }
.page-hero h1 { color: #fff; margin: .1em 0 .25em; max-width: 26ch; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .lead { color: rgba(255,255,255,.86); margin: 0; }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255,255,255,.75); }
.page-hero .doc-meta { color: rgba(255,255,255,.8); margin-top: 14px; }
.page-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* ---------- docs (country & guide pages) ---------- */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; font-size: .92rem; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow-sm); }
.toc-title { font-weight: 750; text-transform: uppercase; font-size: .74rem; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li a { display: flex; gap: 8px; padding: 5px 8px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.toc li a::before { content: counter(toc); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc li a:hover { background: var(--surface-2); }
.toc-tools { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; max-height: none; } }
.doc { min-width: 0; }
.doc h2 { padding-top: 1.1em; margin-top: 1.4em; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc h2:first-of-type { border-top: 0; margin-top: .4em; padding-top: 0; }
.doc h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.doc p, .doc li { max-width: 78ch; }
.doc li { margin: .35em 0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li::marker { color: var(--brand); }
.doc blockquote { border-left: 4px solid var(--teal); margin: 1.2em 0; padding: .6em 1.2em; background: var(--teal-soft); border-radius: 0 12px 12px 0; }
.doc-meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.legend { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.doc-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 36px 32px; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .doc-body { padding: 18px 18px 22px; } }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.st { font-size: .82em; cursor: help; }

/* ---------- forms ---------- */
.form label, .tool-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--fg); font: 1rem var(--font); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
label.check, label.radio { display: block; position: relative; padding-left: 28px; font-weight: 450; margin: 7px 0; font-size: .96rem; cursor: pointer; line-height: 1.5; }
label.check input, label.radio input { position: absolute; left: 0; top: .2em; margin: 0; accent-color: var(--brand); width: 17px; height: 17px; }
.checks { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.field-error { color: var(--danger); margin: 4px 0 0; font-size: .9rem; }
.consents { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; margin: 18px 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 22px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-inline input { width: auto; flex: 1 1 200px; margin: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0; }
.row2, .row3 { display: grid; gap: 0 12px; }
.row2 { grid-template-columns: 2fr 1fr; } .row3 { grid-template-columns: repeat(3, 1fr); }
.lang-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 12px; }

/* auth split layout */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-side { position: relative; overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: flex-end; padding: 48px; }
.auth-side .ph { position: absolute; inset: 0; z-index: -2; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 38, 96, .15), rgba(10, 22, 52, .9)); }
.auth-side h2 { color: #fff; font-size: 1.8rem; margin: 0 0 10px; max-width: 18ch; }
.auth-side ul { padding: 0; list-style: none; margin: 0; display: grid; gap: 8px; color: rgba(255,255,255,.88); }
.auth-side li::before { content: "✓  "; color: #8fe6da; font-weight: 800; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-main > div { width: 100%; max-width: 440px; }
.auth-main h1 { font-size: 2rem; }
.auth-main .card { box-shadow: none; padding: 0; border: 0; background: transparent; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- flashes, badges ---------- */
.flash { padding: 13px 18px; border-radius: 14px; margin: 18px 0; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; gap: 10px; align-items: flex-start; }
.flash::before { font-weight: 800; }
.flash-success { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); } .flash-success::before { content: "✓"; color: var(--ok); }
.flash-error { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); } .flash-error::before { content: "!"; color: var(--danger); }
.flash-info { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); } .flash-info::before { content: "i"; color: var(--brand); }
.badge { display: inline-block; font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-weight: 650; vertical-align: middle; }
.badge-warn { background: var(--accent-soft); color: var(--accent-2); }
.notice { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: linear-gradient(135deg, var(--brand-soft), var(--surface) 60%); }

/* ---------- tools ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; } }
.tool-form { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow: auto; margin: 0; }
@media (max-width: 960px) { .tool-form { position: static; max-height: none; } }
.tool-form fieldset:first-of-type { margin-top: 0; }
.tool-form .btn-large { margin-top: 20px; width: 100%; }
.tool-results .card.muted { display: flex; align-items: center; gap: 14px; min-height: 120px; border-style: dashed; box-shadow: none; background: transparent; }
.tool-results .card.muted::before { content: "✨"; font-size: 1.6rem; }
.result { position: relative; overflow: hidden; }
.result::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brand); }
.result.good::before { background: var(--ok); } .result.mid::before { background: var(--warn); } .result.low::before { background: var(--danger); }
.result h3 { margin-top: 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 1.2rem; }
.score { font-size: .82rem; color: var(--muted); font-weight: 700; white-space: nowrap; background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0 14px; }
.meter span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.result ul { padding-left: 1.3em; margin: .3em 0; }
.pros li::marker { content: "✓  "; color: var(--ok); }
.cons li::marker { content: "!  "; color: var(--warn); font-weight: 800; }
.verdict { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.verdict.good { color: var(--ok); } .verdict.mid { color: var(--warn); } .verdict.low { color: var(--danger); }
.cost-total { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0 12px; }
.tl-group h3 { position: sticky; top: var(--header-h); background: var(--bg); padding: 8px 0; margin: 18px 0 8px; z-index: 1; }
.tl-item { display: grid; grid-template-columns: 9em 1fr; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.tl-item.past { opacity: .5; }
.tl-item time { font-weight: 750; color: var(--brand); }
.tl-item .meta { font-size: .86rem; color: var(--muted); }
@media (max-width: 560px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

/* deadline list */
.deadline-list { list-style: none; padding: 0; margin: 0 0 14px; }
.deadline-list li { display: grid; grid-template-columns: 7.4em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.deadline-list li:last-child { border-bottom: 0; }
.deadline-list time { font-weight: 750; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- account ---------- */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 26px; position: sticky; top: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); padding: 10px 0; z-index: 5; }
.tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); background: var(--surface); font-size: .92rem; font-weight: 550; }
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
section[id], div[id] { scroll-margin-top: 130px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-n { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.task-list { list-style: none; padding: 0; margin: 18px 0; }
.task-list li { display: grid; grid-template-columns: 36px 8em 1fr 28px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-list li.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-list li.late .task-date { color: var(--danger); font-weight: 700; }
.tick { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--brand); background: var(--surface); color: var(--ok); font-weight: 800; cursor: pointer; }
.plan-list { list-style: none; padding: 0; }
.plan-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plan-list p { margin: .2em 0 0; color: var(--muted); }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-form select, .inline-form input { width: auto; margin: 0; padding: 7px 9px; font-size: .9rem; }
.add-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 8px; }
.import-form { background: var(--surface-2); padding: 14px 16px; border-radius: 14px; }
.data-actions h3 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: #0b1527; color: #c3cde0; padding: 56px 0 28px; margin-top: 64px; }
.site-footer a { color: #dfe7f5; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; }
.site-footer .muted { color: #8e9ab2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8e9ab2; margin: 6px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin: 7px 0; font-size: .95rem; }
.site-footer .linklike { color: #dfe7f5; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .86rem; color: #8e9ab2; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; }
.cookie-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px 22px; max-width: 780px; width: 100%; }
.cookie-inner h2 { margin: 0 0 6px; font-size: 1.1rem; }
.cookie-inner p { margin: 0 0 12px; font-size: .94rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { flex: 1 1 auto; }

/* small motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
