/*
 * نشرخانة — marketing site.
 *
 * Deliberately dark-only. The product is a dark app, the hero is a lit WebGL
 * scene, and a light variant of that scene looks washed out rather than bright.
 * Pinning one theme is the honest choice over shipping a second-rate second one.
 */

/* --- Type -------------------------------------------------------------- */

@font-face {
    font-family: 'Plex Arabic';
    src: url('fonts/plex-ar-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plex Arabic';
    src: url('fonts/plex-ar-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plex Arabic';
    src: url('fonts/plex-ar-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plex Arabic';
    src: url('fonts/plex-ar-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* Latin is a separate face so Arabic text never falls back mid-sentence when a
   product name or a price is embedded in it. */
@font-face {
    font-family: 'Plex Latin';
    src: url('fonts/plex-latin-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plex Latin';
    src: url('fonts/plex-latin-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plex Latin';
    src: url('fonts/plex-latin-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plex Latin';
    src: url('fonts/plex-latin-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* --- Tokens ------------------------------------------------------------ */

:root {
    --bg: #08080C;
    --bg-2: #0C0C12;
    --surface: #111118;
    --surface-2: #16161F;
    --ink: #F6F5FA;
    --ink-2: #B9B6C9;
    --ink-3: #837F96;
    --accent: #A594F9;
    --accent-soft: #C9BDFF;
    --accent-deep: #6C5BD4;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --ok: #3ED598;
    --warn: #FFC24B;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 30px;

    --shell: 1180px;
    --pad: clamp(20px, 5vw, 40px);

    --font: 'Plex Arabic', 'Plex Latin', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-latin: 'Plex Latin', 'Plex Arabic', system-ui, sans-serif;

    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: var(--accent-deep); color: #fff; }

a { color: inherit; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.015em;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.3rem); font-weight: 700; line-height: 1.16; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }

p { margin: 0; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.ltr { direction: ltr; font-family: var(--font-latin); }
.nowrap { white-space: nowrap; }

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

.site-head {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease;
}

.site-head[data-stuck='true'] { border-bottom-color: var(--line); }

.site-head .bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    flex: 0 0 auto;
}

.brand svg { width: 32px; height: 32px; display: block; }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 18px;
    flex: 1 1 auto;
}

.nav a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: .96rem;
    font-weight: 500;
    transition: color .16s ease, background .16s ease;
}

.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, .07); }

.head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
    .nav {
        position: fixed;
        inset: 68px 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 14px var(--pad) 24px;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .nav[data-open='true'] { opacity: 1; visibility: visible; transform: none; }
    .nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: var(--r-sm); }
    .nav-toggle { display: inline-flex; }
    .head-actions .btn-ghost { display: none; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease,
                background .2s ease, border-color .2s ease, opacity .2s ease;
}

.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.btn-primary {
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    color: #17122E;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 30px -12px rgba(165, 148, 249, .8);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px -14px rgba(165, 148, 249, .95); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--line-2);
    color: var(--ink);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255,255,255,.24); }

.btn-sm { padding: 9px 18px; font-size: .93rem; }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }
.btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

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

.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(40px, 7vh, 90px) 0 clamp(56px, 9vh, 112px);
    overflow: clip;
}

/*
 * Two columns, not a background image.
 *
 * The scene used to fill the whole hero and the headline sat on top of it —
 * which looked like a mistake at every width, because it was one. Giving the
 * orbit its own half means neither has to be dimmed to make room for the other.
 */
.hero .shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
}

.hero-inner { max-width: 620px; }

.hero-stage {
    position: relative;
    aspect-ratio: 1;
    max-height: 78vh;
    min-height: 380px;
}

/*
 * One canvas for the whole page.
 *
 * A canvas per section would mean a WebGL context per section, and browsers
 * cap those at around sixteen before silently dropping the oldest. So this is a
 * single fixed layer and each frame scissors it down to the box of whichever
 * [data-scene] placeholder is on screen — everywhere else it stays transparent.
 * It sits ABOVE the page rather than behind it, because opaque section
 * backgrounds would otherwise hide it; the placeholders hold no content, so
 * nothing is ever covered. pointer-events must stay off for the same reason.
 */
#site-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity .9s ease;
}

#site-canvas[data-ready='true'] { opacity: 1; }

/* Placeholders. Each one is an empty box whose only job is to tell the renderer
   where, and how big, its scene should be drawn. */
.scene { position: relative; }

.scene-band { height: clamp(280px, 40vw, 440px); margin-block-end: clamp(20px, 4vw, 44px); }
.scene-panel { aspect-ratio: 4 / 3; min-height: 260px; margin-block-end: 18px; }
.scene-strip { height: clamp(110px, 16vw, 150px); margin-block-end: -10px; }

/* With no WebGL there is nothing to put in these, so they collapse rather than
   leaving a run of empty bands down the page. The hero keeps its box because it
   has a CSS stand-in to show. */
html[data-webgl='off'] .scene-optional { display: none; }

/* Shown only when WebGL is unavailable or motion is reduced — a still ring of
   the same marks, so the page never has a hole where the hero was. */
.hero-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    pointer-events: none;
}

