/* ==========================================================================
   RONPAY — design system
   One stylesheet, two themes (light / dark), one set of components.

   Themes: every colour is a token on :root. `html[data-theme="dark"]`
   redefines the tokens; nothing else changes. `html[data-theme="light"]`
   forces light. With no attribute, the OS preference decides.
   ========================================================================== */

/* --------------------------------------------------------------- 1. tokens */
:root{
  /* brand — fixed, identical in both themes */
  --brand:        #1167ff;
  --brand-600:    #0b52d8;
  --brand-300:    #6ba0ff;
  --gold:         #FDB90D;
  --navy:         #0b1b3f;

  /* semantic — light theme */
  --bg:           #ffffff;
  --bg-soft:      #f6f8fc;
  --bg-sunken:    #eef3fa;
  --surface:      #ffffff;
  --surface-2:    #f9fbfe;
  --ink:          #0a1424;
  --ink-2:        #33445f;
  --ink-3:        #64748b;
  --line:         #e3eaf4;
  --line-2:       #cfdcee;
  --accent-soft:  rgba(17,103,255,.08);
  --good:         #0f9d6e;
  --good-soft:    rgba(15,157,110,.10);
  --bad:          #dc2b3d;
  --bad-soft:     rgba(220,43,61,.08);
  --shadow-sm:    0 1px 2px rgba(10,20,36,.06), 0 1px 3px rgba(10,20,36,.04);
  --shadow:       0 4px 16px rgba(10,20,36,.07);
  --shadow-lg:    0 18px 50px rgba(10,20,36,.12);
  --hero-bg:      radial-gradient(120% 120% at 12% 0%, #14306f 0%, #0d1f4d 42%, #091530 100%);
  --hero-ink:     #ffffff;
  --hero-ink-2:   rgba(255,255,255,.76);
  --hero-line:    rgba(255,255,255,.16);
  --hero-card:    rgba(255,255,255,.07);

  /* type + metrics */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --head: 72px;
}

html[data-theme="dark"]{
  --bg:           #070b14;
  --bg-soft:      #0b1120;
  --bg-sunken:    #05080f;
  --surface:      #0e1524;
  --surface-2:    #121b2d;
  --ink:          #eef3fb;
  --ink-2:        #b3c1d6;
  --ink-3:        #8494ac;
  --line:         #1d2942;
  --line-2:       #2a3a5c;
  --accent-soft:  rgba(17,103,255,.16);
  --good:         #34d399;
  --good-soft:    rgba(52,211,153,.12);
  --bad:          #f87171;
  --bad-soft:     rgba(248,113,113,.12);
  --shadow-sm:    0 1px 2px rgba(0,0,0,.5);
  --shadow:       0 6px 22px rgba(0,0,0,.45);
  --shadow-lg:    0 22px 60px rgba(0,0,0,.6);
  --hero-bg:      radial-gradient(120% 120% at 12% 0%, #12234a 0%, #0a142c 45%, #05080f 100%);
  --hero-card:    rgba(255,255,255,.05);
  --brand-300:    #8fb6ff;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:           #070b14;
    --bg-soft:      #0b1120;
    --bg-sunken:    #05080f;
    --surface:      #0e1524;
    --surface-2:    #121b2d;
    --ink:          #eef3fb;
    --ink-2:        #b3c1d6;
    --ink-3:        #8494ac;
    --line:         #1d2942;
    --line-2:       #2a3a5c;
    --accent-soft:  rgba(17,103,255,.16);
    --good:         #34d399;
    --good-soft:    rgba(52,211,153,.12);
    --bad:          #f87171;
    --bad-soft:     rgba(248,113,113,.12);
    --shadow-sm:    0 1px 2px rgba(0,0,0,.5);
    --shadow:       0 6px 22px rgba(0,0,0,.45);
    --shadow-lg:    0 22px 60px rgba(0,0,0,.6);
    --hero-bg:      radial-gradient(120% 120% at 12% 0%, #12234a 0%, #0a142c 45%, #05080f 100%);
    --hero-card:    rgba(255,255,255,.05);
    --brand-300:    #8fb6ff;
  }
}

/* ----------------------------------------------------------------- 2. base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:400 16.5px/1.65 var(--font);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0 0 .5em;color:var(--ink);line-height:1.15;letter-spacing:-.022em;font-weight:680}
h1{font-size:clamp(2.1rem,1.35rem + 2.9vw,3.6rem);letter-spacing:-.032em}
h2{font-size:clamp(1.62rem,1.2rem + 1.6vw,2.5rem);letter-spacing:-.028em}
h3{font-size:1.12rem;font-weight:650}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.25em}
strong{font-weight:640;color:var(--ink)}
hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}
::selection{background:var(--brand);color:#fff}
:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* --------------------------------------------------------------- 3. header */
.hdr{
  position:sticky;top:0;z-index:900;background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;transition:border-color .2s,background .2s;
}
.hdr.is-stuck{border-bottom-color:var(--line)}
.hdr__in{max-width:1280px;margin:0 auto;padding:0 24px;height:var(--head);display:flex;align-items:center;gap:14px}
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand img{height:32px;width:auto}
.brand:hover{text-decoration:none}
/* the logo art is dark navy — give it a light plate in dark mode */
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .fbrand img{background:#fff;padding:5px 9px;border-radius:8px}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .brand img,
  :root:not([data-theme="light"]) .fbrand img{background:#fff;padding:5px 9px;border-radius:8px}
}

.nav{margin-left:auto;display:flex;align-items:center;gap:22px}
.nav__list{display:flex;align-items:center;gap:2px;margin:0;padding:0;list-style:none}
.nav__list > li{position:relative}
.nav__list > li > a{
  display:flex;align-items:center;gap:5px;padding:9px 13px;border-radius:9px;
  color:var(--ink-2);font-size:14.6px;font-weight:520;white-space:nowrap;
}
.nav__list > li > a:hover{color:var(--ink);background:var(--bg-soft);text-decoration:none}
.nav__list > li.on > a{color:var(--brand);font-weight:600}
.caret{width:9px;height:9px;opacity:.5;transition:transform .2s}
.hassub:hover .caret{transform:rotate(180deg)}

.sub{
  position:absolute;top:calc(100% + 10px);left:-8px;min-width:308px;margin:0;padding:8px;
  list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;transform:translateY(-6px);transition:.16s;
}
.hassub:hover .sub,.hassub:focus-within .sub{opacity:1;visibility:visible;transform:translateY(0)}
.sub a{display:block;padding:9px 12px;border-radius:9px;color:var(--ink-2);font-size:14.4px;line-height:1.35}
.sub a:hover{background:var(--bg-soft);color:var(--ink);text-decoration:none}
.sub li.on > a{color:var(--brand);background:var(--accent-soft)}
.sub__all a{color:var(--brand);font-weight:600}

.tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.iconbtn{
  width:38px;height:38px;display:grid;place-items:center;padding:0;cursor:pointer;
  border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink-2);
  transition:.16s;
}
.iconbtn:hover{color:var(--ink);border-color:var(--line-2)}
.iconbtn svg{width:17px;height:17px}
.lang{
  display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;
  background:var(--surface);overflow:hidden;
}
.lang a{
  padding:8px 11px;font-size:12.5px;font-weight:650;letter-spacing:.04em;color:var(--ink-3);
  text-transform:uppercase;
}
.lang a:hover{color:var(--ink);text-decoration:none;background:var(--bg-soft)}
.lang a.on{background:var(--brand);color:#fff}
[data-theme-dark-only]{display:none}
html[data-theme="dark"] [data-theme-dark-only]{display:block}
html[data-theme="dark"] [data-theme-light-only]{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) [data-theme-dark-only]{display:block}
  :root:not([data-theme="light"]) [data-theme-light-only]{display:none}
}

.burger{display:none;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}
.burger span{display:block;width:17px;height:1.8px;margin:4px auto;background:var(--ink);border-radius:2px;transition:.2s}
.burger.on span:nth-child(1){transform:translateY(5.8px) rotate(45deg)}
.burger.on span:nth-child(2){opacity:0}
.burger.on span:nth-child(3){transform:translateY(-5.8px) rotate(-45deg)}

@media (max-width:1130px){ .nav__list > li > a{padding:9px 9px;font-size:14px} .nav{gap:12px} }
@media (max-width:1000px){
  /* the header CTAs are repeated inside the drawer as .navcta; without this the
     burger is pushed off the right edge and the menu becomes unreachable */
  .hdr .hide-sm{display:none}
  .burger{display:block;order:3}
  .tools{order:2;margin-left:auto}
  .nav{
    /* .hdr carries a backdrop-filter, which makes it the containing block for this
       fixed drawer — bottom:0 would resolve against the 72px header, so the height
       has to be spelled out or the menu collapses to one row */
    position:fixed;top:var(--head);left:0;right:0;margin:0;padding:14px 24px 60px;
    height:calc(100vh - var(--head));height:calc(100dvh - var(--head));
    flex-direction:column;align-items:stretch;gap:0;background:var(--bg);overflow-y:auto;
    transform:translateX(100%);transition:transform .24s ease;z-index:899;
  }
  .nav.on{transform:none}
  .nav__list{flex-direction:column;align-items:stretch}
  .nav__list > li > a{padding:14px 2px;font-size:16px;border-radius:0;border-bottom:1px solid var(--line);justify-content:space-between}
  .sub{position:static;opacity:1;visibility:visible;transform:none;display:none;border:0;box-shadow:none;padding:6px 0 12px 14px;min-width:0;background:transparent}
  .hassub.open .sub{display:block}
  .navcta{margin-top:20px;display:grid;gap:10px}
  .navcta .btn{width:100%}
}
.navcta{display:flex;gap:9px;align-items:center}
@media (min-width:1001px){ .navcta{display:none} }

/* -------------------------------------------------------------- 4. buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 20px;border-radius:11px;border:1px solid transparent;cursor:pointer;
  font:600 14.6px/1.2 var(--font);white-space:nowrap;transition:.16s;
}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn svg{width:15px;height:15px}
.btn--pri{background:var(--brand);color:#fff;box-shadow:0 6px 18px rgba(17,103,255,.28)}
.btn--pri:hover{background:var(--brand-600);color:#fff}
.btn--ghost{background:var(--surface);color:var(--ink);border-color:var(--line-2)}
.btn--ghost:hover{border-color:var(--brand);color:var(--brand)}
.btn--gold{background:var(--gold);color:#20180a}
.btn--gold:hover{background:#ecab05;color:#20180a}
.btn--onhero{background:rgba(255,255,255,.1);color:#fff;border-color:var(--hero-line);backdrop-filter:blur(6px)}
.btn--onhero:hover{background:rgba(255,255,255,.18);color:#fff}
.btn--lg{padding:14px 26px;font-size:15.4px;border-radius:12px}

/* ----------------------------------------------------------------- 5. hero */
.hero{position:relative;background:var(--hero-bg);color:var(--hero-ink);overflow:hidden;isolation:isolate}
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;opacity:.5;
  background-image:linear-gradient(var(--hero-line) 1px,transparent 1px),linear-gradient(90deg,var(--hero-line) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(90% 70% at 78% 8%,#000,transparent 72%);
          mask-image:radial-gradient(90% 70% at 78% 8%,#000,transparent 72%);
}
.hero::after{
  content:"";position:absolute;z-index:-1;right:-14%;top:-42%;width:760px;height:760px;border-radius:50%;
  background:radial-gradient(circle,rgba(17,103,255,.42),transparent 62%);filter:blur(12px);
}
.hero__in{position:relative;max-width:var(--wrap);margin:0 auto;padding:88px 24px 92px}
.hero--tall .hero__in{padding:104px 24px 112px}
.hero h1{color:#fff;max-width:17ch}
.hero__lead{font-size:clamp(1.02rem,.95rem + .45vw,1.24rem);color:var(--hero-ink-2);max-width:60ch;margin-bottom:32px}
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;padding:6px 14px;margin-bottom:20px;
  border:1px solid var(--hero-line);border-radius:999px;background:rgba(255,255,255,.07);
  font-size:12.2px;font-weight:640;letter-spacing:.11em;text-transform:uppercase;color:#fff;
}
.eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--gold);flex:0 0 6px}
.hero__acts{display:flex;flex-wrap:wrap;gap:11px}
.hero__ticks{list-style:none;padding:0;margin:30px 0 0;display:flex;flex-wrap:wrap;gap:10px 30px}
.hero__ticks li{display:flex;gap:9px;align-items:flex-start;font-size:14.8px;color:var(--hero-ink-2)}
/* on wide screens the three claims stay on one line, none of them wrapping */
@media (min-width:1200px){
  .hero__ticks{flex-wrap:nowrap}
  .hero__ticks li{white-space:nowrap}
}
.hero__ticks svg{width:17px;height:17px;flex:0 0 17px;margin-top:4px;color:var(--brand-300)}

/* cells size to their content, so a long value like "de la 0,79% + 0,30 RON"
   stays on one line and the short ones give up the space */
.hero__stats{
  display:flex;flex-wrap:wrap;gap:1px;
  margin-top:44px;border:1px solid var(--hero-line);border-radius:var(--r);overflow:hidden;
  background:var(--hero-line);
}
.hero__stat{background:var(--hero-card);padding:20px 22px;backdrop-filter:blur(4px);flex:1 1 auto;min-width:0}
.hero__stat b{display:block;font-size:1.5rem;font-weight:700;letter-spacing:-.02em;color:#fff;line-height:1.15;white-space:nowrap}
.hero__stat span{display:block;margin-top:4px;font-size:13.2px;color:var(--hero-ink-2);line-height:1.4}

/* page head for prose / simple pages */
.phead{background:var(--hero-bg);color:#fff;position:relative;overflow:hidden}
.phead__in{max-width:var(--wrap);margin:0 auto;padding:64px 24px 68px;position:relative}
.phead h1{color:#fff;margin-bottom:12px}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13.6px;color:rgba(255,255,255,.7)}
.crumbs a{color:rgba(255,255,255,.7)}
.crumbs a:hover{color:#fff}

/* -------------------------------------------------------------- 6. section */
.sec{padding:82px 0}
.sec--soft{background:var(--bg-soft)}
.sec--tight{padding:58px 0}
.sec__head{max-width:900px;margin-bottom:46px}
.sec__head--mid{margin-left:auto;margin-right:auto;text-align:center}
.label{
  display:inline-block;margin-bottom:13px;font-size:12.2px;font-weight:680;
  letter-spacing:.12em;text-transform:uppercase;color:var(--brand);
}
.sec__lead{font-size:1.055rem;color:var(--ink-2);margin:0}
.sec__head h2 + .sec__lead{margin-top:-2px}
.sec__lead + .sec__lead{margin-top:.85em}
/* a note under a card grid needs air, or it reads as part of the last card */
.grid + .sec__lead{margin-top:40px}
/* the visual matches the height of the text column beside it */
.media{height:100%;display:flex}
.media img{width:100%;height:100%;object-fit:cover;border-radius:var(--r-lg);box-shadow:var(--shadow-lg)}
@media (max-width:900px){ .media{height:auto} .media img{max-height:420px} }

/* cards */
.grid{display:grid;gap:20px}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(275px,1fr))}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(228px,1fr))}
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:26px 24px;transition:.18s;
}
.card:hover{border-color:var(--line-2);box-shadow:var(--shadow);transform:translateY(-2px)}
.card__ico{
  width:42px;height:42px;border-radius:11px;display:grid;place-items:center;margin-bottom:16px;
  background:var(--accent-soft);color:var(--brand);
}
.card__ico svg{width:20px;height:20px}
.card h3{margin-bottom:7px}
.card p{margin:0;color:var(--ink-2);font-size:15.2px}
a.card{color:inherit}
a.card:hover{text-decoration:none}
.card__more{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:14px;font-weight:620;color:var(--brand)}
.card__more svg{width:13px;height:13px}

/* problem -> solution pairs */
.pairs{display:grid;gap:18px}
.pair{
  display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:stretch;
}
@media (max-width:820px){ .pair{grid-template-columns:1fr;gap:10px} .pair__arrow{transform:rotate(90deg);margin:0 auto} }
.pane{border:1px solid var(--line);border-radius:var(--r);padding:22px 22px;background:var(--surface)}
.pane--bad{border-color:color-mix(in srgb,var(--bad) 32%,var(--line));background:var(--bad-soft)}
.pane--good{border-color:color-mix(in srgb,var(--good) 34%,var(--line));background:var(--good-soft)}
.pane__tag{
  display:inline-flex;align-items:center;gap:7px;margin-bottom:9px;
  font-size:11.6px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
}
.pane--bad .pane__tag{color:var(--bad)}
.pane--good .pane__tag{color:var(--good)}
.pane__tag svg{width:15px;height:15px;flex:0 0 15px}
.pane h3{font-size:1.04rem;margin-bottom:6px}
.pane p{margin:0;color:var(--ink-2);font-size:15px}
.pair__arrow{display:grid;place-items:center;color:var(--ink-3)}
.pair__arrow svg{width:22px;height:22px}

/* numbered steps */
.steps{counter-reset:s;display:grid;gap:16px}
.step{
  counter-increment:s;position:relative;padding:22px 24px 22px 68px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
}
.step::before{
  content:counter(s,decimal-leading-zero);position:absolute;left:22px;top:21px;
  font-size:14px;font-weight:750;color:var(--brand);letter-spacing:.02em;
  width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft);
}
.step h3{margin-bottom:5px;font-size:1.04rem}
.step p{margin:0;color:var(--ink-2);font-size:15.2px}

