/* ==========================================================================
   Synflow — design system
   Layout uses CSS logical properties throughout (margin-inline, inset-inline,
   padding-block…), so the Arabic RTL layout is a direct mirror with no
   direction-specific overrides.
   ========================================================================== */

:root {
    /* Brand — taken from the official logo (LOGO/LOGO-01.svg).
       --ink and --accent are the two colours the mark itself uses; the rest
       are derived from them so the whole site stays in one green family. */
    --ink:        #062C1B;  /* logo wordmark — deep forest */
    --ink-soft:   #0A4229;  /* lifted forest, for gradient depth */
    --accent:     #1CAE68;  /* logo gradient emerald */
    --accent-2:   #35D183;  /* lighter emerald, gradient partner */

    --bg:         #FFFFFF;
    --bg-tint:    #F4F9F6;  /* faintest green wash, not a neutral grey */
    --line:       #E1EBE5;
    --text:       #062C1B;
    --text-muted: #5A7266;
    --white:      #FFFFFF;

    /* Accent at low alpha — used for glows, rings and shadows. */
    --accent-a12: rgba(28, 174, 104, .12);
    --accent-a18: rgba(28, 174, 104, .18);
    --accent-a30: rgba(28, 174, 104, .30);

    --radius:     18px;
    --radius-sm:  12px;
    --radius-lg:  28px;

    --shadow-sm:  0 1px 2px rgba(6, 44, 27, .05), 0 4px 12px rgba(6, 44, 27, .04);
    --shadow-md:  0 12px 32px rgba(6, 44, 27, .09);
    --shadow-lg:  0 32px 80px rgba(6, 44, 27, .16);

    --container:  1200px;
    --gutter:     clamp(20px, 5vw, 40px);

    --ease:       cubic-bezier(.22, 1, .36, 1);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[dir="rtl"] {
    --font: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    inset-block-start: -100px;
    inset-inline-start: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--white);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: inset-block-start .2s var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

/* -------------------------------------------------------------- buttons -- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease),
                background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 10px 20px; font-size: .94rem; }
.btn--lg { padding: 17px 32px; font-size: 1.02rem; }

.btn--primary {
    --btn-fg: var(--white);
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 24px var(--accent-a30);
}
.btn--primary:hover { box-shadow: 0 14px 36px rgba(28, 174, 104, .38); }

.btn--ghost {
    --btn-fg: var(--ink);
    background: rgba(6, 44, 27, .04);
    border-color: var(--line);
}
.btn--ghost:hover { background: rgba(6, 44, 27, .07); }

.btn--outline-light {
    --btn-fg: var(--white);
    border-color: rgba(255, 255, 255, .35);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }

.btn__arrow, .btn__icon {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
/* Arrows point "forward" — which flips with the reading direction. */
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(4px); }

/* --------------------------------------------------------------- header -- */

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px) saturate(150%);
    border-block-end: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease),
                background-color .3s var(--ease);
}
.site-header.is-scrolled {
    border-block-end-color: var(--line);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, .9);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

.brand img { height: 34px; width: auto; }

.site-nav {
    display: flex;
    gap: 30px;
    margin-inline-start: auto;
    font-size: .96rem;
    font-weight: 500;
}
.site-nav a {
    position: relative;
    color: var(--text-muted);
    padding-block: 6px;
    transition: color .25s var(--ease);
}
.site-nav a::after {
    content: "";
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: var(--underline-origin, left);
    transition: transform .3s var(--ease);
}
[dir="rtl"] .site-nav a::after { --underline-origin: right; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); background: var(--bg-tint); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 11px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero -- */

.hero {
    position: relative;
    padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
    overflow: hidden;
}

/* Two soft brand-tinted orbs — depth without a heavy background image. */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 55% at 78% 8%,  rgba(53, 209, 131, .13), transparent 70%),
        radial-gradient(50% 50% at 10% 20%, var(--accent-a12), transparent 70%);
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .4;
    mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-block-end: 22px;
    padding: 7px 16px 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--text-muted);
}
.eyebrow__dot {
    width: 7px; height: 7px; flex: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-a18);
}

