/* =====================================================================
   zFinance - shared styles for the subpages (about, support, privacy,
   terms, 404, app). Same language as the homepage: flat ink background,
   paper sheets, handwritten labels, hard shadows. No glows, no gradient
   text. Tokens are prefixed --zf- so they never collide with the
   variables the legal texts use inline.
   ===================================================================== */
:root{
  --zf-bg:#060B14; --zf-text:#EAF1FB; --zf-muted:#93A6C2; --zf-faint:#6B7D9C;
  --zf-green:#8FDA5C; --zf-green-2:#74C247; --zf-blue:#3B7BE5; --zf-blue-deep:#2A5FCB;
  --zf-line:rgba(150,175,210,.14); --zf-line-2:rgba(150,175,210,.26);
  --zf-paper:#F3EDE1; --zf-card:#FFFDF7; --zf-ink:#15181F; --zf-rule:#C9DAEC; --zf-margin:#E58376; --zf-lime:#B6EE7F;
  --zf-ease:cubic-bezier(.2,.7,.2,1);
  --zf-display:'Space Grotesk',system-ui,sans-serif;
  --zf-body:'Sora',system-ui,sans-serif;
  --zf-hand:'Caveat','Bradley Hand',cursive;
}
*{ box-sizing:border-box; }
html{ background:var(--zf-bg); }
body{ margin:0; min-height:100vh; color:var(--zf-text); font-family:var(--zf-body); -webkit-font-smoothing:antialiased; background:var(--zf-bg); }
::selection{ background:rgba(116,194,71,.3); }
a{ color:var(--zf-green); }
a:hover{ color:#A6E879; }
:focus-visible{ outline:2px solid var(--zf-green); outline-offset:3px; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 28px; }

/* paper: a cream sheet with ink text; re-maps the tokens for everything inside */
.paper{ --zf-text:#15181F; --zf-muted:#4E5562; --zf-faint:#868A92; --zf-line:rgba(21,24,31,.12); --zf-line-2:rgba(21,24,31,.22); --zf-green:#2F7D17;
  color:var(--zf-text); background-color:var(--zf-paper);
  background-image:radial-gradient(rgba(70,50,15,.10) 1px, transparent 1.3px); background-size:24px 24px; }
.paper a{ color:#2A62C9; }
.paper a:hover{ color:#1D4A9C; }
.sheet{ --zf-text:#15181F; --zf-muted:#4E5562; --zf-faint:#868A92; --zf-line:rgba(21,24,31,.12); --zf-line-2:rgba(21,24,31,.22); --zf-green:#2F7D17;
  position:relative; color:var(--zf-text); background:var(--zf-card); border-radius:4px; box-shadow:0 2px 2px rgba(0,0,0,.12), 0 30px 40px -26px rgba(0,0,0,.9); }
.sheet a{ color:#2A62C9; }
.sheet a:hover{ color:#1D4A9C; }
/* masking tape */
.tape::before{ content:""; position:absolute; top:-13px; left:50%; width:96px; height:26px; transform:translateX(-50%) rotate(-3deg);
  background:rgba(236,224,193,.85); box-shadow:0 1px 2px rgba(0,0,0,.08);
  clip-path:polygon(3% 0, 97% 0, 100% 22%, 97% 42%, 100% 62%, 97% 82%, 99% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%); }

/* ---------- nav ---------- */
.nav{ position:fixed; top:0; left:0; right:0; z-index:80; height:56px;
  background:rgba(6,11,20,.9); -webkit-backdrop-filter:saturate(160%) blur(14px); backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(150,175,210,.1); }
.nav-in{ max-width:1120px; height:100%; margin:0 auto; padding:0 24px; display:flex; align-items:center; gap:26px; }
.nav-brand{ display:flex; align-items:center; gap:10px; flex:0 0 auto; text-decoration:none; color:var(--zf-text);
  font-family:var(--zf-display); font-weight:600; font-size:18px; letter-spacing:-.01em; }
.nav-brand:hover{ color:var(--zf-text); }
.nav-brand img{ width:30px; height:30px; display:block; }
.nav-brand b{ color:var(--zf-green); font-weight:600; }
.nav-links{ display:flex; align-items:center; gap:26px; list-style:none; margin:0 0 0 auto; padding:0; }
.nav-links a{ position:relative; padding:6px 0; font-family:var(--zf-display); font-weight:500; font-size:13.5px; color:var(--zf-muted);
  text-decoration:none; white-space:nowrap; transition:color .2s ease; }
.nav-links a::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px; background:var(--zf-green);
  transform:scaleX(0); transform-origin:left; transition:transform .25s var(--zf-ease); }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color:var(--zf-text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ transform:scaleX(1); }
.nav-right{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.lang-sel{ -webkit-appearance:none; appearance:none; cursor:pointer; padding:9px 32px 9px 34px; border-radius:11px;
  font-family:var(--zf-display); font-weight:600; font-size:13.5px; color:var(--zf-text);
  background-color:rgba(12,26,46,.8);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EAF1FB' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.6 2.7 2.6 15.3 0 18M12 3c-2.6 2.7-2.6 15.3 0 18'/></svg>"),
                   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2393A6C2' stroke-width='2'><polyline points='1,1 6,7 11,1'/></svg>");
  background-repeat:no-repeat, no-repeat; background-position:12px center, right 12px center; background-size:15px 15px, 10px 7px;
  border:1px solid rgba(150,175,210,.22); transition:border-color .2s ease; }
.lang-sel:hover{ border-color:var(--zf-green); }
.lang-sel option{ background:#0C1A2E; color:var(--zf-text); }
.nav-cta{ padding:9px 16px; border-radius:11px; font-family:var(--zf-display); font-weight:600; font-size:13.5px; color:#fff; text-decoration:none; white-space:nowrap;
  background:var(--zf-blue); transition:filter .2s ease; }
.nav-cta:hover{ color:#fff; filter:brightness(1.08); }
.nav-burger{ display:none; width:40px; height:40px; place-items:center; cursor:pointer; border-radius:11px; color:var(--zf-text);
  border:1px solid rgba(150,175,210,.22); background:rgba(12,26,46,.8); }
.nav-burger svg{ width:18px; height:18px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; }
.nav-burger .x{ display:none; }
.nav.open .nav-burger .x{ display:block; }
.nav.open .nav-burger .b{ display:none; }

/* ---------- page hero ---------- */
.page-hero{ position:relative; overflow:hidden; isolation:isolate; text-align:left; padding:clamp(120px,18vh,168px) 0 clamp(40px,6vh,64px); }
.eyebrow{ display:inline-block; font-family:var(--zf-hand); font-weight:700; font-size:27px; line-height:1; color:var(--zf-green); transform:rotate(-2deg); transform-origin:left; }
.page-hero h1{ margin:16px 0 0; max-width:15ch; font-family:var(--zf-display); font-weight:700; font-size:clamp(40px,6.4vw,76px);
  line-height:.98; letter-spacing:-.042em; text-wrap:balance; overflow-wrap:break-word; -webkit-hyphens:auto; hyphens:auto; }
.page-hero h1 em{ position:relative; display:inline-block; font-style:normal; color:var(--zf-green); }
.page-hero h1 em::after{ content:""; position:absolute; left:-2%; right:-4%; bottom:-.18em; height:.22em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10c26-6 52 3 80-2s58-6 76-1 30 2 38-2' fill='none' stroke='%238FDA5C' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M18 14c40-4 92 1 150-3' fill='none' stroke='%238FDA5C' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.page-hero .sub{ margin:26px 0 0; max-width:52ch; color:var(--zf-muted); font-size:clamp(16px,1.8vw,19px); line-height:1.6; text-wrap:pretty; }
.glyph{ position:absolute; z-index:-1; font-family:var(--zf-display); font-weight:600; pointer-events:none; user-select:none; }
@keyframes floaty{ 0%,100%{ transform:translateY(0) rotate(0); } 50%{ transform:translateY(-17px) rotate(5deg); } }
@keyframes floaty2{ 0%,100%{ transform:translateY(0) rotate(0); } 50%{ transform:translateY(15px) rotate(-5deg); } }

/* ---------- section heads ---------- */
.sect-head{ max-width:680px; margin:0 0 clamp(36px,6vh,52px); }
.sect-head h2{ margin:12px 0 0; font-family:var(--zf-display); font-weight:700; font-size:clamp(32px,4.4vw,52px); line-height:1.02; letter-spacing:-.035em; text-wrap:balance; }
.sect-head h2 em{ font-style:normal; color:var(--zf-green); }
.sect-head p{ margin:14px 0 0; max-width:54ch; color:var(--zf-muted); font-size:clamp(15.5px,1.7vw,18px); line-height:1.6; }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:13px 22px; border-radius:12px; border:2px solid transparent; cursor:pointer;
  font-family:var(--zf-display); font-weight:600; font-size:15px; text-decoration:none; white-space:nowrap; transition:transform .15s ease, background .2s ease, color .2s ease; }
.btn.primary{ color:#fff; background:var(--zf-blue); }
.btn.primary:hover{ color:#fff; transform:translateY(-2px); }
.btn.green{ color:var(--zf-ink); background:var(--zf-green); }
.btn.green:hover{ color:var(--zf-ink); transform:translateY(-2px); }
.btn.ghost{ color:var(--zf-text); background:transparent; border-color:var(--zf-line-2); }
.btn.ghost:hover{ color:var(--zf-text); border-color:var(--zf-text); }
.sheet .btn, .paper .btn{ border-color:var(--zf-ink); box-shadow:3px 3px 0 var(--zf-ink); }
.sheet .btn:hover, .paper .btn:hover{ transform:translate(-1px,-1px); box-shadow:4px 4px 0 var(--zf-ink); }
.appbtns{ display:flex; gap:12px; flex-wrap:wrap; }
.store{ display:inline-flex; align-items:center; gap:10px; padding:10px 20px 10px 14px; border-radius:12px; text-decoration:none; color:#fff;
  background:#000; border:1.5px solid rgba(255,255,255,.55); transition:transform .15s ease, border-color .15s ease; }
.store:hover{ color:#fff; border-color:#fff; transform:translateY(-2px); }
.store svg{ width:24px; height:24px; fill:#fff; flex:0 0 auto; }
.store .st{ display:flex; flex-direction:column; line-height:1.18; text-align:left; white-space:nowrap; }
.store .st small{ font-size:10.5px; color:rgba(255,255,255,.8); }
.store .st b{ font-family:var(--zf-display); font-weight:600; font-size:16.5px; letter-spacing:-.01em; }

/* ---------- CTA block (lime, like the homepage) ---------- */
.cta-panel{ position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:center; border-radius:20px;
  padding:clamp(36px,5vw,60px); background:#8FDA5C; color:var(--zf-ink); border:2px solid var(--zf-ink); box-shadow:6px 6px 0 #000; }
.cta-panel h2{ margin:0; font-family:var(--zf-display); font-weight:700; font-size:clamp(40px,6vw,76px); line-height:.92; letter-spacing:-.05em; }
.cta-panel p{ margin:16px 0 0; max-width:42ch; color:#24321A; font-size:clamp(15.5px,1.7vw,18px); line-height:1.6; }
.cta-panel .appbtns{ margin-top:28px; }
.cta-panel .store{ border-color:#000; }
.cta-mark{ display:grid; place-items:center; width:132px; height:132px; border-radius:24%; background:var(--zf-blue); border:6px solid #fff;
  transform:rotate(8deg); box-shadow:7px 7px 0 var(--zf-ink); }
.cta-mark img{ width:80%; height:auto; display:block; }

/* ---------- footer ---------- */
.site-foot{ margin-top:clamp(56px,9vh,96px); padding:56px 0 34px; border-top:1px solid var(--zf-line); color:var(--zf-faint); font-size:13.5px; }
.foot-grid{ display:grid; grid-template-columns:1.6fr repeat(3,minmax(0,1fr)); gap:40px; }
.site-foot .fl{ display:flex; align-items:center; gap:9px; margin-bottom:14px; }
.site-foot .fl img{ width:30px; height:30px; display:block; }
.site-foot .fl b{ font-family:var(--zf-display); font-weight:600; font-size:19px; color:var(--zf-text); }
.site-foot .fl b i{ font-style:normal; color:var(--zf-green); }
.site-foot .ftag{ max-width:30ch; color:var(--zf-muted); font-size:14px; line-height:1.6; }
.foot-mail{ display:inline-flex; align-items:center; gap:9px; margin-top:18px; color:var(--zf-text); font-size:14px;
  text-decoration:underline; text-decoration-color:var(--zf-green); text-underline-offset:4px; }
.foot-mail svg{ width:16px; height:16px; stroke:var(--zf-green); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.foot-mail:hover{ color:var(--zf-green); }
.foot-col{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.foot-col h4{ margin:0 0 4px; font-family:var(--zf-hand); font-weight:700; font-size:22px; color:var(--zf-green); }
.foot-col a{ color:var(--zf-muted); font-size:14px; line-height:1.5; text-decoration:none; }
.foot-col a:hover{ color:var(--zf-green); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:52px; padding-top:24px;
  border-top:1px solid var(--zf-line); font-size:12.5px; }

/* ---------- responsive ---------- */
/* The full header needs up to ~1080px (French), so the menu folds earlier than the layout. */
@media (max-width:1100px){
  .nav-links{ display:none; position:fixed; top:56px; left:0; right:0; flex-direction:column; align-items:stretch; gap:0; margin:0; padding:8px 24px 16px;
    background:rgba(6,11,20,.97); border-bottom:1px solid rgba(150,175,210,.12); }
  .nav.open .nav-links{ display:flex; }
  .nav-links a{ display:block; padding:14px 0; font-size:17px; border-bottom:1px solid rgba(150,175,210,.1); }
  .nav-links a::after{ display:none; }
  .nav-links li:last-child a{ border-bottom:0; }
  .nav-right{ margin-left:auto; }
  .nav-burger{ display:grid; }
}
@media (max-width:980px){
  .nav-links{ display:none; position:fixed; top:56px; left:0; right:0; flex-direction:column; align-items:stretch; gap:0; margin:0; padding:8px 24px 16px;
    background:rgba(6,11,20,.97); border-bottom:1px solid rgba(150,175,210,.12); }
  .nav.open .nav-links{ display:flex; }
  .nav-links a{ display:block; padding:14px 0; font-size:17px; border-bottom:1px solid rgba(150,175,210,.1); }
  .nav-links a::after{ display:none; }
  .nav-links li:last-child a{ border-bottom:0; }
  .nav-right{ margin-left:auto; }
  .nav-burger{ display:grid; }
  .foot-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .foot-brand{ grid-column:1 / -1; }
}
@media (max-width:720px){
  .cta-panel{ grid-template-columns:minmax(0,1fr); }
  .cta-mark{ width:104px; height:104px; order:-1; }
}
@media (max-width:620px){
  .wrap{ padding:0 18px; }
  .nav-in{ padding:0 16px; gap:12px; }
  .nav-cta{ display:none; }
  .page-hero{ padding:108px 0 32px; }
  .cta-panel{ box-shadow:4px 4px 0 #000; }
  .foot-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 20px; }
  .foot-bottom{ margin-top:40px; }
}
@media (max-width:560px){
  .appbtns{ width:100%; max-width:420px; }
  .appbtns .store{ flex:1 1 0; min-width:0; justify-content:center; gap:9px; padding:10px 12px; }
  .store .st b{ font-size:15px; }
  .store svg{ width:22px; height:22px; }
}
@media (prefers-reduced-motion: reduce){
  .glyph{ animation:none !important; }
}

/* ---------- cookie banner (assets/zf-analytics.js), same look as the homepage ---------- */
.zf-ck{ position:fixed; left:0; right:0; bottom:0; z-index:95; display:flex; justify-content:center; padding:18px; color:var(--zf-text);
  transform:translateY(130%); transition:transform .45s var(--zf-ease); pointer-events:none; }
.zf-ck.show{ transform:none; pointer-events:auto; }
.zf-ck-card{ width:min(880px,100%); background:#0c1a2e; border:1px solid rgba(150,175,210,.2); border-radius:18px; box-shadow:0 30px 80px rgba(0,0,0,.6); overflow:hidden; }
.zf-ck-main{ display:flex; align-items:center; gap:22px; padding:20px 24px; flex-wrap:wrap; }
.zf-ck-main > div:first-child{ flex:1 1 360px; }
.zf-ck h4{ margin:0 0 6px; font-family:var(--zf-display); font-weight:700; font-size:17px; }
.zf-ck p{ margin:0; color:var(--zf-muted); font-size:13.5px; line-height:1.55; max-width:62ch; }
.zf-ck-acts{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.zf-ck-btn{ font-family:var(--zf-display); font-weight:600; font-size:13.5px; cursor:pointer; padding:11px 18px; border-radius:11px;
  border:1px solid transparent; white-space:nowrap; transition:transform .15s ease, border-color .2s ease, color .2s ease; }
.zf-ck-btn.solid{ background:linear-gradient(180deg,var(--zf-green),var(--zf-green-2)); color:#060B14; box-shadow:0 8px 22px rgba(116,194,71,.3); }
.zf-ck-btn.solid:hover{ transform:translateY(-1px); }
.zf-ck-btn.ghost{ background:transparent; color:var(--zf-muted); border-color:rgba(150,175,210,.28); }
.zf-ck-btn.ghost:hover{ color:var(--zf-text); border-color:var(--zf-green); }
.zf-ck-prefs{ border-top:1px solid rgba(150,175,210,.14); padding:8px 24px 20px; }
.zf-ck-prefs[hidden]{ display:none; }
.zf-ck-row{ display:flex; align-items:center; gap:18px; padding:15px 0; border-bottom:1px solid rgba(150,175,210,.1); }
.zf-ck-row:last-of-type{ border-bottom:0; }
.zf-ck-row > div{ flex:1; display:flex; flex-direction:column; gap:3px; }
.zf-ck-row b{ font-family:var(--zf-display); font-weight:600; font-size:14.5px; }
.zf-ck-row span{ color:var(--zf-muted); font-size:13px; line-height:1.5; }
.zf-ck-always{ font-family:var(--zf-display); font-weight:600; font-size:12.5px; color:var(--zf-green) !important;
  padding:5px 11px; border-radius:999px; border:1px solid rgba(143,218,92,.34); background:rgba(116,194,71,.08); white-space:nowrap; }
.zf-ck-toggle{ position:relative; flex:0 0 auto; width:46px; height:26px; cursor:pointer; }
.zf-ck-toggle input{ position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; z-index:2; }
.zf-ck-toggle span{ position:absolute; inset:0; border-radius:999px; background:rgba(150,175,210,.22); transition:background .2s ease; }
.zf-ck-toggle span::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff;
  transition:transform .2s var(--zf-ease); box-shadow:0 2px 5px rgba(0,0,0,.3); }
.zf-ck-toggle input:checked + span{ background:var(--zf-green-2); }
.zf-ck-toggle input:checked + span::after{ transform:translateX(20px); }
.zf-ck-pacts{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; flex-wrap:wrap; }
.zf-ck-pacts a{ color:var(--zf-muted); font-size:13.5px; text-decoration:none; border-bottom:1px solid rgba(150,175,210,.3); }
.zf-ck-pacts a:hover{ color:var(--zf-green); border-color:var(--zf-green); }
.foot-col .fpref{ display:block; padding:0; background:none; border:0; cursor:pointer; text-align:left; font:inherit; color:var(--zf-muted); font-size:14px; line-height:1.5; }
.foot-col .fpref:hover{ color:var(--zf-green); }
@media (max-width:620px){
  .zf-ck{ padding:10px; }
  .zf-ck-main{ padding:16px; gap:14px; }
  .zf-ck-acts{ width:100%; }
  .zf-ck-acts .zf-ck-btn{ flex:1 1 auto; }
  .zf-ck-prefs{ padding:4px 16px 16px; }
}
