/*
 * ligo1auto — contacts-sync
 * ---------------------------------------------------------------------------
 * The palette, typography, radii and shadows below are lifted verbatim from
 * the ligo1auto marketing site (web-site4: src/app/globals.css +
 * tailwind.config.ts) so this tool reads as part of the same brand. Colors are
 * space-separated RGB channels, exactly as there, so `rgb(var(--x) / a)` works.
 *
 * Fonts are self-hosted (CSP: font-src 'self'); Heebo for body, Rubik for
 * headings — the same pairing the site uses.
 */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/heebo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/heebo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/rubik-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/rubik-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Design tokens (mirrors web-site4 src/app/globals.css) ───────────────── */
:root {
  /* Brand */
  --c-navy: 10 31 68;          /* #0A1F44 */
  --c-navy-deep: 5 11 31;      /* #050B1F */
  --c-navy-soft: 23 45 90;     /* #172D5A */
  --c-blue: 5 130 202;         /* #0582CA */
  --c-cyan: 6 132 168;         /* #0684A8 — AA on white for text */
  --c-mint: 5 150 105;         /* #059669 */

  /* Surfaces */
  --c-page: 247 249 251;       /* the page ground; cards sit on top of it */
  --c-surface: 255 255 255;
  --c-surface-muted: 248 250 252;
  --c-surface-subtle: 241 245 249;

  /* Ink (text) */
  --c-ink: 15 23 42;           /* #0F172A */
  --c-ink-muted: 51 65 85;     /* #334155 — AA on white */
  --c-ink-soft: 71 85 105;     /* #475569 */
  --c-ink-inverted: 248 250 252;

  /* Lines */
  --c-line: 226 232 240;
  --c-line-strong: 203 213 225;

  /* Focus ring */
  --c-focus: 0 130 202;

  --font-sans: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* One shadow, used sparingly. Depth comes from the borders, not from glow. */
  --shadow-card: 0 1px 2px rgb(var(--c-navy) / 0.05);
  --shadow-float: 0 10px 30px -18px rgb(var(--c-navy) / 0.35);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  color-scheme: light;
}

/*
 * The marketing site ships light and offers a saved dark theme. Here there is
 * no toggle to persist, so the same dark token set follows the OS preference.
 */
@media (prefers-color-scheme: dark) {
  :root {
    --c-page: 5 11 31;
    --c-surface: 13 22 45;
    --c-surface-muted: 18 28 56;
    --c-surface-subtle: 24 36 68;
    --c-ink: 226 232 240;
    --c-ink-muted: 176 190 214;
    --c-ink-soft: 148 163 184;
    --c-ink-inverted: 15 23 42;
    --c-line: 32 47 82;
    --c-line-strong: 47 66 108;
    --c-cyan: 56 189 248;
    --c-mint: 52 211 153;
    --c-focus: 56 189 248;
    --shadow-card: none;
    --shadow-float: 0 10px 30px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: rgb(var(--c-page));
  color: rgb(var(--c-ink));
  font-family: var(--font-sans);
  font-feature-settings: 'kern', 'liga';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: rgb(var(--c-ink));
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

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

/* Technical LTR runs (emails, provider names) inside the RTL document. */
[dir='ltr'],
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Visible focus, never removed (WCAG 2.4.7). */
:focus-visible {
  outline: 2px solid rgb(var(--c-focus));
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

.hidden {
  display: none !important;
}

.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;
}

/* Keyboard users reach the first action without walking the header. */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  background: rgb(var(--c-navy));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.container-page {
  margin-inline: auto;
  width: 100%;
  max-width: 66rem;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container-page {
    padding-inline: 1.5rem;
  }
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

/* The arrow glyph is drawn pointing right; the document is RTL. */
.icon-rtl {
  transform: scaleX(-1);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--c-surface));
  border-bottom: 1px solid rgb(var(--c-line));
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
}

.header-brand img {
  height: 2rem;
  width: auto;
  max-width: 158px;
  object-fit: contain;
  flex-shrink: 0;
}

/* The wordmark artwork is dark navy; on a dark surface it needs inverting. */
@media (prefers-color-scheme: dark) {
  .header-brand img {
    filter: brightness(0) invert(1);
  }
}

.header-brand span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--c-ink-soft));
  border-inline-start: 1px solid rgb(var(--c-line-strong));
  padding-inline-start: 0.75rem;
  white-space: nowrap;
}