/* stat strip inside the page */
.stats{
  display:flex;flex-wrap:wrap;gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
}
.stat{background:var(--surface);padding:26px 24px;flex:1 1 auto;min-width:0}
.stat b{display:block;font-size:1.8rem;font-weight:720;letter-spacing:-.025em;color:var(--brand);line-height:1.1;white-space:nowrap}
.stat span{display:block;margin-top:6px;font-size:14px;color:var(--ink-2);line-height:1.45}

/* checklist */
.ticks{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.ticks li{display:flex;gap:11px;align-items:flex-start;font-size:15.6px;color:var(--ink-2)}
.ticks svg{width:19px;height:19px;flex:0 0 19px;margin-top:3px;color:var(--good)}

/* FAQ */
.faq{display:grid;gap:10px;max-width:860px}
.qa{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden}
.qa[open]{border-color:var(--line-2);box-shadow:var(--shadow-sm)}
.qa summary{
  list-style:none;cursor:pointer;padding:19px 54px 19px 22px;position:relative;
  font-weight:600;font-size:15.8px;color:var(--ink);
}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{
  content:"";position:absolute;right:22px;top:50%;width:9px;height:9px;margin-top:-6px;
  border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);
  transform:rotate(45deg);transition:transform .2s;
}
.qa[open] summary::after{transform:rotate(-135deg);margin-top:-2px}
.qa__a{padding:0 22px 20px;color:var(--ink-2);font-size:15.3px}
.qa__a p:last-child{margin-bottom:0}

