/* Lorx — shared website system. Same component system as the Bank W. site, Lorx tokens. */
@font-face {
  font-family: 'Urbanist';
  src: url('/fonts/urbanist-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --bg:      oklch(0.991 0.001 286.4);
  --surface: oklch(1 0 0);
  --fg:      oklch(0.235 0 0);
  --muted:   oklch(0.53 0.02 220);
  --border:  oklch(0.935 0.01 200);
  --accent:  oklch(0.56 0.15 158);

  --tint:      oklch(0.972 0.013 165);
  --tint-2:    oklch(0.944 0.028 165);
  --ink-2:     oklch(0.36 0.015 220);
  --accent-hi: oklch(0.48 0.14 158);
  --accent-soft: color-mix(in oklch, var(--accent) 22%, var(--surface));
  --accent-ghost: color-mix(in oklch, var(--accent) 9%, var(--surface));
  --fg-hi:     oklch(0.34 0 0);
  --on-dark-2: oklch(0.78 0.012 200);
  --up:        oklch(0.58 0.15 152);
  --down:      oklch(0.58 0.17 32);
  --curve-2:   oklch(0.66 0.17 40);
  --on-fill:   oklch(1 0 0);            /* text & icons on violet / ink fills — constant */
  --on-fill-hover: oklch(0.93 0.03 165);
  --ink:       oklch(0.235 0 0);        /* dark panels & dark cards */
  --ink-fixed: oklch(0.235 0 0);        /* brand ink, never changes */
  --accent-text: var(--accent);         /* violet used as text */
  --up-text:   oklch(0.45 0.13 152);
  --shadow-c:  oklch(0.235 0 0);
  --phone:     oklch(0.975 0.004 200);
  --glow-top:  oklch(0.985 0.008 120);
  --glow-strength: 1;
  color-scheme: light;
  --shadow:    0 24px 60px -18px color-mix(in oklch, var(--shadow-c) 22%, transparent);
  --shadow-sm: 0 10px 30px -12px color-mix(in oklch, var(--shadow-c) 18%, transparent);

  --font: 'Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1280px;
  --gutter: 80px;
  --r-lg: 38px; --r-md: 24px; --r-sm: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; font-weight: 500; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 560; letter-spacing: -0.02em; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
main { position: relative; z-index: 1; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.container { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--on-fill); }
.skip:focus { top: 16px; }

/* ─── type ─── */
.display { font-size: clamp(46px, 6.2vw, 88px); line-height: 1.06; }
.h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; }
.h3 { font-size: 28px; line-height: 1.2; }
.lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 58ch; }
.body { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.small { font-size: 14px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tag i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-fill); font-style: normal; }
.tag.on-tint { box-shadow: none; }

