/* ==========================================================================
   Briff Finance — website stylesheet
   No external fonts, no frameworks. System font stack, CSS custom properties,
   light and dark themes driven by [data-theme] plus prefers-color-scheme.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --bg-alt: #f1f7f4;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fbfa;
  --surface-3: #f2f7f5;

  --border: #e3e9e6;
  --border-strong: #cdd8d3;

  --text: #0c1a15;
  --text-muted: #56665f;
  --text-soft: #63736d;

  --accent: #059669;
  --accent-strong: #047857;
  --accent-ink: #064e3b;
  --accent-soft: rgba(5, 150, 105, 0.1);
  --accent-softer: rgba(5, 150, 105, 0.05);
  --accent-contrast: #ffffff;
  /* Buttons carry white text, so they use a darker green than --accent:
     5.48:1 against white, versus 3.77:1 for the lighter brand green. */
  --accent-btn: #047857;
  --accent-btn-hover: #065f46;
  /* The download band is a fixed deep green in both themes so white text on it
     always clears 5.4:1. */
  --band-from: #065f46;
  --band-to: #0f766e;
  --teal: #0d9488;
  --income: #15803d;
  --expense: #be123c;
  --warning: #b45309;

  --shadow-xs: 0 1px 2px rgba(12, 26, 21, 0.05);
  --shadow-sm: 0 1px 2px rgba(12, 26, 21, 0.06), 0 2px 6px rgba(12, 26, 21, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(12, 26, 21, 0.18), 0 2px 8px rgba(12, 26, 21, 0.05);
  --shadow-lg: 0 28px 64px -28px rgba(12, 26, 21, 0.3), 0 10px 28px -16px rgba(12, 26, 21, 0.14);
  --hero-glow: radial-gradient(closest-side, rgba(5, 150, 105, 0.2), rgba(5, 150, 105, 0));
  --band-glow: radial-gradient(120% 140% at 12% 0%, rgba(5, 150, 105, 0.16), rgba(5, 150, 105, 0));

  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --wrap: 1180px;
  --wrap-narrow: 840px;
  --gutter: 24px;
  --header-h: 70px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a1310;
  --bg-soft: #0d1714;
  --bg-alt: #0f1b17;
  --bg-elevated: #121f1a;
  --surface: #101b17;
  --surface-2: #14211d;
  --surface-3: #182722;

  --border: #22322c;
  --border-strong: #2f433c;

  --text: #e9f2ee;
  --text-muted: #9db0a9;
  --text-soft: #7d918a;

  --accent: #34d399;
  --accent-strong: #10b981;
  --accent-ink: #a7f3d0;
  --accent-soft: rgba(52, 211, 153, 0.14);
  --accent-softer: rgba(52, 211, 153, 0.07);
  --accent-contrast: #04231a;
  --accent-btn: #34d399;
  --accent-btn-hover: #10b981;
  --teal: #2dd4bf;
  --income: #4ade80;
  --expense: #fb7185;
  --warning: #fbbf24;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px -14px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 32px 72px -32px rgba(0, 0, 0, 0.85), 0 12px 32px -18px rgba(0, 0, 0, 0.5);
  --hero-glow: radial-gradient(closest-side, rgba(52, 211, 153, 0.22), rgba(52, 211, 153, 0));
  --band-glow: radial-gradient(120% 140% at 12% 0%, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #0a1310;
    --bg-soft: #0d1714;
    --bg-alt: #0f1b17;
    --bg-elevated: #121f1a;
    --surface: #101b17;
    --surface-2: #14211d;
    --surface-3: #182722;

    --border: #22322c;
    --border-strong: #2f433c;

    --text: #e9f2ee;
    --text-muted: #9db0a9;
    --text-soft: #7d918a;

    --accent: #34d399;
    --accent-strong: #10b981;
    --accent-ink: #a7f3d0;
    --accent-soft: rgba(52, 211, 153, 0.14);
    --accent-softer: rgba(52, 211, 153, 0.07);
    --accent-contrast: #04231a;
    --accent-btn: #34d399;
    --accent-btn-hover: #10b981;
    --teal: #2dd4bf;
    --income: #4ade80;
    --expense: #fb7185;
    --warning: #fbbf24;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 28px -14px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 32px 72px -32px rgba(0, 0, 0, 0.85), 0 12px 32px -18px rgba(0, 0, 0, 0.5);
    --hero-glow: radial-gradient(closest-side, rgba(52, 211, 153, 0.22), rgba(52, 211, 153, 0));
    --band-glow: radial-gradient(120% 140% at 12% 0%, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0));
  }
}

