/*
 * QRCodeMaster site, Q8Digital design language (q8digital.com):
 * lime brand on near-black ink, zinc greys, rounded cards with hairline rings,
 * pill buttons with a brand glow, eyebrow pills, grid and glow backdrops.
 */

:root {
    --brand: #8cc63f;
    --brand-2: #0ea5e9;
    --brand-strong: #4a7311;
    /* brand-coloured text on light backgrounds */
    --ink: #0a0d09;
    --ink-2: #1e211d;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-950: #09090b;
    --ring: rgb(9 9 11 / 0.1);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --font-latin: 'Inter', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif;
    --font-arabic: 'IBM Plex Sans Arabic', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --header-h: 4rem;
    color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--font-latin);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--zinc-700);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html[dir='rtl'] body {
    font-family: var(--font-arabic);
    line-height: 1.75;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--zinc-950);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

html[dir='rtl'] :is(h1, h2, h3) {
    letter-spacing: 0;
    line-height: 1.3;
}

p {
    margin: 0;
    text-wrap: pretty;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: color-mix(in oklab, var(--brand) 40%, transparent);
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Language: both are in the page, one is shown. */
html:not([lang='ar']) .l-ar,
html[lang='ar'] .l-en {
    display: none !important;
}

.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;
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
}

html[dir='rtl'] .flip-rtl {
    transform: scaleX(-1);
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.narrow {
    max-width: 52rem;
}

.center-text {
    text-align: center;
}

.section {
    position: relative;
    isolation: isolate;
    padding-block: 4.5rem;
    overflow: hidden;
}

.section.muted {
    background: var(--zinc-50);
    border-block: 1px solid var(--zinc-100);
}

.dark {
    background: var(--ink);
    color: var(--zinc-300);
    --ring: rgb(255 255 255 / 0.1);
}

.dark :is(h1, h2, h3) {
    color: #fff;
}

.heading {
    max-width: 44rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.heading h2,
.split h2 {
    margin-top: 1rem;
    font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
}

.lead {
    margin-top: 1.1rem;
    font-size: 1.08rem;
    color: var(--zinc-600);
}

.dark .lead {
    color: var(--zinc-400);
}

/* ---------- Backdrops ---------- */

.bg-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    color: var(--zinc-950);
    background-image:
        linear-gradient(to right, color-mix(in oklab, currentColor 7%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in oklab, currentColor 7%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
    pointer-events: none;
}

.dark .bg-grid {
    color: #fff;
}

.glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 45%, transparent), transparent);
    filter: blur(40px);
    pointer-events: none;
}

.glow-a {
    top: -12rem;
    inset-inline-start: 10%;
    width: 48rem;
    height: 32rem;
    max-width: 120vw;
    animation: glow 6s ease-in-out infinite;
}

.glow-b {
    top: 10rem;
    inset-inline-end: -10rem;
    width: 24rem;
    height: 24rem;
    opacity: 0.4;
    background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-2) 40%, transparent), transparent);
}

.glow-c {
    top: 20%;
    inset-inline-end: -8rem;
    width: 28rem;
    height: 28rem;
    opacity: 0.35;
}

@keyframes glow {
    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ---------- Text accents ---------- */

.text-gradient {
    background: linear-gradient(100deg, #5f9a1c, #2f8f5b 55%, #0284c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .text-gradient {
    background: linear-gradient(100deg, var(--brand), color-mix(in oklab, var(--brand) 55%, var(--brand-2)));
    -webkit-background-clip: text;
    background-clip: text;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--brand) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 35%, transparent);
    color: var(--brand-strong);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dark .eyebrow {
    color: var(--brand);
}

html[dir='rtl'] .eyebrow {
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.85rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.25rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-sm {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
}

.btn-lg {
    min-height: 3.25rem;
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--brand);
    color: var(--ink);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 8px 30px -8px var(--brand);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgb(9 9 11 / 0.05);
    color: var(--zinc-950);
    box-shadow: inset 0 0 0 1px rgb(9 9 11 / 0.1);
}

.btn-ghost:hover {
    background: rgb(9 9 11 / 0.09);
}

.dark .btn-ghost {
    background: rgb(255 255 255 / 0.06);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}

.dark .btn-ghost:hover {
    background: rgb(255 255 255 / 0.12);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.actions.center {
    justify-content: center;
}

/* ---------- Cards ---------- */

.card {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--ring);
}

.card.dark,
.dark .card {
    background: rgb(255 255 255 / 0.03);
}

.card.dark {
    background: var(--ink);
}

.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 60%, transparent), 0 20px 60px -24px var(--brand);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgb(255 255 255 / 0.85);
    border-color: rgb(9 9 11 / 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex: none;
}