/* tables */
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
table.t{width:100%;border-collapse:collapse;font-size:15px;min-width:520px}
table.t th,table.t td{padding:14px 20px;text-align:left;border-bottom:1px solid var(--line)}
table.t thead th{
  font-size:11.8px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-3);background:var(--bg-soft);
}
table.t tbody tr:last-child td{border-bottom:0}
/* header and value share the same alignment, so figures sit under their column */
table.t th.num,table.t td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
/* every fee table uses the same column geometry, so the four grids line up */
.feegrp + .tablewrap table.t{table-layout:fixed}
.feegrp + .tablewrap table.t th:first-child,
.feegrp + .tablewrap table.t td:first-child{width:34%}
table.t tr.star td{background:var(--accent-soft)}
table.t tr.star td:first-child{font-weight:640}
.tag-todo{
  display:inline-block;padding:3px 9px;border-radius:999px;background:var(--accent-soft);
  color:var(--brand);font-size:12px;font-weight:640;
}
/* the table notes run the full width of the table they belong to, so the line
   breaks where the table ends rather than in the middle of empty space */
.tnote{margin:12px 2px 22px;font-size:13.4px;color:var(--ink-3);max-width:none}
.feegrp{
  margin:30px 0 12px;font-size:1.02rem;font-weight:650;color:var(--ink);
  display:flex;align-items:center;gap:10px;
}
.feegrp::before{content:"";width:4px;height:16px;border-radius:2px;background:var(--brand)}
.feegrp:first-of-type{margin-top:4px}
.feegrp--top{margin-top:44px;padding-top:34px;border-top:1px solid var(--line)}

