/* AristoTrade — site styles
   Layout language: Azure-style (mega nav, hero, tabs, cards, CTA bands, multi-column footer)
   Colour language: Canva palette (purple #7D2AE8 → teal #00C4CC), matching the AristoTrade logo */

:root {
  --purple: #7D2AE8;
  --purple-600: #6A1FD0;
  --purple-700: #5716B0;
  --violet: #8B3DFF;
  --teal: #00C4CC;
  --teal-600: #00A3AA;
  --teal-700: #007F85;
  --grad: linear-gradient(90deg, #7D2AE8 0%, #4F6BE3 55%, #00C4CC 100%);
  --grad-diag: linear-gradient(135deg, #7D2AE8 0%, #5B5BE6 50%, #00C4CC 100%);
  --grad-soft: linear-gradient(135deg, #F5EEFF 0%, #EEF3FF 50%, #E3FAFB 100%);

  --ink: #0E1318;
  --text: #1F2530;
  --muted: #5A6270;
  --subtle: #8A93A3;
  --line: #E3E6EC;
  --line-strong: #CDD2DB;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FA;
  --bg-lav: #F5EFFF;
  --bg-teal: #E6FAFB;

  --ok: #0B8A5F;
  --ok-bg: #E4F6EE;
  --warn: #A45A00;
  --warn-bg: #FFF3E0;
  --info: #2F5BD3;
  --info-bg: #EAF0FF;
  --plan: #5A6270;
  --plan-bg: #EEF0F4;
  --danger: #C2272D;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(14,19,24,.06), 0 1px 3px rgba(14,19,24,.08);
  --shadow: 0 4px 12px rgba(14,19,24,.08), 0 1px 3px rgba(14,19,24,.06);
  --shadow-lg: 0 18px 40px rgba(62,32,140,.14), 0 4px 12px rgba(14,19,24,.06);

  --font: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- Top promo bar (Azure-style) ---------- */
.promo { background: var(--ink); color: #E8EAF0; font-size: .875rem; }
.promo .container { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 40px; text-align: center; padding-top: 6px; padding-bottom: 6px; }
.promo .short { display: none; }
@media (max-width: 600px) { .promo .long { display: none; } .promo .short { display: inline; } }
.promo a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.promo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,196,204,.25); flex: none; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-menu > li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 12px; color: var(--text); font-size: .95rem; border-radius: 6px; background: none; border: 0; font-family: inherit; cursor: pointer; height: var(--header-h); }
.nav-link:hover { color: var(--purple); text-decoration: none; }
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-link[aria-current="page"], .nav-menu > li.active > .nav-link { color: var(--purple); box-shadow: inset 0 -3px 0 var(--purple); }
.dropdown { position: absolute; top: 100%; left: -12px; min-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 10px; display: none; }
.has-dd:hover .dropdown, .has-dd.open .dropdown { display: block; }
.has-dd:hover .nav-link .icon, .has-dd.open .nav-link .icon { transform: rotate(180deg); }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: 8px; color: var(--text); }
.dd-item:hover { background: var(--bg-lav); text-decoration: none; }
.dd-item .dd-ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-lav); color: var(--purple); flex: none; }
.dd-item:hover .dd-ic { background: #fff; }
.dd-item strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.dd-item span { font-size: .85rem; color: var(--muted); line-height: 1.4; display: block; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav-toggle { display: block; }
  .nav-panel { position: fixed; top: var(--panel-top, 105px); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: 8px 16px 32px; display: none; flex-direction: column; border-top: 1px solid var(--line); }
  .nav-panel.open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; flex: none; }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-link { height: auto; padding: 14px 4px; width: 100%; justify-content: space-between; font-size: 1.05rem; }
  .nav-link[aria-current="page"], .nav-menu > li.active > .nav-link { box-shadow: none; }
  .dropdown { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 10px; }
  .has-dd:hover .dropdown { display: none; }
  .has-dd.open .dropdown { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .nav-actions .btn { justify-content: center; }
}
@media (min-width: 1081px) { .nav-panel { display: contents; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font: 600 .95rem/1.2 var(--font); border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-600); box-shadow: 0 6px 16px rgba(125,42,232,.3); }
.btn-secondary { background: #fff; color: var(--purple); border-color: var(--purple); }
.btn-secondary:hover { background: var(--bg-lav); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--purple-700); }
.btn-white:hover { background: #F2ECFF; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: #006a6f; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--purple); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-soft); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -200px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(0,196,204,.18), rgba(0,196,204,0) 65%); pointer-events: none; }
.hero::before { content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(125,42,232,.14), rgba(125,42,232,0) 65%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin-bottom: 28px; }
.hero h1 .grad-text, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: .925rem; color: var(--text); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--teal-700); width: 18px; height: 18px; }
.page-hero .hero-grid { padding-top: 56px; padding-bottom: 60px; }
.page-hero.simple .hero-grid { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
.page-hero.simple .hero-sub { max-width: 52em; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.eyebrow.teal { color: var(--teal-700); }
.eyebrow .pill { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; font-size: .72rem; }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple); }