.logo-mark {
    width: 2rem;
    height: 2rem;
}

.logo-text {
    font-family: var(--font-latin);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--zinc-950);
}

.logo-text span {
    /* Same green as brand/logo-light.svg, readable on white. */
    color: #5e9a1e;
}

.dark .logo-text,
.site-footer .logo-text {
    color: #fff;
}

.dark .logo-text span,
.site-footer .logo-text span {
    color: var(--brand);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
    margin-inline-start: 1rem;
}

.nav-desktop a {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: var(--zinc-700);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-desktop a:hover {
    color: var(--brand-strong);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: auto;
}

.lang-toggle {
    min-width: 2.75rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--zinc-800);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-toggle .l-en {
    font-family: var(--font-arabic);
}

.lang-toggle .l-ar {
    font-family: var(--font-latin);
}

.lang-toggle:hover {
    color: var(--brand-strong);
}

.menu-button {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgb(9 9 11 / 0.05);
    color: var(--zinc-950);
    cursor: pointer;
}

.menu-button .icon {
    width: 1.4rem;
    height: 1.4rem;
}

.hide-xs,
.hide-sm {
    display: none;
}

.mobile-menu {
    border-top: 1px solid rgb(9 9 11 / 0.08);
    padding-block: 0.75rem 1.25rem;
}

.mobile-menu nav {
    display: grid;
    gap: 0.25rem;
}

.mobile-menu nav > a {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    color: var(--zinc-800);
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu nav > a:hover {
    background: rgb(9 9 11 / 0.04);
}

.mobile-menu-actions {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: 2.5rem 4rem;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem);
    line-height: 1.06;
}

html[dir='rtl'] .hero h1 {
    line-height: 1.25;
}

.hero .lead {
    max-width: 36rem;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--zinc-600);
}

.trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.trust .icon,
.checklist .icon {
    width: 1.1rem;
    height: 1.1rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--brand) 22%, transparent);
    color: var(--brand-strong);
    stroke-width: 2.4;
}

.dark .checklist .icon {
    color: var(--brand);
}

.hero-media {
    position: relative;
    max-width: 36rem;
    margin-inline: auto;
    padding-bottom: 2rem;
}

.glow-media {
    inset: 2.5rem;
}

.hero-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -30px rgb(10 13 9 / 0.45), inset 0 0 0 1px var(--ring);
    aspect-ratio: 1400 / 1246;
    object-fit: cover;
}

.phone {
    position: relative;
    padding: 0.45rem;
    border-radius: 2.1rem;
    background: linear-gradient(160deg, #2a2d29, #050605);
    box-shadow: 0 30px 60px -25px rgb(10 13 9 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.phone img {
    width: 100%;
    border-radius: 1.7rem;
    aspect-ratio: 780 / 1256;
    object-fit: cover;
    object-position: top;
}

.phone-hero {
    position: absolute;
    bottom: 0;
    inset-inline-end: -0.5rem;
    width: 36%;
    animation: float 8s ease-in-out infinite;
}

.hero-badge {
    position: absolute;
    top: 1.25rem;
    inset-inline-start: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgb(10 13 9 / 0.78);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.hero-badge .icon {
    color: var(--brand);
}

/* ---------- Stats ---------- */

.stats {
    border-block: 1px solid var(--zinc-100);
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
    display: grid;
    gap: 0.15rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.stat-value {
    font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
    font-weight: 800;
    color: var(--zinc-950);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--zinc-500);
}

/* ---------- Split sections ---------- */

.split {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.rounded-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7), inset 0 0 0 1px var(--ring);
    aspect-ratio: 1344 / 768;
    object-fit: cover;
}

.checklist {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.checklist .icon {
    margin-top: 0.2rem;
}

.dark .checklist li {
    color: var(--zinc-300);
}

.phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 30rem;
    margin-inline: auto;
}

.phone-figure {
    margin: 0;
}

.phone-figure figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--zinc-600);
}

.phone-figure figcaption .icon {
    width: 1rem;
    height: 1rem;
    color: var(--brand-strong);
}

.phone-figure-offset {
    transform: translateY(2.5rem);
}

/* ---------- Features ---------- */

.feature-grid {
    display: grid;
    gap: 1rem;
}

.feature {
    padding: 1.5rem;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: color-mix(in oklab, var(--brand) 14%, transparent);
    color: var(--brand-strong);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 30%, transparent);
}