/* CTA */
.cta{padding:34px 0 92px}
.cta__box{
  max-width:var(--wrap);margin:0 auto;padding:56px 48px;border-radius:var(--r-lg);
  background:var(--hero-bg);color:#fff;position:relative;overflow:hidden;text-align:center;
}
.cta__box::after{
  content:"";position:absolute;left:-10%;bottom:-70%;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(17,103,255,.34),transparent 62%);
}
.cta__box > *{position:relative;z-index:1}
.cta h2{color:#fff;margin-bottom:12px}
.cta p{color:var(--hero-ink-2);font-size:1.05rem;max-width:56ch;margin:0 auto 28px}
.cta__acts{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
@media (max-width:640px){ .cta__box{padding:40px 24px} }

/* prose (legal + company pages) */
.prose{padding:56px 0 84px}
.prose .wrap{max-width:840px}
.prose h2{font-size:1.42rem;margin:2.1em 0 .55em}
.prose h3{font-size:1.1rem;margin:1.7em 0 .45em}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose p,.prose li{color:var(--ink-2);font-size:16.4px;line-height:1.75}
.prose li{margin-bottom:.45em}
.prose a{text-decoration:underline}
.prose table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:14.8px;display:block;overflow-x:auto}
.prose th,.prose td{border:1px solid var(--line);padding:10px 13px;text-align:left;vertical-align:top}
.prose th{background:var(--bg-soft);font-weight:640;color:var(--ink)}
.notice{
  display:flex;gap:14px;padding:18px 20px;margin:0 0 32px;border-radius:var(--r);
  background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--brand) 24%,transparent);
  font-size:14.6px;color:var(--ink-2);
}
.notice svg{width:19px;height:19px;flex:0 0 19px;margin-top:3px;color:var(--brand)}
.notice p{margin:0}
/* terms notice under the terminal grid: full width, so the sentence flows
   instead of breaking into a ragged fragment */