/* ─── buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding-inline: 28px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background .18s, transform .18s, box-shadow .18s, color .18s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 42px; padding-inline: 20px; font-size: 15px; }
.btn-lg { height: 62px; padding-inline: 38px; font-size: 17px; }
.btn-accent { background: var(--accent); color: var(--on-fill); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-dark { background: var(--ink); color: var(--on-fill); }
.btn-dark:hover { background: var(--fg-hi); }
.btn-light { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--tint); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-on-dark { background: var(--on-fill); color: var(--ink-fixed); }
.btn-on-dark:hover { background: var(--on-fill-hover); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-text); }
.link:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 4px; }
.link svg { width: 16px; height: 16px; transition: transform .18s; }
.link:hover svg { transform: translate(2px, -2px); }

/* ─── glow field ─── */
.glow { position: absolute; inset: 0 0 auto 0; height: var(--glow-h, 1200px); overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.glow i { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow .g-base  { inset: 0; border-radius: 0; filter: none; background: linear-gradient(180deg, var(--glow-top), var(--bg)); }
.glow .g-violet{ left: calc(50% - 520px); top: 300px; width: 760px; height: 620px; background: oklch(0.83 0.12 160); opacity: .8; }
.glow .g-peri  { left: calc(50% - 820px); top: 640px; width: 820px; height: 420px; background: oklch(0.85 0.08 200); opacity: .8; }
.glow .g-lilac { left: calc(50% - 760px); top: 140px; width: 620px; height: 520px; background: oklch(0.92 0.07 140); opacity: .8; }
.glow .g-peach { left: calc(50% + 200px); top: -160px; width: 720px; height: 520px; background: oklch(0.94 0.05 72); opacity: .9; }
.glow .g-pink  { left: calc(50% + 80px); top: 360px; width: 460px; height: 360px; background: oklch(0.93 0.09 115); opacity: .7; }
.glow .g-mint  { left: calc(50% + 360px); top: 700px; width: 520px; height: 420px; background: oklch(0.92 0.05 225); opacity: .9; }
.glow.soft { --glow-h: 720px; }
.glow.soft .g-violet { top: 140px; opacity: .55; } .glow.soft .g-peri { top: 360px; opacity: .5; } .glow.soft .g-mint { top: 300px; }

/* ─── nav ─── */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.nav.scrolled { background: color-mix(in oklch, var(--bg) 78%, transparent); backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 27px; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 44px; height: 44px; flex: none; }
.nav-links { display: flex; gap: 40px; font-size: 17px; color: var(--ink-2); }
.nav-links a { position: relative; padding-block: 6px; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { font-weight: 650; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-cta .signin { font-weight: 600; color: var(--ink-2); }
.nav-cta .signin:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); align-items: center; justify-content: center; }

/* ─── page header (inner pages) ─── */
.page-head { position: relative; z-index: 1; padding: 90px 0 110px; text-align: center; }
.page-head .display { margin: 22px auto 0; max-width: 16ch; }
.page-head .lead { margin: 24px auto 0; }
.page-head .actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.crumbs { display: flex; justify-content: center; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }

/* ─── sections ─── */
.section { position: relative; padding-block: 120px; }
.section.tint { background: var(--tint); }
.section.dark { background: var(--ink); color: var(--on-fill); }
.section.dark .body, .section.dark .lead { color: var(--on-dark-2); }
.sec-head { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head .tag { margin-bottom: 20px; }
.sec-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head.center .lead { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ─── cards ─── */
.card { position: relative; border-radius: var(--r-lg); background: var(--tint); padding: 38px; overflow: hidden; }
.card.white { background: var(--surface); box-shadow: var(--shadow-sm); }
.card.dark { background: var(--ink); color: var(--on-fill); }
.card.violet { background: var(--accent); color: var(--on-fill); }
.card.lift { transition: transform .25s, box-shadow .25s; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 26px; line-height: 1.25; }
.card p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.card.dark p { color: var(--on-dark-2); }
.card.violet p { color: color-mix(in oklch, var(--on-fill) 85%, var(--accent)); }
.ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-fill); display: grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; }
.ico.soft { background: var(--surface); color: var(--accent-text); }
.card .ico { margin-bottom: 28px; }
.rings { position: absolute; pointer-events: none; color: color-mix(in oklch, var(--on-fill) 26%, transparent); }
.rings.ink { color: color-mix(in oklch, var(--fg) 6%, transparent); }

/* ─── product mock pieces ─── */
.phone { position: absolute; background: var(--phone); border: 6px solid var(--surface); border-radius: 44px; box-shadow: var(--shadow); overflow: hidden; }
.status { position: absolute; left: 30px; right: 24px; top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; }
.status svg { height: 12px; width: auto; }
.float { position: absolute; background: color-mix(in oklch, var(--surface) 92%, transparent); border: 1px solid var(--surface); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.tx-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 999px; }
.tx-row img { border-radius: 50%; object-fit: cover; flex: none; }
.tx-row .who { flex: 1; min-width: 0; line-height: 1.25; }
.tx-row .who b { display: block; font-weight: 600; }
.tx-row .who span, .tx-row .amt span { color: var(--muted); }
.tx-row .amt { text-align: right; line-height: 1.25; font-weight: 650; }
.tx-row .amt span { display: block; font-weight: 500; }
.up { color: var(--up) !important; } .down { color: var(--down) !important; }
.bank-card { position: absolute; border-radius: 18px; color: var(--on-fill); overflow: hidden; }
.bank-card.c-violet { background: radial-gradient(120% 90% at 85% 10%, oklch(0.82 0.14 150), transparent 60%), linear-gradient(160deg, oklch(0.55 0.13 165), oklch(0.62 0.14 160) 60%, oklch(0.74 0.13 150)); }
.bank-card.c-indigo { background: linear-gradient(160deg, oklch(0.5 0.1 230), oklch(0.46 0.1 205) 70%); }
.bank-card.c-teal { background: linear-gradient(160deg, oklch(0.70 0.08 220), oklch(0.82 0.09 185)); }
.bank-card.c-ink { background: radial-gradient(90% 80% at 90% 0%, oklch(0.42 0.1 160), transparent 60%), var(--ink); }
.chip { width: 36px; height: 28px; border-radius: 7px; background: color-mix(in oklch, var(--on-fill) 55%, transparent); }
.select-pill { display: inline-flex; align-items: center; gap: 10px; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; background: var(--surface); }
.flag { border-radius: 50%; object-fit: cover; flex: none; }

/* ─── forms ─── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.input, .select, .textarea { width: 100%; height: 58px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-size: 16px; font-weight: 500; transition: border-color .18s, box-shadow .18s; }
.textarea { height: 150px; padding: 18px 22px; border-radius: var(--r-md); resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 22px center; padding-right: 48px; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in oklch, var(--border) 50%, var(--muted)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ghost); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--down); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.err { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--down); }
.field-wrap.invalid .err { display: block; }
.check { display: inline-flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--muted); display: grid; place-items: center; margin: 0; cursor: pointer; background: var(--surface); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--surface); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--accent-text); font-weight: 600; } .check a:hover { text-decoration: underline; }
.check input[aria-invalid="true"] { border-color: var(--down); box-shadow: 0 0 0 3px color-mix(in oklch, var(--down) 18%, transparent); }

/* ─── segmented tabs ─── */
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); gap: 4px; }
.seg button { height: 44px; padding: 0 24px; border-radius: 999px; font-weight: 600; color: var(--ink-2); transition: background .18s, color .18s; }
.seg button:hover { color: var(--fg); background: var(--tint); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--on-fill); }
.seg.on-tint { box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { height: 42px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.chips button:hover { box-shadow: inset 0 0 0 1.5px var(--fg); color: var(--fg); }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-fill); box-shadow: none; }