.feature h3,
.step h3 {
    margin-top: 1.1rem;
    font-size: 1.1rem;
}

.feature p,
.step p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--zinc-600);
}

/* ---------- Use cases ---------- */

.use-grid {
    display: grid;
    gap: 1rem;
}

.use-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 18rem;
    border-radius: var(--radius-lg);
    background: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ring);
}

.use-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.use-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.4) 50%, rgb(0 0 0 / 0.05));
}

.use-card:hover img {
    transform: scale(1.04);
}

.use-card-body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.5rem;
}

.use-card h3 {
    color: #fff;
    font-size: 1.25rem;
}

.use-card p {
    margin-top: 0.35rem;
    color: var(--zinc-300);
    font-size: 0.95rem;
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    gap: 1rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 1.75rem 1.5rem;
}

.step-number {
    position: absolute;
    top: 1.25rem;
    inset-inline-end: 1.5rem;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in oklab, var(--brand) 35%, transparent);
}

/* ---------- FAQ ---------- */

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    color: var(--zinc-950);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: var(--brand-strong);
    transition: transform 0.25s;
}

.faq[open] .faq-icon {
    transform: rotate(45deg);
}

.faq p {
    padding: 0 1.35rem 1.25rem;
    color: var(--zinc-600);
}

/* ---------- CTA band ---------- */

.cta-band {
    padding-block: 1rem 4.5rem;
}

.cta-box {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 3rem 1.25rem;
    border-radius: 2rem;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
}

.cta-box .lead {
    max-width: 34rem;
    margin-inline: auto;
}

.glow-cta {
    top: -10rem;
    left: 50%;
    width: 40rem;
    height: 22rem;
    max-width: 140vw;
    transform: translateX(-50%);
    opacity: 0.8;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: var(--zinc-400);
    padding-top: 3.5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    gap: 2.25rem;
}

.footer-brand p {
    max-width: 22rem;
    margin-top: 1rem;
}

.footer-by {
    display: inline-block;
    margin-top: 1rem;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.footer-by:hover {
    text-decoration: underline;
}

.arrow {
    display: inline-block;
}

.site-footer h2 {
    margin-bottom: 0.9rem;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html[dir='rtl'] .site-footer h2 {
    letter-spacing: 0;
    font-size: 0.95rem;
}

.site-footer ul {
    display: grid;
    gap: 0.55rem;
}

.site-footer ul a {
    text-decoration: none;
}

.site-footer ul a:hover {
    color: #fff;
}

.footer-contact {
    margin-top: 1.25rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    font-size: 0.85rem;
    color: var(--zinc-500);
}

.whatsapp-float {
    position: fixed;
    bottom: 1rem;
    inset-inline-end: 1rem;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 30px -8px rgb(37 211 102 / 0.7);
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

.whatsapp-float .icon {
    width: 1.75rem;
    height: 1.75rem;
}

/* ---------- Contact page ---------- */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: 3rem 1rem;
}

.page-hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
}

.page-hero .lead {
    max-width: 36rem;
    margin-inline: auto;
}

.contact-section {
    padding-top: 2rem;
}

.contact-grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.contact-card {
    padding: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 1.1rem;
}

.field-row {
    display: grid;
    gap: 1.1rem;
}

.field label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--zinc-800);
    font-size: 0.9rem;
    font-weight: 600;
}

.optional {
    color: var(--zinc-500);
    font-weight: 400;
}