.notice--terms{margin:52px 0 0;max-width:none;align-items:center}
.notice--terms p{max-width:none;line-height:1.6}
.empty{
  padding:30px 28px;border:1px dashed var(--line-2);border-radius:var(--r);
  background:var(--bg-soft);color:var(--ink-2);
}

/* official partner band */
.ptn{
  display:grid;grid-template-columns:minmax(230px,.68fr) 1.32fr;gap:44px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:40px 44px;box-shadow:var(--shadow-sm);
}
@media (max-width:860px){ .ptn{grid-template-columns:1fr;gap:26px;padding:30px 24px} }
.ptn__mark{
  display:flex;flex-direction:column;align-items:center;gap:14px;
  padding:26px 20px;border-radius:var(--r);background:var(--bg-soft);border:1px solid var(--line);
}
.ptn__mark img{height:38px;width:auto;object-fit:contain}
.ptn__mark .ptn__rox{height:30px}
/* the RONPAY mark is navy artwork — it needs a light plate on dark backgrounds.
   The RoxPay mark ships white, so each theme gets its own file instead. */
.ptn__rox--dark{display:none}
html[data-theme="dark"] .ptn__mark > img:first-child{background:#fff;padding:6px 10px;border-radius:8px}
html[data-theme="dark"] .ptn__rox--light{display:none}
html[data-theme="dark"] .ptn__rox--dark{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .ptn__mark > img:first-child{background:#fff;padding:6px 10px;border-radius:8px}
  :root:not([data-theme="light"]) .ptn__rox--light{display:none}
  :root:not([data-theme="light"]) .ptn__rox--dark{display:block}
}
.ptn__x{font-size:19px;font-weight:400;color:var(--ink-3);line-height:1}
.ptn__body h2{font-size:clamp(1.4rem,1.1rem + 1.1vw,2rem);margin-bottom:10px}
.ptn__list{margin-top:20px;margin-bottom:18px}
.ptn__list li{font-size:15px}

/* POS terminal catalogue */
.pos{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:22px}
.pos__card{
  display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);overflow:hidden;transition:.2s;
}
.pos__card:hover{border-color:var(--line-2);box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.pos__shot{
  display:grid;place-items:center;height:220px;padding:22px;
  background:radial-gradient(120% 100% at 50% 0%,var(--accent-soft),transparent 70%),var(--bg-soft);
  border-bottom:1px solid var(--line);
}
.pos__shot img{max-height:176px;width:auto;object-fit:contain;filter:drop-shadow(0 14px 26px rgba(9,20,36,.22))}
html[data-theme="dark"] .pos__shot img{filter:drop-shadow(0 14px 30px rgba(0,0,0,.65))}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .pos__shot img{filter:drop-shadow(0 14px 30px rgba(0,0,0,.65))}
}
.pos__body{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}
.pos__tag{
  display:inline-block;align-self:flex-start;margin-bottom:10px;padding:4px 11px;border-radius:999px;
  background:var(--accent-soft);color:var(--brand);
  font-size:11.6px;font-weight:680;letter-spacing:.08em;text-transform:uppercase;
}
.pos__card h3{font-size:1.12rem;margin-bottom:8px}
.pos__body p{color:var(--ink-2);font-size:14.8px;margin:0 0 18px}
.pos__specs{margin:auto 0 0;padding:16px 0 0;border-top:1px solid var(--line);display:grid;gap:8px}
.pos__spec{display:flex;justify-content:space-between;gap:14px;align-items:baseline}
.pos__spec dt{font-size:13px;color:var(--ink-3)}
.pos__spec dd{margin:0;font-size:13.4px;font-weight:560;color:var(--ink);text-align:right}

/* payment-method marquee — two rows drifting in opposite directions */
.mq{
  display:grid;gap:14px;position:relative;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}
.mq__row{overflow:hidden}
.mq__track{
  display:flex;gap:14px;width:max-content;
  animation:mq-run 46s linear infinite;
}
.mq__row--rev .mq__track{animation-direction:reverse;animation-duration:56s}
.mq:hover .mq__track{animation-play-state:paused}
@keyframes mq-run{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.mq__item{
  flex:0 0 auto;width:118px;height:74px;display:grid;place-items:center;
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;
  box-shadow:var(--shadow-sm);
}
html[data-theme="dark"] .mq__item{border-color:rgba(255,255,255,.14)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .mq__item{border-color:rgba(255,255,255,.14)}
}
.mq__item img{max-width:100%;max-height:46px;width:auto;height:auto}
.mq__meta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:26px}
.mq__stat{
  display:inline-flex;align-items:baseline;gap:9px;padding:10px 20px;
  border:1px solid var(--line);border-radius:999px;background:var(--surface);
  font-size:14.6px;color:var(--ink-2);
}
.mq__stat b{font-size:1.15rem;font-weight:720;color:var(--brand)}
@media (prefers-reduced-motion:reduce){
  .mq__track{animation:none}
  .mq__row{overflow-x:auto}
}
@media (max-width:620px){ .mq__item{width:100px;height:64px} .mq__item img{max-height:38px} }

/* logos / method chips */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{
  padding:9px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);
  font-size:14px;font-weight:560;color:var(--ink-2);
}