/* ------------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* -------------------------------------------------------------- utilities */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.accent {
  color: var(--accent-strong);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------- controls */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.72em 1.25em;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 0.85em 1.5em;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 0.55em 1em;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  --btn-bg: var(--accent-btn, var(--accent));
  --btn-fg: var(--accent-contrast);
  box-shadow: 0 6px 20px -10px rgba(5, 150, 105, 0.65);
}

.btn-primary:hover {
  --btn-bg: var(--accent-btn-hover, var(--accent-strong));
  box-shadow: 0 12px 28px -12px rgba(5, 150, 105, 0.7);
}

.btn-ghost {
  --btn-fg: var(--text);
  --btn-bg: var(--surface-2);
  --btn-border: var(--border);
}

.btn-ghost:hover {
  --btn-border: var(--border-strong);
  --btn-bg: var(--surface-3);
}

.btn-outline {
  --btn-fg: var(--accent-strong);
  --btn-border: color-mix(in srgb, var(--accent) 45%, transparent);
  --btn-bg: transparent;
}

.btn-outline:hover {
  --btn-bg: var(--accent-soft);
}

.btn-on-accent {
  --btn-bg: #ffffff;
  --btn-fg: #06281e;
}

.btn-on-accent:hover {
  --btn-bg: #f2fbf7;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-stack small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn-stack strong {
  font-size: 1rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.icon-btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.segmented-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.segmented-item:hover {
  color: var(--text);
  text-decoration: none;
}

.segmented-item.is-active {
  background: var(--bg-elevated);
  color: var(--accent-strong);
  box-shadow: var(--shadow-xs);
}

.segmented-item .icon {
  width: 1rem;
  height: 1rem;
}

/* ------------------------------------------------------ language dropdown
   The trigger is deliberately styled to match the theme button beside it: same
   border, surface and text colour, and no accent tint when open. The menu is a
   plain floating card so it reads as a dropdown rather than part of the bar. */
.lang-menu {
  position: relative;
}

.lang-menu[open] {
  z-index: 60;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.lang-trigger::-webkit-details-marker {
  display: none;
}

.lang-trigger:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-3);
}

/* Opening the menu changes the border and surface only: the text and globe keep
   exactly the same colour as the theme button next to them. */
.lang-menu[open] .lang-trigger {
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.lang-globe {
  width: 1.15rem;
  height: 1.15rem;
}

/* Sits clear of the header's bottom edge so the bar never looks taller than it
   is when the menu is open. */
.lang-list {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 60;
  min-width: 224px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  animation: reveal 0.16s var(--ease);
  scrollbar-width: thin;
}

.lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.14s var(--ease), color 0.14s var(--ease);
}

.lang-list a:hover {
  background: var(--surface-2);
  text-decoration: none;
}

/* The current language is marked by the tinted row and the check, not by a
   different text colour, so every row matches the top bar. */
.lang-list a[aria-current="true"] {
  background: var(--accent-softer);
  color: var(--text-muted);
}

.lang-name {
  flex: 1 1 auto;
}