html[data-webgl='off'] .hero-fallback { display: grid; }

.hero-fallback .orbit {
    position: relative;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--line-2);
}

.hero-fallback .orbit::before {
    content: '';
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.hero-fallback .marks {
    position: absolute;
    inset: 0;
    justify-content: center;
    align-content: center;
    gap: 14px;
    padding: 12%;
}

.hero-glow {
    position: absolute;
    inset-block-start: -22%;
    inset-inline-start: -6%;
    width: 62%;
    height: 620px;
    background: radial-gradient(closest-side, rgba(108, 91, 212, .42), transparent 72%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 900px) {
    .hero { padding-top: clamp(24px, 4vh, 44px); }

    .hero .shell { grid-template-columns: minmax(0, 1fr); gap: 8px; }

    /* Stage first on a phone: the orbit is what says what this is, and it says
       it faster than the headline does. */
    .hero-stage { order: -1; min-height: 0; max-height: 46vh; width: min(100%, 420px); margin-inline: auto; }
    .hero-inner { max-width: none; }
    .hero-glow { inset-inline-start: 0; width: 100%; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 9px;
    margin-bottom: 26px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: .87rem;
    font-weight: 500;
    color: var(--ink-2);
}

.eyebrow b {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--accent);
    color: #17122E;
    font-size: .78rem;
    font-weight: 700;
}

.hero h1 .grad {
    background: linear-gradient(100deg, var(--accent-soft) 10%, #7FD8FF 55%, var(--accent) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lede {
    margin-top: 24px;
    max-width: 54ch;
    font-size: clamp(1.08rem, 2.3vw, 1.28rem);
    color: var(--ink-2);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin-top: 26px;
    font-size: .92rem;
    color: var(--ink-3);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); }

/* --- Sections ---------------------------------------------------------- */

section { position: relative; padding: clamp(64px, 9vw, 118px) 0; }

.section-head { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
    display: block;
    margin-bottom: 14px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    direction: ltr;
    font-family: var(--font-latin);
}

.section-head.center .kicker { direction: rtl; font-family: var(--font); letter-spacing: .1em; }

.sub { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

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

/*
 * `min(Npx, 100%)` rather than a bare Npx track floor.
 *
 * A plain minmax(300px, 1fr) cannot shrink below 300 even when the container is
 * 295 wide, so the grid quietly overflows and the whole RTL page ends up
 * scrolled sideways on a phone. Capping the floor at the container's own width
 * lets the last column collapse instead.
 */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease;
}

.card:hover { border-color: var(--line-2); }

.card > .ico {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 20px;
    border-radius: 13px;
    background: rgba(165, 148, 249, .13);
    color: var(--accent-soft);
}

.card > .ico svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .99rem; }

.card .tag {
    position: absolute;
    inset-inline-end: 20px;
    inset-block-start: 22px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    font-size: .74rem;
    font-weight: 600;
    color: var(--ink-3);
}

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

.steps { counter-reset: step; display: grid; gap: 14px; }

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: start;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(165, 148, 249, .1);
    color: var(--accent-soft);
    font-family: var(--font-latin);
    font-weight: 600;
    font-size: .95rem;
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 1rem; }

