/* © 2026 FrancSense. All rights reserved. */
:root {
  --bg: #fafaf8; --surface: #ffffff; --text: #1c1d21; --muted: #5d6068; --line: #e4e4df;
  --accent: #d52b1e; --accent-ink: #ffffff; --accent-soft: #fdecea; --ok: #1a7f4b;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.04);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131416; --surface: #1b1c20; --text: #ecece8; --muted: #a0a3ab; --line: #2c2e34; --accent: #ff5a4d; --accent-ink: #1a0200; --accent-soft: #32201e; --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); font-size: .92rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.brand small { font-weight: 400; color: var(--muted); font-size: .8rem; display: none; }
@media (min-width: 640px) { .brand small { display: inline; } }
.logo { width: 26px; height: 26px; background: var(--accent); border-radius: 6px; position: relative; display: inline-block; }
.logo::before, .logo::after { content: ""; position: absolute; background: #fff; }
.logo::before { left: 11px; top: 5px; width: 4px; height: 16px; }
.logo::after { left: 5px; top: 11px; width: 16px; height: 4px; }
nav a { margin-left: 16px; text-decoration: none; color: var(--text); font-weight: 500; }
nav a:hover, nav a[aria-current] { color: var(--accent); }
main { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: .2em 0 .4em; }
h2 { font-size: 1.4rem; margin: 2em 0 .6em; line-height: 1.3; }
h3 { font-size: 1.05rem; margin: .3em 0; line-height: 1.3; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); max-width: 18ch; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 6px 14px; font-size: .9rem; margin-top: 6px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card[hidden], .group[hidden] { display: none; }
.card p { margin: .3em 0 0; color: var(--muted); font-size: .92rem; }
.tag { font-size: .78rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.card.cat .big { font-size: 1.8rem; }
.search input { width: 100%; max-width: 520px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1rem; margin: 6px 0 12px; }
.search input:focus, .field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc { display: grid; grid-template-columns: 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 20px 0; }
@media (min-width: 820px) { .calc { grid-template-columns: 1fr 1.1fr; } }
.fields { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.field { display: block; width: 100%; }
.lbl { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.inp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.inp input, .inp select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); padding: 10px 12px; font: inherit; }
.inp select { width: 100%; }
.unit { padding: 0 12px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.results { background: var(--accent-soft); border-radius: 10px; padding: 16px; align-self: start; }
.hero-result span { display: block; font-size: .9rem; color: var(--muted); }
.hero-result strong { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin-top: 2px; word-break: break-word; }
.results dl { margin: 14px 0 0; }
.results dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.results dt { color: var(--muted); font-size: .92rem; }
.results dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.tbl { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
.note { background: var(--surface); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 6px; margin: 18px 0; color: var(--muted); font-size: .94rem; }
.article { max-width: 72ch; margin-left: auto; margin-right: auto; }
.article h2 { margin-top: 1.6em; }
.article li { margin: .3em 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0; font-size: .9rem; color: var(--muted); }
code { background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }

/* ---------- language switcher ---------- */
.bar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lang-dd { position: relative; }
.lang-dd summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover, .lang-dd[open] summary { border-color: var(--accent); }
.lang-dd summary svg { color: var(--muted); transition: transform .15s; }
.lang-dd[open] summary svg { transform: rotate(180deg); }
.lang-dd ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.lang-dd li a { display: block; margin: 0; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.lang-dd li a:hover { background: var(--accent-soft); color: var(--accent); }
.lang-dd li a[aria-current] { color: var(--accent); font-weight: 700; }
.theme-btn { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.theme-btn:hover, .theme-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- charts ---------- */
:root {
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --viz-grid: #e4e4df;
}
:root[data-theme="dark"] {
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; --viz-grid: #2c2e34;
}
.s1 { --c: var(--s1); } .s2 { --c: var(--s2); } .s3 { --c: var(--s3); } .s4 { --c: var(--s4); }
.s5 { --c: var(--s5); } .s6 { --c: var(--s6); } .s7 { --c: var(--s7); } .s8 { --c: var(--s8); }
.vz { margin: 22px 0; padding: 14px 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.viz-box .vz { margin: 14px 0 0; }
.vz figcaption { margin-top: 8px; font-size: .84rem; color: var(--muted); }
.vz-note { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.vz-wrap { position: relative; }
.vz-svg { width: 100%; height: auto; display: block; overflow: visible; }
.vz-svg .grid { stroke: var(--viz-grid); stroke-width: 1; }
.vz-svg .base { stroke: var(--muted); stroke-width: 1; }
.vz-svg .ax { fill: var(--muted); font-size: 11px; }
.vz-svg .val { fill: var(--text); font-size: 11px; font-weight: 600; }
.vz-svg .bar { fill: var(--c); stroke: var(--surface); stroke-width: 1; }
.vz-svg .bar:hover { opacity: .8; }
.vz-svg .line { stroke: var(--c); }
.vz-svg .dot { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.vz-svg .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.vz-svg.on .cross { opacity: 1; }
.vz-line { touch-action: pan-y; cursor: crosshair; }
.vz-tip { position: absolute; top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .82rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); pointer-events: none; white-space: nowrap; z-index: 2; }
.vz-tip[hidden] { display: none; }
.vz-tip div { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.vz-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0 0 6px; padding: 0; font-size: .84rem; }
.vz-legend li { display: flex; align-items: center; gap: 6px; }
.vz-legend.col { flex-direction: column; gap: 6px; margin: 12px 0 0; }
.vz-legend.col li { gap: 8px; }
.vz-legend.col .vz-l { flex: 1; }
.vz-legend.col .vz-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.vz-bars { display: flex; flex-direction: column; gap: 10px; }
.vz-row { display: grid; grid-template-columns: minmax(90px, 36%) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.vz-track { height: 14px; background: var(--viz-grid); border-radius: 4px; overflow: hidden; }
.vz-fill { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.vz-v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vz-stack { display: flex; gap: 2px; height: 26px; }
.vz-stack span { background: var(--c); border-radius: 4px; min-width: 3px; }
.vz-donut { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.vz-donut svg { width: 150px; height: 150px; flex: none; }
.vz-donut .vz-legend { flex: 1; min-width: 200px; margin: 0; }
.vz-donut .arc { stroke: var(--c); }
.vz-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.vz-pillars .pil { border-top: 5px solid var(--c); background: var(--bg); border-radius: 8px; padding: 12px 14px; }
.vz-pillars h4 { margin: 4px 0; font-size: .98rem; }
.vz-pillars p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.vz-pillars .tag { color: var(--muted); }
.side { display: flex; flex-direction: column; gap: 0; align-self: start; min-width: 0; }
.calc > * { min-width: 0; }
@media (max-width: 600px) {
  .vz-svg .ax, .vz-svg .val { font-size: 17px; }
  .vz { padding: 12px 10px 8px; }
  .bar-right { gap: 8px; }
}
.side .results { align-self: stretch; }

/* ---------- navigation menus ---------- */
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav > a, .menu-link { margin: 0; padding: 8px 10px; border-radius: 8px; }
.main-nav > a:hover, .menu-link:hover { background: var(--accent-soft); }
.menu { position: relative; display: flex; align-items: center; }
.menu-link { text-decoration: none; color: var(--text); font-weight: 500; padding-right: 2px; }
.menu.cur .menu-link, .menu-link[aria-current] { color: var(--accent); }
.menu-btn { border: 0; background: transparent; color: var(--muted); padding: 8px 8px 8px 2px; cursor: pointer; display: flex; border-radius: 8px; }
.menu-btn svg { transition: transform .15s; }
.menu.open .menu-btn svg { transform: rotate(180deg); }
.menu-panel { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 270px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.menu.open .menu-panel { display: block; }
@media (hover: hover) { .menu:hover .menu-panel, .menu:focus-within .menu-panel { display: block; } }
.menu-panel a { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .94rem; }
.menu-panel a:hover { background: var(--accent-soft); color: var(--accent); }
.menu-panel .all { font-weight: 700; color: var(--accent); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.menu-panel .ic { width: 22px; text-align: center; }
.menu-panel .nm { flex: 1; }
.menu-panel small { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .menu { position: static; } .menu-panel { left: 0; right: 0; top: 100%; min-width: 0; } .site-header .bar { position: relative; } }

/* ---------- topic chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--muted); }
.group { scroll-margin-top: 80px; }

/* ---------- landing page ---------- */
.hero2 { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 28px 0 10px; align-items: center; }
@media (min-width: 900px) { .hero2 { grid-template-columns: 1.1fr 1fr; gap: 44px; padding-top: 44px; } }
.hero2 h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); letter-spacing: -.02em; margin: .3em 0 .3em; max-width: 16ch; }
.hero2 .lead { font-size: 1.15rem; max-width: 52ch; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; }
.hero-search { display: flex; gap: 8px; margin: 22px 0 12px; max-width: 520px; }
.hero-search input { flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1rem; box-shadow: var(--shadow); }
.hero-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .9rem; }
.quick a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); }
.quick a:hover { color: var(--accent); border-color: var(--accent); }
.hero-card { background: linear-gradient(180deg, var(--surface), var(--accent-soft)); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 16px; box-shadow: 0 18px 50px rgba(213,43,30,.10); }
.hero-card h3 { font-size: 1.15rem; margin: 6px 0 12px; }
.hero-card .vz { background: var(--surface); margin: 14px 0 12px; }
.hero-card .btn.small { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 34px 0 0; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--surface); padding: 18px 12px; text-align: center; }
.stats strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--accent); }
.stats span { color: var(--muted); font-size: .9rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 3em; }
.sec-head h2 { margin: 0 0 .6em; }
.sec-head a { font-size: .92rem; white-space: nowrap; }
.grid.cats .card.cat { background: var(--surface); }
.how { margin-top: 3.6em; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.how .n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.how h3 { margin: 10px 0 4px; }
.how p { margin: 0; color: var(--muted); font-size: .94rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4em; padding: 26px 28px; border-radius: 20px; background: linear-gradient(120deg, var(--accent), #8f1a11); color: #fff; }
.cta h2 { margin: 0 0 4px; font-size: 1.4rem; }
.cta p { margin: 0; opacity: .92; max-width: 56ch; }
.cta .btn { background: #fff; color: #8f1a11; border-color: #fff; }

/* ---------- contact + footer ---------- */
.contact { max-width: 720px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; margin: 22px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.contact-card .ic { font-size: 2rem; }
.contact-card > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.contact-card .mail { font-size: 1.25rem; font-weight: 700; word-break: break-all; }
.foot-links { margin: 0 0 8px; }
.foot-links a { color: var(--text); }
.copy { margin: 0 0 6px; font-size: .86rem; }
.obf-mail { cursor: pointer; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* footer v2 */
.site-footer { background: #0b2545; color: #c9d6ea; border-top: 0; padding: 40px 0 22px; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer p { margin: 0 0 8px; }
.fcols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1.4fr; }
.fcols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fnote { margin-top: 24px !important; font-size: .85rem; opacity: .85; }
.fbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; margin-top: 14px; font-size: .82rem; }
@media (max-width: 700px) { .fcols { grid-template-columns: 1fr; } }

/* ===== home (FrancSense) ===== */
.fs-hero { position: relative; margin: 0 calc(50% - 50vw); color: #fff; overflow: hidden; }
.fs-slides { display: grid; }
.fs-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; padding: 64px 0 96px; }
.fs-slide::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background: url("hero.jpg") center / cover no-repeat; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); pointer-events: none; }
.fs-slide.on { opacity: 1; visibility: visible; }
.fs-slide.s1 { background: radial-gradient(900px 400px at 85% 10%, #2a5fb8 0, transparent 60%), linear-gradient(135deg, #0b2545, #13315c); }
.fs-slide.s2 { background: radial-gradient(900px 400px at 85% 10%, #ff6b5c 0, transparent 60%), linear-gradient(135deg, #5c0f09, #b3231a); }
.fs-slide.s3 { background: radial-gradient(900px 400px at 85% 10%, #2fb7a6 0, transparent 60%), linear-gradient(135deg, #0a2f33, #135a5a); }
.fs-slide.s6 { background: radial-gradient(900px 400px at 85% 10%, #2fb7d6 0, transparent 60%), linear-gradient(135deg, #0a2c3d, #14506b); }
.fs-slide.s7 { background: radial-gradient(900px 400px at 85% 10%, #ff8fb1 0, transparent 60%), linear-gradient(135deg, #3d0f24, #7a2347); }
.fs-slide.s8 { background: radial-gradient(900px 400px at 85% 10%, #a3e635 0, transparent 60%), linear-gradient(135deg, #1d2e0c, #3f5f18); }
.fs-slide.s9 { background: radial-gradient(900px 400px at 85% 10%, #fb923c 0, transparent 60%), linear-gradient(135deg, #3a1a08, #6b3210); }
.fs-slide.s10 { background: radial-gradient(900px 400px at 85% 10%, #8c5bff 0, transparent 60%), linear-gradient(135deg, #20123f, #3f2a7a); }
.fs-slide.s4 { background: radial-gradient(900px 400px at 85% 10%, #3ccf8e 0, transparent 60%), linear-gradient(135deg, #0c3323, #17593f); }
.fs-slide.s5 { background: radial-gradient(900px 400px at 85% 10%, #f5b43c 0, transparent 60%), linear-gradient(135deg, #3d2406, #7a4a10); }
.fs-in { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.fs-copy h1, .fs-copy .fs-h { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0; }
.fs-copy .lead { color: rgba(255,255,255,.82); font-size: 1.1rem; }
.fs-over { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px; }
.fs-demo .fs-over { background: var(--accent-soft); color: var(--accent); }
.fs-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); border-radius: 22px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.fs-card small { color: rgba(255,255,255,.8); }
.fs-card .big { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; }
.fs-card .cap { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 10px; }
.fs-glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fs-glist a { color: #fff; font-weight: 600; text-decoration: none; display: block; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.1); }
.fs-glist a:hover { background: rgba(255,255,255,.2); }
.fs-slide .hero-search { margin: 22px 0 14px; max-width: 520px; }
.chip2 { background: rgba(255,255,255,.14); color: #fff !important; padding: 5px 12px; border-radius: 999px; border: 0 !important; }
.chip2:hover { background: rgba(255,255,255,.26); }
.fs-slide .quick { color: rgba(255,255,255,.8); align-items: center; }
.fs-ctrl { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.fs-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.fs-nav:hover { background: rgba(255,255,255,.25); }
.fs-pp { font-size: .8rem; }
.fs-dots { display: flex; gap: 8px; }
.fs-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.fs-dot.on { width: 30px; background: #fff; }
.fs-sec { margin: 64px 0; }
.fs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.fs-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.fs-demo-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); border-radius: 26px; padding: 36px; }
.fs-demo-copy h2 { font-size: 1.9rem; margin: 12px 0; letter-spacing: -.01em; }
.fs-demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(11,37,69,.1); }
.demo-form { display: grid; gap: 12px; margin-bottom: 14px; }
.fs-result { display: flex; flex-direction: column; margin-bottom: 14px; }
.fs-result span { color: var(--muted); font-size: .9rem; }
.fs-result strong { font-size: 2.3rem; color: var(--accent); line-height: 1.1; }
@media (max-width: 800px) { .fs-in { grid-template-columns: 1fr; gap: 24px; } .fs-slide { padding: 40px 0 90px; } .fs-demo-in { grid-template-columns: 1fr; padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .fs-slide, .hp-pcard, .card, .fs-dot { transition: none; } }
.fs-card .vz { color: var(--text); margin: 12px 0 16px; }

/* footer 4 columns + legal pages */
.fcols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h4 a { text-decoration: none; }
@media (max-width: 900px) { .fcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fcols { grid-template-columns: 1fr; } }
.legal { max-width: 760px; }
.sitemap { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.sitemap.cols { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }

/* ===== v3: header, category rail, cards, topic views, mobile ===== */
.site-header { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(0,0,0,.04); }
.bar { min-height: 64px; padding: 8px 0; }
.bar-right { margin-left: auto; }
.main-nav { gap: 4px; }
.main-nav > a, .menu-link { font-size: .95rem; }
.menu-panel { border-radius: 14px; }
.menu-panel a { font-size: .92rem; }

/* category rail: horizontal, scrollable on small screens */
.rail { display: flex; gap: 8px; margin: 14px 0 26px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail .chip { flex: none; scroll-snap-align: start; min-height: 40px; padding: 8px 14px; background: var(--surface); box-shadow: var(--shadow); }
.rail .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rail .chip.on small { color: var(--accent-ink); opacity: .85; }

/* cards: shared body; calculator and guide variants */
.card { display: flex; flex-direction: column; gap: 2px; }
.card h3 { margin-top: 6px; }
.card p { flex: 1; }
.wrap:has(.fs-hero) .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.gmeta span:first-child:not(.go) { font-weight: 600; }
.gmeta .go { margin-left: auto; color: var(--accent); font-weight: 700; }
.ccard .gmeta span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.gcard { position: relative; overflow: hidden; }
.gcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c, var(--accent)); opacity: .9; }
.gcard .tag { color: var(--c, var(--accent)); }

/* topic view */
.topic-hero { display: flex; gap: 18px; align-items: flex-start; margin: 10px 0 4px; }
.topic-ic { flex: none; width: 60px; height: 60px; display: grid; place-items: center; font-size: 2rem; border-radius: 18px; background: var(--accent-soft); }
.topic-hero h1 { margin: .1em 0 .2em; }
.topic-hero .lead { margin: 0; }
.topic-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.topic-stats a { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.topic-stats a:hover { border-color: var(--accent); color: var(--accent); }
.tsec { scroll-margin-top: 90px; margin-top: 48px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.sec-h h2 { margin: 1em 0 0; font-size: 1.3rem; }


/* ---------- mobile refinement ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .bar { flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; padding: 8px 0 6px; }
  .bar-right { margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 6px; }
  .main-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; margin: 0 -14px; padding: 0 14px; scroll-padding: 14px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav > a, .menu-link { white-space: nowrap; }
  .menu-panel { position: fixed; left: 14px; right: 14px; top: auto; }
  nav.lang { flex: none; }
  main { padding-top: 18px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.22rem; margin-top: 1.6em; }
  .lead { font-size: 1.02rem; }
  .topic-hero { flex-direction: column; gap: 12px; }
  .topic-ic { width: 52px; height: 52px; font-size: 1.7rem; }
  .rail { margin-left: -14px; margin-right: -14px; padding: 2px 14px 6px; scroll-padding: 14px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 14px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; text-align: center; min-height: 46px; }
  .fs-slide { padding: 34px 0 84px; }
  .fs-copy h1, .fs-copy .fs-h { font-size: 1.9rem; }
  .fs-sec { margin: 48px 0; }
  .fs-head h2 { font-size: 1.35rem; }
  .fs-head a { white-space: nowrap; font-size: .9rem; }
  .fs-demo-in { padding: 18px; border-radius: 20px; }
  .fs-demo-copy h2 { font-size: 1.5rem; }
  .fs-demo-card { padding: 16px; }
  .fs-result strong { font-size: 2rem; }
  .calc { padding: 14px; gap: 14px; }
  .inp input, .inp select, .field input, .field select { font-size: 16px; }   /* stops iOS zooming into inputs */
  .btn, .btn.small { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn.small { margin-top: 0; }
  .fbar { flex-direction: column; }
  .fcols { gap: 22px; }
}
/* mobile header: brand + language on row one, navigation full width below */
@media (max-width: 720px) {
  .bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-left: 14px; padding-right: 14px; }
  .bar-right { display: contents; }
  .main-nav { order: 3; width: 100%; flex: none; margin: 0 -14px; }
  nav.lang { order: 2; margin-left: auto; }
  .theme-btn { order: 2; }
  .fs-slide { padding-bottom: 112px; }
}

/* "how to use" panels on index, calculator and guide pages */
.explain { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 14px 0 22px; font-size: .94rem; color: var(--muted); }
.explain strong { display: block; color: var(--text); margin-bottom: 4px; }
.explain ul { margin: 0; padding-left: 18px; }
.explain li { margin: 3px 0; }
.calc + .explain { margin-top: 0; }
@media (max-width: 720px) { .explain { font-size: .9rem; padding: 10px 14px; } }

/* English-only explanations: calculator "How it works" and guide "Key takeaways" */
.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.how h2 { margin: 0 0 6px; font-size: 1.15rem; }
.how p { margin: 0; color: var(--muted); }
.takeaways { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px 12px; margin: 18px 0 24px; }
.takeaways strong { display: block; margin-bottom: 6px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin: 4px 0; }

/* three cards per row on calculator and guide pages; two on tablets, one on phones */
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

/* ===== footer: modern layout ===== */
.site-footer { position: relative; margin-top: 56px; padding: 52px 0 26px; background: radial-gradient(900px 300px at 100% 0%, rgba(213,43,30,.16), transparent 60%), linear-gradient(170deg, #0b2545 0%, #081a33 100%); color: #b9c8df; border-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #d52b1e, #ff9d5c 45%, #2a6fdb); }
.fcols { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; }
.site-footer h4::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: #ff5a4d; flex: none; }
.site-footer h4 a { color: #fff; }
.fcols > div:first-child h4 { font-size: 1.1rem; text-transform: none; letter-spacing: 0; gap: 10px; }
.fcols > div:first-child h4::before { width: 26px; height: 26px; border-radius: 7px; background: #d52b1e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M10 5h6v5h5v6h-5v5h-6v-5H5v-6h5z' fill='%23fff'/%3E%3C/svg%3E") center / cover no-repeat; }
.site-footer p { margin: 0 0 10px; line-height: 1.6; font-size: .92rem; }
.fcols ul { gap: 2px; }
.fcols ul a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; color: #e6eefb; text-decoration: none; font-size: .93rem; transition: color .15s, transform .15s; }
.fcols ul a::before { content: "›"; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; color: #ff9d5c; font-weight: 700; }
.fcols ul a:hover { color: #fff; }
.fcols ul a:hover::before { opacity: 1; transform: translateX(0); }
.site-footer .obf-mail { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.4); }
.fnote { margin-top: 30px !important; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-left: 3px solid #ff5a4d; font-size: .86rem; line-height: 1.6; opacity: 1; color: #b9c8df; }
.fnote strong { color: #fff; }
.fbar { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa3c2; font-size: .82rem; }
.fbar span:last-child { opacity: .85; }
@media (max-width: 900px) { .fcols { grid-template-columns: 1fr 1fr; gap: 30px 28px; } }
@media (max-width: 520px) { .fcols { grid-template-columns: 1fr; gap: 26px; } .site-footer { padding: 40px 0 22px; } .fnote { font-size: .84rem; } .fbar { flex-direction: column; align-items: flex-start; } }

/* ===== home: sections below the slideshow ===== */
.hp-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0 0; }
.hp-badge, .hp-trust > div { display: flex; align-items: center; gap: 12px; }
.hp-badge strong, .hp-trust strong { display: block; font-size: .98rem; line-height: 1.3; }
.hp-badge small, .hp-trust small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.hp-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #fff; }
.hp-ic svg { display: block; }
.hp-badge .hp-ic, .hp-trust .hp-ic { border-radius: 50%; }
.hp-tile .hp-ic { width: auto; height: auto; background: none; color: var(--c); }
.hp-tile .hp-ic svg { width: 38px; height: 38px; }
.hp-sec { margin: 56px 0 0; }
.hp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin-bottom: 18px; }
.hp-head h2 { margin: 0 0 2px; font-size: 1.5rem; letter-spacing: -.01em; }
.hp-head p { margin: 0; }
.hp-head > a { font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.hp-pop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-pcard { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s; }
.hp-pcard:hover { transform: translateY(-2px); border-color: var(--c); }
.hp-pcard h3 { margin: 0 0 4px; font-size: 1.02rem; }
.hp-pcard p { margin: 0; padding-right: 30px; color: var(--muted); font-size: .92rem; }
.hp-go { position: absolute; right: 16px; bottom: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.hp-pcard:hover .hp-go { color: var(--c); border-color: var(--c); }
.hp-life { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hp-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--text); text-align: center; text-decoration: none; transition: border-color .2s; }
.hp-tile:hover { border-color: var(--c); }
.hp-tile strong { font-size: .95rem; line-height: 1.3; }
.hp-tile small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.hp-topics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.hp-topic { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .2s; }
.hp-topic:hover { border-color: var(--c); }
.hp-topic .hp-ic { margin-bottom: 8px; }
.hp-topic h3 { margin: 0 0 2px; font-size: .98rem; }
.hp-topic small { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.hp-feat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.hp-guide { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.hp-guide img { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; }
.hp-guide h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hp-guide p { margin: 0 0 10px; color: var(--muted); font-size: .94rem; }
.hp-link { color: var(--accent); font-weight: 600; }
.hp-more { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.hp-more h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hp-more ul { list-style: none; margin: 0; padding: 0; }
.hp-more li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
.hp-more li:first-child a { border-top: 0; }
.hp-more li a span { color: var(--accent); }
.hp-more li a:hover { color: var(--accent); }
.hp-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hp-cta { position: relative; overflow: hidden; margin: 56px 0 0; padding: 36px; border-radius: 20px; background: linear-gradient(135deg, #0b2545, #12345f); color: #fff; }
.hp-cta h2 { margin: 0 0 6px; color: #fff; font-size: 1.7rem; }
.hp-cta p { margin: 0 0 18px; max-width: 52ch; color: rgba(255,255,255,.82); }
.hp-cta .btn { background: #fff; color: #0b2545; border-color: #fff; }
.hp-cta-art { position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; pointer-events: none; }
@media (max-width: 1000px) { .hp-life, .hp-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .hp-feat { grid-template-columns: 1fr; } .hp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hp-pop { grid-template-columns: 1fr; }
  .hp-life, .hp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hp-guide { grid-template-columns: 1fr; }
  .hp-guide img { height: 150px; }
  .hp-trust { grid-template-columns: 1fr; }
  .hp-cta { padding: 26px 22px; }
  .hp-cta-art { width: 70%; opacity: .6; }
}

/* calculator index: hero, life situations, filterable list, guides */
:root { --cx: #1d6fe0; --cx-ink: #ffffff; --cx-navy: #0d2452; }
:root[data-theme="dark"] { --cx: #5b9cff; --cx-ink: #061429; --cx-navy: #e6eeff; }
.cx-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(50% - 50vw); padding: 44px 0 40px; }
.cx-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("hero.jpg") 70% 40% / cover no-repeat; }
.cx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 36%, transparent 78%); }
:root[data-theme="dark"] .cx-hero::before { filter: brightness(.55) saturate(.8); }
.cx-hero-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.cx-eyebrow { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cx); }
.cx-hero h1 { margin: 8px 0 12px; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; color: var(--cx-navy); max-width: 16ch; }
.cx-hero .lead { margin: 0; max-width: 50ch; color: var(--muted); font-size: 1.05rem; }
.cx-search { display: flex; align-items: center; gap: 8px; max-width: 560px; margin-top: 22px; padding: 6px 6px 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); color: var(--muted); }
.cx-search:focus-within { outline: 2px solid var(--cx); outline-offset: 2px; }
.cx-search svg { flex: none; }
.cx-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; outline: none; }
.cx-search .btn { flex: none; background: var(--cx); border-color: var(--cx); color: var(--cx-ink); padding: 11px 26px; }
.cx-sec { margin-top: 44px; scroll-margin-top: 80px; }
.cx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 16px; }
.cx-head h2 { margin: 0 0 2px; font-size: 1.6rem; letter-spacing: -.01em; color: var(--cx-navy); }
.cx-head h2 small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.cx-head p { margin: 0; }
.cx-more { font-weight: 600; text-decoration: none; color: var(--cx); white-space: nowrap; }
.cx-glyph { flex: none; color: var(--c); }
.cx-glyph svg { display: block; width: 40px; height: 40px; }
.cx-go { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.cx-sit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cx-sit-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .15s; }
.cx-sit-card:hover { border-color: var(--c); }
.cx-sit-card:hover .cx-go { color: var(--c); border-color: var(--c); }
.cx-sit-txt { flex: 1; min-width: 0; }
.cx-sit-txt strong { display: block; font-size: 1.02rem; }
.cx-sit-txt small { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cx-find { display: flex; align-items: center; gap: 8px; min-width: 250px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); }
.cx-find:focus-within { outline: 2px solid var(--cx); outline-offset: 1px; }
.cx-find input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.cx-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.cx-sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow); cursor: pointer; }
.cx-chip small { color: var(--muted); }
.cx-chip:hover { border-color: var(--cx); }
.cx-chip.on { background: var(--cx); border-color: var(--cx); color: var(--cx-ink); }
.cx-chip.on small { color: var(--cx-ink); opacity: .85; }
.cx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx-item[hidden] { display: none; }
.cx-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .15s; }
.cx-row:hover { border-color: var(--cx); }
.cx-row:hover .cx-go { color: var(--cx); border-color: var(--cx); }
.cx-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--c); color: #fff; }
.cx-ico svg { width: 22px; height: 22px; }
.cx-txt { flex: 1; min-width: 0; }
.cx-txt strong { display: block; font-size: .98rem; line-height: 1.3; }
.cx-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cx-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cx-tag { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .8rem; white-space: nowrap; }
.cx-tag.pop { background: #e6f6ec; border-color: #c4e8d1; color: #1a7f4b; }
:root[data-theme="dark"] .cx-tag.pop { background: #1c3327; border-color: #2b5240; color: #7fd4a0; }
.cx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.cx-foot p { margin: 0; }
.cx-more-row { display: flex; justify-content: center; margin-top: 14px; }
.cx-more-row[hidden] { display: none; }
.cx-toggle { padding: 10px 22px; border: 1px solid var(--cx); border-radius: 999px; background: transparent; color: var(--cx); font: inherit; font-weight: 600; cursor: pointer; }
.cx-toggle:hover { background: var(--cx); color: var(--cx-ink); }
.cx-pager { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-pager[hidden] { display: none; }
.cx-pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.cx-pager button:hover:not(:disabled) { border-color: var(--cx); }
.cx-pager button[aria-current="page"] { background: var(--cx); border-color: var(--cx); color: var(--cx-ink); font-weight: 600; }
.cx-pager button:disabled { opacity: .4; cursor: default; }
.cx-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cx-guide { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .15s; }
.cx-guide:hover { border-color: var(--cx); }
.cx-guide img { display: block; width: 100%; height: 120px; object-fit: cover; }
.cx-guide strong { display: block; padding: 12px 14px 4px; font-size: .95rem; line-height: 1.35; }
.cx-link { margin-top: auto; padding: 0 14px 14px; color: var(--cx); font-size: .9rem; font-weight: 600; }
@media (max-width: 1000px) { .cx-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cx-sit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cx-hero { padding: 26px 0 30px; }
  .cx-hero::before { opacity: .45; }
  .cx-hero::after { background: linear-gradient(180deg, transparent 0, var(--bg) 62%); }
  .cx-search { flex-wrap: wrap; padding: 8px 8px 8px 16px; border-radius: 16px; }
  .cx-search input { min-width: 150px; }
  .cx-search .btn { width: 100%; min-height: 46px; text-align: center; }
  .cx-sit { grid-template-columns: 1fr; }
  .cx-tools, .cx-find { width: 100%; min-width: 0; }
  .cx-sort { width: 100%; justify-content: space-between; }
  .cx-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100vw; box-sizing: border-box; margin: 16px -16px; padding: 2px 16px 6px; scroll-padding: 16px; scrollbar-width: none; }
  .cx-chips::-webkit-scrollbar { display: none; }
  .cx-row { gap: 12px; padding: 12px; }
  .cx-tags { display: none; }
  .cx-guides { grid-template-columns: 1fr; }
}

/* ===== moving to Switzerland: newcomer page (uses cx-hero, hp-badges, hp-cta, hp-pop) ===== */
.mv-hero::before { background: url("mv-hero-wide.jpg") right center / auto 100% no-repeat; }
.mv-hero h1 { max-width: 20ch; }
/* same look as the home slider: a translucent slider-blue wash over the photo, white text */
.mv-hero { color: #fff; }
.mv-hero::after { background: linear-gradient(90deg, rgba(11, 37, 69, .92) 0%, rgba(19, 49, 92, .78) 42%, rgba(42, 95, 184, .42) 100%); }
.mv-hero h1, .mv-hero .lead { color: #fff; }
.mv-hero .lead { color: rgba(255, 255, 255, .85); }
.mv-hero .cx-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.mv-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mv-step-list li + li { border-left: 1px solid var(--line); }
.mv-step { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 0 16px; color: var(--text); text-decoration: none; }
.mv-step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mv-num { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--cx); }
.mv-step-ic { color: var(--c); }
.mv-step-ic svg { display: block; width: 38px; height: 38px; }
.mv-step strong { font-size: 1rem; line-height: 1.3; }
.mv-step small { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.mv-step:hover strong { color: var(--cx); }
.mv-arrow { margin-top: auto; color: var(--cx); font-weight: 600; }
.mv-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mv-guide { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .15s; }
.mv-guide:hover { border-color: var(--cx); }
.mv-guide-photo { position: relative; display: block; height: 110px; overflow: hidden; background: var(--line); }
.mv-guide-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-guide-photo .mv-tag { position: absolute; left: 12px; bottom: 10px; background: #1d6fe0; color: #fff; }
.mv-guide-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px; }
.mv-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--cx); color: var(--cx-ink); font-size: .76rem; font-weight: 600; }
.mv-guide h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.mv-guide p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.mv-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .86rem; }
.mv-meta svg { vertical-align: -3px; }
.mv-go { color: var(--cx); font-weight: 600; white-space: nowrap; }
.mv-pop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mv-calc { flex-direction: column; gap: 12px; }
.mv-calc p { padding-right: 0; }
.mv-calc:hover { transform: translateY(-2px); }
.mv-try { margin-top: auto; color: var(--c); font-weight: 600; font-size: .92rem; }
.mv-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mv-check { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.mv-check-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mv-check-h .hp-ic { width: 38px; height: 38px; border-radius: 10px; }
.mv-check h3 { margin: 0; font-size: 1rem; }
.mv-check ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.mv-check li { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: .92rem; line-height: 1.4; }
.mv-box { flex: none; color: var(--c); }
/* guides page: a translucent teal wash from the home slider (#2fb7a6, #135a5a, #0a2f33) over the photo, white text */
.gx-hero::after { background: linear-gradient(90deg, rgba(10, 47, 51, .92) 0%, rgba(19, 90, 90, .78) 42%, rgba(47, 183, 166, .42) 100%); }
.gx-hero h1 { color: #fff; }
.gx-hero .lead { color: rgba(255, 255, 255, .85); }
.gx-hero .cx-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
/* calculators page: a translucent purple wash from the home slider (#8c5bff, #20123f, #3f2a7a) over the photo, white text */
.cl-hero::after { background: linear-gradient(90deg, rgba(32, 18, 63, .92) 0%, rgba(63, 42, 122, .78) 42%, rgba(140, 91, 255, .42) 100%); }
.cl-hero h1 { color: #fff; }
.cl-hero .lead { color: rgba(255, 255, 255, .85); }
.cl-hero .cx-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.mv-calc { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.mv-calc .mv-try { grid-column: 2; justify-self: end; }

/* ===== about page (design: About Page – Swiss Financial Clarity): shared hero, eyebrow and section styles, red slider overlay ===== */
.ab-hero::before { background: url("ab-hero.jpg") right center / cover no-repeat; }
.ab-hero::after { background: linear-gradient(90deg, rgba(92, 15, 9, .92) 0%, rgba(179, 35, 26, .78) 42%, rgba(255, 107, 92, .42) 100%); }
.ab-hero h1, .ab-hero .lead { color: #fff; }
.ab-hero .lead { color: rgba(255, 255, 255, .85); }
.ab-hero .cx-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.ab-story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.ab-story h2, .ab-band h2 { margin: 0 0 2px; font-size: 1.6rem; letter-spacing: -.01em; color: var(--cx-navy); }
.ab-story h3 { margin: 10px 0; font-size: 1.2rem; color: var(--cx-navy); }
.ab-band h2 { margin: 0 0 13px; font-size: 1.4rem; line-height: 1.3; letter-spacing: normal; color: var(--text); }

/* about page: contact form, stacked fields with the field name inside each box (placeholder) */
.ab-form { display: grid; gap: 18px; max-width: 760px; margin-top: 18px; }
.ab-form input, .ab-form textarea { width: 100%; box-sizing: border-box; padding: 16px 26px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; box-shadow: var(--shadow); }
.ab-form input::placeholder, .ab-form textarea::placeholder { color: var(--muted); opacity: 1; }
.ab-form input:focus, .ab-form textarea:focus { outline: 2px solid var(--cx); outline-offset: 2px; }
.ab-form textarea { min-height: 260px; padding: 20px 26px; border-radius: 28px; resize: vertical; }
.ab-form .btn { justify-self: start; }
.ab-story p { max-width: 62ch; margin: 0 0 12px; color: var(--muted); }
.ab-portrait { margin: 0; justify-self: center; }
.ab-portrait img { display: block; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.ab-intro { max-width: 80ch; margin: 0 0 22px; }
.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ab-item { display: flex; gap: 16px; align-items: flex-start; }
.ab-item h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--cx-navy); }
.ab-item p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.ab-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--t); color: var(--c); }
.ab-ic svg { width: 26px; height: 26px; }
.ab-band { margin: 44px 0 48px; padding: 36px; border-radius: 20px; background: #eef5fe; }
:root[data-theme="dark"] .ab-band { background: #15263d; }
.ab-grid-how > .ab-item + .ab-item { border-left: 1px solid var(--line); padding-left: 28px; }
.ab-disclaimer { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 40px; padding: 26px 30px; border-radius: 20px; background: #fff7e6; border: 1px solid #f7e3b8; }
.ab-disclaimer h2 { margin: 0 0 6px; font-size: 1.3rem; color: var(--cx-navy); }
.ab-disclaimer p { margin: 0; color: var(--muted); line-height: 1.55; }
.ab-warn { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 1.7rem; font-weight: 800; }
:root[data-theme="dark"] .ab-disclaimer { background: #3a2c10; border-color: #6b4e17; }
@media (max-width: 800px) {
  .ab-story, .ab-grid { grid-template-columns: 1fr; }
  .ab-grid-how > .ab-item + .ab-item { border-left: 0; padding-left: 0; }
  .ab-portrait img { width: 220px; height: 220px; }
  .ab-band { padding: 22px; }
  .ab-hero::before { opacity: 1; }
  .ab-hero::after { background: linear-gradient(180deg, rgba(92, 15, 9, .6) 0%, rgba(179, 35, 26, .9) 70%); }
  .ab-disclaimer { padding: 20px; flex-direction: column; }
}
.mv-steps .mv-step-list { margin-top: 4px; }
#full-guide .article { max-width: 72ch; margin: 0 auto; }
#full-guide .article h2 { font-size: 1.4rem; }
@media (max-width: 1000px) {
  .mv-step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 0; }
  .mv-step-list li + li { border-left: 0; }
  .mv-step { padding: 0 12px; }
  .mv-guides, .mv-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mv-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .mv-step, .mv-step-list li:first-child .mv-step { padding: 0; }
  .mv-step-ic svg { width: 32px; height: 32px; }
  .mv-num { font-size: 1.7rem; }
  .mv-guides, .mv-checks, .mv-pop { grid-template-columns: 1fr; }
  .mv-hero::before { background-position: 62% center; opacity: 1; }
  .mv-hero::after { background: linear-gradient(180deg, rgba(11, 37, 69, .6) 0%, rgba(19, 49, 92, .9) 70%); }
  .gx-hero::before { opacity: 1; }
  .gx-hero::after { background: linear-gradient(180deg, rgba(10, 47, 51, .6) 0%, rgba(19, 90, 90, .9) 70%); }
  .cl-hero::before { opacity: 1; }
  .cl-hero::after { background: linear-gradient(180deg, rgba(32, 18, 63, .6) 0%, rgba(63, 42, 122, .9) 70%); }
}

/* homepage life situations: nine compact tiles, icon and name only */
.hp-life.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hp-life.compact .hp-tile { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
.hp-life.compact .hp-tile .hp-ic svg { width: 28px; height: 28px; }
@media (max-width: 1000px) { .hp-life.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* calculator index popular row: one row of four, same breakpoints as the featured guides (cx-guides) */
.hp-pop.pop4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-pop.pop4 .hp-pcard { flex-direction: column; gap: 12px; }
@media (max-width: 1000px) { .hp-pop.pop4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hp-pop.pop4 { grid-template-columns: 1fr; } }
