/* ============================================================================
   Orquestra Dados — landing page styles
   Theme-aware via CSS variables. Light is default; html[data-theme="dark"]
   overrides the palette. Always-dark surfaces (footer/benefits/pay panel) use
   --surface so they stay dark in light mode and elevate in dark mode.
   ============================================================================ */

:root {
  --ink:      #0b1220;   /* fixed dark (white-on-color text fallback) */
  --ink-2:    #111a2e;
  --text:     #0b1220;   /* themed main text */
  --slate:    #475569;   /* themed secondary text */
  --muted:    #64748b;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f7f9fc;
  --card:     #ffffff;
  --surface:  #0b1220;   /* always-dark surfaces */
  --nav-bg:   rgba(255,255,255,.82);
  --tag:      #065f46;   /* tag/eyebrow text */
  --brand:    #10b981;
  --brand-2:  #0ea5e9;
  --brand-ink:#065f46;
  --radius:   18px;
  --shadow:   0 18px 40px -18px rgba(11, 18, 32, .25);
  --shadow-sm:0 8px 24px -12px rgba(11, 18, 32, .22);
  --maxw:     1120px;
}

html[data-theme="dark"] {
  --ink-2:    #dbe6f5;
  --text:     #e8eef7;
  --slate:    #aab8cc;
  --muted:    #8493ab;
  --line:     #27364f;
  --bg:       #0b1220;
  --bg-alt:   #0f1931;
  --card:     #16223c;
  --surface:  #1b2942;
  --nav-bg:   rgba(11,18,32,.85);
  --tag:      #6ee7b7;
  --shadow:   0 18px 40px -18px rgba(0,0,0,.55);
  --shadow-sm:0 8px 24px -12px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ── Accessibility ───────────────────────────────────────── */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
/* Motion preference. Effects are ON by default. The header switch sets
   data-motion="off" to stop ALL motion (every animation + transition), or "on" to
   force motion on. The pre-paint script seeds data-motion from localStorage, or
   from the OS "reduce motion" setting on first visit. The @media block is the
   no-JS fallback so OS reduce-motion is still honored if scripts don't run. */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
html[data-motion="off"] { scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *,
  html:not([data-motion="on"]) *::before,
  html:not([data-motion="on"]) *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html:not([data-motion="on"]) { scroll-behavior: auto !important; }
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: .95rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--invert { background: #fff; color: var(--ink); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.15rem; }
.brand__mark { display: inline-grid; place-items: center; }
.brand__dim { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; font-weight: 500; color: var(--slate); }
.nav__links a:not(.btn) { text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; font-weight: 600; }
.nav__links a:not(.btn):hover { color: var(--text); }
.lang {
  display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 .6rem;
  font: 700 .82rem/1 "Inter", sans-serif; letter-spacing: .04em; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.lang:hover { border-color: var(--brand); color: var(--brand); }

/* theme switch (sliding sun/moon) */
.theme-switch {
  position: relative; flex: 0 0 auto; width: 58px; height: 30px; padding: 0;
  border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: inset 0 1px 3px rgba(0,0,0,.22);
}
.theme-switch:hover { filter: brightness(1.06); }
.theme-switch__ic { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; line-height: 0; opacity: .95; }
.theme-switch__ic--sun { left: 7px; }
.theme-switch__ic--moon { right: 7px; }
.theme-switch__knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .25s ease; z-index: 2;
}
/* three-way theme control: light · system · dark (knob slides to the active one) */
.theme3 {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 3px; border: none; border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: inset 0 1px 3px rgba(0,0,0,.22);
}
.theme3:hover { filter: brightness(1.06); }
.theme3__opt {
  position: relative; z-index: 2; width: 26px; height: 24px; padding: 0; border: none;
  background: none; cursor: pointer; display: grid; place-items: center; line-height: 0;
  color: #fff; transition: color .2s ease;
}
.theme3__opt[aria-checked="true"] { color: #0b1220; }
.theme3__knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 24px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .25s ease; z-index: 1;
}
.theme3[data-pref="system"] .theme3__knob { transform: translateX(26px); }
.theme3[data-pref="dark"] .theme3__knob { transform: translateX(52px); }

/* motion switch (reuses the theme-switch shell; pulse = on, pause = off) */
.motion-switch__ic--on { left: 7px; }
.motion-switch__ic--off { right: 7px; }
html[data-motion="off"] #motionToggle .theme-switch__knob { transform: translateX(28px); }

/* hover/focus tooltip for the header switches */
.has-tip { position: relative; }
.has-tip::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  font: 600 .72rem/1 "Inter", sans-serif; color: #fff; background: #0b1220;
  text-transform: none; letter-spacing: normal;
  border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 130;
}
.has-tip::before {
  content: ""; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: #0b1220;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 131;
}
.has-tip:hover::after, .has-tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.has-tip:hover::before, .has-tip:focus-visible::before { opacity: 1; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(16,185,129,.16), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 84px 0 92px; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--tag); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
.lead { margin-top: 20px; font-size: 1.12rem; color: var(--slate); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 500; }

/* hero floating art */
.hero__art { position: relative; height: 380px; }
.card-float {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  animation: float 6s ease-in-out infinite;
}
.card-float--1 { top: 10px; right: 0; width: 220px; display: flex; gap: 18px; }
.card-float--2 { bottom: 20px; left: 0; width: 240px; animation-delay: .8s; }
.card-float--3 { top: 165px; right: 40px; display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; color: var(--tag); animation-delay: 1.6s; }
.kpi { display: flex; flex-direction: column; }
.kpi__num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.5rem; }
.kpi__lbl { font-size: .72rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 6px 6px 0 0; }
.card-float__cap { display: block; margin-top: 10px; font-size: .76rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 46rem; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.section__sub { margin-top: 14px; color: var(--slate); font-size: 1.05rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tag); margin-bottom: 14px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* problem cards */
.prob { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.prob h3 { font-size: 1.15rem; margin-bottom: 10px; }
.prob p { color: var(--slate); }

/* feature cards */
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(16,185,129,.4); }
.feat__ic { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 12px; background: linear-gradient(120deg, rgba(16,185,129,.14), rgba(14,165,233,.14)); margin-bottom: 16px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feat p { color: var(--slate); font-size: .98rem; }

/* use cases */
.usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.uc-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.uc-group h3 { font-size: 1.1rem; margin-bottom: 18px; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: .9rem; font-weight: 500; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); padding: .5rem .85rem; border-radius: 999px; }
.section--alt .chips li { background: var(--card); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: relative; }
.step__n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-family: "Sora"; font-weight: 800; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2)); margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--slate); }