/* --- Platform marks ---------------------------------------------------- */

.marks { display: flex; flex-wrap: wrap; gap: 10px; }

.mark-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .93rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;          /* the jump list on /features uses these as links */
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.mark-chip:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.mark-chip svg { width: 18px; height: 18px; flex: 0 0 auto; }

.mark-tile {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 24px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    text-align: center;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.mark-tile:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }

.mark-tile .disc {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 16px;
}

.mark-tile .disc svg { width: 26px; height: 26px; }
.mark-tile b { font-size: .95rem; font-weight: 600; }
.mark-tile small { display: block; color: var(--ink-3); font-size: .8rem; direction: ltr; font-family: var(--font-latin); }

/* --- Feature table ----------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }

table.cmp { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .96rem; }

table.cmp th, table.cmp td { padding: 15px 18px; text-align: start; border-bottom: 1px solid var(--line); }
table.cmp thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; z-index: 1; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover td { background: rgba(255, 255, 255, .02); }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; width: 15%; }
table.cmp .grp td { background: var(--bg-2); font-weight: 600; color: var(--accent-soft); font-size: .88rem; letter-spacing: .04em; }
table.cmp .yes { color: var(--ok); }
table.cmp .no { color: var(--ink-3); }
table.cmp .num { font-family: var(--font-latin); font-weight: 600; }

/* --- Pricing ----------------------------------------------------------- */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.plan[data-featured='true'] {
    border-color: rgba(165, 148, 249, .45);
    background: linear-gradient(180deg, rgba(165, 148, 249, .09), var(--bg-2) 60%);
    box-shadow: 0 24px 60px -32px rgba(165, 148, 249, .6);
}

.plan .badge {
    position: absolute;
    inset-block-start: -11px;
    inset-inline-start: 26px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #17122E;
    font-size: .76rem;
    font-weight: 700;
}

.plan h3 { font-size: 1.2rem; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 4px; }

/* The amount is isolated rather than the whole row: "$49" has to stay
   left-to-right, but the period beside it is Arabic and belongs in the
   paragraph's own direction. */
.plan .price b {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: var(--font-latin);
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
}
.plan .price span { color: var(--ink-3); font-size: .92rem; }
.plan .who { color: var(--ink-2); font-size: .95rem; min-height: 3em; }
.plan .btn { width: 100%; margin: 22px 0 24px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; margin-top: 5px; color: var(--ok); }
.plan li.off { color: var(--ink-3); }
.plan li.off svg { color: var(--ink-3); opacity: .6; }
.plan li b { color: var(--ink); font-weight: 600; font-family: var(--font-latin); }

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

.faq { display: grid; gap: 12px; }

.faq details {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

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

/* Physical borders, not logical ones: a chevron points down or up, and mirroring
   it under RTL turns "open me" into a shape aiming at the page margin. */
.faq summary::after {
    content: '';
    width: 9px; height: 9px;
    margin-block-start: -4px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg);
    transition: transform .22s ease;
    flex: 0 0 auto;
}

.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.faq details > p { padding: 0 24px 22px; color: var(--ink-2); font-size: .99rem; }

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

.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: 28px 24px; background: var(--bg-2); text-align: center; }
.stat b { display: block; font-family: var(--font-latin); font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; background: linear-gradient(180deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-3); font-size: .93rem; }

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

.band {
    position: relative;
    padding: clamp(44px, 6vw, 72px);
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    background:
        radial-gradient(90% 140% at 50% 0%, rgba(108, 91, 212, .34), transparent 68%),
        linear-gradient(180deg, var(--surface), var(--bg-2));
    text-align: center;
    overflow: hidden;
}

