/* Hapira landing page (hapira.co). No build step; tokens match the app's palette. */
:root {
  --bg: #ffffff;
  --bg-tint: #f5f7fb;
  --surface: #ffffff;
  --border: #e4e8ef;
  --text: #0f1728;
  --muted: #5b6577;
  --primary: #1f5eff;
  --primary-2: #7a5cff;
  --primary-soft: #eaf0ff;
  --success: #0f8a5f;
  --success-soft: #e3f5ed;
  --danger: #c8322b;
  --ink: #0b1220;
  --wa: #25d366;
  --wa-ink: #073b1f;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 40, .06), 0 1px 3px rgba(15, 23, 40, .06);
  --shadow-lg: 0 30px 80px -20px rgba(31, 60, 140, .35), 0 12px 30px -12px rgba(15, 23, 40, .25);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e15; --bg-tint: #0f141d; --surface: #131a25; --border: #232c3a; --text: #e8ecf3; --muted: #95a0b2;
    --primary: #5b8cff; --primary-2: #a48bff; --primary-soft: #18254a; --success: #3ccf91; --success-soft: #12322a;
    --danger: #ff7a72; --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 12px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 640px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad { background: linear-gradient(100deg, var(--primary) 10%, var(--primary-2) 90%); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; border: 1px solid transparent;
  padding: 11px 18px; font: inherit; font-weight: 620; font-size: .96rem; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .tab:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--primary) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.btn-light { background: #fff; color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 26px -10px rgba(37, 211, 102, .8); }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 520; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .nav-login { color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (prefers-color-scheme: dark) { .nav-logo img, .footer-logo { filter: brightness(0) invert(1); } }

/* ---------- hero */
.hero { position: relative; padding: 64px 0 40px; isolation: isolate; }
.hero-bg { position: absolute; inset: -68px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb-1 { width: 560px; height: 560px; left: -140px; top: -120px; background: radial-gradient(circle, #8fb0ff, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 520px; height: 520px; right: -160px; top: 40px; background: radial-gradient(circle, #c3b2ff, transparent 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { .orb { opacity: .28; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }
.grid-lines { position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%); }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 940px; letter-spacing: -.035em; }
.hero .lead { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: .86rem;
  font-weight: 560; color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { font-size: .88rem; color: var(--muted); }

.hero-shot-wrap { position: relative; margin-top: 56px; perspective: 1800px; }
.hero-shot { --tilt: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-lg); transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt) * 14deg)) scale(calc(1 - var(--tilt) * .04)); will-change: transform; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--bg-tint);
  border-bottom: 1px solid var(--border); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin: 0 auto; transform: translateX(-24px); font-size: .78rem; color: var(--muted); background: var(--surface);
  padding: 3px 14px; border-radius: 7px; border: 1px solid var(--border); }

.float-card { position: absolute; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 16px; font-size: .86rem; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.float-ticket { width: 230px; left: -10px; bottom: 12%; }
.float-stat { width: 220px; right: -10px; top: 18%; animation-delay: -3s; }
.ft-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ft-tag { font-size: .72rem; font-weight: 650; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; }
.ft-route { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ft-route b { font-size: 1.35rem; display: block; letter-spacing: -.02em; } .ft-route small { color: var(--muted); }
.ft-route svg { width: 26px; height: 26px; color: var(--muted); }
.ft-row { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px dashed var(--border); color: var(--muted); }
.ft-row b { color: var(--text); }
.ft-profit b { color: var(--success); }
.float-stat small { color: var(--muted); } .float-stat b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.float-stat .up { color: var(--success); font-size: .8rem; font-weight: 600; }
.spark { width: 100%; height: 34px; margin-top: 8px; color: var(--primary); }

/* ---------- marquee */
.marquee { padding: 34px 0 10px; overflow: hidden; }
.marquee-label { text-align: center; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 14px; margin: 0; padding: 0 7px; list-style: none; }
.marquee li { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .92rem; color: var(--muted); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 52px; }
.section-head .lead { text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.eyebrow-light { color: #9db8ff; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
  transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* before / after */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ba-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ba-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ba-before { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.ba-before .x { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: .7rem;
  background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.ba-card h3 { display: flex; gap: 10px; align-items: center; }
.ba-card .check { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; font-size: .85rem;
  background: var(--success-soft); color: var(--success); }

/* showcase */
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: fit-content; margin-inline: auto; }
.tab { position: relative; overflow: hidden; border: 0; background: none; padding: 9px 16px; border-radius: 10px; font: inherit;
  font-size: .92rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--primary-soft); color: var(--primary); }
.tab-progress { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; opacity: 0; }
.is-playing .tab.is-active .tab-progress { opacity: .6; animation: progress var(--tab-interval, 6s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.showcase-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.panel { margin: 0; }
.panel.is-active img { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: scale(1.01); } }
.panel figcaption { padding: 14px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .94rem; text-align: center; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.bento-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); pointer-events: none;
  transition: transform .5s; }
.bento-card:hover::after { transform: translate(-30px, -30px) scale(1.2); }
.b-wide { grid-column: span 2; }
.b-tall { grid-row: span 2; display: flex; flex-direction: column; }
.b-new { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.hr-table .hr-head { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg-tint); }
.hr-table .hr-head b { font-weight: 600; }
.hr-table span:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.perf { flex: 1; max-width: 90px; height: 6px; border-radius: 99px; background: var(--border); position: relative; overflow: hidden; }
.perf::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--success)); }
.hr-leave { margin-top: 14px; grid-template-columns: 1fr 1fr; }
.b-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft);
  color: var(--primary); margin-bottom: 6px; }
