/* =====================================================================
   Fundslelo design tokens — shared by mobile.css and desktop.css
   One language, two presentations. Change a token here, both sites follow.
   ===================================================================== */
:root {
  /* Brand palette (from brief) */
  --royal:    #2457E6;
  --sky:      #38BDF8;
  --navy:     #101B46;
  --electric: #4169FF;
  --ice:      #F0F8FF;
  --white:    #FFFFFF;
  --violet:   #8B5CF6;
  --cyan:     #22D3EE;
  --mint:     #34D399;
  --coral:    #FB7185;
  --amber:    #FBBF24;
  --orange:   #FF8617;

  /* Derived — text & surfaces (contrast-checked against white/ice) */
  --ink:        #101B46;   /* = navy, 15.9:1 on white */
  --ink-soft:   #3B4A78;   /* 8.3:1 */
  --ink-muted:  #5B6894;   /* 5.4:1 — minimum for body copy */
  --line:       #DCE6F7;
  --surface:    #FFFFFF;
  --surface-2:  #F6FAFF;
  --orange-ink: #A84E00;   /* orange text: 5.0:1 even on the light-orange journey background (was #C25A00, 4.4:1 there) */
  --violet-ink: #6D3FE0;

  /* Journey accents: business = royal/cyan, personal = sky/orange, discovery = violet */
  --j-business-bg: linear-gradient(160deg, #EAF2FF 0%, #F5FAFF 60%);
  --j-personal-bg: linear-gradient(160deg, #FFF3E6 0%, #FFF9F2 60%);
  --j-discovery-bg: linear-gradient(160deg, #F1EBFF 0%, #F8F5FF 60%);

  /* Signature gradients */
  --g-hero:  radial-gradient(120% 140% at 85% 10%, #3B82F6 0%, #2457E6 38%, #142A7A 72%, #101B46 100%);
  --g-royal: linear-gradient(135deg, #2457E6 0%, #4169FF 100%);
  --g-sky-text: linear-gradient(90deg, #38BDF8, #22D3EE);
  --g-cta:   linear-gradient(135deg, #FF8617 0%, #FF6B1A 100%);
  --g-violet: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);

  /* Type */
  --font: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --fw-regular: 450; --fw-medium: 550; --fw-semibold: 650; --fw-bold: 750; --fw-black: 800;
  /* Modular scale 1.25 */
  --fs-xs: .78rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem;
  --fs-lg: 1.375rem; --fs-xl: 1.75rem; --fs-2xl: 2.25rem; --fs-3xl: 3rem; --fs-4xl: 3.9rem;
  --lh-tight: 1.08; --lh-snug: 1.25; --lh-body: 1.6;

  /* Radii — hierarchy, not one value everywhere */
  --r-chip: 999px;
  --r-btn: 12px;
  --r-tile: 16px;
  --r-card: 22px;
  --r-panel: 28px;

  /* Shadows — tinted navy, not grey */
  --sh-1: 0 1px 2px rgba(16,27,70,.06), 0 2px 8px rgba(36,87,230,.06);
  --sh-2: 0 6px 20px rgba(36,87,230,.10), 0 2px 6px rgba(16,27,70,.06);
  --sh-3: 0 18px 44px rgba(20,42,122,.18), 0 4px 12px rgba(16,27,70,.08);
  --sh-cta: 0 8px 22px rgba(255,134,23,.35);

  /* Spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Motion */
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: 140ms; --t-base: 240ms; --t-slow: 520ms;

  /* Layering */
  --z-header: 50; --z-menu: 60; --z-float: 70; --z-drawer: 80;

  /* Touch */
  --tap: 48px;
}

/* ---------- self-hosted font (no third-party request, CSP-friendly) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.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+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.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; }

/* ---------- base reset shared by both ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); line-height: var(--lh-body); font-weight: var(--fw-regular); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); }
.skip-link:focus { top: 12px; }

/* ---------- shared atoms ---------- */
.ico { flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 0 22px; border-radius: var(--r-btn); border: 0; font-weight: var(--fw-bold); font-size: var(--fs-base); letter-spacing: -.005em; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background-color var(--t-base); }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn-cta     { background: var(--g-cta); color: #fff; box-shadow: var(--sh-cta); }
.btn-royal   { background: var(--g-royal); color: #fff; box-shadow: 0 8px 22px rgba(36,87,230,.30); }
.btn-orange  { background: var(--g-cta); color: #fff; box-shadow: var(--sh-cta); }
.btn-violet  { background: var(--g-violet); color: #fff; box-shadow: 0 8px 22px rgba(139,92,246,.32); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-whatsapp { background: #0F7A3F; color: #fff; }   /* 5.4:1 with white text (WCAG AA) */

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-chip); font-size: var(--fs-xs); font-weight: var(--fw-bold); background: #fff; box-shadow: var(--sh-1); }
.accent-royal  .badge { color: var(--royal); }
.accent-orange .badge { color: var(--orange-ink); }
.accent-violet .badge { color: var(--violet-ink); }

.gradient-text { background: var(--g-sky-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Service icon tiles — each service family gets a colour so the catalogue scans quickly */
.tile-ico { display: grid; place-items: center; border-radius: 14px; color: #fff; }
.tone-0 { background: linear-gradient(135deg,#2457E6,#4169FF); }
.tone-1 { background: linear-gradient(135deg,#8B5CF6,#6D3FE0); }
.tone-2 { background: linear-gradient(135deg,#FF8617,#FB7185); }
.tone-3 { background: linear-gradient(135deg,#22D3EE,#2457E6); }
.tone-4 { background: linear-gradient(135deg,#34D399,#0EA5A4); }
.tone-5 { background: linear-gradient(135deg,#FBBF24,#FF8617); }

/* Shared disclaimer */
.disclaimer { font-size: var(--fs-xs); color: var(--ink-muted); line-height: 1.5; }

/* ---------- shared motion primitives ---------- */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop-in  { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

.skeleton { background: linear-gradient(90deg,#EEF4FF 25%,#F8FBFF 50%,#EEF4FF 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- shared: CMS prose, preview + announcement bars ---------- */
.prose { color: var(--ink-soft); }
.prose > * + * { margin-top: .85em; }
.prose h2 { font-size: 1.3em; font-weight: var(--fw-black); color: var(--navy); letter-spacing: -.015em; margin-top: 1.4em; line-height: 1.25; }
.prose h3 { font-size: 1.1em; font-weight: var(--fw-bold); color: var(--navy); margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--royal); }
.prose strong { color: var(--ink); font-weight: var(--fw-bold); }
.prose a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.preview-bar { position: sticky; top: 0; z-index: 100; background: var(--amber); color: var(--navy); text-align: center; font-weight: var(--fw-bold); font-size: var(--fs-sm); padding: 8px 12px; }
.announce { background: var(--g-royal); color: #fff; text-align: center; font-size: var(--fs-sm); font-weight: var(--fw-semibold); padding: 9px 14px; }
.announce a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- shared: calculator primitives ---------- */
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 4px 0; cursor: pointer; --fill: 50%; }
.calc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--royal) 0 var(--fill), #DCE6F7 var(--fill) 100%); }
.calc-range::-moz-range-track { height: 6px; border-radius: 999px; background: #DCE6F7; }
.calc-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--royal); }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--royal); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(36,87,230,.45); transition: transform var(--t-fast); }
.calc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--royal); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(36,87,230,.45); }
.calc-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-range:focus-visible { outline: none; }
.calc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(56,189,248,.6); }
.calc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(56,189,248,.6); }
.calc-donut { width: 132px; height: 132px; flex: none; }
.calc-donut circle { fill: none; stroke-width: 16; }
.calc-donut .d-principal { stroke: var(--royal); }
.calc-donut .d-interest { stroke: var(--orange); transition: stroke-dasharray var(--t-slow) var(--ease-out); }
.calc-legend { display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-soft); }
.calc-legend li { display: flex; align-items: center; gap: 8px; }
.calc-legend strong { margin-left: auto; padding-left: 12px; color: var(--navy); }
.sw { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.sw-p { background: var(--royal); } .sw-i { background: var(--orange); }
.calc-table-wrap { overflow-x: auto; margin-top: 10px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.calc-table th { text-align: right; font-weight: var(--fw-bold); color: var(--ink-muted); font-size: .75rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.calc-table td { text-align: right; padding: 8px 10px; border-bottom: 1px solid #EEF2F8; white-space: nowrap; }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table tr.is-current td { background: var(--ice); font-weight: var(--fw-bold); color: var(--royal); }
form.is-live .calc-submit { display: none; }  /* JS updates live; the button is the no-JS fallback */
[data-out], .calc-val, .mcalc-val { font-variant-numeric: tabular-nums; }

/* ---------- shared: questionnaire fields ---------- */
.q-form { display: grid; gap: 22px; }
.qf[hidden] { display: none; }
.qf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.qf-label { display: block; font-weight: var(--fw-bold); color: var(--navy); font-size: 1.02rem; line-height: 1.35; padding: 0; margin-bottom: 6px; }
.qf-opt { font-weight: var(--fw-medium); color: var(--ink-muted); font-size: .8rem; }
.qf-help { font-size: var(--fs-sm); color: var(--ink-muted); margin: -2px 0 10px; }
.qf input[type=text], .qf input[type=number], .qf input[type=date], .qf input[type=email], .qf input[type=tel], .qf textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.qf input:focus, .qf textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(36,87,230,.14); }
.qf textarea { resize: vertical; line-height: 1.5; }
.qf-money { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: #fff; overflow: hidden; }
.qf-money:focus-within { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(36,87,230,.14); }
.qf-money span { display: grid; place-items: center; padding: 0 14px; background: var(--surface-2); color: var(--ink-soft); font-weight: var(--fw-bold); border-right: 1.5px solid var(--line); }
.qf-money input { border: 0 !important; box-shadow: none !important; font-weight: var(--fw-semibold); }
.qf-words { min-height: 1.2em; margin-top: 4px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--royal); }
.qf-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.qf-option { position: relative; display: block; cursor: pointer; }
.qf-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-box { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 14px; border-radius: var(--r-tile); border: 1.5px solid var(--line); background: #fff; font-size: .95rem; font-weight: var(--fw-semibold); color: var(--ink-soft); line-height: 1.3; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
.qf-tick { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #C4D3EE; color: transparent; transition: all var(--t-fast); }
.qf-multi_choice .qf-tick { border-radius: 6px; }
.qf-option:hover .qf-box { border-color: #A9C2F2; }
.qf-option input:checked + .qf-box { border-color: var(--royal); background: var(--ice); color: var(--navy); box-shadow: 0 4px 14px rgba(36,87,230,.12); }
.qf-option input:checked + .qf-box .qf-tick { background: var(--royal); border-color: var(--royal); color: #fff; animation: pop-in .25s var(--ease-spring); }
.qf-option input:focus-visible + .qf-box { outline: 3px solid var(--sky); outline-offset: 2px; }
.qf-option:active .qf-box { transform: scale(.985); }
.qf-option.is-none .qf-box { border-style: dashed; }
.qf-error { margin-top: 8px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: #B91C1C; }
.has-error input:not([type=radio]):not([type=checkbox]), .has-error .qf-money, .has-error textarea { border-color: #DC2626; }
.has-error .qf-box { border-color: #FCA5A5; }
.qf-file-current { display: flex; gap: 6px; align-items: center; font-size: var(--fs-sm); color: #047857; margin-bottom: 8px; }
.qf input[type=file] { font: inherit; font-size: var(--fs-sm); }
.q-reveal { animation: rise-in var(--t-slow) var(--ease-out); }
.q-anim { animation: rise-in var(--t-slow) var(--ease-out); }
.q-errors { padding: 14px 16px; border-radius: var(--r-tile); background: #FEF2F2; border: 1px solid #FECACA; color: #7F1D1D; font-size: var(--fs-sm); }
.q-errors:focus { outline: 3px solid #FCA5A5; }
.q-errors ul { margin-top: 6px; display: grid; gap: 4px; }
.q-errors a { color: #991B1B; font-weight: var(--fw-bold); text-decoration: underline; }
.q-saved { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-tile); background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; font-size: var(--fs-sm); }
.q-saved .ico { flex: none; margin-top: 2px; }
.q-entry { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px 18px; margin: 0; display: grid; gap: 18px; background: var(--surface-2); }
.q-entry legend { font-weight: var(--fw-black); color: var(--navy); padding: 0 8px; }
.q-add, .q-remove, .q-later { border: 0; background: none; padding: 8px 0; font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--royal); display: inline-flex; gap: 6px; align-items: center; justify-self: start; min-height: 44px; }
.q-remove { color: #B91C1C; }
.q-later { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; justify-self: center; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.q-nav .q-next { margin-left: auto; }
.q-autosave { text-align: center; font-size: var(--fs-xs); color: var(--ink-muted); min-height: 1em; }
.q-ring { flex: none; }
.q-ring circle { fill: none; stroke-width: 6; }
.q-ring-bg { stroke: #DCE6F7; }
.q-ring-fg { stroke: var(--royal); stroke-linecap: round; transition: stroke-dasharray var(--t-slow) var(--ease-out); }
.q-ring text { font: var(--fw-black) 14px var(--font); fill: var(--navy); }
.reasons { display: grid; gap: 10px; }
.reasons li { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-tile); background: #fff; border: 1px solid var(--line); color: var(--ink-soft); line-height: 1.5; }
.reasons .ico { flex: none; margin-top: 3px; }
.reasons .r-positive .ico { color: #059669; }
.reasons .r-caution { border-color: #FCD34D; background: #FFFBEB; }
.reasons .r-caution .ico { color: #B45309; }
.reasons .r-info .ico { color: var(--violet); }
.result-badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: var(--g-royal); box-shadow: 0 10px 26px rgba(36,87,230,.3); animation: pop-in .5s var(--ease-spring); }
.tone-ok .result-badge { background: linear-gradient(135deg, #34D399, #059669); box-shadow: 0 10px 26px rgba(5,150,105,.3); }
.tone-alt .result-badge { background: var(--g-violet); box-shadow: 0 10px 26px rgba(139,92,246,.3); }

/* ---------- shared: contact forms, confirmation, tracking ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qf-select { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: #fff; }
.consents { display: grid; gap: 12px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--royal); }
.consent a { color: var(--royal); text-decoration: underline; }
.consent.has-error { color: #991B1B; }
.apply-summary { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--ice); border: 1px solid #CFE0FF; margin: 16px 0 22px; color: var(--royal); }
.apply-summary div { display: grid; gap: 2px; color: var(--ink-soft); font-size: var(--fs-sm); }
.apply-summary strong { color: var(--navy); font-size: var(--fs-base); }
.form-lead { color: var(--ink-soft); margin: 8px 0 20px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-muted); }
.form-note .ico { flex: none; margin-top: 3px; color: var(--royal); }
.form-note a { color: var(--royal); font-weight: var(--fw-semibold); }
.done { display: grid; gap: 14px; justify-items: start; }
.done-badge { background: linear-gradient(135deg, #34D399, #059669); }
.ref-box { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; border-radius: var(--r-card); background: #fff; border: 2px dashed #BCD3FF; }
.ref-box p { display: grid; gap: 2px; }
.ref-box span { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.ref-box strong { font-size: 1.35rem; font-weight: var(--fw-black); color: var(--navy); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ref-box .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--royal); }
.done-next { width: 100%; }
.track-card { display: grid; gap: 10px; padding: 22px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.track-ref { font-size: 1.3rem; font-weight: var(--fw-black); color: var(--navy); }
.track-svc, .track-note { font-size: var(--fs-sm); color: var(--ink-muted); }
.status-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--ice); color: var(--royal); font-weight: var(--fw-bold); }
.timeline { margin: 8px 0; padding: 0; list-style: none; display: grid; gap: 0; }
.timeline li { display: flex; gap: 14px; padding-bottom: 16px; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: #DCE6F7; }
.tl-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #C4D3EE; color: #fff; flex: none; }
.timeline li.is-current .tl-dot { background: var(--royal); box-shadow: 0 0 0 5px rgba(36,87,230,.15); }
.timeline strong { display: block; color: var(--navy); }
.timeline small { color: var(--ink-muted); font-size: var(--fs-xs); }
.timeline p { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- shared: affiliate area ---------- */
.aff-page { padding-top: 28px; padding-bottom: 60px; display: grid; gap: 20px; }
.aff-hero { display: grid; gap: 12px; max-width: 760px; }
.aff-hero h1, .aff-narrow h1, .aff-dash-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: var(--fw-black); letter-spacing: -.025em; color: var(--navy); line-height: 1.12; }
.aff-hero p { color: var(--ink-soft); }
.aff-hero .badge { justify-self: start; color: var(--royal); }
.aff-signin a, .form-note a { color: var(--royal); font-weight: var(--fw-semibold); }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.aff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; gap: 12px; }
.aff-card h2 { font-size: 1.2rem; font-weight: var(--fw-black); color: var(--navy); }
.aff-card h3 { font-size: 1rem; font-weight: var(--fw-bold); color: var(--navy); }
.aff-steps { margin: 0; }
.aff-rules { padding: 12px 14px; border-radius: var(--r-tile); background: #FFFBEB; border: 1px solid #FCD34D; font-size: var(--fs-sm); color: #78350F; }
.aff-narrow { max-width: 520px; display: grid; gap: 14px; }
.aff-resend { justify-self: center; }
.aff-dash { display: grid; gap: 18px; }
.aff-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.aff-code { margin-top: 6px; color: var(--ink-soft); font-size: var(--fs-sm); }
.aff-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.aff-link-main { display: grid; gap: 10px; min-width: 0; }
.aff-link { display: flex; gap: 8px; }
.aff-link input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--surface-2); }
.aff-share { display: flex; gap: 8px; flex-wrap: wrap; }
.aff-qr { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: var(--fs-sm); }
.aff-qr img { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.aff-qr a { color: var(--royal); font-weight: var(--fw-semibold); }
.aff-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.aff-stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-tile); padding: 14px 16px; }
.aff-stats dt { font-size: .78rem; color: var(--ink-muted); font-weight: var(--fw-semibold); }
.aff-stats dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: var(--fw-black); color: var(--navy); }
.aff-stats p { font-size: .75rem; color: var(--ink-muted); }
.aff-stats.money div { background: linear-gradient(170deg, #F3F8FF, #EAF2FF); }
.aff-prog { padding: 10px 12px; border-radius: var(--r-tile); background: var(--surface-2); font-size: var(--fs-sm); color: var(--ink-soft); }
.aff-request { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.aff-request button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
@media (max-width: 640px) { .aff-link-row { grid-template-columns: 1fr; } .aff-qr { justify-items: start; } }
.aff-card .m-fold { border: 1px solid var(--line); border-radius: var(--r-tile); padding: 0 14px; }
.aff-card .m-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; }
.aff-card .m-fold summary::-webkit-details-marker { display: none; }
.aff-card .m-fold[open] { padding-bottom: 14px; }
.aff-card .m-fold summary .ico { color: var(--royal); transition: transform var(--t-base); }
.aff-card .m-fold[open] summary .ico { transform: rotate(180deg); }

/* ---------- WhatsApp availability ---------- */
.wa-float { position: fixed; }
.wa-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #94A3B8; border: 2px solid #fff; }
.wa-dot.is-open { background: #22C55E; }
.wa-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; }

/* ---------- offline page ---------- */
.offline-page { display: grid; place-items: center; min-height: 100vh; background: var(--g-hero); color: #fff; padding: 24px; }
.offline-main { max-width: 440px; width: 100%; display: grid; gap: 14px; justify-items: center; text-align: center; }
.offline-main h1 { font-size: 1.8rem; font-weight: var(--fw-black); letter-spacing: -.02em; }
.offline-main > p { color: #DCEBFF; }
.offline-calc { width: 100%; display: grid; gap: 10px; text-align: left; background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 18px; }
.offline-calc h2 { font-size: 1.05rem; font-weight: var(--fw-black); color: var(--navy); }
.offline-calc label { display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink-soft); }
.offline-calc input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-btn); }
.offline-calc output { display: grid; gap: 6px; padding: 12px; border-radius: var(--r-tile); background: var(--ice); }
.offline-calc output div { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); }
.offline-calc output strong { color: var(--navy); font-weight: var(--fw-black); }
.offline-note { font-size: var(--fs-xs); color: var(--ink-muted); }

/* ---------- install prompt ---------- */
.install-sheet { position: fixed; left: 12px; right: 12px; z-index: var(--z-float, 60); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-card); background: #fff; color: var(--ink); box-shadow: var(--sh-3); border: 1px solid var(--line); max-width: 520px; margin: 0 auto; }
.install-sheet img { width: 44px; height: 44px; border-radius: 12px; }
.install-sheet strong { display: block; color: var(--navy); }
.install-sheet p { font-size: var(--fs-sm); color: var(--ink-soft); }
.install-sheet .install-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.install-sheet .ios-steps { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-soft); }
.install-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 1024px) { .install-sheet { bottom: 24px; left: auto; right: 24px; } }
.install-sheet .ios-steps strong { display: inline; }
body.install-open .wa-float { opacity: 0; pointer-events: none; }