.lang-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.lang-check {
  width: 1rem;
  height: 1rem;
  color: var(--text-soft);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--accent-strong);
}
.link-arrow .icon {
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(5, 150, 105, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-list a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-close {
  display: none;
}

.nav-mobile-extra {
  display: none;
}

/* ------------------------------------------------------------ theme icons */
.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: inline-block;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: inline-block;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun {
    display: inline-block;
  }

  :root:not([data-theme="light"]) .theme-icon-moon {
    display: none;
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
/*  inset: -30% 40% 30% -20%;*/
  inset: -30% 0% 3% -20%;
  background: var(--band-glow);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: top;
}

.hero-copy {
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 1.1rem;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 600;
}

.badge .icon {
  width: 1rem;
  height: 1rem;
  color: var(--text);
}

.hero h1 {
  margin-bottom: 0.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.6rem 0 1.1rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 1.6rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-note .icon {
  color: var(--accent-strong);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  min-width: 110px;
}

.hero-stats strong {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
}

.hero-stats span {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-media {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: 60% 0% 20% 0%;
  background: var(--hero-glow);
  filter: blur(6px);
  z-index: -1;
}

.shot {
  margin: 0;
  margin-top: 40px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.shot-hero img {
  filter: drop-shadow(0 34px 60px rgba(12, 26, 21, 0.22));
}

:root[data-theme="dark"] .shot-hero img {
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.6));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-hero img {
    filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.6));
  }
}

/* ----------------------------------------------------------- trust strip */
.trust {
  padding: 18px 0 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.trust-check .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.trust-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.trust-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------- sections */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-tight {
  padding: clamp(28px, 4vw, 48px) 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}

.section-head-left {
  margin-inline: 0;
  text-align: left;
}

.section-text {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.section-more {
  margin-top: 1.8rem;
  text-align: center;
}

.card {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature-icon .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.feature-card h3 {
  margin-bottom: 0.4rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ----------------------------------------------------------------- split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-copy h2 {
  margin-bottom: 0.7rem;
}

.split-media {
  position: relative;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 1.4rem;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.check-list .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.22em;
  color: var(--accent-strong);
}

.check-list-tight {
  gap: 8px;
  margin-top: 0;
}

.check-list-tight li {
  font-size: 0.94rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 26px;
}

.step-number {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

.step-card h3 {
  margin-bottom: 0.35rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* --------------------------------------------------------- privacy band */
.privacy-band {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.privacy-band::before {
  content: "";
  position: absolute;
  inset: -60% 0% 0% -20%;
  background: var(--band-glow);
  pointer-events: none;
}

.privacy-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}

.privacy-band-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.privacy-band-icon .icon {
  width: 1.9rem;
  height: 1.9rem;
}

.privacy-band h2 {
  margin-bottom: 0.3rem;
}

.privacy-band p {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

/* --------------------------------------------------------------- pricing */
.plan-wrap {
  display: flex;
  justify-content: center;
}

.plan {
  width: 100%;
  max-width: 560px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.plan-head h3 {
  margin: 0 0 4px;
}

.plan-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.plan-price {
  margin: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.plan-price strong {
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
}

.plan-price span {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.plan .btn-block {
  margin-top: 24px;
}

.plan-footnote {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ------------------------------------------------------------- accordion */
.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.accordion-item[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow-sm);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  transition: background-color 0.16s var(--ease);
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary:hover {
  background: var(--surface-2);
}

.accordion-chevron {
  color: var(--text-soft);
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.accordion-item[open] .accordion-chevron {
  transform: rotate(180deg);
  color: var(--accent-strong);
}

.accordion-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
  animation: reveal 0.22s var(--ease);
}

.accordion-body p {
  margin: 0;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ cta band */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--band-from), var(--band-to));
  color: #f4fffb;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -80% -10% 20% 45%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(40px, 5vw, 60px);
}

.cta-copy h2 {
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-hint {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
}

/* --------------------------------------------------------------- contact */
.split-contact {
  align-items: flex-start;
}

.contact-channels {
  display: grid;
  gap: 12px;
  margin-top: 1.6rem;
}

.contact-channels-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.contact-channels li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.channel-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-channels small {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}

.contact-channels a,
.contact-channels strong {
  font-weight: 600;
  color: var(--text);
  font-size: 0.96rem;
  word-break: break-word;
}

.contact-channels a:hover {
  color: var(--accent-strong);
}

/* ------------------------------------------------------------------ form */
.form-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 2.6vw, 30px);
}

.form {
  display: grid;
  gap: 18px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--accent-strong);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--border-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--expense);
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--expense) 18%, transparent);
}

.field-error {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--expense);
}

.field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: right;
}

.select-wrap {
  position: relative;
  display: flex;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-soft);
}

.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.alert-error {
  background: color-mix(in srgb, var(--expense) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--expense) 35%, transparent);
  color: var(--text);
}

.alert-error > .icon {
  color: var(--expense);
  margin-top: 0.15em;
}

.alert-error strong {
  display: block;
  margin-bottom: 2px;
}

.alert-error p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.alert-error ul {
  list-style: disc;
  padding-left: 18px;
  display: grid;
  gap: 2px;
  font-size: 0.88rem;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.form-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  max-width: 42ch;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.form-consent .icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.2em;
  color: var(--accent-strong);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(8px, 2vw, 20px) 0;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.success-mark .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.form-success h3 {
  margin: 0;
}

.form-success p {
  margin: 0;
  color: var(--text-muted);
}

.form-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--warning) 38%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--warning) 8%, transparent);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-notice .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.18em;
  color: var(--warning);
}