/* contact */
.cgrid{display:grid;grid-template-columns:.85fr 1.15fr;gap:40px;align-items:start}
@media (max-width:900px){ .cgrid{grid-template-columns:1fr;gap:28px} }
.infocard{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px}
.iline{display:flex;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}
.iline:last-child{border-bottom:0;padding-bottom:0}
.iline:first-child{padding-top:0}
.iline__i{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--brand)}
.iline__i svg{width:17px;height:17px}
.iline__k{font-size:11.8px;font-weight:680;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);margin-bottom:3px}
.iline__v{font-size:15.2px;color:var(--ink)}
.form{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px;box-shadow:var(--shadow-sm)}
.field{margin-bottom:15px}
.field label{display:block;font-size:13.4px;font-weight:620;margin-bottom:6px;color:var(--ink)}
.field input,.field textarea{
  width:100%;padding:12px 14px;border:1px solid var(--line-2);border-radius:11px;background:var(--bg);
  font:400 15px/1.5 var(--font);color:var(--ink);transition:.15s;
}
.field input:focus,.field textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px var(--accent-soft)}
.field textarea{min-height:132px;resize:vertical}
.form .btn{width:100%;padding:14px}

/* sitemap */
.smap{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px}
.smap__col{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--r);padding:24px}
.smap__col h2{font-size:1rem;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.smap__col ul{list-style:none;padding:0;margin:0}
.smap__col li{margin-bottom:9px}
.smap__col a{color:var(--ink-2);font-size:14.8px}
.smap__col a:hover{color:var(--brand)}

/* --------------------------------------------------------------- 7. footer */
.ftr{background:var(--bg-sunken);border-top:1px solid var(--line);color:var(--ink-2)}
.ftr__top{max-width:1280px;margin:0 auto;padding:62px 24px 46px;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:36px}
@media (max-width:980px){ .ftr__top{grid-template-columns:1fr 1fr} }
@media (max-width:560px){ .ftr__top{grid-template-columns:1fr} }
.fbrand img{height:34px;width:auto}
.ftr__tag{margin:18px 0 20px;font-size:14.4px;line-height:1.7;max-width:330px;color:var(--ink-3)}
.ftr h3{font-size:12.2px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--ink);margin-bottom:15px}
.ftr ul{list-style:none;margin:0;padding:0}
.ftr li{margin-bottom:9px}
.ftr a{color:var(--ink-2);font-size:14.4px}
.ftr a:hover{color:var(--brand);text-decoration:none}
.fcontact li{display:flex;gap:10px;align-items:flex-start;font-size:14.4px;color:var(--ink-2)}
.fcontact svg{width:15px;height:15px;flex:0 0 15px;margin-top:4px;color:var(--brand)}
/* ANPC — mandatory consumer-protection links (SAL / SOL) */
.ftr__anpc{border-top:1px solid var(--line)}
.ftr__anpc-in{max-width:1280px;margin:0 auto;padding:22px 24px}
.anpc{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.anpc__h{
  font-size:12.2px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--ink);
}
.anpc__row{display:flex;flex-wrap:wrap;gap:12px}
.anpc__btn{
  display:inline-flex;align-items:center;gap:12px;padding:9px 16px 9px 12px;
  border:1px solid var(--line);border-radius:12px;background:var(--surface);
  transition:.16s;
}
.anpc__btn:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm);text-decoration:none;transform:translateY(-1px)}
.anpc__logo{height:30px;width:auto;flex:0 0 auto}
.anpc__logo--dark{display:none}
html[data-theme="dark"] .anpc__logo--light{display:none}
html[data-theme="dark"] .anpc__logo--dark{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .anpc__logo--light{display:none}
  :root:not([data-theme="light"]) .anpc__logo--dark{display:block}
}
.anpc__btn span{display:flex;flex-direction:column;line-height:1.25}
.anpc__btn strong{font-size:13.4px;font-weight:650;color:var(--ink)}
.anpc__btn em{font-style:normal;font-size:12px;color:var(--ink-3)}
@media (max-width:560px){ .anpc__row{width:100%} .anpc__btn{flex:1 1 100%} }