/* ---------- Hero visual: evidence pack card ---------- */
.evidence-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FBFAFF; }
.ev-head strong { font-size: .95rem; color: var(--ink); }
.ev-head small { color: var(--muted); font-size: .8rem; }
.ev-body { padding: 16px 18px 18px; }
.ev-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ev-steps li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); }
.ev-steps li.now { background: var(--bg-lav); outline: 1px solid rgba(125,42,232,.25); }
.ev-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--ok-bg); color: var(--ok); }
.ev-steps .now .n { background: var(--purple); color: #fff; }
.ev-steps .todo .n { background: #fff; color: var(--subtle); border: 1px dashed var(--line-strong); }
.ev-steps .todo { color: var(--subtle); background: #fff; border: 1px solid var(--line); }
.ev-steps em { font-style: normal; font-size: .75rem; color: var(--muted); }
.ev-files { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-file { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); background: #fff; }
.ev-file .icon { width: 14px; height: 14px; color: var(--teal-700); }
.ev-note { font-size: .75rem; color: var(--subtle); padding: 10px 18px; border-top: 1px solid var(--line); background: #FCFCFD; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-soft); }
.section.lav { background: var(--bg-lav); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card.hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }
.card-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-lav); color: var(--purple); margin-bottom: 18px; }
.card-ic.teal { background: var(--bg-teal); color: var(--teal-700); }
.card-ic.grad { background: var(--grad-diag); color: #fff; }
.card-ic .icon { width: 24px; height: 24px; }
.card.flat { box-shadow: none; }
.card.soft { background: var(--bg-soft); border-color: transparent; }

.path-card { position: relative; overflow: hidden; padding: 36px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.path-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.path-card.factory::before { background: linear-gradient(90deg, #00C4CC, #00A3AA); }
.path-card h3 { font-size: 1.5rem; }
.path-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.path-card li { display: flex; gap: 10px; align-items: flex-start; }
.path-card li .icon { color: var(--teal-700); margin-top: 3px; width: 18px; height: 18px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.check-list.no .icon { color: var(--danger); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.stat { padding: 26px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.stat span { font-size: .875rem; color: var(--muted); display: block; line-height: 1.4; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(3) { border-right: 0; } .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); } .stat:nth-child(2n) { border-right: 0 !important; } .stat:nth-last-child(-n+2) { border-bottom: 0; } }
.stats-note { font-size: .8rem; color: var(--subtle); margin-top: 10px; }

/* ---------- Tabs (Azure-style) ---------- */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 32px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; padding: 12px 18px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--purple); border-bottom-color: var(--purple); }
.tab-panel[hidden] { display: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Steps / timeline ---------- */
.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step5 { position: relative; padding: 22px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step5 .num { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-diag); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step5 h4 { margin-bottom: 6px; }
.step5 p { font-size: .9rem; color: var(--muted); margin: 0; }
.step5 .sla { display: inline-block; margin-top: 12px; font-size: .75rem; font-weight: 600; color: var(--teal-700); background: var(--bg-teal); padding: 3px 9px; border-radius: 99px; }
@media (max-width: 1000px) { .steps5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps5 { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(#7D2AE8, #00C4CC); opacity: .35; }
.tl-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 22px; }
.tl-badge { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--purple); color: var(--purple); font-weight: 700; display: grid; place-items: center; font-size: .85rem; z-index: 1; }
.tl-item.gate .tl-badge { background: var(--purple); color: #fff; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px; }
.tl-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.chip .icon { width: 13px; height: 13px; }
.chip.purple { background: var(--bg-lav); color: var(--purple-700); border-color: transparent; }
.chip.teal { background: var(--bg-teal); color: var(--teal-700); border-color: transparent; }
.tl-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tl-card .proof { margin-top: 8px; font-size: .9rem; }
.tl-card .proof b { color: var(--ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.t th, .t td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.t tr:last-child td { border-bottom: 0; }
.t td strong { color: var(--ink); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tr.hl td { background: #FBF8FF; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-done { background: var(--ok-bg); color: var(--ok); }
.st-progress { background: var(--warn-bg); color: var(--warn); }
.st-planned { background: var(--plan-bg); color: var(--plan); }
.st-now { background: var(--info-bg); color: var(--info); }

/* ---------- Tier ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.rung { padding: 24px 22px; border-right: 1px solid var(--line); position: relative; }
.rung:last-child { border-right: 0; }
.rung .lvl { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rung h3 { margin: 6px 0 10px; font-size: 1.2rem; }
.rung .bar { height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 16px; overflow: hidden; }
.rung .bar i { display: block; height: 100%; background: var(--grad); }
.rung p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.rung .unlock { font-size: .85rem; color: var(--ink); background: var(--bg-soft); border-radius: 8px; padding: 8px 10px; }
.rung .unlock b { color: var(--purple-700); }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr 1fr; } .rung:nth-child(2) { border-right: 0; } .rung:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .ladder { grid-template-columns: 1fr; } .rung { border-right: 0; border-bottom: 1px solid var(--line); } .rung:last-child { border-bottom: 0; } }

/* ---------- Money flow diagram ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.flow-node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.flow-node .card-ic { margin: 0 auto 10px; }
.flow-node strong { display: block; color: var(--ink); }
.flow-node span { font-size: .85rem; color: var(--muted); }
.flow-arrows { display: grid; gap: 10px; min-width: 150px; }
.fa { font-size: .8rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px; justify-content: center; text-align: center; line-height: 1.3; }
.fa .icon { width: 16px; height: 16px; }
.fa.goods { background: var(--ok-bg); color: var(--ok); }
.fa.fee { background: var(--bg-lav); color: var(--purple-700); }
.fa.ev { background: var(--bg-teal); color: var(--teal-700); }
.flow-caption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow-arrows { grid-template-columns: 1fr; } .fa .icon { transform: rotate(90deg); } }

/* ---------- Compare (do / don't) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .card { border-top: 4px solid var(--ok); }
.compare .card.no { border-top-color: var(--danger); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Callouts ---------- */
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--info-bg); color: #1D3A8A; border-left: 4px solid var(--info); font-size: .95rem; }
.notice .icon { margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice.honest { background: #FFF8EC; color: #6B3E00; border-left-color: #E08A00; }
.notice.ok { background: var(--ok-bg); color: #075B3E; border-left-color: var(--ok); }
.notice strong { color: inherit; }

.quote { position: relative; padding: 26px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.quote p { font-size: 1.1rem; color: var(--ink); font-style: italic; }
.quote .who { font-size: .85rem; color: var(--muted); font-style: normal; margin: 0; }
.quote::before { content: "\201C"; position: absolute; top: -6px; left: 18px; font-size: 4rem; line-height: 1; color: var(--purple); opacity: .25; font-family: Georgia, serif; }

/* ---------- Pricing ---------- */
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.price-card.feature { border: 2px solid var(--purple); box-shadow: var(--shadow-lg); }
.price-card .tagline { position: absolute; top: -12px; left: 24px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.price { font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 8px 0 2px; letter-spacing: -.02em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-sub { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.price-card .check-list { font-size: .93rem; margin-bottom: 22px; }
.price-card .btn { margin-top: auto; justify-content: center; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.calc-in { padding: 30px; }
.calc-out { padding: 30px; background: var(--grad-diag); color: #fff; }
.calc-out h3, .calc-out .big { color: #fff; }
.calc-out .big { font-size: 2.6rem; font-weight: 700; line-height: 1.1; margin: 6px 0; }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 20px 0 0; font-size: .95rem; }
.calc-out dt { opacity: .9; }
.calc-out dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-out .hr { grid-column: 1 / -1; height: 1px; background: rgba(255,255,255,.3); }
.calc-out .note { font-size: .82rem; opacity: .9; margin-top: 16px; }
.range { width: 100%; accent-color: var(--purple); }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 0; }
legend .n { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-diag); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fg .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fg { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(125,42,232,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { display: none; font-size: .8rem; color: var(--danger); margin-top: 5px; }
.field.invalid .err { display: block; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: .88rem; cursor: pointer; background: #fff; transition: all .15s; }
.opt input:checked + span { border-color: var(--purple); background: var(--bg-lav); color: var(--purple-700); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.form-foot { font-size: .8rem; color: var(--subtle); margin-top: 14px; }
.success { display: none; text-align: center; padding: 24px 8px; }
.success.show { display: block; }
.success .card-ic { margin: 0 auto 16px; background: var(--ok-bg); color: var(--ok); width: 64px; height: 64px; border-radius: 50%; }
.success .card-ic .icon { width: 32px; height: 32px; }
.side-stack { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 24px; }
.side-card h3 { font-size: 1.05rem; }
.side-card ol { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.side-card ol li::marker { color: var(--purple); font-weight: 700; }
.wait-note { display: none; margin-top: 10px; }

/* ---------- FAQ / accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 0 22px; color: var(--muted); max-width: 860px; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* ---------- People ---------- */
.person { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--grad-diag); color: #fff; display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; }
.avatar.teal { background: linear-gradient(135deg, #00C4CC, #2F7FE0); }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--purple); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.person p { color: var(--muted); font-size: .95rem; }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } }

/* ---------- Category tiles ---------- */
.cat { border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.cat-top { height: 120px; display: grid; place-items: center; background: var(--grad-soft); color: var(--purple); position: relative; }
.cat-top .icon { width: 46px; height: 46px; stroke-width: 1.5; }
.cat-top .status { position: absolute; top: 12px; left: 12px; }
.cat-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cat-body p { color: var(--muted); font-size: .93rem; }
.cat-body .std { font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.cat.soon .cat-top { background: var(--bg-soft); color: var(--subtle); }

/* ---------- Pills row / standards ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-std { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink); }
.pill-std small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-diag); color: #fff; border-radius: 20px; padding: 56px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .92; font-size: 1.1rem; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 24px; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B7BECC; font-size: .9rem; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding: 64px 0 40px; }
.footer-top h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-top a { color: #B7BECC; }
.footer-top a:hover { color: #fff; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 30em; }
.footer-contact { display: grid; gap: 8px; margin-top: 16px; }
.footer-contact a, .footer-contact span { display: inline-flex; gap: 8px; align-items: center; color: #D6DBE4; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .8rem; color: #8B93A3; }
.footer-bottom a { color: #B7BECC; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.anchor-nav .tabs { margin: 0; border-bottom: 0; }
.anchor-nav a.tab { text-decoration: none; display: inline-block; }
section[id] { scroll-margin-top: calc(var(--header-h) + 60px); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: var(--text); }
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none; box-shadow: var(--shadow-lg); border-radius: 99px; }
@media (max-width: 700px) { .float-cta.show { display: inline-flex; } }