/* ─── accordion ─── */
.qa { display: grid; gap: 16px; }
.qa-item { border-radius: 20px; background: var(--tint); transition: background .2s; }
.qa-item button { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; min-height: 76px; padding: 0 30px 0 40px; text-align: left; font-size: 20px; font-weight: 600; }
.qa-item:not(.open):hover { background: var(--tint-2); }
.qa-item button svg { flex: none; width: 20px; height: 20px; transition: transform .2s; }
.qa-item .a { display: none; padding: 0 60px 30px 40px; font-size: 16.5px; line-height: 1.7; }
.qa-item.open { background: var(--accent); color: var(--on-fill); }
.qa-item.open button { min-height: 0; padding-top: 28px; padding-bottom: 16px; }
.qa-item.open button svg { transform: rotate(180deg); }
.qa-item.open .a { display: block; color: color-mix(in oklch, var(--on-fill) 86%, var(--accent)); }
.section.tint .qa-item { background: var(--surface); }
.section.tint .qa-item:not(.open):hover { background: var(--tint-2); }
.section.tint .qa-item.open { background: var(--accent); }

/* ─── plans ─── */
.plan { position: relative; border-radius: 28px; overflow: hidden; padding: 44px; display: flex; flex-direction: column; color: var(--on-fill); }
.plan.dark { background: var(--ink); }
.plan.violet { background: var(--accent); }
.plan.light { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.plan .rings { width: 480px; right: -170px; top: -150px; }
.plan.light .rings { color: color-mix(in oklch, var(--fg) 6%, transparent); }
.plan h3 { position: relative; font-size: 40px; }
.plan .for { position: relative; margin-top: 8px; font-size: 16px; opacity: .8; }
.plan .price { position: relative; margin-top: 36px; font-size: 56px; font-weight: 560; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 20px; font-weight: 500; letter-spacing: 0; opacity: .75; }
.plan ul { position: relative; margin-top: 34px; display: grid; gap: 14px; font-size: 16px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.plan .btn { position: relative; margin-top: 40px; align-self: stretch; }
.plan-badge { position: absolute; top: 44px; right: 44px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--on-fill); color: var(--accent); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }

/* ─── table ─── */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 20px 28px; text-align: left; border-bottom: 1px solid var(--border); }
.table thead th { position: sticky; top: 0; background: var(--surface); font-size: 15px; color: var(--muted); font-weight: 600; }
.table thead th.hl { color: var(--accent-text); }
.table td:not(:first-child), .table th:not(:first-child) { text-align: center; width: 22%; }
.table tbody tr:hover td { background: var(--tint); }
.table .group td { background: var(--tint); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.table svg { width: 22px; height: 22px; margin-inline: auto; }
.yes { color: var(--accent-text); } .no { color: var(--muted); }

/* ─── cta panel ─── */
.cta-panel { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--accent); color: var(--on-fill); padding: 90px 80px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-panel .rings { width: 760px; right: -220px; top: -240px; }
.cta-panel h2 { position: relative; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; max-width: 14ch; }
.cta-panel p { position: relative; margin-top: 18px; max-width: 46ch; color: color-mix(in oklch, var(--on-fill) 85%, var(--accent)); font-size: 18px; }
.cta-panel .actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline-light { color: var(--on-fill); box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--on-fill) 55%, transparent); }
.btn-outline-light:hover { background: color-mix(in oklch, var(--on-fill) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--surface); }

