/* ==========================================================================
   Nuxment — editorial light theme
   cream #F4F1EA · ink #14231C · orange #E8622C
   Fraunces (display serif) + Inter (body), mobile-first
   ========================================================================== */

:root {
  --cream: #F4F1EA;
  --cream-deep: #EDE8DB;
  --ink: #14231C;
  --ink-soft: rgba(20, 35, 28, .72);
  --ink-faint: rgba(20, 35, 28, .52);
  --orange: #E8622C;
  --orange-deep: #C94E1E;
  --hairline: rgba(20, 35, 28, .14);
  --card: #FBF9F4;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - 2.5rem); }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }

/* Orange highlight inside headings */
em.hl {
  font-style: normal;
  background-image: linear-gradient(transparent 62%, rgba(232, 98, 44, .38) 62%);
  padding-bottom: .04em;
}

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 66px; flex-wrap: wrap; padding-block: .5rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
  letter-spacing: -.02em; text-decoration: none;
}
.wordmark-dot { color: var(--orange); }
.mainnav { display: none; gap: 1.4rem; margin-inline: auto; }
.mainnav a {
  text-decoration: none; font-size: .94rem; color: var(--ink-soft);
  transition: color .2s;
}
.mainnav a:hover { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.lang-switch { display: flex; gap: .15rem; border: 1px solid var(--hairline); border-radius: 999px; padding: .2rem; }
.lang-switch a {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; padding: .25rem .5rem; border-radius: 999px;
  color: var(--ink-faint);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--ink); color: var(--cream); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-pill {
  background: var(--orange); color: #fff;
  padding: .62rem 1.35rem; border-radius: 999px; font-size: .94rem;
  box-shadow: 0 1px 0 rgba(20, 35, 28, .12);
}
.btn-pill:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(232, 98, 44, .28); }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------- hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 0; overflow: hidden; }
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); margin-bottom: 1.25rem; }
.hero-sub { max-width: 34rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.hero-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.hero-form input {
  flex: 1 1 240px; min-width: 0;
  font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 999px; padding: .62rem 1.2rem; outline: none;
}
.hero-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 98, 44, .18); }
.hero-note { font-size: .88rem; color: var(--ink-faint); }
.text-link { color: var(--ink); font-weight: 500; text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* Balance card stack */
.hero-visual { perspective: 1100px; display: flex; justify-content: center; }
.card-stack {
  position: relative; width: min(430px, 100%); aspect-ratio: 5 / 5.4;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .25s ease-out;
}
.balance-card, .donut-card, .income-card {
  position: absolute; border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 48px -24px rgba(20, 35, 28, .35);
}
.balance-card {
  inset: 0 8% auto 0; padding: 1.4rem 1.5rem 1.2rem;
  background: linear-gradient(150deg, #182C22, var(--ink) 70%);
  color: var(--cream);
  transform: translateZ(50px) rotate(-1.5deg);
}
.balance-card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.bc-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.bc-brand { font-family: var(--serif); font-size: 1.05rem; color: var(--orange); }
.bc-amount { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 2.9rem); line-height: 1; }
.bc-cents { font-size: .45em; opacity: .6; }
.bc-delta { font-size: .85rem; color: #7FD6A4; margin: .55rem 0 1rem; }
.bc-spark svg { border-radius: 8px; }
.donut-card {
  right: 0; top: 38%; width: 47%; padding: 1rem 1.1rem 1.2rem;
  background: var(--card);
  transform: translateZ(80px) rotate(1.6deg);
}
.dc-label, .ic-label { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .7rem; }
.dc-donut { margin-inline: auto; }
.dc-num { font: 600 15px var(--sans); fill: var(--ink); }
.dc-sub { font: 500 8.5px var(--sans); fill: var(--ink-faint); }
.income-card {
  left: 4%; bottom: 0; width: 58%; padding: 1rem 1.2rem;
  background: var(--card);
  transform: translateZ(30px) rotate(-.8deg);
}
.ic-list { list-style: none; }
.ic-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .88rem; padding: .4rem 0;
  border-top: 1px solid var(--hairline);
}
.ic-list li b { color: #1F7A4D; }

/* Stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--hairline);
  padding: 1.6rem 0 2rem;
}
.stat-num { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; }
.stat-label { font-size: .86rem; color: var(--ink-faint); max-width: 16rem; }

/* ----------------------------------------------------------------- ticker */
.ticker {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  overflow: hidden; white-space: nowrap; padding: .8rem 0;
  background: var(--cream-deep);
}
.ticker-track { display: inline-flex; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center;
  font-family: var(--serif); font-size: 1.02rem; letter-spacing: .01em;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); margin: 0 1.6rem; flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--cream-deep); border-block: 1px solid var(--hairline); }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.1rem; max-width: 21ch; }
.section-intro { max-width: 46rem; color: var(--ink-soft); margin-bottom: 2.6rem; }

/* Bento grid */
.bento { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.bento-card {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform .25s, box-shadow .25s;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -20px rgba(20, 35, 28, .3); }
.bento-icon { color: var(--orange); margin-bottom: 1rem; }
.bento-card h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.bento-card p { font-size: .94rem; color: var(--ink-soft); }

/* How it works */
.steps { list-style: none; display: grid; gap: 1.6rem; }
.step { border-top: 1px solid var(--hairline); padding-top: 1.3rem; }
.step-num {
  display: block; font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 4.8rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange);
  margin-bottom: .7rem;
}
.step h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--ink-soft); }