.hero__title {
    font-size: clamp(2.4rem, 5.6vw, 4.15rem);
    font-weight: 800;
    letter-spacing: -.035em;
}
.hero__title-accent {
    background: linear-gradient(105deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 54ch;
    margin-block-start: 26px;
    font-size: clamp(1.02rem, 1.5vw, 1.16rem);
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-block-start: 36px;
}

.hero__note {
    margin-block-start: 20px;
    font-size: .9rem;
    color: var(--text-muted);
}

.hero__media { position: relative; }

.hero__frame {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-tint);
    aspect-ratio: 6 / 7;
}
.hero__frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Slow drift keeps the hero alive without competing with the copy. */
    animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.1) translate3d(0, -1.5%, 0); }
}

.hero__badge {
    position: absolute;
    inset-block-end: 28px;
    inset-inline-start: -22px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    animation: badge-float 6s ease-in-out infinite;
}
@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
.hero__badge strong { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.hero__badge span   { font-size: .82rem; color: var(--text-muted); }
.hero__badge-pulse {
    width: 11px; height: 11px; flex: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(28, 174, 104, .5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    to { box-shadow: 0 0 0 14px rgba(28, 174, 104, 0); }
}

/* ---------------------------------------------------------------- stats -- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: clamp(48px, 7vw, 84px) 0 0;
    padding: 34px clamp(20px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.stats__item { text-align: center; padding-inline: 12px; }
.stats__item + .stats__item { border-inline-start: 1px solid var(--line); }

.stats__value {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.stats__label {
    margin: 6px 0 0;
    font-size: .88rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------- sections -- */

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tint {
    background: var(--bg-tint);
    border-block: 1px solid var(--line);
}

.section__head {
    max-width: 720px;
    margin-inline: auto;
    margin-block-end: clamp(40px, 5vw, 64px);
    text-align: center;
}
.section__title {
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -.03em;
}
.section__lead {
    margin-block-start: 18px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------------- logo grids -- */

.logo-group + .logo-group { margin-block-start: 52px; }

.logo-group__title {
    margin-block-end: 22px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-muted);
}
/* Arabic has no case distinction and letter-spacing breaks its joins. */
[dir="rtl"] .logo-group__title { text-transform: none; letter-spacing: 0; font-size: .92rem; }

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.logo-grid__item {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.logo-grid__item:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.logo-grid__item img {
    max-height: 40px;
    width: auto;
    filter: grayscale(1);
    opacity: .62;
    transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logo-grid__item:hover img { filter: grayscale(0); opacity: 1; }

/* Shown only when the <img> removed itself because no file was supplied. */
.logo-grid__fallback {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.logo-grid__item:has(img) .logo-grid__fallback { display: none; }

/* ------------------------------------------------------------- services -- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 32px 28px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin-block-end: 22px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent-a12), rgba(53, 209, 131, .13));
    color: var(--accent);
    transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.service-card__icon svg {
    width: 26px; height: 26px;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
    transform: scale(1.06) rotate(-4deg);
}

.service-card__title { font-size: 1.14rem; margin-block-end: 10px; }
.service-card__desc  { font-size: .95rem; color: var(--text-muted); }

/* Radial sheen that fades in on hover. */
.service-card__glow {
    position: absolute;
    inset-block-start: -40%;
    inset-inline-end: -30%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-a18), transparent 65%);
    opacity: 0;
    transition: opacity .45s var(--ease);
    pointer-events: none;
}
.service-card:hover .service-card__glow { opacity: 1; }

/* ------------------------------------------------------------- cta band -- */

.cta-band {
    position: relative;
    padding-block: clamp(56px, 8vw, 92px);
    background: linear-gradient(120deg, var(--ink), var(--ink-soft));
    color: var(--white);
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset-block-start: -50%;
    inset-inline-end: -10%;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-a30), transparent 65%);
    pointer-events: none;
}
.cta-band__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-band__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
.cta-band__lead {
    max-width: 56ch;
    margin-block-start: 14px;
    color: rgba(255, 255, 255, .74);
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
    padding-block: clamp(52px, 7vw, 80px) 0;
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
    font-size: .94rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}
.site-footer__brand img { height: 34px; width: auto; margin-block-end: 18px; }
.site-footer__brand p   { max-width: 34ch; }

.site-footer h3 {
    margin-block-end: 16px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
}
[dir="rtl"] .site-footer h3 { text-transform: none; letter-spacing: 0; font-size: .95rem; }

.site-footer li + li { margin-block-start: 11px; }
.site-footer a { transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--white); }