.ftr__btm{border-top:1px solid var(--line)}
.ftr__btm-in{
  max-width:1280px;margin:0 auto;padding:20px 24px 30px;display:flex;flex-wrap:wrap;
  gap:10px 24px;justify-content:space-between;align-items:center;font-size:13.2px;color:var(--ink-3);
}
.ftr__legal{display:flex;flex-wrap:wrap;gap:8px 16px}
.ftr__legal a{font-size:13.2px;color:var(--ink-3)}

/* ------------------------------------------------------- 8. cookie + totop */
.cookie{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:950;max-width:1120px;margin:0 auto;
  display:none;gap:18px;flex-wrap:wrap;align-items:center;justify-content:space-between;
  padding:18px 22px;background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--r);box-shadow:var(--shadow-lg);font-size:14px;color:var(--ink-2);
}
.cookie.on{display:flex}
.cookie p{margin:0;max-width:790px}
.totop{
  position:fixed;right:18px;bottom:18px;z-index:940;width:44px;height:44px;display:none;
  place-items:center;border:0;border-radius:50%;cursor:pointer;background:var(--brand);color:#fff;
  box-shadow:0 8px 24px rgba(17,103,255,.4);
}
.totop.on{display:grid}
.totop svg{width:17px;height:17px}
@media (max-width:600px){ .totop{bottom:92px} }

/* reveal on scroll */
@media (prefers-reduced-motion:no-preference){
  .rv{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
  .rv.in{opacity:1;transform:none}
}
@media print{ .hdr,.ftr,.cookie,.totop{display:none!important} }

/* ------------------------------------------- 19. savings calculator ------ */
/* The two rates live in data- attributes on .calc, so they can be changed in
   the markup without touching the script. Everything recomputes on input. */
.calc{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:30px 30px 26px;box-shadow:var(--shadow-lg)
}
.calc__head{display:flex;align-items:center;gap:12px;margin-bottom:7px}
.calc__head svg{width:26px;height:26px;flex:0 0 26px;color:var(--brand)}
.calc__head h3{margin:0;font-size:1.3rem;letter-spacing:-.02em}
.calc__sub{margin:0 0 22px;color:var(--ink-3);font-size:14.5px;line-height:1.55}
.calc__label{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--ink-2)}
.calc__in{
  display:flex;align-items:center;gap:9px;padding:0 16px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-sm);
  transition:border-color .15s, box-shadow .15s
}
.calc__in:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--accent-soft)}
.calc__cur{font-size:15px;font-weight:600;color:var(--ink-3)}
.calc__in input{
  flex:1;min-width:0;padding:15px 0;border:0;background:none;outline:none;
  font:600 1.15rem/1 var(--font);color:var(--ink);font-variant-numeric:tabular-nums
}
.calc__range{
  -webkit-appearance:none;appearance:none;width:100%;height:6px;margin:18px 0 22px;
  border-radius:99px;background:var(--bg-sunken);cursor:pointer
}
.calc__range::-webkit-slider-thumb{
  -webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:var(--brand);
  border:3px solid var(--surface);box-shadow:0 2px 8px rgba(17,103,255,.45);cursor:pointer
}
.calc__range::-moz-range-thumb{
  width:20px;height:20px;border-radius:50%;background:var(--brand);
  border:3px solid var(--surface);box-shadow:0 2px 8px rgba(17,103,255,.45);cursor:pointer
}
.calc__range:focus-visible{outline:2px solid var(--brand);outline-offset:4px}

