/* ==========================================================================
   SMS-Patrol — design system
   Self-contained: no Bootstrap, no Font Awesome, no web fonts.
   Keeping the page dependency-free is deliberate — Core Web Vitals are a
   ranking signal and every removed request helps LCP.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --brand-50:  #ecfdf3;
    --brand-100: #d1fadf;
    --brand-200: #a6f4c5;
    --brand-300: #6ce9a6;
    --brand-400: #32d583;
    --brand-500: #12b76a;
    --brand-600: #039855;
    --brand-700: #027a48;
    --brand-800: #05603a;
    --brand-900: #054f31;

    --ink-900: #0b1220;
    --ink-800: #131c2e;
    --ink-700: #1f2937;
    --ink-600: #374151;
    --ink-500: #4b5563;
    --ink-400: #6b7280;
    --ink-300: #9aa3af;
    --ink-200: #d5d9e0;
    --ink-100: #e8ebf0;
    --ink-50:  #f5f7fa;
    --white:   #ffffff;

    --amber: #f5a524;
    --red:   #e5484d;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(11, 18, 32, .06);
    --shadow-sm: 0 2px 8px rgba(11, 18, 32, .06);
    --shadow:    0 8px 24px rgba(11, 18, 32, .08);
    --shadow-lg: 0 20px 50px rgba(11, 18, 32, .14);
    --shadow-brand: 0 12px 28px rgba(3, 152, 85, .28);

    --container: 1180px;
    --gutter: 20px;
    --header-h: 76px;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-600);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-radius: inherit; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    color: var(--ink-900);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
h4 { font-size: 1.17rem; }
h5 { font-size: 1.04rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong, b { color: var(--ink-800); font-weight: 700; }
small { font-size: .875em; }

hr { border: 0; border-top: 1px solid var(--ink-100); margin: 40px 0; }

::selection { background: var(--brand-200); color: var(--ink-900); }

:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    background: var(--ink-900); color: #fff; padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { flex: none; display: inline-block; vertical-align: middle; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--mid    { max-width: 980px; }

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 68px) 0; }
.section--alt   { background: var(--ink-50); }
.section--brand-soft {
    background: linear-gradient(180deg, var(--brand-50), var(--white));
}
.section--dark {
    background: radial-gradient(1200px 600px at 15% -10%, #16283f 0%, transparent 60%),
                linear-gradient(160deg, var(--ink-900), #0e1a2b);
    color: #cbd5e1;
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark strong { color: #fff; }
.section--dark a { color: var(--brand-300); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.stack > * + * { margin-top: 18px; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; } .mb-4 { margin-bottom: 40px; }

@media (max-width: 900px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .split--reverse > *:first-child { order: 0; }
}
@media (max-width: 620px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand-700);
    background: var(--brand-50); border: 1px solid var(--brand-100);
    padding: 7px 14px; border-radius: var(--radius-pill);
    margin-bottom: 18px;
}
.section--dark .eyebrow {
    color: var(--brand-300);
    background: rgba(18, 183, 106, .12);
    border-color: rgba(18, 183, 106, .3);
}

.lead {
    font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-500);
}
.section--dark .lead { color: #b6c2d2; }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p:last-child { margin-bottom: 0; }

.muted { color: var(--ink-400); }
.brand-text { color: var(--brand-600); }
.underline-brand {
    background: linear-gradient(transparent 62%, var(--brand-200) 62%);
    padding: 0 .1em;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit; font-weight: 700; font-size: 1rem;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
                background-color .18s var(--ease), color .18s var(--ease),
                border-color .18s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-700); color: #fff; }

.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-800); color: #fff; }

.btn--ghost {
    background: var(--white); color: var(--ink-800); border-color: var(--ink-200);
    box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-700); }

.btn--outline-light {
    background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .4);
}
.btn--outline-light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.btn-row--center { justify-content: center; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 7px; font-weight: 700;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
    border-bottom-color: var(--ink-100);
    box-shadow: 0 4px 20px rgba(11, 18, 32, .06);
}
.site-header__inner {
    display: flex; align-items: center; gap: 18px;
    min-height: var(--header-h);
}
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { max-height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav__list {
    display: flex; align-items: center; gap: 2px;
    list-style: none; margin: 0; padding: 0;
}
.nav__list > li { margin: 0; position: relative; }
.nav__link {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 13px;
    font-size: .95rem; font-weight: 600; color: var(--ink-700);
    border-radius: var(--radius-sm);
    background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav__link[aria-current="page"] { color: var(--brand-700); }
.nav__link .icon { transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__panel {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: min(560px, 88vw);
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item.is-open .nav__panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav__panel a {
    display: block; padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--ink-800); font-weight: 650; font-size: .93rem; line-height: 1.35;
}
.nav__panel a span {
    display: block; font-weight: 500; font-size: .8rem; color: var(--ink-400);
    margin-top: 2px;
}
.nav__panel a:hover { background: var(--brand-50); color: var(--brand-700); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 700; font-size: .92rem; color: var(--ink-700);
}
.header-phone:hover { color: var(--brand-700); }

.nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none;
    background: var(--white); border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm); color: var(--ink-800); cursor: pointer;
}

@media (max-width: 1120px) {
    .header-phone { display: none; }
}
@media (max-width: 1023px) {
    .nav-toggle { display: inline-flex; order: 3; }
    .header-cta { order: 2; margin-left: auto; }
    .nav {
        order: 4; margin: 0;
        flex-basis: 100%;
        max-height: 0; overflow: hidden;
        transition: max-height .3s var(--ease);
    }
    .nav.is-open { max-height: 78vh; overflow-y: auto; }
    .nav__list { flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
    .nav__link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
    .nav__panel {
        position: static; transform: none; width: 100%;
        opacity: 1; visibility: visible; pointer-events: auto;
        box-shadow: none; border: 0; border-left: 2px solid var(--brand-100);
        border-radius: 0; margin: 0 0 8px 12px; padding: 0 0 0 8px;
        display: none; grid-template-columns: 1fr;
    }
    .nav__item.is-open .nav__panel { display: grid; transform: none; }
    .header-cta .btn { padding: 11px 18px; font-size: .93rem; }
}
@media (max-width: 420px) {
    .site-logo img { max-height: 38px; }
    .header-cta .btn { padding: 10px 14px; font-size: .86rem; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(900px 500px at 80% 0%, #123a2a 0%, transparent 55%),
                linear-gradient(155deg, var(--ink-900) 0%, #0d1b2a 55%, #0b1220 100%);
    color: #c7d2e0;
    padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 100%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__lead {
    font-size: clamp(1.06rem, 1rem + .5vw, 1.32rem);
    color: #b9c6d6; max-width: 620px; margin-bottom: 30px;
}
.hero__price {
    display: inline-flex; align-items: baseline; gap: 10px;
    background: rgba(18, 183, 106, .12);
    border: 1px solid rgba(18, 183, 106, .35);
    border-radius: var(--radius-pill);
    padding: 9px 20px; margin-bottom: 26px;
    color: #fff; font-weight: 700;
}
.hero__price b { color: var(--brand-300); font-size: 1.15rem; }
.hero__price span { color: #9fb0c4; font-weight: 500; font-size: .9rem; }

.hero__stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px; margin-top: 38px; padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    max-width: 560px;
}
.hero__stats b {
    display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    color: var(--brand-300); line-height: 1.1;
}
.hero__stats span { font-size: .85rem; color: #93a3b8; }

.hero__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .1);
}
.hero__media img { width: 100%; }

.hero-badges {
    display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px;
    font-size: .88rem; color: #9fb0c4;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges .icon { color: var(--brand-400); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                border-color .25s var(--ease);
    height: 100%;
}
.card--hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--brand-200);
}
.card h3, .card h4 { margin-bottom: 10px; }
.card p { font-size: .96rem; color: var(--ink-500); margin-bottom: 0; }
.card__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand-600);
    margin-bottom: 18px;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.card--hover:hover .card__icon { background: var(--brand-600); color: #fff; }

.section--dark .card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}
.section--dark .card p { color: #a9b7c7; }
.section--dark .card__icon { background: rgba(18, 183, 106, .14); color: var(--brand-300); }

.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card--link .card__more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 16px; font-weight: 700; color: var(--brand-700); font-size: .93rem;
}

/* Numbered step cards */
.step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
    height: 100%;
}
.step__num {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--brand-600); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem; margin-bottom: 18px;
    box-shadow: var(--shadow-brand);
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--ink-500); margin: 0; }