.input {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0.85rem;
    background: #fff;
    color: var(--zinc-950);
    box-shadow: inset 0 0 0 1px rgb(9 9 11 / 0.16);
    font: inherit;
    font-size: 1rem;
    transition: box-shadow 0.2s;
}

.input::placeholder {
    color: var(--zinc-400);
}

.input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--brand);
}

textarea.input {
    min-height: 8rem;
    resize: vertical;
}

select.input {
    appearance: none;
    padding-inline-end: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1.1rem;
    background-position: right 0.9rem center;
}

html[dir='rtl'] select.input {
    background-position: left 0.9rem center;
}

.input[aria-invalid='true'] {
    box-shadow: inset 0 0 0 2px #dc2626;
}

html[dir='rtl'] .input[dir='ltr'] {
    text-align: right;
}

.field-error {
    margin-top: 0.4rem;
    color: #b91c1c;
    font-size: 0.875rem;
    font-weight: 500;
}

.field-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: -0.4rem;
    color: var(--zinc-500);
    font-size: 0.875rem;
}

.field-hint.field-error {
    color: #b91c1c;
}

.form-alert {
    padding: 0.9rem 1.1rem;
    border-radius: 0.85rem;
    background: #fef2f2;
    color: #991b1b;
    box-shadow: inset 0 0 0 1px #fecaca;
    font-weight: 500;
}

.form-footer {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.4rem;
}

.form-footer .field-hint {
    margin-top: 0;
}

.form-footer .field-hint .icon {
    width: 1rem;
    height: 1rem;
    color: var(--brand-strong);
}

/* Honeypot */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-success {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    padding-block: 2rem;
    text-align: center;
}

.form-success h2 {
    font-size: 1.75rem;
}

.form-success p {
    max-width: 26rem;
    color: var(--zinc-600);
}

.success-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--brand) 20%, transparent);
    color: var(--brand-strong);
}

.success-icon .icon {
    width: 1.75rem;
    height: 1.75rem;
    stroke-width: 2.4;
}

.contact-side {
    display: grid;
    gap: 1.25rem;
}

.side-card {
    padding: 1.5rem;
}

.side-card h2 {
    font-size: 1.25rem;
}

.side-card > p {
    margin-top: 0.5rem;
}

.side-card > .btn {
    margin-top: 1rem;
}

.side-links {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.side-links a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.side-links a:hover {
    background: rgb(255 255 255 / 0.06);
}

.side-links strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.side-links span span {
    display: block;
    color: var(--zinc-400);
    font-size: 0.9rem;
}

html[dir='rtl'] .side-links span[dir='ltr'] {
    text-align: right;
}

.side-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    background: color-mix(in oklab, var(--brand) 16%, transparent);
    color: var(--brand);
    flex: none;
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js .phone-figure-offset[data-reveal].is-visible {
    transform: translateY(2.5rem);
}

/* ---------- Larger screens ---------- */

@media (min-width: 480px) {
    .hide-xs {
        display: inline-flex;
    }
}

@media (min-width: 640px) {
    .container {
        padding-inline: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .feature-grid,
    .use-grid,
    .field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        padding: 2rem;
    }

    .cta-box {
        padding: 4rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    :root {
        --header-h: 5rem;
    }

    .container {
        padding-inline: 2rem;
    }

    .nav-desktop {
        display: flex;
    }

    .hide-sm {
        display: inline-flex;
    }

    .menu-button,
    .mobile-menu {
        display: none !important;
    }

    .hero {
        padding-block: 4rem 6rem;
    }

    .hero-grid,
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .split-reverse > :first-child {
        order: 0;
    }

    .section {
        padding-block: 6rem;
    }

    .feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .use-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .use-card {
        min-height: 24rem;
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 2rem;
    }

    .page-hero {
        padding-block: 5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Legal pages: dashboard-authored text */
.legal-body {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    line-height: 1.75;
    color: var(--text, #3f3f46);
}

.legal-body h2,
.legal-body h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--heading, #09090b);
}

.legal-body > :first-child,
.legal-body > :first-child > :first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
    margin: 0 0 1rem;
}

.legal-body ul,
.legal-body ol {
    padding-inline-start: 1.25rem;
}

.legal-body li {
    margin-bottom: 0.4rem;
}

.legal-body a {
    color: var(--brand-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}
