/* DoniDoni Pay public site. Same tokens as the app (apps/web/src/styles.css). Nunito: SIL OFL 1.1. */
@font-face { font-family: Nunito; src: url("/fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --text: #1F2A27; --muted: #4D5B57; --soft: #6B7571;
  --primary: #0B5D4B; --primary-dark: #08483A; --accent: #F2B134; --mint: #DDF0E8; --tint: #F4F7F5; --line: #E5EAE8;
  --sh1: 0 1px 2px rgba(20, 45, 38, .06), 0 4px 14px rgba(20, 45, 38, .06);
  --sh3: 0 24px 60px rgba(11, 93, 75, .22);
  --r: 20px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Nunito, system-ui, sans-serif; color: var(--text); background: #fff; font-size: 17px; line-height: 1.55; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(11, 93, 75, .25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 8px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 18px; color: var(--primary); white-space: nowrap; flex: none; min-height: 44px; }
.logo img { width: 36px; height: 36px; }
.logo img { border-radius: 11px; }
.logo b { color: var(--accent); margin-left: 4px; }
.nav { display: none; gap: 26px; margin: 0 auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--primary); }
.top-cta { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.top-cta .btn { min-height: 40px; padding: 0 14px; }
.top-cta .btn-primary { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: var(--tint); border-radius: 12px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { display: flex; flex-direction: column; gap: 4px; padding: 8px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 12px 4px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 12px; }

/* Shared */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 900; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
h2 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; font-weight: 900; letter-spacing: -.5px; margin-top: 10px; }
h2 em, h1 em { font-style: normal; color: var(--primary); }
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.more { color: var(--primary); font-weight: 800; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero */
.hero { padding: 36px 0 56px; background: radial-gradient(120% 80% at 100% 0%, #EAF6F1 0%, rgba(234, 246, 241, 0) 60%); overflow: hidden; }
.hero-in { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(40px, 9vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -1.5px; margin-top: 14px; }
.hero h1 em { color: var(--primary); }
.lead { margin-top: 18px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 560px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 16px; color: var(--soft); font-size: 14px; }
.hero-visual { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 20px; }
.journey { width: 100%; max-width: 420px; background: #0E2A24; color: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--sh3); }
.journey-top { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #9DBDB3; font-weight: 800; }
.journey-step { color: var(--accent); }
.journey-pct { margin-top: 18px; font-size: 64px; line-height: 1; font-weight: 900; color: var(--accent); }
.journey-pct small { font-size: 28px; margin-left: 2px; }
.journey-title { margin-top: 10px; font-size: 24px; font-weight: 900; }
.journey-text { margin-top: 6px; color: #C3D6D0; font-size: 15px; min-height: 46px; }
.journey-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.journey-bars i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; position: relative; }
.journey-bars i.done { background: var(--accent); }
.journey-bars i.now::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: fill 3.6s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.journey.swap .journey-pct, .journey.swap .journey-title, .journey.swap .journey-text { animation: swap .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* Phones */
.phone { width: 260px; border-radius: 40px; padding: 10px; background: #111816; box-shadow: var(--sh3), inset 0 0 0 2px #2A3532; position: relative; }
.phone img { border-radius: 31px; width: 100%; height: auto; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 999px; background: #111816; z-index: 1; }
.phone-hero { width: 250px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--sh1); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--primary); font-weight: 900; font-size: 20px; }
.steps h3 { margin-top: 14px; font-size: 20px; font-weight: 900; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Services */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.service { position: relative; display: block; background: #fff; padding: 24px 104px 24px 24px; min-height: 150px; text-decoration: none; transition: background-color .2s; }
.service:hover { background: #FBFDFC; }
.service .tag { font-size: 12px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary); }
.service h3 { margin-top: 6px; font-size: 21px; font-weight: 900; }
.service p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.service-icon { position: absolute; right: 24px; top: 24px; width: 60px; height: 60px; border-radius: 18px; background: var(--mint); display: grid; place-items: center; font-size: 30px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.service:hover .service-icon { transform: scale(1.08) rotate(-4deg); }

/* Showcase */
.showcase { background: linear-gradient(160deg, #0E6E58, #08483A); padding: 64px 0 40px; overflow: hidden; }
.phones { display: flex; justify-content: center; gap: 20px; align-items: flex-start; }
.phones .phone { width: 220px; flex: none; }
.phones .phone:nth-child(1), .phones .phone:nth-child(3) { display: none; }
.phone-up { transform: translateY(-14px); }
.badges { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .16); border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.badges li { background: #0B5D4B; color: #fff; padding: 16px 12px; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.badges li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; flex: none; }

/* Why */
.why h2 { margin-bottom: 28px; }
.why-row { position: relative; display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line); }
.why-row:last-child { border-bottom: 1px solid var(--line); }
.why-n { position: absolute; right: 0; top: 10px; font-size: 64px; font-weight: 900; color: #EEF3F1; line-height: 1; z-index: -1; }
.why-row h3 { font-size: 22px; font-weight: 900; }
.why-row p { color: var(--muted); max-width: 560px; }

/* Install */
.install { background: #0E1A17; color: #fff; padding: 64px 0; overflow: hidden; }
.install-in { display: grid; gap: 36px; align-items: center; }
.install h2 { color: #fff; }
.install-text > p { margin-top: 12px; color: #B9CAC4; max-width: 520px; }
.install-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 18px 8px 12px; border-radius: 16px; background: #fff; color: var(--text); text-decoration: none; font-weight: 900; transition: transform .18s; }
.store:active { transform: scale(.97); }
.store small { display: block; font-weight: 700; font-size: 12px; color: var(--soft); }
.store-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 16px; }
.store + .store { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.store + .store small { color: #9DBDB3; }
.ios { margin-top: 20px; color: #C3D6D0; }
.ios summary { cursor: pointer; font-weight: 800; color: #fff; min-height: 44px; display: flex; align-items: center; }
.ios ol { margin: 4px 0 0; padding-left: 22px; }
.ios a { color: var(--accent); }
.install-visual { display: flex; justify-content: center; }
.phone-tilt { transform: rotate(-6deg); width: 230px; }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 44px 20px 0; position: relative; font-weight: 800; font-size: 18px; min-height: 60px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--primary); font-size: 13px; font-weight: 900; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 20px; color: var(--primary); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); border-color: var(--primary); }
.faq-list details > div { padding: 0 0 20px 34px; color: var(--muted); display: grid; gap: 8px; }
.faq-list a { color: var(--primary); font-weight: 800; }

/* Merchants, contact */
.merchants { display: grid; gap: 24px; align-items: center; }
.merchants p:not(.kicker) { margin-top: 12px; color: var(--muted); max-width: 620px; }
.contact { display: grid; border-radius: 24px; overflow: hidden; text-decoration: none; box-shadow: var(--sh3); }
.contact-main { background: var(--primary); color: #fff; padding: 28px; display: grid; gap: 6px; }
.contact-main b { font-size: clamp(26px, 5vw, 36px); font-weight: 900; }
.contact-main span { color: #CFE6DE; }
.contact-side { background: #0E2A24; color: #fff; padding: 22px 28px; font-weight: 900; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.contact-side span { color: var(--accent); font-size: 22px; }

/* Footer */
.foot { background: #0B1714; color: #B9CAC4; padding: 48px 0 32px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.logo-light { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0; }
.foot-cols h4 { color: #6F8A82; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.foot-cols a { display: block; text-decoration: none; padding: 6px 0; color: #DCE7E3; }
.foot-cols a:hover { color: var(--accent); }
.legal { font-size: 13px; color: #6F8A82; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; }

/* Reveal on scroll (only with JS; content stays visible without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Very small phones: the icon alone, so « Se connecter » always fits. */
@media (max-width: 379px) {
  .top .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Larger screens */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .phones .phone:nth-child(1), .phones .phone:nth-child(3) { display: block; }
  .badges { grid-template-columns: repeat(4, 1fr); }
  .why-row { grid-template-columns: 60px 1fr 1.2fr; align-items: center; gap: 24px; }
  .why-n { position: static; font-size: 22px; color: var(--primary); z-index: 0; }
  .merchants { grid-template-columns: 1fr auto; }
  .contact { grid-template-columns: 1.6fr 1fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .top-in { gap: 24px; height: 72px; }
  .logo { font-size: 20px; }
  .logo img { width: 40px; height: 40px; }
  .nav { display: flex; }
  .menu-btn { display: none; }
  .top-cta .btn-primary { display: inline-flex; }
  .hero { padding: 56px 0 80px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-visual { grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .phone-hero { width: 270px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .install-in { grid-template-columns: 1.2fr 1fr; }
  .section { padding: 96px 0; }
  .faq { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