.b-icon svg { width: 22px; height: 22px; }
.mini-table { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: .86rem; }
.mini-table div { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.mini-table div:first-child { border-top: 0; }
.mini-table span:nth-child(2) { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 86px; margin-top: auto; padding-top: 10px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(to top, var(--primary), color-mix(in srgb, var(--primary-2) 70%, transparent)); opacity: .85;
  transform-origin: bottom; }
.reveal.is-in .bars i { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.bars i:nth-child(n) { animation-delay: calc(var(--h) * 4ms); }
@keyframes grow { from { transform: scaleY(0); } }
.owe { display: grid; gap: 8px; margin-top: auto; }
.owe div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--bg-tint); }
.owe small { color: var(--muted); }
.b-dark { background: linear-gradient(150deg, #0f1a33, #1b1446); color: #dfe6f5; border-color: transparent; }
.b-dark .b-icon { background: rgba(255,255,255,.1); color: #fff; }
.b-dark h3 { color: #fff; }
/* Full-width banner closing the grid: icon | text | role chips. */
.b-dark { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: center; }
.b-dark .b-icon { grid-row: span 2; margin: 0; }
.b-dark .roles { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.roles span { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }

/* calculator */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.calc-copy { display: flex; flex-direction: column; gap: 14px; }
.range-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-top: 12px; }
.range-label output { font-size: 1.25rem; font-weight: 750; color: var(--primary); font-variant-numeric: tabular-nums; }
input[type=range] { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--primary) var(--fill), var(--border) var(--fill)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 3px solid var(--primary); box-shadow: 0 4px 12px rgba(31, 94, 255, .35); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.calc-result { padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px; }
.calc-big { display: flex; flex-direction: column; padding-bottom: 10px; }
.calc-big b { font-size: clamp(3.4rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calc-big span { color: var(--muted); }
.calc-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.calc-row span { color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 30px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--success); font-weight: 800; }
.plan-price b { font-size: 2.8rem; letter-spacing: -.04em; }
.plan-price span { color: var(--muted); }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 70%, var(--surface)), var(--surface) 45%); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }

/* self-hosted */
.section-dark { background: radial-gradient(ellipse at 10% 0%, #1d2c63 0%, transparent 55%), radial-gradient(ellipse at 100% 100%, #2c1a5c, transparent 50%), #0b1020;
  color: #c9d2e3; }
.section-dark h2 { color: #fff; margin: 14px 0; }
.section-dark .lead { color: #a8b3c7; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sh-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.sh-list li { padding-left: 28px; position: relative; }
.sh-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, #5b8cff, #a48bff); }
.sh-list b { color: #fff; }
.sh-note { color: #8e9ab0; }
.sh-side { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 22px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); }
.sh-prices { display: grid; gap: 8px; }
.sh-prices div { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); }
.sh-prices b { color: #fff; font-size: 1.3rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 6px; }
.cmp th, .cmp td { padding: 9px 6px; border-top: 1px solid rgba(255,255,255,.08); text-align: left; }
.cmp thead th { color: #fff; border-top: 0; }
.cmp tbody th { color: #8e9ab0; font-weight: 500; }

/* faq */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 640; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px;
  background: var(--primary); transition: transform .25s; }
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon::after { transform: rotate(0); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.contact-points { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 10px; }
.contact-points li { display: flex; gap: 10px; }
.contact-points li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--success-soft); color: var(--success); font-size: .75rem; font-weight: 800; }
.wa-direct { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; width: fit-content;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.wa-direct svg { width: 28px; height: 28px; color: var(--wa); }
.contact-form { padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.contact-form input:not([type=radio]), .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.contact-form textarea { resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg legend { font-size: .9rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 11px; border: 1px solid var(--border); cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .2s; }
.seg input:checked + span { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.f-error { color: var(--danger); font-size: .9rem; font-weight: 600; }
.f-foot { text-align: center; }

/* footer + floating WhatsApp */
.footer { padding: 44px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; align-items: center; }
.footer-logo { height: 26px; width: auto; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .92rem; } .footer-links a:hover { color: var(--text); }
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid;
  place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

/* ---------- responsive */
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-tall { grid-row: auto; }
  .calc, .sh-grid, .contact { grid-template-columns: 1fr; gap: 36px; }
  .contact-copy { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .float-ticket { left: 8px; bottom: -40px; } .float-stat { right: 8px; top: -30px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 4px; font-size: 1.02rem; }
  .nav-links .btn { margin-top: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding-top: 36px; }
  .hero-cta { flex-direction: column; width: 100%; } .hero-cta .btn { width: 100%; }
  .float-card { display: none; }
  .hero-shot-wrap { margin-top: 36px; }
  .ba-grid, .bento, .f-row { grid-template-columns: 1fr; }
  .b-wide { grid-column: auto; }
  .b-dark { display: flex; }
  .b-dark .b-icon { margin-bottom: 6px; } .b-dark .roles { margin-top: 6px; }
  .mini-table div { grid-template-columns: 1fr auto; } .mini-table span:nth-child(2) { display: none; }
  .hr-table div { grid-template-columns: 1fr auto auto; } .hr-table span:nth-child(2) { display: flex; } .perf { display: none; }
  .hr-leave { grid-template-columns: 1fr; }
  .b-new { position: static; align-self: flex-start; margin-bottom: 10px; }
  .tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .tab { flex: none; }
  .seg { grid-template-columns: 1fr; }
  .contact-form, .calc-result, .plan, .sh-side { padding: 22px; }
  .browser-bar span { display: none; }
}

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center; padding: 24px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound p:last-child { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