.band h2 { max-width: 26ch; margin-inline: auto; }
.band p { max-width: 52ch; margin: 16px auto 0; color: var(--ink-2); }
.band .hero-cta { justify-content: center; }

/* --- Forms ------------------------------------------------------------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .93rem; font-weight: 600; }
.field .hint { font-size: .85rem; color: var(--ink-3); font-weight: 400; }

.field input, .field textarea, .field select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--bg-2);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea { min-height: 150px; resize: vertical; line-height: 1.65; }

.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(165, 148, 249, .18);
}

.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #FF6B6B; }
.field .err { color: #FF8B8B; font-size: .87rem; }

/*
 * Bots fill everything; humans never see this.
 *
 * Clipped rather than `display: none`, which the better bots skip — and rather
 * than a huge negative offset, which widens the document the same way the skip
 * link did.
 */
.trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Read aloud, never drawn — the word behind a tick in the comparison table. */
.sr {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.notice {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 13px;
    padding: 17px 19px;
    border-radius: var(--r);
    border: 1px solid;
    font-size: .97rem;
}

.notice svg { width: 22px; height: 22px; margin-top: 3px; }
.notice-ok { border-color: rgba(62, 213, 152, .35); background: rgba(62, 213, 152, .08); color: #B6F2D8; }
.notice-ok svg { color: var(--ok); }
.notice-warn { border-color: rgba(255, 194, 75, .32); background: rgba(255, 194, 75, .07); color: #FFE2AC; }
.notice-warn svg { color: var(--warn); }

/* --- Contact channels -------------------------------------------------- */

.channel {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

a.channel:hover { border-color: var(--line-2); background: var(--surface-2); }
.channel .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(165, 148, 249, .13); color: var(--accent-soft); }
.channel .ico svg { width: 21px; height: 21px; }
.channel b { display: block; font-size: 1.02rem; }
.channel span { color: var(--ink-2); font-size: .93rem; }
.channel .val { display: block; margin-top: 4px; color: var(--accent-soft); font-size: .93rem; direction: ltr; font-family: var(--font-latin); }

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

.site-foot { border-top: 1px solid var(--line); padding: 58px 0 42px; background: var(--bg-2); }
.foot-grid { display: grid; gap: 38px; grid-template-columns: minmax(min(230px, 100%), 1.3fr) repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.foot-brand p { margin-top: 14px; max-width: 34ch; color: var(--ink-3); font-size: .93rem; }
.foot-col h4 { margin-bottom: 14px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-2); text-decoration: none; font-size: .95rem; transition: color .16s ease; }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; }

/* Two columns of links under the brand, rather than four tracks that cannot
   fit and push the document wider than the screen. */
@media (max-width: 720px) {
    .foot-grid { gap: 30px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-brand { grid-column: 1 / -1; }
}

.plans { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }

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

/*
 * Gated on `.js`, which an inline script in <head> adds before first paint.
 *
 * Without the gate, a stylesheet that loads while the script does not — a JS
 * error, a blocked file, an old browser — leaves every section on the site at
 * opacity 0 with nothing left to reveal them. The page must be readable first
 * and animated second, not the other way round.
 */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
    transition-delay: var(--d, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn, .card, .mark-chip, .mark-tile { transition: none; }
}

/* Focus ring — one style everywhere, never removed. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/*
 * Clipped rather than parked at -9999px.
 *
 * Under `dir="rtl"` an inline-start offset resolves to `right`, and browsers do
 * not clip start-side overflow — so the old trick pushed the document ten
 * thousand pixels wide and shifted every page sideways on a phone. Clipping
 * costs the same one line and cannot move layout at all.
 */
.skip {
    position: absolute;
    inset-inline-start: 20px;
    top: 10px;
    z-index: 100;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: #17122E;
    font-weight: 600;
    text-decoration: none;
}

.skip:focus {
    width: auto;
    height: auto;
    padding: 12px 20px;
    overflow: visible;
    clip-path: none;
}