.calc__cmp{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.calc__tile{
  padding:15px 17px;border:1px solid var(--line);border-radius:var(--r-sm);
  background:var(--surface-2)
}
.calc__tile--rp{border-color:var(--brand-300);background:var(--accent-soft)}
.calc__top{display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:9px;min-height:22px}
.calc__who{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--ink-3);line-height:1.25}
.calc__logo{height:19px;width:auto;display:block}
.calc__rate{font-size:13.5px;font-weight:700;color:var(--ink-3);white-space:nowrap}
.calc__tile--rp .calc__rate{color:var(--brand)}
.calc__cost{font-size:1.42rem;font-weight:800;letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.calc__tile--rp .calc__cost{color:var(--brand)}

.calc__out{
  margin-top:15px;padding:19px 16px;text-align:center;border-radius:var(--r-sm);
  background:var(--good-soft);border:1px solid var(--good-soft)
}
.calc__out span{display:block;margin-bottom:5px;font-size:14px;color:var(--ink-2)}
.calc__out b{display:block;font-size:2.05rem;font-weight:800;color:var(--good);
  letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.calc .btn{width:100%;justify-content:center;margin-top:17px}
.calc__note{margin:14px 2px 0;font-size:12.4px;line-height:1.55;color:var(--ink-3)}

/* the logo keeps the same white chip it gets in the header when dark */
html[data-theme="dark"] .calc__logo{background:#fff;padding:3px 7px;border-radius:6px;height:25px}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .calc__logo{background:#fff;padding:3px 7px;border-radius:6px;height:25px}
}
@media (max-width:1040px){ .calc{padding:26px 22px 22px} }
@media (max-width:560px){
  .calc__cmp{grid-template-columns:1fr}
  .calc__out b{font-size:1.8rem}
}

/* the asterisk hangs outside the text block, so wrapped lines stay aligned */
.tnote--star{margin-top:18px;padding-left:1.05em;text-indent:-1.05em}

/* ------------------------------- 20. inline company details (contact) ---- */
/* The panel animates on grid-template-rows rather than height, so the content
   keeps its natural size and nothing has to be measured in script. */
.cdet{margin-top:8px}
.cdet__btn{
  display:flex;align-items:center;gap:7px;padding:6px 0;border:0;background:none;cursor:pointer;
  color:var(--brand);font:600 14.6px/1.4 var(--font);text-align:left
}
.cdet__btn:hover span{text-decoration:underline}
.cdet__chev{width:15px;height:15px;flex:0 0 15px;transition:transform .22s ease}
.cdet__btn[aria-expanded="true"] .cdet__chev{transform:rotate(180deg)}
.cdet__wrap{display:grid;grid-template-rows:1fr;transition:grid-template-rows .28s ease}
.cdet__wrap[data-closed]{grid-template-rows:0fr}
.cdet__in{overflow:hidden}
.cdet__list{
  margin:10px 0 2px;display:grid;gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden
}
/* the card is narrow in every layout, so the label sits above its value
   rather than beside it — a side column would break the company name */
.cdet__list > div{padding:10px 14px;background:var(--surface)}
.cdet__list dt{margin:0 0 1px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3)}
.cdet__list dd{margin:0;font-size:14.2px;line-height:1.5;color:var(--ink-2)}
@media (prefers-reduced-motion:reduce){ .cdet__wrap,.cdet__chev{transition:none} }

/* On the contact page the two cards sit side by side, so the shorter one
   stretches to match and its rows share the extra height between them
   instead of leaving a gap at the bottom. */
.cgrid--eq{align-items:stretch}
.cgrid--eq > *{height:100%}
.cgrid--eq .infocard{display:flex;flex-direction:column}
/* rows grow to share the height, but the icon stays level with its label
   — centring would drop it to the middle of the expanded details panel */
.cgrid--eq .infocard .iline{flex:1 1 auto}
@media (max-width:900px){
  .cgrid--eq > *{height:auto}
  .cgrid--eq .infocard .iline{flex:0 0 auto}
}

/* ------------------------------------- 21. contact form (Web3Forms) ------ */
.fstatus{margin:14px 0 0;font-size:14px;line-height:1.5;min-height:1px}
.fstatus.is-ok{color:var(--good)}
.fstatus.is-err{color:var(--bad)}
.form button[disabled]{opacity:.65;cursor:progress;transform:none}
/* honeypot — off-screen rather than display:none, which some bots skip */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