/* Feature list with ticks */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
    position: relative; padding-left: 32px; margin-bottom: 12px;
    font-size: .98rem;
}
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .28em;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23039855' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks--2col { columns: 2; column-gap: 32px; }
.section--dark .ticks li::before { background-color: rgba(18, 183, 106, .18); }
@media (max-width: 620px) { .ticks--2col { columns: 1; } }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat {
    text-align: center; padding: 26px 18px;
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--radius);
}
.stat b {
    display: block; font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem);
    color: var(--brand-600); line-height: 1.1; margin-bottom: 4px;
}
.stat span { font-size: .9rem; color: var(--ink-400); }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   9. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px; align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
    border-color: var(--brand-500);
    box-shadow: var(--shadow-lg);
    border-width: 2px;
}
.plan__tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--brand-600); color: #fff;
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 16px; border-radius: var(--radius-pill);
    white-space: nowrap; box-shadow: var(--shadow-brand);
}
.plan__name { font-size: 1.2rem; margin-bottom: 4px; }
.plan__strap { font-size: .93rem; color: var(--ink-400); margin-bottom: 22px; min-height: 44px; }
.plan__price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.plan__price b {
    font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem); color: var(--ink-900);
    line-height: 1; letter-spacing: -.03em; font-weight: 800;
}
.plan__price span { color: var(--ink-400); font-size: .95rem; padding-bottom: 6px; }
.plan__guards {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 700; color: var(--brand-700); background: var(--brand-50);
    border-radius: var(--radius-pill); padding: 7px 14px; font-size: .9rem;
    margin-bottom: 22px;
}
.plan__list { list-style: none; padding: 0; margin: 0 0 26px; }
.plan__list li {
    position: relative; padding-left: 28px; font-size: .94rem; margin-bottom: 10px;
    color: var(--ink-600);
}
.plan__list li::before {
    content: ""; position: absolute; left: 0; top: .3em;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23039855' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__cta { margin-top: auto; }

.price-note {
    font-size: .88rem; color: var(--ink-400); text-align: center; margin-top: 22px;
}

/* Comparison table */
.table-wrap {
    overflow-x: auto; border: 1px solid var(--ink-100);
    border-radius: var(--radius); background: #fff;
    -webkit-overflow-scrolling: touch;
}
table.tbl { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
table.tbl th, table.tbl td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--ink-100); }
table.tbl thead th {
    background: var(--ink-50); color: var(--ink-800); font-weight: 800;
    font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td .icon { color: var(--brand-600); }
table.tbl td.no .icon { color: var(--ink-300); }
table.tbl tbody tr:hover { background: var(--brand-50); }

/* --------------------------------------------------------------------------
   10. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.acc {
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.acc.is-open { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.acc__btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 22px;
    background: none; border: 0; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--ink-900);
    text-align: left; line-height: 1.4;
}
.acc__btn:hover { color: var(--brand-700); }
.acc__btn .icon { color: var(--brand-600); transition: transform .25s var(--ease); }
.acc.is-open .acc__btn .icon { transform: rotate(45deg); }
.acc__panel {
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
}
.acc__inner { padding: 0 22px 22px; color: var(--ink-500); font-size: .98rem; }
.acc__inner p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Testimonials & logos
   -------------------------------------------------------------------------- */
.quote {
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--radius); padding: 28px;
    display: flex; flex-direction: column; height: 100%;
}
.quote__stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 14px; }
.quote__stars .icon { fill: currentColor; stroke: none; }
.quote p { font-size: 1rem; color: var(--ink-600); line-height: 1.7; }
.quote__by { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ink-100); }
.quote__by b { display: block; color: var(--ink-900); }
.quote__by span { font-size: .86rem; color: var(--ink-400); }

