/* Valuto — premium fintech design system.
   Light "ice" base, ink-navy feature bands, electric-blue gradient accents.
   Display: Space Grotesk · Body: IBM Plex Sans. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;450;500;600;700&display=swap');

:root {
  /* Official Valuto brand palette (valuto.io logo kit) */
  --ink: #0d0f1c;        /* navy */
  --ink-2: #1a1f33;      /* slate */
  --ink-3: #242a45;
  --blue: #3b7bff;       /* brand blue (primary) */
  --blue-2: #7a4dff;     /* brand violet */
  --blue-soft: #ecefff;
  --cyan: #00e5ff;       /* brand cyan */
  --magenta: #ff4ddb;    /* brand magenta */
  --bg: #f6f8fd;
  --surface: #ffffff;
  --border: #e3e9f6;
  --border-strong: #cdd8ee;
  --text: #0d0f1c;
  --muted: #55658a;
  --on-dark: #ffffff;
  --on-dark-muted: #a7b1c7;   /* light slate */
  --dark-border: rgba(167, 177, 199, 0.18);
  --gold: #f5b91a;
  --danger: #e5484d;
  --ok: #14a97c;
  --grad: linear-gradient(135deg, #00e5ff 0%, #3b7bff 35%, #7a4dff 68%, #ff4ddb 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(10, 18, 37, 0.05), 0 8px 24px rgba(10, 18, 37, 0.06);
  --shadow-2: 0 2px 6px rgba(10, 18, 37, 0.06), 0 24px 60px rgba(45, 22, 95, 0.14);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 132px;
  --maxw: 1160px;
  --font-display: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: rgba(107, 75, 255, 0.18); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }

h1, h2, h3, .brand { font-family: var(--font-display); }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.012em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; transition: top 150ms ease-out;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(246, 248, 253, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark { width: auto; height: 30px; flex: none; }
.brand em { font-style: normal; color: var(--blue); }
.nav-links { display: flex; gap: var(--s3); align-items: center; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 2px; transition: color 180ms ease-out; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(107, 75, 255, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(107, 75, 255, 0.4); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue-2); color: var(--blue); }
.dark-band .btn-ghost { background: transparent; border-color: var(--dark-border); color: var(--on-dark); }
.dark-band .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: var(--s7) 0 var(--s7); overflow: clip; }
.hero-mesh {
  position: absolute; inset: -20% -10% auto; height: 130%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 55% at 78% 22%, rgba(22, 211, 198, 0.16), transparent 70%),
    radial-gradient(38% 52% at 12% 8%, rgba(107, 75, 255, 0.12), transparent 70%),
    radial-gradient(30% 40% at 55% 90%, rgba(61, 111, 255, 0.1), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: var(--s6); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-1); margin-bottom: var(--s3);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(107, 75, 255, 0.30); } 70% { box-shadow: 0 0 0 7px rgba(107, 75, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 75, 255, 0); } }
.lede { margin-top: var(--s3); font-size: clamp(1.06rem, 1.9vw, 1.26rem); color: var(--muted); max-width: 54ch; }
.hero-ctas { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.hero-note { margin-top: var(--s2); font-size: 13.5px; color: var(--muted); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 40px 70px rgba(45, 22, 95, 0.28)); }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--border); }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.trust svg { width: 16px; height: 16px; stroke: var(--blue); flex: none; }

/* ---------- sections ---------- */
section { padding: var(--s7) 0; }
.section-head { max-width: 64ch; margin-bottom: var(--s5); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s2); color: var(--muted); font-size: 1.07rem; }
.kicker { display: block; color: var(--blue); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: var(--s2); font-family: var(--font-display); }