/* ─── footer ─── */
.footer { background: var(--ink); color: var(--on-fill); margin-top: 120px; padding: 90px 0 40px; border-radius: 40px 40px 0 0; }
.footer .brand svg path { stroke: var(--on-fill); } .footer .brand svg path[fill] { fill: var(--on-fill); }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot-about p { margin-top: 20px; max-width: 34ch; color: var(--on-dark-2); font-size: 15px; line-height: 1.7; }
.foot-col h4 { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); }
.foot-col ul { margin-top: 20px; display: grid; gap: 12px; font-size: 16px; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.newsletter { margin-top: 28px; display: flex; gap: 8px; max-width: 380px; padding: 6px; border-radius: 999px; background: color-mix(in oklch, var(--on-fill) 10%, transparent); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 16px; color: var(--on-fill); font-size: 15px; outline: none; }
.newsletter input::placeholder { color: var(--on-dark-2); }
.newsletter:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.nl-msg { margin-top: 10px; min-height: 20px; font-size: 13px; color: var(--on-dark-2); }
.foot-bottom { margin-top: 80px; padding-top: 28px; border-top: 1px solid color-mix(in oklch, var(--on-fill) 14%, transparent); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-2); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklch, var(--on-fill) 10%, transparent); color: var(--on-fill); }
.socials a:hover { background: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.foot-legal { margin-top: 20px; font-size: 13px; line-height: 1.6; color: color-mix(in oklch, var(--on-dark-2) 80%, var(--fg)); max-width: 110ch; }

/* ─── toast ─── */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 140%); visibility: hidden; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--on-fill); font-size: 15px; font-weight: 600; box-shadow: var(--shadow); transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ─── reveal ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }


/* ═══════════════ dark theme ═══════════════
   Same system, night palette: deep blue-black canvas, elevated slate surfaces,
   one emerald accent (lightened only where it is used as text). */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:      oklch(0.16 0.012 205);
  --surface: oklch(0.21 0.014 205);
  --fg:      oklch(0.955 0.006 200);
  --muted:   oklch(0.72 0.02 205);
  --border:  oklch(0.30 0.016 205);
  --accent:  oklch(0.6 0.15 158);
  --tint:    oklch(0.19 0.02 190);
  --tint-2:  oklch(0.25 0.03 175);
  --ink-2:   oklch(0.85 0.012 200);
  --accent-hi: oklch(0.67 0.15 158);
  --fg-hi:   oklch(0.86 0.008 200);
  --on-dark-2: oklch(0.78 0.012 200);
  --ink:     oklch(0.12 0.01 205);
  --accent-text: oklch(0.8 0.13 158);
  --up:      oklch(0.72 0.16 152);
  --down:    oklch(0.72 0.16 32);
  --up-text: oklch(0.8 0.14 152);
  --shadow-c: oklch(0.05 0 0);
  --shadow:    0 24px 60px -18px color-mix(in oklch, var(--shadow-c) 70%, transparent);
  --shadow-sm: 0 10px 30px -12px color-mix(in oklch, var(--shadow-c) 55%, transparent);
  --phone:   oklch(0.18 0.014 205);
  --glow-top: oklch(0.2 0.03 180);
}
/* glow field: same colour story, dimmed for night */
html[data-theme="dark"] .glow .g-violet, html[data-theme="dark"] .glow .g-peri, html[data-theme="dark"] .glow .g-lilac { opacity: .32; }
html[data-theme="dark"] .glow .g-peach, html[data-theme="dark"] .glow .g-pink, html[data-theme="dark"] .glow .g-mint { opacity: .12; }
/* high-contrast controls invert: light fill, dark text */
html[data-theme="dark"] :is(.btn-dark, .skip, .seg button[aria-selected="true"], .swap, .biz-badge, .toast, .cat[aria-pressed="true"]) { background: var(--fg); color: var(--bg); }
html[data-theme="dark"] :is(.btn-dark, .swap):hover { background: var(--fg-hi); }
html[data-theme="dark"] .cat[aria-pressed="true"] > span:not(.ico) { color: var(--muted); }
/* dark panels sit below the canvas; give them an edge so they read as objects */
html[data-theme="dark"] :is(.card.dark, .plan.dark, .feature.dark, .visual.dark, .brand-panel, .logo-tile.dark, .footer) { box-shadow: inset 0 0 0 1px var(--border); }
html[data-theme="dark"] :is(.card.white, .plan.light, .table-wrap, .converter, .panel, .form-card, .help-band) { box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
html[data-theme="dark"] .section.dark { border-block: 1px solid var(--border); }
html[data-theme="dark"] .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--border); }
html[data-theme="dark"] .btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--fg); }
html[data-theme="dark"] .nav.scrolled { background: color-mix(in oklch, var(--bg) 82%, transparent); }
html[data-theme="dark"] img.flag, html[data-theme="dark"] .avatars img { border-color: var(--surface); }