/* ------------------------------------------------------------- page hero */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -70% 0% 0% -15%;
  background: var(--band-glow);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero h1 {
  margin-bottom: 0.4rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-muted);
}

.page-updated {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.page-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 1rem 0 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.page-note .icon {
  color: var(--accent-strong);
}

/* ---------------------------------------------------------------- prose */
.prose {
  display: grid;
  gap: 34px;
}

.prose-block h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.6rem;
}

.prose-block p {
  color: var(--text-muted);
  font-size: 1rem;
}

.summary-card {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.summary-title,
.tips-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.summary-icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.tips-card {
  background: var(--surface-2);
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 30px);
}

.inline-cta h2 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.inline-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

.inline-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----------------------------------------------------------- error page */
.error-page {
  padding-block: clamp(60px, 10vw, 120px);
}

.error-inner {
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.4rem;
  letter-spacing: -0.04em;
  color: var(--accent-soft);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.6rem;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-top: clamp(40px, 5vw, 64px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.brand-footer {
  margin-bottom: 14px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 40ch;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.footer-theme-title {
  margin-top: 22px;
}

.footer-col ul {
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-strong);
}

.footer-langs a[aria-current="true"] {
  color: var(--accent-strong);
  font-weight: 600;
}

.theme-switch .segmented-item {
  min-width: 40px;
}

.footer-bottom {
  padding-block: 20px 28px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.footer-made {
  color: var(--text-muted) !important;
}

.footer-disclaimer {
/*  max-width: 92ch;*/
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    order: 2;
    max-width: 720px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-band-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .privacy-band-inner > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-actions .header-cta {
    display: none;
  }

  /* Keep the logo leftmost and the menu button rightmost on small screens:
     logo · language · theme · menu. */
  .header-actions {
    order: 1;
  }

  .nav-toggle {
    order: 2;
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px var(--gutter) 22px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    padding: 13px 12px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .nav-mobile-extra {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .nav-mobile-extra .segmented {
    justify-content: space-between;
  }

  .nav-mobile-extra .segmented-item {
    flex: 1;
  }

  .nav-toggle .nav-toggle-open {
    display: inline-block;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: inline-block;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-media {
    order: -1;
  }

  .split-contact .split-media {
    order: 2;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .step-grid,
  .contact-channels-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-footer .btn {
    width: 100%;
  }

  .form-consent {
    max-width: none;
  }

  .plan-head {
    flex-direction: column;
  }

  .plan-price {
    align-items: flex-start;
    text-align: left;
  }
}

/* Very small phones: reclaim header width so the wordmark stays on one line.
   The globe alone still signals the language menu (its accessible name carries
   the current language), and the footer keeps the full labelled list. */
@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .lang-trigger {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .lang-current {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .feature-grid,
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-grid {
    padding: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero-stats {
    gap: 14px 22px;
  }

  .hero-stats strong {
    font-size: 1.15rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .segmented .segmented-item {
    width: auto;
  }

  .inline-cta-actions {
    width: 100%;
  }

  .privacy-band-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .btn:hover,
  .feature-card:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------- print */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .form-shell,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .section,
  .section-tight {
    padding: 12pt 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