.site-footer__bar {
    margin-block-start: 52px;
    padding-block: 24px;
    border-block-start: 1px solid rgba(255, 255, 255, .12);
    font-size: .86rem;
}

/* ---------------------------------------------------------- reveal anim -- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Without JS (or with it disabled) content must still be visible. */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .hero__frame img, .hero__badge, .hero__badge-pulse { animation: none; }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1080px) {
    .logo-grid   { grid-template-columns: repeat(4, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { order: -1; max-width: 560px; margin-inline: auto; }
    .hero__frame { aspect-ratio: 16 / 11; }
    .hero__badge { inset-inline-start: 16px; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 8px; }
    .stats__item:nth-child(odd) { border-inline-start: 0; }

    .site-nav {
        position: fixed;
        inset-block-start: 78px;
        inset-inline: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--white);
        border-block-end: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .site-nav a { padding-block: 15px; border-block-end: 1px solid var(--line); font-size: 1.05rem; }
    .site-nav a::after { display: none; }

    .nav-toggle { display: flex; }
    .site-header__actions .btn--sm { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .logo-grid    { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
    .cta-band__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ------------------------------------------------------------ quote form -- */

.quote__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.quote__points {
    display: grid;
    gap: 12px;
    margin-block-start: 28px;
}
.quote__points li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .96rem;
    color: var(--text-muted);
}
.quote__points svg {
    width: 20px; height: 20px; flex: none;
    padding: 3px;
    border-radius: 50%;
    background: var(--accent-a12);
    color: var(--accent);
    fill: none; stroke: currentColor; stroke-width: 2.6;
    stroke-linecap: round; stroke-linejoin: round;
}

.quote__privacy {
    margin-block-start: 28px;
    font-size: .87rem;
    color: var(--text-muted);
}

.quote__panel {
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.quote__trap {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.quote__alert {
    display: grid;
    gap: 3px;
    margin-block-end: 22px;
    padding: 14px 18px;
    border: 1px solid #F0C9C3;
    border-radius: var(--radius-sm);
    background: #FDF0EE;
    color: #8E2B1F;
    font-size: .92rem;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.field { margin-block-end: 18px; }
.field--full { grid-column: 1 / -1; }

.field > label,
.field > legend {
    display: block;
    margin-block-end: 7px;
    font-size: .88rem;
    font-weight: 600;
}

.quote__form input[type=text],
.quote__form input[type=email],
.quote__form input[type=tel],
.quote__form input[type=number],
.quote__form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-tint);
    color: var(--text);
    font: inherit;
    font-size: .96rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.quote__form input:focus,
.quote__form textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-a12);
}
.quote__form textarea { resize: vertical; min-height: 104px; line-height: 1.6; }

.field__error { display: block; margin-block-start: 5px; font-size: .82rem; color: #C0392B; }

/* Service chips — checkboxes styled as toggles. */
.chips { border: 0; padding: 0; margin-block-end: 18px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }

.chip { cursor: pointer; }
.chip input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
}
.chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-tint);
    font-size: .89rem;
    transition: all .2s var(--ease);
}
.chip span:hover { border-color: var(--accent); }
.chip input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.quote__submit { width: 100%; justify-content: center; margin-block-start: 6px; }

.quote__success { text-align: center; padding: 24px 8px; }
.quote__success-icon {
    display: grid;
    place-items: center;
    width: 62px; height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
}
.quote__success-icon svg {
    width: 28px; height: 28px;
    fill: none; stroke: currentColor; stroke-width: 2.6;
    stroke-linecap: round; stroke-linejoin: round;
}
.quote__success h3 { font-size: 1.35rem; margin-block-end: 10px; }
.quote__success p { color: var(--text-muted); }

@media (max-width: 900px) {
    .quote__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .field-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ blog -- */

.section--top-tight { padding-block-start: clamp(24px, 3vw, 40px); }

.section__head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
    margin-inline: 0;
    text-align: start;
}
.section__title--left { text-align: start; }

.blog-hero {
    padding-block: clamp(48px, 7vw, 88px) clamp(24px, 3vw, 40px);
    background:
        radial-gradient(55% 60% at 82% 0%, rgba(53, 209, 131, .13), transparent 70%),
        radial-gradient(45% 50% at 8% 30%, var(--accent-a12), transparent 70%);
}
.blog-hero__title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.035em;
}
.blog-hero__lead {
    max-width: 60ch;
    margin-block-start: 18px;
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    color: var(--text-muted);
}

.blog-empty {
    padding: 72px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* ------------------------------------------------------------ post cards -- */

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

.post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.post-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.post-card > a { display: flex; flex-direction: column; height: 100%; }

.post-card__media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tint);
}
.post-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }

/* Shown when a post has no cover image, so the grid stays even. */
.post-card__placeholder {
    display: block;
    width: 100%; height: 100%;
    background:
        radial-gradient(70% 70% at 25% 20%, rgba(53, 209, 131, .5), transparent 70%),
        linear-gradient(135deg, var(--ink), var(--ink-soft));
}

.post-card__flag {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent);
    font-size: .82rem;
    box-shadow: var(--shadow-sm);
}

.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-block-end: 12px;
    font-size: .82rem;
    color: var(--text-muted);
}
.post-card__dot { opacity: .5; }

.post-card__title {
    font-size: 1.14rem;
    line-height: 1.35;
    margin-block-end: 10px;
}
.post-card__excerpt {
    font-size: .94rem;
    color: var(--text-muted);
    margin-block-end: 18px;
}

.post-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: auto;
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent);
}
.post-card__more .btn__arrow { width: 16px; height: 16px; }
[dir="rtl"] .post-card__more .btn__arrow { transform: scaleX(-1); }
.post-card:hover .post-card__more .btn__arrow { transform: translateX(4px); }
[dir="rtl"] .post-card:hover .post-card__more .btn__arrow { transform: scaleX(-1) translateX(4px); }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-block-start: 48px;
}
.pager__count { font-size: .9rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- article -- */

.article__head { padding-block: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.article__head-inner { max-width: 760px; margin-inline: auto; }

.article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-end: 22px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color .25s var(--ease);
}
.article__back:hover { color: var(--accent); }
.article__back svg {
    width: 17px; height: 17px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .article__back svg { transform: scaleX(-1); }

.article__title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
}
.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-block-start: 18px;
    font-size: .9rem;
    color: var(--text-muted);
}

.article__cover {
    max-width: 900px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.article__cover img { width: 100%; height: auto; }

/* Rendered Markdown. Selectors are scoped to .prose so authored content can
   never restyle the surrounding page. */
.prose {
    max-width: 720px;
    margin-inline: auto;
    padding-block-end: clamp(40px, 6vw, 72px);
    font-size: 1.06rem;
    line-height: 1.8;
}
.prose > * + * { margin-block-start: 1.35em; }

.prose h2 {
    margin-block-start: 2em;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.025em;
}
.prose h3 {
    margin-block-start: 1.7em;
    font-size: 1.25rem;
    font-weight: 700;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose a:hover { color: var(--ink); }

.prose strong { font-weight: 700; color: var(--ink); }

.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-block-start: .5em; }
.prose li::marker { color: var(--accent); }

.prose blockquote {
    margin-inline: 0;
    padding: 4px 0 4px 20px;
    border-inline-start: 3px solid var(--accent);
    color: var(--text-muted);
    font-style: italic;
}
[dir="rtl"] .prose blockquote { padding: 4px 20px 4px 0; }

.prose code {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--bg-tint);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
}
.prose pre {
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #E8F5EE;
    overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; }