/* theme toggle */
.theme-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); transition: background .18s, color .18s, box-shadow .18s; }
.theme-btn:hover { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.theme-btn svg { width: 20px; height: 20px; position: absolute; transition: transform .35s, opacity .25s; }
.theme-btn .moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="dark"] .theme-btn .sun { opacity: 0; transform: rotate(60deg) scale(.6); }
html[data-theme="dark"] .theme-btn .moon { opacity: 1; transform: none; }
html.theme-switching, html.theme-switching * { transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s !important; }

/* ─── responsive ─── */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .nav-links { gap: 26px; }
  .sec-head, .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .cta-panel { grid-template-columns: 1fr; padding: 70px 48px; }
}
@media (max-width: 920px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; position: absolute; top: 84px; left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 2px; padding: 16px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding-block: 12px; }
  .menu-btn { display: inline-flex; }
  .nav-cta .signin { display: none; }
  .nav-row { height: 80px; }
  .section { padding-block: 80px; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .page-head { padding: 50px 0 70px; }
  .card { padding: 30px; }
  .plan { padding: 34px; } .plan-badge { top: 34px; right: 34px; }
  .qa-item button { padding-left: 24px; font-size: 18px; } .qa-item .a { padding-inline: 24px; }
  .cta-panel { padding: 56px 28px; border-radius: 28px; }
  .footer { border-radius: 28px 28px 0 0; padding-top: 64px; }
  .foot-top { grid-template-columns: 1fr; }
}

/* ═══════════════ terminal component ═══════════════
   Window chrome + Warp-style command blocks. Always dark, in both themes, like a real terminal. */
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
:root { --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }
.term {
  --t-bg: oklch(0.195 0.014 215); --t-bar: oklch(0.235 0.015 215); --t-line: oklch(1 0 0 / .08);
  --t-fg: oklch(0.94 0.008 210); --t-dim: oklch(0.68 0.02 215); --t-acc: oklch(0.8 0.15 158);
  --t-ok: oklch(0.8 0.15 158); --t-warn: oklch(0.84 0.13 85); --t-err: oklch(0.74 0.16 28); --t-info: oklch(0.79 0.1 235);
  position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-align: left;
  background: var(--t-bg); color: var(--t-fg); font: 400 13px/1.6 var(--mono);
  font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0;
  box-shadow: inset 0 0 0 1px var(--t-line), 0 30px 70px -28px oklch(0.1 0.02 215 / .55);
}
.term-bar { display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; height: 42px; padding: 0 14px; flex: none;
  background: linear-gradient(180deg, var(--t-bar), color-mix(in oklch, var(--t-bar) 55%, var(--t-bg))); border-bottom: 1px solid var(--t-line); }