.header-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgb(var(--c-ink-muted));
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-service-link:hover {
  color: rgb(var(--c-cyan));
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.625rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:disabled {
  pointer-events: none;
  opacity: 0.55;
}

.button.primary {
  background: rgb(var(--c-cyan));
  color: #fff;
}

.button.primary:hover {
  background: rgb(var(--c-blue));
}

.button.secondary {
  background: rgb(var(--c-navy));
  color: #fff;
}

.button.secondary:hover {
  background: rgb(var(--c-navy-soft));
}

.button.ghost {
  border-color: rgb(var(--c-line-strong));
  background: rgb(var(--c-surface));
  color: rgb(var(--c-ink));
}

.button.ghost:hover {
  border-color: rgb(var(--c-ink-soft));
}

.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: rgb(var(--c-ink-soft));
  font: 600 0.8125rem var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button:hover {
  color: rgb(var(--c-cyan));
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
/*
 * A short text intro, not a full-height hero: the tool itself starts one
 * screenful down, so height here is height the first step does not get.
 */
.hero {
  padding: 2.75rem 0 2.25rem;
}

.eyebrow {
  color: rgb(var(--c-cyan));
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin-top: 0.625rem;
  max-width: 26ch;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgb(var(--c-ink-muted));
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: rgb(var(--c-ink-muted));
}

.hero-facts svg {
  flex-shrink: 0;
  color: rgb(var(--c-mint));
}

.hero-jump {
  margin-top: 1.5rem;
}

.hero-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgb(var(--c-cyan));
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--c-cyan) / 0.35);
  padding-bottom: 0.15rem;
}

.hero-jump a:hover {
  border-bottom-color: rgb(var(--c-cyan));
}

/* ── "Start here": the entry point and the whole flow, before any button ── */
.start-here {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  border: 1px solid rgb(var(--c-line-strong));
  border-radius: var(--radius-lg);
  background: rgb(var(--c-surface));
  box-shadow: var(--shadow-card);
}

.start-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3125rem 0.6875rem;
  border-radius: 9999px;
  background: rgb(var(--c-cyan) / 0.12);
  color: rgb(var(--c-cyan));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.start-intro h2 {
  margin-top: 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.start-intro p {
  margin-top: 0.5rem;
  color: rgb(var(--c-ink-muted));
  font-size: 0.9375rem;
  line-height: 1.7;
}

.start-steps {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.start-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgb(var(--c-line));
}

.start-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.start-index {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgb(var(--c-navy));
  color: #fff;
  font: 700 0.8125rem var(--font-display);
}

.start-steps h3 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.start-steps p {
  color: rgb(var(--c-ink-muted));
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── Panels ──────────────────────────────────────────────────────────────── */
.panel {
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius-lg);
  background: rgb(var(--c-surface));
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-bottom: 1.125rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgb(var(--c-line));
}

.step-label {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgb(var(--c-navy));
  color: #fff;
  font: 700 0.8125rem var(--font-display);
}

.section-title h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title p {
  margin-top: 0.375rem;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgb(var(--c-ink-muted));
}

/* ── Account cards ───────────────────────────────────────────────────────── */
.accounts {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.875rem;
}

.account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius-md);
  background: rgb(var(--c-surface-muted));
  transition: border-color 160ms ease, background-color 160ms ease;
}

.account.connected {
  border-color: rgb(var(--c-mint) / 0.5);
  background: rgb(var(--c-mint) / 0.06);
}

.provider-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius-md);
  background: rgb(var(--c-surface));
  flex-shrink: 0;
}

.microsoft-icon {
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
}

.microsoft-icon i {
  display: block;
  width: 8px;
  height: 8px;
}

.microsoft-icon i:nth-child(1) { background: #f25022; }
.microsoft-icon i:nth-child(2) { background: #7fba00; }
.microsoft-icon i:nth-child(3) { background: #00a4ef; }
.microsoft-icon i:nth-child(4) { background: #ffb900; }

.account-copy {
  min-width: 0;
}

.account h3 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.account-copy p {
  margin-top: 0.1875rem;
  font-size: 0.8125rem;
  color: rgb(var(--c-ink-soft));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* The connected label is an account address (LTR) inside an RTL block;
   * isolate it so surrounding punctuation cannot reorder it. */
  unicode-bidi: isolate;
}

.account.connected .account-copy p {
  color: rgb(var(--c-mint));
  font-weight: 600;
}

.account-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-action .button {
  flex: 1 1 auto;
  min-height: 2.5rem;
  font-size: 0.8125rem;
}

.account.connected .account-action .button {
  flex: 0 0 auto;
}

.bridge-line {
  display: grid;
  place-items: center;
  width: 2.5rem;
  color: rgb(var(--c-ink-soft));
}

.bridge-line span {
  display: grid;
  place-items: center;
}

/* ── Direction buttons ───────────────────────────────────────────────────── */
.sync-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.sync-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgb(var(--c-line-strong));
  border-radius: var(--radius-md);
  background: rgb(var(--c-surface));
  color: rgb(var(--c-ink));
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.sync-button:not(:disabled):hover {
  border-color: rgb(var(--c-cyan));
  background: rgb(var(--c-cyan) / 0.05);
}

.sync-button:disabled {
  border-color: rgb(var(--c-line));
  background: rgb(var(--c-surface-muted));
  color: rgb(var(--c-ink-soft));
  cursor: not-allowed;
}

.sync-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.sync-button b {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

.sync-button b em {
  padding: 0.125rem 0.4375rem;
  border-radius: var(--radius-sm);
  background: rgb(var(--c-cyan) / 0.12);
  color: rgb(var(--c-cyan));
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
}

.sync-button small {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(var(--c-ink-soft));
}

.sync-button svg {
  flex-shrink: 0;
  color: rgb(var(--c-cyan));
}

.sync-button:disabled svg {
  color: rgb(var(--c-ink-soft));
}

.sync-button-wide {
  grid-column: 1 / -1;
  border-color: rgb(var(--c-cyan) / 0.45);
}

.sync-button-wide:disabled {
  border-color: rgb(var(--c-line));
}

.sync-hint {
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgb(var(--c-ink-soft));
}

/* ── Progress ────────────────────────────────────────────────────────────── */
.progress {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--c-line));
}

.progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.progress-head strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

.progress-head span {
  font-size: 0.875rem;
  color: rgb(var(--c-ink-soft));
}

.progress-track {
  height: 5px;
  margin: 0.875rem 0 1.125rem;
  border-radius: 9999px;
  background: rgb(var(--c-surface-subtle));
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: inherit;
  background: rgb(var(--c-cyan));
  animation: sweep 1.6s ease-in-out infinite;
}

.progress.complete .progress-track span {
  width: 100%;
  background: rgb(var(--c-mint));
  animation: none;
}

@keyframes sweep {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-235%); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.625rem;
  margin: 0 0 1.125rem;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 0.625rem 0.75rem;
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius-md);
  background: rgb(var(--c-surface-muted));
  font-size: 0.75rem;
  color: rgb(var(--c-ink-soft));
}

.stats b {
  display: block;
  margin-bottom: 0.125rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(var(--c-ink));
}

.progress-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* ── Closing sections ────────────────────────────────────────────────────── */
.fit-note {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgb(var(--c-line));
}

.fit-note h2 {
  font-size: 1rem;
  font-weight: 700;
}

.fit-note p {
  margin-top: 0.5rem;
  max-width: 72ch;
  color: rgb(var(--c-ink-muted));
  font-size: 0.9375rem;
  line-height: 1.7;
}

.business-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.75rem;
  margin-top: 0.5rem;
  padding: 1.75rem;
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius-lg);
  background: rgb(var(--c-surface));
}

