:root {
  --navy: #0B2350;
  --navy-2: #12306A;
  --navy-ink: #0A1B3D;
  --green: #1F9D48;
  --green-2: #2DB85A;
  --green-deep: #0E6E36;
  --green-tint: #EAF7EE;
  --wa: #25D366;
  --wa-deep: #128C4A;
  --ink: #0F1C33;
  --muted: #55627A;
  --line: #E3E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 35, 80, .06), 0 2px 8px rgba(11, 35, 80, .05);
  --shadow: 0 10px 30px -10px rgba(11, 35, 80, .18), 0 2px 6px rgba(11, 35, 80, .05);
  --shadow-lg: 0 30px 60px -20px rgba(11, 35, 80, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}
@media (max-width: 900px) { :root { --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; 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: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; color: var(--navy); }
p { margin: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: .8em 1.3em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { transition: transform .18s var(--ease); }
.btn:hover > .ic:last-child { transform: translateX(2px); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(31, 157, 72, .7); }
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 12px 26px -10px rgba(31, 157, 72, .8); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 10px 22px -10px rgba(11, 35, 80, .7); }
.btn-wa { background: var(--wa); color: #06301A; }
.btn-wa:hover { background: #1FBE5B; box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .8); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .4); }
.btn-white .ic { color: var(--wa-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11, 35, 80, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.45rem; color: var(--navy); letter-spacing: -0.03em; }
.brand-name em { font-style: normal; color: var(--green); }
.brand-sub { font-size: .68rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--navy); padding: 8px 14px; border-radius: 999px; transition: background-color .15s, color .15s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--green-deep); }
.nav-links a[aria-current="page"] { color: var(--green-deep); background: var(--green-tint); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--navy); }
.nav-phone:hover { color: var(--green-deep); }
.nav-phone .ic { color: var(--green); }
.nav-toggle { display: none; }
@media (max-width: 1100px) { .nav-phone { display: none; } }
@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  }
  .nav-toggle .ic { width: 22px; height: 22px; }
  .nav-toggle .ic-close, .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-close { display: block; }
  .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(11, 35, 80, .35);
    padding: 12px 16px 20px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .nav-panel.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-actions .nav-phone { display: inline-flex; justify-content: center; padding: 12px; border: 1px solid var(--line); border-radius: 999px; }
  .nav-actions .btn { padding: .95em; font-size: 1rem; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(45, 184, 90, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(11, 35, 80, .07), transparent 60%),
    linear-gradient(180deg, #F7FAFD 0%, #FFFFFF 100%);
  padding: 48px 0 110px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 40px; } .hero { padding: 72px 0 130px; } }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.05rem, 5.2vw, 3.45rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--green); }