.prose img { border-radius: var(--radius-sm); }

.prose hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 2.4em; }

/* Wide tables scroll inside their own box rather than widening the page. */
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    display: block;
    overflow-x: auto;
}
.prose th, .prose td {
    padding: 11px 14px;
    border: 1px solid var(--line);
    text-align: start;
}
.prose th { background: var(--bg-tint); font-weight: 600; }

@media (max-width: 1000px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .post-grid { grid-template-columns: 1fr; }
    .section__head--split { align-items: flex-start; }
}

/* ------------------------------------------------------------------- faq -- */

.faq__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.faq__intro { position: sticky; inset-block-start: 110px; }

.section__lead--left { text-align: start; margin-inline: 0; }

.faq__aside {
    margin-block-start: 32px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-tint);
}
.faq__aside-title { margin-block-end: 14px; font-weight: 600; font-size: .96rem; }

.faq__list {
    border-block-start: 1px solid var(--line);
}

.faq__item { border-block-end: 1px solid var(--line); }

.faq__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-block: 22px;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition: color .25s var(--ease);
}
/* Hide the native disclosure triangle in both engines. */
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

.faq__q:hover { color: var(--accent); }

.faq__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px; height: 30px;
    margin-block-start: 1px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    transition: transform .35s var(--ease), background-color .25s var(--ease),
                border-color .25s var(--ease), color .25s var(--ease);
}
.faq__icon svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
}
.faq__item[open] .faq__icon {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.faq__a { padding-block-end: 24px; }
.faq__a .prose {
    max-width: 62ch;
    margin-inline: 0;
    padding-block-end: 0;
    font-size: .98rem;
    line-height: 1.75;
    color: var(--text-muted);
}
.prose--compact > * + * { margin-block-start: .9em; }

/* Slide the answer open. Applied only when the browser supports animating to
   height:auto — elsewhere the accordion still works, just without the motion. */
@supports (interpolate-size: allow-keywords) {
    .faq__a {
        height: 0;
        overflow: hidden;
        transition: height .35s var(--ease);
    }
    .faq__item[open] .faq__a { height: auto; }
    :root { interpolate-size: allow-keywords; }
}

@media (prefers-reduced-motion: reduce) {
    .faq__a { transition: none; }
    .faq__icon { transition: none; }
}

@media (max-width: 900px) {
    .faq__inner { grid-template-columns: 1fr; }
    .faq__intro { position: static; }
}

/* ----------------------------------------------------------- why synflow -- */

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

.why-card {
    position: relative;
    padding: 30px 28px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.why-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* A hairline of brand colour that draws itself in on hover. */
.why-card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: var(--why-origin, left);
    transition: transform .45s var(--ease);
}
[dir="rtl"] .why-card::before { --why-origin: right; }
.why-card:hover::before { transform: scaleX(1); }

.why-card__icon {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    margin-block-end: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-a12), rgba(53, 209, 131, .13));
    color: var(--accent);
    transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.why-card__icon svg {
    width: 24px; height: 24px;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.why-card:hover .why-card__icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
    transform: scale(1.06);
}

.why-card__metric {
    display: block;
    margin-block-end: 6px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.why-card__title { font-size: 1.14rem; margin-block-end: 10px; }
.why-card__desc  { font-size: .95rem; color: var(--text-muted); }

@media (max-width: 1000px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .why-grid { grid-template-columns: 1fr; }
}