.term-dots { display: flex; gap: 8px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 .5px oklch(0 0 0 / .25); }
.term-dots i:nth-child(1) { background: oklch(0.68 0.19 27); } .term-dots i:nth-child(2) { background: oklch(0.83 0.15 85); } .term-dots i:nth-child(3) { background: oklch(0.76 0.17 145); }
.term-title { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 12px; color: var(--t-dim); white-space: nowrap; }
.term-title svg { width: 13px; height: 13px; }
.term-title b { color: var(--t-fg); font-weight: 500; }
.term-meta { justify-self: end; font-size: 11px; color: var(--t-dim); }
.term-body { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px; height: var(--term-h, 320px); overflow: hidden; }
.term-body.over { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px); }
.tb { flex: none; border-radius: 12px; background: oklch(1 0 0 / .03); box-shadow: inset 0 0 0 1px var(--t-line); overflow: hidden; animation: tb-in .35s ease both; transition: box-shadow .3s; }
.tb.running { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--t-acc) 45%, transparent), 0 0 0 4px color-mix(in oklch, var(--t-acc) 7%, transparent); }
.tb-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px 0; font-size: 11.5px; color: var(--t-dim); }
.tb-path { color: var(--t-acc); font-weight: 600; }
.tb-branch { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; background: oklch(1 0 0 / .06); color: var(--t-fg); }
.tb-branch svg { width: 11px; height: 11px; color: var(--t-dim); }
.tb-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-weight: 600; background: oklch(1 0 0 / .06); color: var(--t-dim); }
.tb-status.ok { background: color-mix(in oklch, var(--t-ok) 15%, transparent); color: var(--t-ok); }
.tb-status.warn { background: color-mix(in oklch, var(--t-warn) 15%, transparent); color: var(--t-warn); }
.tb-status.err { background: color-mix(in oklch, var(--t-err) 15%, transparent); color: var(--t-err); }
.tb-status .spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: tspin .8s linear infinite; }
.tb-dur { color: var(--t-dim); font-weight: 400; font-variant-numeric: tabular-nums; }
.tb-cmd { padding: 6px 12px 10px; font-size: 13.5px; font-weight: 500; color: var(--t-fg); white-space: pre-wrap; word-break: break-word; }
.tb-cmd::before { content: '❯'; margin-right: 10px; color: var(--t-acc); font-weight: 700; }
.tb-out { display: grid; gap: 3px; padding: 9px 12px 11px; border-top: 1px solid var(--t-line); }
.tl { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; animation: tl-in .3s ease both; }
.tl .i { text-align: center; font-weight: 700; }
.tl .i.tag { justify-self: start; min-width: 38px; padding: 0 5px; border-radius: 4px; font-size: 10px; line-height: 17px; letter-spacing: .04em; }
.tl:has(.i.tag) { grid-template-columns: 44px minmax(0, 1fr) auto; }
.tl .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl .r { color: var(--t-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl.ok .i { color: var(--t-ok); } .tl.warn .i { color: var(--t-warn); } .tl.err .i { color: var(--t-err); } .tl.info .i, .tl.mod .i { color: var(--t-info); }
.tl.err .i.tag { background: color-mix(in oklch, var(--t-err) 20%, transparent); } .tl.info .i.tag { background: color-mix(in oklch, var(--t-info) 18%, transparent); } .tl.warn .i.tag { background: color-mix(in oklch, var(--t-warn) 18%, transparent); }
.tl.dim { color: var(--t-dim); } .tl.dim .i { color: var(--t-dim); font-weight: 400; }
.tl.sub { padding-left: 30px; color: var(--t-dim); }
.tl b { color: var(--t-fg); font-weight: 600; }
.tl .hl { color: var(--t-acc); }
.term .caret { display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -3px; background: var(--t-acc); animation: tblink 1s steps(1) infinite; }
.term-idle { flex: none; padding: 2px 12px 4px; font-size: 13.5px; color: var(--t-fg); }
.term-idle::before { content: '❯'; margin-right: 10px; color: var(--t-acc); font-weight: 700; }
@keyframes tb-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes tl-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes tblink { 50% { opacity: 0; } }
@keyframes tspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tb, .tl { animation: none; } .term .caret, .tb-status .spin { animation: none; } }
/* compact variant for floating cards */
.term.mini { border-radius: 16px; font-size: 12px; }
.term.mini .term-bar { height: 32px; grid-template-columns: 50px 1fr 50px; padding: 0 11px; } .term.mini .term-dots { gap: 6px; } .term.mini .term-dots i { width: 8px; height: 8px; }
.term.mini .term-body { height: auto; padding: 9px; -webkit-mask-image: none; mask-image: none; }
.term.mini .tb-cmd { font-size: 12px; padding: 5px 10px 8px; } .term.mini .tb-head { padding: 8px 10px 0; font-size: 10.5px; } .term.mini .tb-status { height: 19px; }

/* showcase framing */
html.shot, html.shot body { overflow: hidden; }
html.shot { scroll-behavior: auto; }
html.shot .nav { position: absolute; left: 0; right: 0; }