/* Reviews */
.reviews-banner {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--card); padding: 1.3rem 1.6rem; margin-bottom: 1.6rem;
}
.reviews-banner-num { font-family: var(--serif); font-size: 2.6rem; color: var(--orange); line-height: 1; }
.reviews-banner-num span { font-size: 1.3rem; color: var(--ink-faint); }
.reviews-banner-title { font-weight: 600; }
.reviews-banner-sub { font-size: .86rem; color: var(--ink-faint); }
.reviews-wall { columns: 1; column-gap: 1.1rem; }
.review-card {
  break-inside: avoid; margin-bottom: 1.1rem;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.stars { display: inline-flex; gap: 2px; margin-bottom: .8rem; }
.star { fill: #D8D2C2; }
.star-full { fill: var(--orange); }
.review-card blockquote { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.review-card figcaption b { display: block; font-size: .94rem; }
.review-card figcaption span { font-size: .82rem; color: var(--ink-faint); }

/* FAQ accordion */
.acc-item { border-top: 1px solid var(--hairline); }
.acc-item:last-child { border-bottom: 1px solid var(--hairline); }
.acc-btn {
  width: 100%; display: flex; align-items: baseline; gap: 1.1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); padding: 1.15rem .2rem;
}
.acc-num { font-family: var(--serif); font-size: 1rem; color: var(--orange); flex: none; }
.acc-q { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); flex: 1; }
.acc-chev { align-self: center; flex: none; transition: transform .25s; color: var(--ink-faint); }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }
.acc-btn:hover .acc-q { color: var(--orange-deep); }
.acc-panel p { padding: 0 .2rem 1.4rem 2.6rem; color: var(--ink-soft); max-width: 46rem; }

/* CTA + contact section (deep green) */
.cta-banner {
  background: linear-gradient(160deg, #182C22, var(--ink) 75%);
  color: var(--cream);
  border-block: 1px solid rgba(244, 241, 234, .1);
}
.contact-grid {
  display: grid; gap: 2.6rem; align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.contact-copy .kicker { color: var(--orange); }
.contact-copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1.1rem; }
.contact-copy h2 em.hl { background-image: linear-gradient(transparent 62%, rgba(232, 98, 44, .55) 62%); }
.contact-sub { max-width: 34rem; color: rgba(244, 241, 234, .78); margin-bottom: 1.4rem; }
.contact-vault { width: min(240px, 55%); height: auto; margin: .4rem 0 1rem; }
.cta-note { font-size: .85rem; color: rgba(244, 241, 234, .55); }

/* Contact form (cream card on green) */
.contact-form {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid rgba(20, 35, 28, .2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .4rem;
}
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 12px; padding: .7rem 1rem; outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 98, 44, .18);
}
.form-note { margin-top: .9rem; font-size: .82rem; color: var(--ink-faint); }

/* Honeypot: present in DOM, invisible to humans */
.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* Server status after 303 redirect */
.form-status-ok, .form-status-err {
  border-radius: 12px; padding: .8rem 1rem; font-size: .94rem; margin-bottom: 1rem;
}
.form-status-ok { background: rgba(31, 122, 77, .12); border: 1px solid rgba(31, 122, 77, .4); color: #1F7A4D; }
.form-status-err { background: rgba(232, 98, 44, .1); border: 1px solid rgba(232, 98, 44, .45); color: var(--orange-deep); }

/* Footer */
.footer { padding: 3.5rem 0 2rem; }
.footer-grid {
  display: grid; gap: 2.2rem;
  padding-bottom: 2.4rem; border-bottom: 1px solid var(--hairline);
}
.footer-brand p { font-size: .9rem; color: var(--ink-faint); max-width: 20rem; margin-top: .7rem; }
.footer-col h2 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .9rem;
}
.footer-col a { display: block; text-decoration: none; font-size: .92rem; color: var(--ink-soft); padding: .22rem 0; }
.footer-col a:hover { color: var(--orange-deep); }
.footer-legal { padding-top: 1.4rem; font-size: .8rem; color: var(--ink-faint); display: grid; gap: .3rem; }

/* ---------------------------------------------------------- illustrations */
/* Language suggestion banner (dismissed state persisted in localStorage) */
.lang-suggest {
  background: var(--ink); color: var(--cream);
  border-bottom: 1px solid rgba(244, 241, 234, .15);
  font-size: .9rem;
}
.lang-suggest-inner {
  display: flex; align-items: center; gap: .9rem;
  padding: .55rem 0; flex-wrap: wrap;
}
.lang-suggest-inner p { flex: 1; min-width: 12rem; }
.lang-suggest .btn-sm { padding: .35rem .95rem; font-size: .82rem; }
.lang-suggest-close {
  background: none; border: 0; color: rgba(244, 241, 234, .6);
  cursor: pointer; padding: .3rem; display: inline-flex;
}
.lang-suggest-close:hover { color: var(--cream); }
.lang-suggest.is-hidden { display: none; }
.hero-visual { position: relative; }
.hero-agent {
  position: absolute; z-index: 2; top: -9%; right: -3%;
  width: clamp(140px, 38%, 190px); height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(20, 35, 28, .18));
}
.bento-illustration {
  width: min(280px, 70%); height: auto;
  margin: 1.2rem 0 0 auto;
}
.step-img {
  width: 72%; max-width: 220px; height: auto;
  margin: 0 0 1.1rem;
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (min-width: 640px) {
  .mainnav { display: flex; }
  .reviews-wall { columns: 2; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .reviews-wall { columns: 3; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
  }
  .bento-1 { grid-column: span 4; grid-row: span 2; }
  .bento-1 h3 { font-size: 1.7rem; }
  .bento-2 { grid-column: span 2; }
  .bento-3 { grid-column: span 2; }
  .bento-4 { grid-column: span 2; }
  .bento-5 { grid-column: span 2; }
  .bento-6 { grid-column: span 2; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  .lang-switch { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-stack { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