/* Credibility bar — capability claims we can stand behind, rather than
   borrowed logos. */
.trust-bar__lead {
    max-width: 900px; margin: 0 auto 28px; text-align: center;
    font-size: 1rem; color: var(--ink-500); line-height: 1.65;
}
.trust-bar__lead .icon { color: var(--brand-600); margin-right: 6px; }
.trust-bar__lead strong { color: var(--ink-900); }

.trust-bar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.trust-bar__item {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--radius); padding: 20px;
}
.trust-bar__item > .icon { color: var(--brand-600); margin-top: 2px; }
.trust-bar__item b {
    display: block; color: var(--ink-900); font-size: .98rem; margin-bottom: 3px;
}
.trust-bar__item span { font-size: .87rem; color: var(--ink-400); line-height: 1.5; }

@media (max-width: 980px) { .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-bar { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   12. Page header (inner pages) & breadcrumbs
   -------------------------------------------------------------------------- */
.page-head {
    background: linear-gradient(160deg, var(--ink-900), #101d2e);
    color: #b9c6d6;
    padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 64px);
    position: relative; overflow: hidden;
}
.page-head::after {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 183, 106, .22), transparent 65%);
}
.page-head__inner { position: relative; z-index: 2; max-width: 780px; }
.page-head h1 { color: #fff; margin-bottom: 16px; }
.page-head p { color: #b9c6d6; font-size: clamp(1rem, .96rem + .35vw, 1.15rem); margin-bottom: 0; }

.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    list-style: none; padding: 0; margin: 0 0 18px;
    font-size: .85rem; color: #8c9bad;
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: #4b5b6e; }
.crumbs a { color: #b9c6d6; }
.crumbs a:hover { color: var(--brand-300); }
.crumbs [aria-current] { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label {
    display: block; font-weight: 700; font-size: .9rem;
    color: var(--ink-800); margin-bottom: 7px;
}
.field .req { color: var(--red); }
.input, .field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 1rem;
    padding: 13px 16px;
    color: var(--ink-800); background: var(--white);
    border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 0; border-color: var(--brand-500);
    box-shadow: 0 0 0 4px var(--brand-50);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; top: -9999px; }

.alert {
    padding: 14px 18px; border-radius: var(--radius-sm);
    font-size: .94rem; margin-bottom: 18px; border: 1px solid transparent;
}
.alert--ok  { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.alert--err { background: #fef2f2; border-color: #fecaca; color: #b42318; }
.is-hidden { display: none !important; }

.spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
    animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   14. Modal
   -------------------------------------------------------------------------- */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(11, 18, 32, .62);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), visibility .22s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
    background: #fff; width: 100%; max-width: 640px;
    max-height: 92vh; overflow-y: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(18px) scale(.98);
    transition: transform .22s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 24px 26px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
}
.modal__head h2 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.modal__head p { margin: 0; font-size: .9rem; opacity: .92; }
.modal__close {
    background: rgba(255, 255, 255, .18); border: 0; color: #fff;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none;
    display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: rgba(255, 255, 255, .32); }
.modal__body { padding: 26px; }

body.modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--brand-800), var(--brand-600) 60%, var(--brand-500));
    color: #eafff4; text-align: center;
    padding: clamp(50px, 6vw, 82px) 0;
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 50% 0%, rgba(255, 255, 255, .16), transparent 70%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); }
.cta-band .btn--ghost { background: #fff; border-color: #fff; color: var(--brand-800); }
.cta-band .btn--ghost:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* --------------------------------------------------------------------------
   16. App showcase (tabbed screenshots)
   -------------------------------------------------------------------------- */
.showcase { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

.tabs { display: grid; gap: 10px; }
.tab {
    width: 100%; text-align: left; display: flex; gap: 14px; align-items: flex-start;
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--radius); padding: 18px 20px;
    cursor: pointer; font: inherit;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.tab:hover { border-color: var(--brand-200); }
.tab[aria-selected="true"] {
    border-color: var(--brand-500); background: var(--brand-50);
    box-shadow: var(--shadow-sm);
}
.tab__ico {
    width: 40px; height: 40px; border-radius: 11px; flex: none;
    background: var(--brand-50); color: var(--brand-600);
    display: flex; align-items: center; justify-content: center;
}
.tab[aria-selected="true"] .tab__ico { background: var(--brand-600); color: #fff; }
.tab b { display: block; color: var(--ink-900); font-size: 1.02rem; }
.tab span { display: block; font-size: .9rem; color: var(--ink-500); margin-top: 3px; }

.phone {
    margin-inline: auto; max-width: 320px;
    background: var(--ink-900); padding: 12px;
    border-radius: 38px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-700);
}
.phone img { border-radius: 28px; width: 100%; transition: opacity .2s var(--ease); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink-900); color: #93a3b8;
    padding-top: clamp(48px, 6vw, 76px);
    font-size: .94rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 34px;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 {
    color: #fff; font-size: .82rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #93a3b8; }
.site-footer a:hover { color: var(--brand-300); }
.footer-brand img { max-height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; color: #7d8da2; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand-400); margin-top: 3px; }

.footer-bottom {
    margin-top: clamp(36px, 5vw, 54px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    display: flex; flex-wrap: wrap; gap: 10px 24px;
    align-items: center; justify-content: space-between;
    font-size: .86rem; color: #6f8098;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* --------------------------------------------------------------------------
   18. Misc components
   -------------------------------------------------------------------------- */
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-links a {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--white); border: 1px solid var(--ink-200);
    border-radius: var(--radius-pill); padding: 9px 17px;
    font-size: .92rem; font-weight: 650; color: var(--ink-700);
    transition: all .2s var(--ease);
}
.pill-links a:hover {
    border-color: var(--brand-400); color: var(--brand-700);
    background: var(--brand-50); transform: translateY(-2px);
}
.section--alt .pill-links a { background: #fff; }

.note {
    border-left: 4px solid var(--brand-500);
    background: var(--brand-50);
    padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .96rem;
}

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose table { margin: 1.5em 0; }

.post-meta { font-size: .88rem; color: var(--ink-400); margin-bottom: 22px; }
.post-card__tag {
    display: inline-block; font-size: .74rem; font-weight: 800;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--brand-700); background: var(--brand-50);
    padding: 5px 11px; border-radius: var(--radius-pill); margin-bottom: 12px;
}

.toc {
    background: var(--ink-50); border: 1px solid var(--ink-100);
    border-radius: var(--radius); padding: 22px 26px; margin-bottom: 34px;
}
.toc h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; font-size: .95rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .84rem; font-weight: 650;
    background: var(--white); border: 1px solid var(--ink-200);
    border-radius: var(--radius-pill); padding: 7px 14px; color: var(--ink-600);
}
.badge .icon { color: var(--brand-600); }

.store-links { display: flex; flex-wrap: wrap; gap: 14px; }
.store-links a {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-sm);
    padding: 10px 18px; color: #fff;
}
.store-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.store-links small { display: block; font-size: .7rem; opacity: .8; }
.store-links b { display: block; color: #fff; font-size: .98rem; }

/* --------------------------------------------------------------------------
   19. WhatsApp
   -------------------------------------------------------------------------- */
:root {
    --wa: #25d366;
    --wa-dark: #128c7e;
}

/* Buttons */
.btn--wa {
    background: var(--wa); color: #fff;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .34);
}
.btn--wa:hover { background: var(--wa-dark); color: #fff; }

.btn--wa-outline {
    background: transparent; color: var(--wa-dark); border-color: var(--wa);
}
.btn--wa-outline:hover { background: var(--wa); border-color: var(--wa); color: #fff; }

.section--dark .btn--wa-outline,
.hero .btn--wa-outline,
.cta-band .btn--wa-outline { color: #fff; border-color: rgba(37, 211, 102, .75); }
.section--dark .btn--wa-outline:hover,
.hero .btn--wa-outline:hover,
.cta-band .btn--wa-outline:hover { background: var(--wa); border-color: var(--wa); color: #fff; }

/* Header entry point */
.header-wa {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px; border-radius: var(--radius-pill);
    background: rgba(37, 211, 102, .12);
    border: 1px solid rgba(37, 211, 102, .4);
    color: var(--wa-dark); font-weight: 700; font-size: .9rem;
    transition: all .2s var(--ease);
}
.header-wa:hover { background: var(--wa); border-color: var(--wa); color: #fff; }

/* Below ~520px the header only has room for the icon. */
@media (max-width: 520px) {
    .header-wa { padding: 9px 11px; }
    .header-wa__text { display: none; }
}

/* Floating action button — present on every page */
.wa-float {
    position: fixed;
    right: clamp(14px, 3vw, 26px);
    bottom: clamp(14px, 3vw, 26px);
    z-index: 950;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 22px 14px 18px;
    border-radius: var(--radius-pill);
    background: var(--wa); color: #fff;
    font-weight: 800; font-size: 1rem; line-height: 1;
    box-shadow: 0 14px 34px rgba(37, 211, 102, .42), 0 4px 10px rgba(11, 18, 32, .18);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.wa-float:hover {
    background: var(--wa-dark); color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 44px rgba(37, 211, 102, .5);
}
.wa-float__icon { position: relative; display: inline-flex; }

/* Attention ring — three pulses, then it stops so it is not a permanent tic. */
.wa-float__icon::after {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85);
    animation: wa-pulse 1.8s ease-out 3;
    pointer-events: none;
}
@keyframes wa-pulse {
    0%   { transform: scale(.75); opacity: .9; }
    100% { transform: scale(1.75); opacity: 0; }
}

.wa-float__label { white-space: nowrap; }
.wa-float__sub {
    display: block; font-weight: 500; font-size: .74rem;
    opacity: .92; margin-top: 3px;
}

/* Small screens: circular, so it never covers content */
@media (max-width: 560px) {
    .wa-float { padding: 0; width: 58px; height: 58px; justify-content: center; }
    .wa-float__label { display: none; }
}

/* Contact strip */
.wa-panel {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(37, 211, 102, .12), rgba(18, 140, 126, .08));
    border: 1px solid rgba(37, 211, 102, .35);
    border-radius: var(--radius); padding: 22px 26px;
}
.wa-panel__icon {
    width: 52px; height: 52px; border-radius: 50%; flex: none;
    background: var(--wa); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.wa-panel b { display: block; color: var(--ink-900); font-size: 1.05rem; }
.wa-panel span { font-size: .92rem; color: var(--ink-500); }
.wa-panel .btn { margin-left: auto; }
@media (max-width: 620px) { .wa-panel .btn { margin-left: 0; width: 100%; } }

@media print { .wa-float { display: none !important; } }

/* --------------------------------------------------------------------------
   20. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
    opacity: 1; transform: none;
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .modal, .cta-band, .nav-toggle { display: none !important; }
    body { color: #000; font-size: 12pt; }
    a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