.lead { margin-top: 20px; font-size: clamp(1.02rem, 1.6vw, 1.17rem); color: var(--muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }
.trust { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.trust .ic { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }
.pillars { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pillars li { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.pillars .ic { color: var(--green); }

.hero-wave {
  position: absolute; left: -5%; right: -5%; bottom: -1px; height: 90px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--green-deep) 55%, var(--green-2) 100%);
  clip-path: ellipse(70% 100% at 50% 100%);
  opacity: .96;
}
.hero-wave::after {
  content: ""; position: absolute; inset: 22px 0 0; background: #fff;
  clip-path: ellipse(72% 100% at 45% 100%);
}

/* Dashboard visual */
.hero-visual { position: relative; padding: 10px 0 30px; max-width: 620px; margin: 0 auto; width: 100%; }
.laptop { position: relative; }
.screen {
  display: grid; grid-template-columns: 26% 1fr;
  background: #fff; border: 10px solid #1A2233; border-bottom-width: 14px; border-radius: 16px 16px 4px 4px;
  aspect-ratio: 16 / 10.4; overflow: hidden; box-shadow: var(--shadow-lg);
  font-size: clamp(6px, 1.25vw, 9.5px);
}
.base { height: 14px; margin: 0 -7%; background: linear-gradient(#D6DBE3, #A9B1BE); border-radius: 0 0 14px 14px; position: relative; }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #8F98A6; border-radius: 0 0 6px 6px; }
.dash-side { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 1.2em .9em; display: flex; flex-direction: column; gap: .35em; }
.dash-side span { padding: .45em .7em; border-radius: 5px; }
.dash-side span.on { background: var(--green); color: #fff; font-weight: 700; }
.dash-logo { display: flex; align-items: center; gap: .5em; font-weight: 800; color: #fff; font-size: 1.25em; margin-bottom: .8em; }
.dash-logo img { width: 1.8em; height: 1.8em; background: #fff; border-radius: 4px; padding: 1px; }
.dash-main { padding: 1.2em; background: #F5F8FC; display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.dash-title { font-weight: 800; font-size: 1.35em; color: var(--navy); display: flex; justify-content: space-between; }
.dash-title i { font-style: normal; font-weight: 500; color: var(--muted); font-size: .8em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.kpi { border-radius: 6px; padding: .7em; color: #fff; display: flex; flex-direction: column; }
.kpi small { opacity: .9; font-size: .85em; }
.kpi b { font-size: 1.3em; white-space: nowrap; }
.k-green { background: linear-gradient(135deg, #1F9D48, #2DB85A); }
.k-blue { background: linear-gradient(135deg, #2F7FE0, #4C9AF0); }
.k-purple { background: linear-gradient(135deg, #7A4FD6, #9670E8); }
.k-orange { background: linear-gradient(135deg, #EE7D1E, #F59E3D); }
.dash-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: .6em; }
.panel { background: #fff; border-radius: 6px; padding: .7em .8em; box-shadow: 0 1px 2px rgba(11, 35, 80, .06); }
.panel small { font-weight: 700; color: var(--navy); display: block; margin-bottom: .4em; }
.spark { width: 100%; height: 6.5em; display: block; }
.donut-panel { display: flex; flex-direction: column; }
.donut {
  margin: auto; width: 6.8em; height: 6.8em; border-radius: 50%;
  background: conic-gradient(#1F9D48 0 72%, #2F7FE0 72% 90%, #7A4FD6 90% 100%);
  display: grid; place-items: center; position: relative;
}
.donut::before { content: ""; position: absolute; inset: 1.1em; background: #fff; border-radius: 50%; }
.donut span { position: relative; font-weight: 800; color: var(--navy); font-size: 1.1em; }
.branches p { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: .6em; margin: .3em 0; color: var(--muted); }
.branches i { height: .55em; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--green-2)); width: var(--w); }

.phone {
  position: absolute; right: -2%; bottom: 0; width: 25%; min-width: 110px;
  background: #fff; border: 6px solid #1A2233; border-radius: 22px; padding: 10px 8px 12px;
  box-shadow: var(--shadow-lg); font-size: clamp(7px, 1.2vw, 9.5px);
  animation: float 6s ease-in-out infinite;
}
.phone-head { background: var(--green); color: #fff; font-weight: 800; border-radius: 10px; padding: .6em .7em; display: flex; align-items: center; gap: .4em; }
.phone-head img { width: 1.5em; height: 1.5em; background: #fff; border-radius: 3px; padding: 1px; }
.phone-hello { padding: .9em .3em .6em; color: var(--muted); display: flex; flex-direction: column; }
.phone-hello b { color: var(--navy); font-size: 1.15em; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.phone-grid span { display: flex; flex-direction: column; align-items: center; gap: .3em; background: var(--bg-soft); border-radius: 8px; padding: .7em .2em; color: var(--navy); font-weight: 600; }
.phone-grid .ic { color: var(--green); width: 1.8em; height: 1.8em; }
.phone-sync { margin-top: .7em; display: flex; align-items: center; gap: .4em; color: var(--green-deep); font-weight: 600; padding: 0 .3em; }
.phone-sync i { width: .7em; height: .7em; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 3px rgba(45, 184, 90, .25); }
.float-badge {
  position: absolute; left: -3%; bottom: 12%; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: .78rem; color: var(--muted); animation: float 7s ease-in-out -2s infinite;
}
.float-badge .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.float-badge span { display: flex; flex-direction: column; line-height: 1.3; }
.float-badge b { color: var(--navy); font-size: .85rem; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .float-badge { display: none; } .phone { right: 0; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 980px) { .section { padding: 96px 0; } }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.kicker::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--green); }
.kicker-light { color: #7EE0A0; }
.kicker-light::before { background: #7EE0A0; }

/* Contact cards */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.c-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.c-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent, var(--navy)); }
.c-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--tint, var(--bg-soft)); color: var(--accent, var(--navy)); margin-bottom: 18px; }
.c-icon .ic { width: 26px; height: 26px; }
.c-card h3 { font-size: 1.15rem; font-weight: 800; }
.c-card p { color: var(--muted); margin: 6px 0 20px; font-size: .95rem; }
.c-card .btn { margin-top: auto; width: 100%; }
.c-whatsapp { --accent: var(--wa-deep); --tint: #E3F9EC; background: linear-gradient(180deg, #F2FCF6, #fff 55%); border-color: #BDEBD0; }
.c-phone { --accent: var(--navy); --tint: #E8EEF8; }
.c-sms { --accent: #2F7FE0; --tint: #EAF2FD; }
.c-mail { --accent: var(--green-deep); --tint: var(--green-tint); }
/* Mobile: compact horizontal cards, big tap targets */
@media (max-width: 559px) {
  .c-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 18px; align-items: center; }
  .c-icon { margin: 0; grid-row: span 2; width: 52px; height: 52px; }
  .c-card p { margin: 2px 0 0; font-size: .9rem; }
  .c-card .btn { grid-column: 1 / -1; margin-top: 14px; padding: 1em; font-size: 1rem; }
}

/* Demo */
.demo { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.demo::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 184, 90, .35), transparent 65%);
}
.demo-grid { position: relative; display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .demo-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.demo-aside h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; }
.demo-aside > p { margin-top: 14px; color: rgba(255, 255, 255, .78); font-size: 1.06rem; }
.demo-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.demo-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.demo-points .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; margin-top: 1px; }
.demo-direct { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 10px; }
.demo-direct span { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); font-weight: 700; }
.demo-direct a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; width: fit-content; }
.demo-direct a:hover { color: #7EE0A0; }
.demo-direct .ic { color: #7EE0A0; }

.form-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
@media (min-width: 640px) { .form-card { padding: 36px; } }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: .87rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field label span { color: #C2410C; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2350' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31, 157, 72, .15); }
.field.invalid input { border-color: #DC2626; background: #FEF6F6; }
.err { color: #B91C1C; font-size: .82rem; margin-top: 5px; min-height: 0; }
.err:empty { display: none; }
.form-note { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.form-error { margin-top: 12px; padding: 10px 14px; background: #FEF2F2; color: #991B1B; border-radius: 10px; font-size: .9rem; }
button[disabled] { opacity: .7; cursor: progress; transform: none !important; }

.form-success { text-align: center; padding: 24px 8px; outline: none; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--green-tint); color: var(--green); animation: pop .4s var(--ease); }
.success-icon .ic { width: 38px; height: 38px; }
.form-success h3 { font-size: 1.6rem; font-weight: 800; }
.form-success > p { color: var(--muted); margin-top: 8px; font-size: 1.05rem; }
.form-success .success-more { margin-top: 26px; font-size: .9rem; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.link-btn { margin-top: 22px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--green-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* Features */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.f-card {
  background: linear-gradient(160deg, var(--tint) 0%, #fff 60%); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.f-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: #fff; box-shadow: 0 10px 20px -10px var(--tone); margin-bottom: 18px; }
.f-icon .ic { width: 28px; height: 28px; }
.f-card h3 { font-size: 1.2rem; font-weight: 800; }
.f-card p { color: var(--muted); margin-top: 8px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; color: #fff; padding: 72px 0;
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 38%, var(--green-deep) 78%, var(--green) 100%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 90% 120%, rgba(126, 224, 160, .35), transparent 70%),
              repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px);
}
.cta-inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; gap: 48px; } }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 1.06rem; max-width: 40em; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .cta-btns .btn { flex: 1 1 100%; } }

/* Footer */
.footer { background: var(--navy-ink); color: rgba(255, 255, 255, .78); padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name em { color: #5ED38A; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .6); display: block; }
.brand-light img { width: 44px; height: 44px; background: #fff; border-radius: 10px; padding: 3px; }
.footer-tag { margin-top: 16px; max-width: 26em; }
.footer-contact h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-contact > a { display: block; text-decoration: none; font-weight: 600; color: #fff; margin-bottom: 6px; width: fit-content; }
.footer-contact > a:hover { color: #7EE0A0; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .18s, transform .18s var(--ease); }
.social a:hover { background: var(--green); transform: translateY(-2px); }
.social .ic { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .87rem; }
.footer-bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Floating actions */
.fab-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 12px 28px -8px rgba(11, 35, 80, .45); transition: transform .2s var(--ease), box-shadow .2s; }
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab-wa { width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; position: relative; }
.fab-wa .ic { width: 32px; height: 32px; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
.fab-contact { gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; }
.fab-contact .ic-close, .fab-contact[aria-expanded="true"] .ic-open { display: none; }
.fab-contact[aria-expanded="true"] .ic-close { display: block; }
.fab-menu { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; min-width: 200px; animation: rise .2s var(--ease); }
.fab-menu[hidden] { display: none; }
.fab-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--navy); }
.fab-menu a:hover { background: var(--bg-soft); }
.fab-menu .ic { color: var(--green); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.mobile-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .fab-contact, .fab-menu { display: none !important; }
  .fab-wrap { bottom: 88px; right: 14px; }
  .fab-wa { width: 54px; height: 54px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(11, 35, 80, .25);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; text-decoration: none; font-size: .72rem; font-weight: 700; color: var(--navy); }
  .mobile-bar a .ic { width: 22px; height: 22px; color: var(--navy); }
  .mobile-bar a:active { background: var(--bg-soft); }
  .mobile-bar .mb-wa .ic { color: var(--wa-deep); }
  .mobile-bar .mb-demo { background: var(--green); color: #fff; }
  .mobile-bar .mb-demo .ic { color: #fff; }
}

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Multi-page components ---------- */
.section.soft { background: var(--bg-soft); }
.hl { color: var(--green); }
.center-btn { display: flex; justify-content: center; margin-top: 36px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; padding: 64px 0 56px;
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(45, 184, 90, .14), transparent 60%),
    linear-gradient(180deg, #F7FAFD 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 980px) { .page-hero { padding: 88px 0 72px; } }
.page-hero h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; max-width: 18em; }
.page-hero .lead { max-width: 40em; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--green-deep) 55%, var(--green-2));
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--navy); background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; transition: border-color .15s, color .15s; }
.jump a:hover { border-color: var(--green); color: var(--green-deep); }

/* Feature cards as links (home) */
a.f-card { display: block; text-decoration: none; color: inherit; }
.f-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--tone); }
.f-more .ic { transition: transform .18s var(--ease); }
a.f-card:hover .f-more .ic { transform: translateX(3px); }

/* Split heading */
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.split-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-deep); text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform .18s var(--ease); }

/* Audience cards */
.audience-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }
.a-card { border-radius: var(--radius); padding: 26px 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.a-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.a-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 16px; }
.a-icon .ic { width: 24px; height: 24px; }
.a-card h3 { font-size: 1.12rem; font-weight: 800; }
.a-card p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* Qualities band (poster-style green strip) */
.qband { background: linear-gradient(100deg, var(--green-deep), var(--green) 60%, #2A9E5A); color: #fff; padding: 40px 0; }
.qband-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .qband-inner { grid-template-columns: 1.1fr 3fr; } }
.qband-lead { display: flex; gap: 14px; align-items: flex-start; }
.qband-lead > .ic { width: 34px; height: 34px; flex: none; }
.qband-lead p { font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.qband-lead p span { display: block; color: #C9F2D6; font-size: .95rem; }
.qband-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .qband-list { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.qband-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 10px; }
@media (min-width: 640px) { .qband-list li + li { border-left: 1px solid rgba(255, 255, 255, .28); } }
.qband-list .ic { width: 30px; height: 30px; margin-bottom: 4px; }
.qband-list b { font-size: .98rem; }
.qband-list span { font-size: .8rem; color: rgba(255, 255, 255, .85); line-height: 1.4; }
@media (max-width: 639px) { .qband-list li:last-child { grid-column: 1 / -1; } }

/* About: story */
.story-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .story-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.story-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }
.story-copy p:not(.kicker) { color: var(--muted); font-size: 1.04rem; margin-top: 14px; }
.replace-card { background: var(--navy); color: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.replace-card::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 184, 90, .4), transparent 65%); }
.replace-card h3 { color: #fff; font-size: 1.1rem; position: relative; }
.replace-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; position: relative; }
.replace-card li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.replace-card li .ic { color: rgba(255, 255, 255, .5); }
.replace-result { position: relative; margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--green); }
.replace-result .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; color: var(--green); }
.replace-result span { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.35; }
.replace-result b { font-size: 1.05rem; }

/* About: mission / vision / values */
.mvv-section { background: var(--bg-soft); }
.mvv-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .mvv-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.mvv { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); border-top: 4px solid var(--green); }
.mvv:nth-child(2) { border-top-color: var(--navy); }
.mvv:nth-child(3) { border-top-color: #2F7FE0; }
.mvv-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green-deep); margin-bottom: 16px; }
.mvv-icon .ic { width: 26px; height: 26px; }
.mvv h3 { font-size: 1.2rem; font-weight: 800; }
.mvv p { color: var(--muted); margin-top: 8px; }

/* About: qualities */
.q-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .q-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .q-grid { grid-template-columns: repeat(5, 1fr); } }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.q-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--green); color: var(--green); }
.q-icon .ic { width: 26px; height: 26px; }
.q-card h3 { font-size: 1.05rem; font-weight: 800; }
.q-card p { color: var(--muted); margin-top: 6px; font-size: .9rem; }

/* Features: module cards */
.module-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .module-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.m-card {
  scroll-margin-top: 96px; border-radius: 22px; padding: 30px 26px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--tint) 0%, #fff 55%); transition: box-shadow .2s var(--ease);
}
.m-card:hover { box-shadow: var(--shadow); }
.m-card:target { box-shadow: 0 0 0 3px var(--tone), var(--shadow); }
.m-head { display: flex; gap: 18px; align-items: flex-start; }
.m-head .f-icon { margin: 0; flex: none; }
.m-head h2 { font-size: 1.35rem; font-weight: 800; }
.m-head p { color: var(--muted); margin-top: 6px; }
.m-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
@media (min-width: 520px) { .m-card ul { grid-template-columns: 1fr 1fr; } }
.m-card li { position: relative; padding-left: 22px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.m-card li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }

.more-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-grid li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.more-grid li > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--green-tint); color: var(--green-deep); }
.more-grid b { display: block; color: var(--navy); }
.more-grid span { color: var(--muted); font-size: .9rem; }

/* Contact page */
.contact-page { padding-top: 48px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; }
.steps b { color: #fff; }
.steps span { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.details-card { display: grid; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px; background: linear-gradient(135deg, #fff 40%, var(--green-tint)); }
@media (min-width: 860px) { .details-card { grid-template-columns: 1fr 2fr; padding: 40px; } }
.details-card h2 { font-size: 1.8rem; font-weight: 800; }
.details-card > div > p:not(.kicker) { color: var(--muted); }
.details-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .details-list { grid-template-columns: 1fr 1fr; } }
.details-list li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.details-list li > .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--navy); color: #fff; }
.details-list span { display: flex; flex-direction: column; font-weight: 700; color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
.details-list small { font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.details-list a { text-decoration: none; }
.details-list a:hover { color: var(--green-deep); }

/* Footer links column */
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .78); width: fit-content; }
.footer-links a:hover { color: #7EE0A0; }

/* ==========================================================================
   Mobile, text-scaling & motion polish
   ========================================================================== */

/* Readable, fluid text. Everything is in rem, so it follows the visitor's own
   text-size setting (Android font scale, iOS/desktop browser zoom). */
body { font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
p, li { text-wrap: pretty; overflow-wrap: break-word; }
.container { padding-left: max(clamp(16px, 4vw, 24px), env(safe-area-inset-left)); padding-right: max(clamp(16px, 4vw, 24px), env(safe-area-inset-right)); }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head { margin-bottom: clamp(28px, 5vw, 40px); }
.lead { font-size: clamp(1.04rem, 1rem + .4vw, 1.17rem); }

/* Never below ~13px for real text */
.kicker { font-size: .8125rem; }
.eyebrow { font-size: .8125rem; letter-spacing: .04em; border-radius: 14px; line-height: 1.45; }
.brand-light .brand-sub { font-size: .8125rem; }
.footer-contact h3, .footer-links h3 { font-size: .8125rem; }
.qband-list span { font-size: .8125rem; }
.details-list small { font-size: .8125rem; }
.form-note { font-size: .8125rem; }

/* Long words / big text never push a card wider than the screen */
.m-head > div, .c-card > *, .a-card, .more-grid li > div, .details-list span { min-width: 0; }
.m-card ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (max-width: 480px) {
  .m-head { flex-direction: column; gap: 14px; }
  .m-card, .f-card, .a-card, .mvv { padding: 24px 20px; }
}

/* Buttons: comfortable 48px targets, wrap instead of overflowing at large text */
.btn { min-height: 44px; }
.btn-lg { min-height: 52px; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .hero-ctas .btn, .cta-btns .btn { min-height: 54px; }
}

/* Tap targets for text links on touch / small screens */
@media (pointer: coarse), (max-width: 767px) {
  .footer-links { gap: 0; }
  .footer-links a, .footer-contact > a { padding: 10px 0; margin: 0; }
  .footer-bottom a, .link-arrow { padding: 10px 0; }
  .demo-direct a { padding: 8px 0; }
  .details-list a { padding: 8px 0; }
  .jump a { padding: 11px 16px; }
  .link-btn { padding: 12px 8px; }
}

/* Form fields: 16px+ so iOS never auto-zooms on focus, 48px tall */
.field input, .field select, .field textarea { font-size: max(16px, 1rem); min-height: 48px; }

/* Touch feedback instead of sticky hover lifts on phones */
@media (hover: none) {
  .btn:hover, .c-card:hover, .f-card:hover, .a-card:hover, .fab:hover, .social a:hover { transform: none; }
  .c-card:hover, .f-card:hover, .a-card:hover, .m-card:hover { box-shadow: var(--shadow-sm); }
}
.btn, .fab, .social a, .mobile-bar a, .nav-toggle, a.f-card, .jump a, .nav-links a { touch-action: manipulation; }
.btn:active, .fab:active, .social a:active, .nav-toggle:active { transform: scale(.97); transition-duration: .08s; }
a.f-card:active, .c-card:active { transform: scale(.985); transition-duration: .08s; }
.mobile-bar a { transition: background-color .15s, transform .12s; }
.mobile-bar a:active { transform: scale(.94); }

/* Header: compact on phones, slides away while reading, returns on scroll-up */
.site-header { transition: transform .3s var(--ease), border-color .2s, box-shadow .2s; padding-top: env(safe-area-inset-top); }
@media (max-width: 900px) {
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.3rem; }
  .site-header.hide { transform: translateY(-100%); }
}

/* Mobile menu backdrop + scroll lock */
@media (max-width: 900px) {
  html.menu-open { overflow: hidden; }
  html.menu-open .site-header { background: #fff; }
  html.menu-open body::before {
    content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(11, 35, 80, .38);
    animation: fade .22s var(--ease);
  }
  .nav-links a { display: flex; justify-content: space-between; align-items: center; }
  .nav-links a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
}
@keyframes fade { from { opacity: 0; } }

/* Bottom contact bar: larger labels, safe-area aware, tucks away while typing */
@media (max-width: 767px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-bar { transition: transform .25s var(--ease); padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); }
  .mobile-bar a { font-size: .8125rem; min-height: 56px; min-width: 0; justify-content: center; line-height: 1.15; text-align: center; }
  .mobile-bar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fab-wrap { bottom: calc(84px + env(safe-area-inset-bottom)); right: max(14px, env(safe-area-inset-right)); transition: transform .25s var(--ease), opacity .2s; }
  html.typing .mobile-bar { transform: translateY(110%); }
  html.typing .fab-wrap { opacity: 0; pointer-events: none; transform: translateY(20px); }
  html.typing body { padding-bottom: 0; }

  /* Hero breathes less on small screens */
  .hero { padding: 32px 0 88px; }
  .hero-wave { height: 60px; }
  .hero-wave::after { inset: 16px 0 0; }
  .page-hero { padding: 40px 0 36px; }
  .cta { padding: 56px 0; }
}
@media (max-width: 380px) {
  .mobile-bar a { font-size: .75rem; }
}

/* Softer, shorter reveal on phones */
@media (max-width: 767px) {
  .js .reveal { transform: translateY(10px); transition-duration: .45s; }
}
.fab-wa::after { animation-iteration-count: 3; }

/* Page-to-page transitions (Chrome, Edge, Safari 18+; others just navigate) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.mobile-bar { view-transition-name: mobile-bar; }
.fab-wrap { view-transition-name: fab; }
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Module cards: bullets line up under the title (not the icon) and flow as
   balanced columns, so a long item never leaves a gap beside it. Columns
   depend on the card's own width, not the screen's. */
.m-card { container-type: inline-size; display: flex; flex-direction: column; }
.m-card ul { display: block; columns: 1; column-gap: 28px; margin: 20px 0 0; }
.m-card li { break-inside: avoid; margin-bottom: 10px; line-height: 1.45; }
.m-card li:last-child { margin-bottom: 0; }
@container (min-width: 380px) {
  .m-card ul { margin-left: 76px; } /* icon 58px + 18px gap */
}
@container (min-width: 520px) {
  .m-card ul { columns: 2; }
}
.m-card li { padding-left: 18px; }
.m-card li::before { left: 0; }