/* dark band */
.dark-band { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--on-dark); position: relative; overflow: clip; }
.dark-band .section-head p, .dark-band .lede { color: var(--on-dark-muted); }
.dark-band .kicker { color: var(--cyan); }
.dark-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(22, 211, 198, 0.10), transparent 70%),
    radial-gradient(45% 45% at 8% 100%, rgba(107, 75, 255, 0.14), transparent 70%);
}
.dark-band > .container { position: relative; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.stat { border-left: 2px solid rgba(22, 211, 198, 0.5); padding-left: var(--s3); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat b em { font-style: normal; color: var(--cyan); }
.stat span { color: var(--on-dark-muted); font-size: 14.5px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.tile {
  grid-column: span 2; position: relative; overflow: clip;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s4); box-shadow: var(--shadow-1);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.tile-wide { grid-column: span 3; }
.tile-hero { grid-column: span 3; background: var(--grad); color: #fff; border: none; }
.tile-hero h3 { color: #fff; font-size: 1.35rem; }
.tile-hero p { color: rgba(255, 255, 255, 0.85); }
.tile p { margin-top: 10px; color: var(--muted); font-size: 14.8px; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s2);
  background: var(--blue-soft); color: var(--blue);
}
.tile-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.tile-hero .tile-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tile-tag { position: absolute; top: var(--s3); right: var(--s3); font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 4px 11px; }
.tile-hero .tile-tag { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tile-art { margin-top: var(--s3); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--shadow-1); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--blue); margin-bottom: var(--s2);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- showcase (phone) ---------- */
.showcase-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); align-items: center; }
.showcase-phone { justify-self: center; width: min(340px, 82vw); }
.showcase-phone svg { width: 100%; height: auto; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5)); }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: var(--s3); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark-muted); font-size: 15.5px; }
.checklist li strong { color: var(--on-dark); font-weight: 600; }
.checklist svg { width: 20px; height: 20px; stroke: var(--cyan); flex: none; margin-top: 2px; }
.light .checklist li { color: var(--muted); }
.light .checklist li strong { color: var(--text); }
.light .checklist svg { stroke: var(--blue); }

/* ---------- feature rows / cards ---------- */
.grid { display: grid; gap: var(--s2); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s4); box-shadow: var(--shadow-1);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.card .tile-icon { margin-bottom: var(--s2); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--shadow-1); position: relative; }
.plan-popular { border: 2px solid var(--blue); box-shadow: var(--shadow-2); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 5px 14px; white-space: nowrap; }
.plan h3 { font-size: 1.05rem; text-transform: capitalize; }
.price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: var(--s3) 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.plan li svg { width: 17px; height: 17px; stroke: var(--ok); flex: none; margin-top: 2px; }

/* ---------- personas ---------- */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.persona { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: clip; box-shadow: var(--shadow-1); }
.persona-art { height: 150px; position: relative; }
.persona-art svg { width: 100%; height: 100%; }
.persona-body { padding: var(--s3) var(--s4) var(--s4); }
.persona-body p { color: var(--muted); font-size: 14.8px; margin-top: 8px; }
.persona-body .who { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: var(--s2); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-1); overflow: clip; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: 20px 24px; font-weight: 600; font-family: var(--font-display); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); transition: transform 200ms ease-out; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); background: var(--grad); color: #fff; padding: var(--s6) var(--s5); position: relative; overflow: clip; text-align: center; box-shadow: 0 30px 70px rgba(107, 75, 255, 0.35); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 85% 20%, rgba(255, 255, 255, 0.18), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: var(--s2); }
.cta-band .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(0, 20, 70, 0.3); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- page hero (secondary pages) ---------- */
.page-hero { padding: var(--s6) 0 var(--s5); position: relative; overflow: clip; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

/* ---------- prose (privacy/terms) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: var(--s4) 0 var(--s2); }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose ul { padding-left: 1.2em; margin: var(--s2) 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: var(--s2); max-width: 560px; }
.form-grid label { font-size: 13.5px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 15px;
}
.form-grid textarea { min-height: 130px; resize: vertical; }

/* ---------- tables ---------- */
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; background: var(--surface); border-radius: var(--radius-lg); overflow: clip; box-shadow: var(--shadow-1); }
.cmp-table th, .cmp-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.cmp-table th { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cmp-table td:not(:first-child), .cmp-table th:not(:first-child) { text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: var(--s6) 0 var(--s4); margin-top: var(--s7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s4); }
.site-footer h3 { color: var(--on-dark); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); font-size: 14.5px; transition: color 160ms ease-out; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand p { font-size: 14px; max-width: 34ch; margin-top: var(--s2); }
.footer-legal { border-top: 1px solid var(--dark-border); margin-top: var(--s5); padding-top: var(--s3); font-size: 13px; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .tile, .card { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-wide, .tile-hero { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .personas, .steps, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-grid, .showcase-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .personas, .steps, .grid-3, .pricing { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s2) var(--s3) var(--s3);
    box-shadow: var(--shadow-2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; font-size: 16px; }
  .nav-toggle { display: block; }
  section { padding: var(--s6) 0; }
  .cta-band { padding: var(--s5) var(--s3); }
}