.cta-kicker {
  color: rgb(var(--c-cyan));
  font-size: 0.8125rem;
  font-weight: 700;
}

.business-cta h2 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.business-cta p:not(.cta-kicker) {
  margin-top: 0.5rem;
  max-width: 62ch;
  color: rgb(var(--c-ink-muted));
  font-size: 0.9375rem;
  line-height: 1.7;
}

.business-cta .button {
  flex: 0 0 auto;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 2.5rem;
  background: rgb(var(--c-navy-deep));
  color: rgb(var(--c-ink-inverted));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-brand img {
  height: 1.75rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 22rem;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.6);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  inset-inline-start: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  max-width: 24rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(var(--c-line-strong));
  border-radius: var(--radius-md);
  background: rgb(var(--c-surface));
  color: rgb(var(--c-ink));
  font-size: 0.875rem;
  box-shadow: var(--shadow-float);
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal {
  max-width: 46rem;
  padding-block: 2.5rem 3rem;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--c-ink-soft));
}

.legal article {
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius-lg);
  background: rgb(var(--c-surface));
  box-shadow: var(--shadow-card);
}

.legal h2 {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.legal article > h2:first-child {
  margin-top: 0;
}

.legal p {
  margin-top: 0.625rem;
  line-height: 1.8;
  color: rgb(var(--c-ink-muted));
  font-size: 0.9375rem;
}

.legal a {
  color: rgb(var(--c-cyan));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .start-here {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 760px) {
  .header-service-link span {
    display: none;
  }

  /* Without its label the link needs a shape of its own to read as a control. */
  .header-service-link {
    width: 2.25rem;
    height: 2.25rem;
    justify-content: center;
    border: 1px solid rgb(var(--c-line));
    border-radius: var(--radius-md);
  }

  .panel {
    padding: 1.25rem;
  }

  .accounts {
    grid-template-columns: 1fr;
  }

  .bridge-line {
    width: auto;
    height: 1.75rem;
  }

  .bridge-line span {
    transform: rotate(90deg);
  }

  .sync-actions {
    grid-template-columns: 1fr;
  }

  .sync-button-wide {
    grid-column: auto;
  }

  .business-cta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .business-cta .button {
    justify-self: start;
  }

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

  .toast {
    inset-inline: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .header-brand span {
    display: none;
  }
}

@media (max-width: 480px) {
  .container-page {
    padding-inline: 1rem;
  }

  .header-brand img {
    max-width: 128px;
  }

  .hero-facts {
    gap: 0.5rem;
    flex-direction: column;
  }

  .start-here {
    padding: 1.25rem;
  }

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

  .account-action .button {
    width: 100%;
  }
}

/*
 * Dark theme only: navy-deep is the page background there, so the footer needs
 * its own edge to stay legible as a surface.
 */
@media (prefers-color-scheme: dark) {
  .site-footer {
    border-top: 1px solid rgb(var(--c-line));
  }
}

/* Honour the OS reduced-motion setting (WCAG 2.3.3 / 2.2.2). */
@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;
    scroll-behavior: auto !important;
  }
}