/* pay per use */
.payper { display: grid; grid-template-columns: 1.3fr .85fr; gap: 28px; align-items: stretch; }
.payper__copy { background: var(--surface); color: #e2e8f0; border-radius: var(--radius); padding: 40px; }
.payper__copy h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 12px 0 14px; }
.payper__copy .tag { color: #6ee7b7; }
.payper__copy p { color: #cbd5e1; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #e2e8f0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(16,185,129,.2); color: #6ee7b7; font-size: .75rem; }
.payper__cta { background: linear-gradient(150deg, rgba(16,185,129,.12), rgba(14,165,233,.12)); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.payper__cta h3 { font-size: 1.35rem; margin-bottom: 10px; }
.payper__cta p { color: var(--slate); margin-bottom: 22px; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--brand-ink), #0c4a6e); color: #fff; }
.cta__inner { text-align: center; padding: 84px 0; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta p { margin: 14px 0 28px; color: #d1fae5; font-size: 1.1rem; }

/* footer */
.footer { background: var(--surface); color: #94a3b8; padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer__brand .brand__name { color: #fff; font-size: 1.25rem; font-family: "Sora"; font-weight: 800; }
.footer__brand p { margin-top: 10px; max-width: 28rem; font-size: .95rem; }
.footer__meta { display: flex; flex-direction: column; gap: 8px; text-align: right; font-size: .92rem; }
.footer__meta a:hover { color: #fff; }
.footer__meta strong { color: #cbd5e1; }
.footer__copy { color: #64748b; }

/* benefits / trust band — contained rounded card */
.benefits { margin-top: 72px; background: var(--surface); color: #cbd5e1; border: 1px solid var(--line); border-radius: 16px; padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; box-shadow: var(--shadow-sm); }
.benefits__lead { color: #93a4bb; font-weight: 600; font-size: .92rem; }
.benefits__items { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .92rem; }

/* ── Plans ───────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1060px; margin: 0 auto; align-items: stretch; }
.plan__remark { font-size: .76rem; color: var(--muted); line-height: 1.45; margin: 0 0 18px; }
.plan__remark sup { color: var(--brand); }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.plan--featured { border-color: rgba(16,185,129,.5); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -12px; right: 24px; background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px; }
.plan__name { font-size: 1.35rem; }
.plan__for { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.plan__amount { font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--text); }
.plan__unit { color: var(--muted); font-size: .85rem; }
.plan__feats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 11px; align-content: start; flex: 1 1 auto; }
.plan__feats li { position: relative; padding-left: 26px; color: var(--slate); font-size: .95rem; }
.plan__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan__cta { width: 100%; }
.plans__example { text-align: center; margin: 30px auto 6px; color: var(--ink-2); font-size: 1.02rem; }
.plans__note { text-align: center; color: var(--muted); font-size: .85rem; max-width: 48rem; margin: 0 auto; }

/* ── Gallery / 3D coverflow ──────────────────────────────── */
#exemplos { overflow: hidden; }
.coverflow { position: relative; max-width: 880px; margin: 0 auto; }
.cf-stage { position: relative; height: 340px; perspective: 1500px; }
.cf-slide { position: absolute; top: 0; left: 50%; width: 440px; margin-left: -220px; opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease; will-change: transform; }
.cf-slide img { width: 100%; aspect-ratio: 760 / 480; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; background: #fff; }
.cf-slide figcaption { text-align: center; margin-top: 16px; color: var(--slate); font-size: .92rem; font-weight: 500; opacity: 0; transition: opacity .4s ease; }
.cf-slide.is-active { z-index: 3; }
.cf-slide.is-active figcaption { opacity: 1; }
.cf-slide.is-left, .cf-slide.is-right { z-index: 2; cursor: pointer; }
.cf-nav { position: absolute; top: 130px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 4; }
.cf-nav:hover { border-color: var(--brand); color: var(--brand); }
.cf-nav--prev { left: 0; }
.cf-nav--next { right: 0; }
.cf-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.cf-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--line); cursor: pointer; transition: all .25s ease; }
.cf-dot.is-active { background: var(--brand); width: 22px; border-radius: 4px; }
.gallery__note { text-align: center; margin-top: 18px; color: var(--muted); font-size: .85rem; }

/* use-case "under review" remark */
.uc-remark { margin: 16px 0 0; font-size: .78rem; color: var(--muted); }
.uc-remark sup { color: var(--brand); }

/* "What is OrquestraDados?" tag inside the hero */
.hero__tag { display: inline-block; margin: 22px 0 0; }

/* spacing for relocated blocks */
.sol-tag { text-align: center; margin-bottom: 26px; }
.section__head--mt { margin-top: 76px; }
.payper--inplans { margin-top: 64px; }

/* ── Contact modal ───────────────────────────────────────── */
body.modal-open { overflow: hidden; }
/* gray-out overlay fades in/out symmetrically (.22s both ways) */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11,18,32,.55); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 30px 80px -20px rgba(11,18,32,.5); transform: translateY(10px) scale(.98); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
.modal.is-open .modal__dialog { transform: none; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__x { position: absolute; top: 12px; right: 16px; border: none; background: transparent; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal__x:hover { color: var(--text); }
.modal__dialog h3 { font-size: 1.4rem; }
.modal__sub { color: var(--slate); margin: 8px 0 20px; font-size: .95rem; }
.modal__form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.field textarea { resize: vertical; }
.field__count { justify-self: end; font-size: .72rem; color: var(--muted); }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.modal__success { display: none; text-align: center; padding: 34px 6px; }
.modal.is-sent .modal__body { display: none; }
.modal.is-sent .modal__success { display: block; animation: pop .32s ease; }
.modal__check { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: rgba(16,185,129,.15); color: var(--brand); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; animation: check-pop .45s cubic-bezier(.2,.8,.2,1.3); }
@keyframes check-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.modal__success p { color: var(--ink-2); font-weight: 600; }

/* ── Legal / policy page ─────────────────────────────────── */
.page-legal { background: var(--bg-alt); }
.legal-wrap { padding: 56px 0 80px; }
.legal { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px clamp(24px, 5vw, 48px); box-shadow: var(--shadow-sm); }
.legal__back { display: inline-block; color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 26px; }
.legal__back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.legal__updated { color: var(--muted); font-size: .85rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.18rem; margin: 32px 0 10px; }
.legal p { color: var(--slate); margin-bottom: 12px; }
.legal ul { color: var(--slate); margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal strong { color: var(--text); }

/* ── 404 ─────────────────────────────────────────────────── */
.error404 { min-height: 76vh; display: grid; place-items: center; text-align: center; }
.error404__brand { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.4rem; }
.error404__code { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; margin: 18px 0 4px; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error404__msg { color: var(--slate); margin: 0 0 28px; font-size: 1.1rem; }

/* ── Cookie consent ──────────────────────────────────────── */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 16px; }
.cookie[hidden] { display: none; }
.cookie__inner { max-width: 940px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cookie__text { flex: 1 1 320px; color: var(--slate); font-size: .9rem; }
.cookie__text a { color: var(--brand); text-decoration: underline; cursor: pointer; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-cat { display: grid; margin: 6px 0 22px; }
.cookie-cat__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-cat__row:last-child { border-bottom: 1px solid var(--line); }
.cookie-cat__row strong { font-size: .95rem; }
.cookie-cat__row p { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.cookie-cat__locked { color: var(--brand); font-size: .78rem; font-weight: 600; white-space: nowrap; padding-top: 2px; }
.cookie-cat__sw { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.cookie-cat__sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-cat__sw span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.cookie-cat__sw span::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.cookie-cat__sw input:checked + span { background: var(--brand); }
.cookie-cat__sw input:checked + span::before { transform: translateX(18px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links a:not(.btn) { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero__art { height: 320px; margin-top: 12px; }
  .grid--3 { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .payper { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}
@media (max-width: 640px) {
  .cf-slide { width: 300px; margin-left: -150px; }
  .cf-stage { height: 250px; }
  .cf-nav { top: 96px; }
  .cf-slide.is-left, .cf-slide.is-right { opacity: .3; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .card-float--1 { width: 190px; }
  .card-float--2 { width: 200px; }
  .modal__dialog { padding: 24px; }
  .nav__links { gap: 10px; }
  .cookie__inner { flex-direction: column; align-items: stretch; }
  .cookie__actions .btn { flex: 1; }
}
