/*
 * EduWorld Sarthi - public pages (landing, features, about us, pricing, contact, login, school registration, password
 * and legal pages).
 * No framework: modern CSS for Safari 15+ / iOS 15+ and current Chrome, Edge and Firefox. Brand colours come from
 * Web Settings and are set as custom properties in frontend/layouts/base.blade.php; the values below are defaults.
 */

/* ---------- Fonts ---------- */
@font-face {
    font-family: "Jakarta";
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Jakarta";
    src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Caveat";
    src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: optional;
}

/* ---------- Tokens ---------- */
:root {
    --c-primary: #1d5bd8;
    --c-primary-rgb: 29, 91, 216;
    --c-primary-50: #eef4fd;
    --c-primary-100: #dde8fa;
    --c-primary-200: #bbcef3;
    --c-primary-300: #8eadea;
    --c-primary-400: #5684e2;
    --c-primary-600: #1a50b9;
    --c-primary-700: #16429a;
    --c-on-primary: #ffffff;
    --c-primary-ink: #1d5bd8;
    --c-primary-strong: #1d5bd8;
    --c-band-a: #1744a2;
    --c-band-b: #1d5bd8;
    --c-band-c: #4672ca;
    --c-grad-b: #4f7fe1;
    --c-accent: #f97316;
    --c-accent-rgb: 249, 115, 22;
    --c-accent-50: #fef1e8;
    --c-accent-600: #d76415;
    --c-accent-700: #b95714;
    --c-on-accent: #ffffff;
    --c-accent-ink: #b6571a;
    --c-accent-strong: #ef6f17;
    --c-success: #16a34a;
    --c-success-rgb: 22, 163, 74;
    --c-success-50: #e9f7ee;
    --c-success-600: #138b40;
    --c-success-700: #117638;
    --c-on-success: #ffffff;
    --c-success-ink: #148643;
    --c-violet: #7c3aed;
    --c-violet-50: #f3edff;
    --c-rose: #e11d48;
    --c-rose-50: #fff0f3;
    --c-teal: #0d9488;
    --c-teal-50: #e9fbf8;
    --c-amber: #d97706;
    --c-amber-50: #fff7e6;
    --c-sky: #0284c7;
    --c-sky-50: #e8f6fd;

    --c-ink: #0b1b3a;
    --c-ink-2: #334155;
    --c-muted: #5b6b82;
    --c-line: #e3e9f3;
    --c-line-2: #cfd9e8;
    --c-bg: #ffffff;
    --c-soft: #f5f8ff;
    --c-soft-2: #edf2fc;

    --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
    --font-hand: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(11, 27, 58, .06);
    --shadow-sm: 0 1px 3px rgba(11, 27, 58, .06), 0 4px 12px -6px rgba(11, 27, 58, .10);
    --shadow: 0 12px 32px -14px rgba(11, 27, 58, .22);
    --shadow-lg: 0 32px 64px -24px rgba(var(--c-primary-rgb), .34);
    --ring: 0 0 0 4px rgba(var(--c-primary-rgb), .18);

    --container: 1200px;
    --header-h: 72px;
    --gutter: 20px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-ink-2);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary-ink); text-decoration: none; }
a:hover { color: var(--c-band-a); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--c-ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1, h2 { text-wrap: balance; }
h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-primary-strong); outline-offset: 2px; }
::selection { background: var(--c-primary-100); color: var(--c-ink); }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
/* arrows and chevrons point the other way in right-to-left languages */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.inline-icon { display: inline-block; vertical-align: -.15em; margin-right: .3rem; }

.sr-only {
    position: absolute !important;
    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; left: 1rem; top: -100px; z-index: 100;
    padding: .6rem 1rem; border-radius: var(--radius-sm);
    background: var(--c-ink); color: #fff;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section { position: relative; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 1024px) { .section { padding-top: 96px; padding-bottom: 96px; } }
.section-soft { background: var(--c-soft); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.section-head p { color: var(--c-muted); font-size: 1.05rem; margin: 0; }
.text-gradient {
    background: linear-gradient(100deg, var(--c-band-a) 0%, var(--c-primary-ink) 40%, var(--c-grad-b) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.text-primary { color: var(--c-primary-ink); }
.text-accent { color: var(--c-accent-ink); }
.text-muted { color: var(--c-muted); }
.hand {
    font-family: var(--font-hand);
    font-weight: 600;
    color: var(--c-band-a);
    letter-spacing: 0;
    line-height: 1.05;
}

/* small uppercase label above headings */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-pill);
    background: var(--c-success-50);
    color: var(--c-success-ink);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.3;
}
.eyebrow::before {
    content: "";
    width: 8px; height: 8px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(var(--c-success-rgb), .15);
}
.eyebrow-blue { background: var(--c-primary-50); color: var(--c-primary-ink); }
.eyebrow-blue::before { box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .15); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--c-primary);
    --btn-fg: var(--c-on-primary);
    --btn-bd: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .75rem 1.35rem;
    border: 1.5px solid var(--btn-bd);
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
    -webkit-user-select: none;
    user-select: none;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon-move { transform: translateX(3px); }
[dir="rtl"] .btn .icon-move { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .icon-move { transform: scaleX(-1) translateX(3px); }
.btn-primary { box-shadow: 0 10px 24px -12px rgba(var(--c-primary-rgb), .65); }
.btn-primary:hover { --btn-bg: var(--c-primary-600); box-shadow: 0 14px 28px -12px rgba(var(--c-primary-rgb), .7); }
.btn-success { --btn-bg: var(--c-success-600); --btn-fg: var(--c-on-success); box-shadow: 0 10px 24px -12px rgba(var(--c-success-rgb), .7); }
.btn-success:hover { --btn-bg: var(--c-success-700); }
.btn-accent { --btn-bg: var(--c-accent-600); --btn-fg: var(--c-on-accent); box-shadow: 0 10px 24px -12px rgba(var(--c-accent-rgb), .65); }
.btn-accent:hover { --btn-bg: var(--c-accent-700); }
.btn-outline { --btn-bg: #fff; --btn-fg: var(--c-primary-ink); --btn-bd: var(--c-primary-200); }
.btn-outline:hover { --btn-bd: var(--c-primary-strong); --btn-bg: var(--c-primary-50); --btn-fg: var(--c-band-a); }
.btn-soft { --btn-bg: var(--c-primary-50); --btn-fg: var(--c-primary-ink); }
.btn-soft:hover { --btn-bg: var(--c-primary-100); --btn-fg: var(--c-band-a); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); }
.btn-ghost:hover { --btn-bg: var(--c-soft-2); --btn-fg: var(--c-ink); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--c-band-a); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
.btn-white:hover { --btn-fg: var(--c-primary-ink); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .72; pointer-events: none; }
.btn.is-loading::after {
    content: "";
    width: 1em; height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ew-spin .7s linear infinite;
}
@keyframes ew-spin { to { transform: rotate(360deg); } }

/* ---------- Cards, tiles, chips ---------- */
.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.icon-tile {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--tile-bg, var(--c-primary-50));
    color: var(--tile-fg, var(--c-primary));
    flex: none;
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile-sm { width: 42px; height: 42px; border-radius: 12px; }
.icon-tile-sm .icon { width: 21px; height: 21px; }
.icon-tile-round { border-radius: 50%; }
.tone-blue { --tile-bg: var(--c-primary-50); --tile-fg: var(--c-primary-strong); }
.tone-green { --tile-bg: var(--c-success-50); --tile-fg: var(--c-success-ink); }
.tone-orange { --tile-bg: var(--c-accent-50); --tile-fg: var(--c-accent-strong); }
.tone-violet { --tile-bg: var(--c-violet-50); --tile-fg: var(--c-violet); }
.tone-rose { --tile-bg: var(--c-rose-50); --tile-fg: var(--c-rose); }
.tone-teal { --tile-bg: var(--c-teal-50); --tile-fg: var(--c-teal); }
.tone-amber { --tile-bg: var(--c-amber-50); --tile-fg: var(--c-amber); }
.tone-sky { --tile-bg: var(--c-sky-50); --tile-fg: var(--c-sky); }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: var(--radius-pill); background: var(--c-primary-50); color: var(--c-primary-ink); font-size: .86rem; font-weight: 700; line-height: 1.2; }
.chip .icon { width: 17px; height: 17px; }
.chip-muted { background: var(--c-soft-2); color: var(--c-muted); }

/* ---------- Header ---------- */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 6px 24px -18px rgba(11, 27, 58, .5); background: rgba(255, 255, 255, .96); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; flex: none; min-width: 0; color: var(--c-ink); }
.brand img { height: 42px; width: auto; max-width: min(200px, 52vw); object-fit: contain; object-position: left center; }
[dir="rtl"] .brand img { object-position: right center; }
@media (min-width: 768px) { .brand img { height: 46px; max-width: 230px; } }
.nav { display: none; align-items: center; gap: .1rem; margin-left: auto; margin-right: auto; }
.nav a {
    position: relative;
    padding: .5rem .72rem;
    border-radius: var(--radius-xs);
    color: var(--c-ink-2);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}
.nav a:hover { color: var(--c-primary-ink); background: var(--c-primary-50); }
.nav a.is-active { color: var(--c-primary-ink); }
.nav a.is-active::after {
    content: "";
    position: absolute; left: .72rem; right: .72rem; bottom: .1rem;
    height: 2px; border-radius: 2px; background: var(--c-primary-strong);
}
.header-actions { display: none; align-items: center; gap: .6rem; }
.lang { position: relative; }
.lang summary {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 40px; padding: .4rem .65rem; border-radius: var(--radius-xs);
    list-style: none; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--c-ink-2); white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--c-soft-2); }
.lang summary .icon-chev { width: 16px; height: 16px; transition: transform .2s; }
.lang[open] summary .icon-chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 5;
    min-width: 190px; max-height: 60vh; overflow: auto; padding: .4rem;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu a { display: block; padding: .55rem .75rem; border-radius: var(--radius-xs); color: var(--c-ink-2); font-weight: 600; font-size: .92rem; }
.lang-menu a:hover, .lang-menu a.is-current { background: var(--c-primary-50); color: var(--c-primary-ink); }
.lang-menu a::after { display: none; }
.menu-toggle {
    margin-left: auto;
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; flex: none;
    border: 1px solid var(--c-line); border-radius: var(--radius-sm);
    background: #fff; color: var(--c-ink);
}
[dir="rtl"] .menu-toggle { margin-left: 0; margin-right: auto; }
.mobile-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: .5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 24px 48px -24px rgba(11, 27, 58, .35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
@supports (height: 100dvh) { .mobile-menu { max-height: calc(100dvh - var(--header-h)); } }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: .9rem .25rem; border-bottom: 1px solid var(--c-line); color: var(--c-ink); font-weight: 600; }
.mobile-menu nav a .icon { color: var(--c-muted); width: 18px; height: 18px; }
.mobile-menu .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.1rem; }
.mobile-menu .mobile-actions .btn { padding-left: .75rem; padding-right: .75rem; white-space: normal; }
.mobile-menu .mobile-langs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.mobile-menu .mobile-langs a { padding: .45rem .85rem; border: 1px solid var(--c-line); border-radius: var(--radius-pill); font-size: .9rem; font-weight: 600; color: var(--c-ink-2); }
.mobile-menu .mobile-langs a.is-current { border-color: var(--c-primary-strong); color: var(--c-primary-ink); background: var(--c-primary-50); }
@media (min-width: 1100px) {
    .nav, .header-actions { display: flex; }
    .menu-toggle, .mobile-menu { display: none; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 32px;
    padding-bottom: 104px;
    background:
        radial-gradient(52% 60% at 88% 8%, rgba(var(--c-primary-rgb), .16), transparent 70%),
        radial-gradient(38% 46% at 0% 42%, rgba(var(--c-success-rgb), .08), transparent 70%),
        radial-gradient(30% 40% at 60% 100%, rgba(var(--c-accent-rgb), .07), transparent 70%),
        linear-gradient(180deg, var(--c-soft) 0%, #fafcff 60%, #fff 100%);
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(var(--c-primary-rgb), .14) 1.1px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(50% 55% at 80% 35%, #000, transparent 72%);
    mask-image: radial-gradient(50% 55% at 80% 35%, #000, transparent 72%);
    pointer-events: none;
}
@media (min-width: 1024px) { .hero { padding-top: 56px; padding-bottom: 128px; } }
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; } }
.hero h1 {
    font-size: clamp(2.3rem, 1.25rem + 4.2vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    margin-bottom: 1.25rem;
}
.hero-lead { font-size: clamp(1rem, .95rem + .35vw, 1.15rem); color: var(--c-muted); max-width: 36rem; margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hero-cta .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-cta .btn { flex: 0 0 auto; } }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; font-size: .9rem; font-weight: 600; color: var(--c-ink-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--c-success-50); color: var(--c-success-ink); }

/* product illustration: pure CSS so it is crisp at every size and costs no image download */
.hero-visual {
    position: relative;
    font-size: min(calc(2.05vw - .5px), 12.8px);
    padding: .4em 0 5em;
}
@media (min-width: 1024px) { .hero-visual { font-size: min(calc(1.04vw - 1px), 11.8px); padding-top: .8em; } }
.mock-window {
    position: relative;
    width: 87%;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 1.3em;
    box-shadow: var(--shadow-lg), 0 2px 6px rgba(11, 27, 58, .04);
    overflow: hidden;
}
[dir="rtl"] .mock-window { margin-left: auto; }
.mock-bar { display: flex; align-items: center; gap: .45em; height: 2.7em; padding: 0 1.1em; border-bottom: 1px solid var(--c-line); background: #f8fafd; }
.mock-bar > i { width: .75em; height: .75em; border-radius: 50%; background: #f87171; flex: none; }
.mock-bar > i:nth-child(2) { background: #fbbf24; }
.mock-bar > i:nth-child(3) { background: #34d399; }
.mock-url { display: flex; align-items: center; gap: .45em; flex: 0 1 24em; min-width: 0; height: 1.75em; margin-left: 1em; padding: 0 .9em; border-radius: 99em; background: #eef2f8; color: var(--c-muted); font-size: .78em; white-space: nowrap; overflow: hidden; }
.mock-url .icon { width: 1em; height: 1em; color: var(--c-success-600); }
.mock-body { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); min-height: 24em; }
@media (min-width: 600px) { .mock-body { grid-template-columns: 10.6em minmax(0, 1fr); } }
.mock-side { display: grid; align-content: start; gap: .2em; padding: 1em .55em; background: #fbfcff; border-right: 1px solid var(--c-line); }
[dir="rtl"] .mock-side { border-right: 0; border-left: 1px solid var(--c-line); }
.mock-logo { display: flex; align-items: center; gap: .5em; margin: 0 .3em .8em; font-weight: 800; font-size: .85em; color: var(--c-ink); white-space: nowrap; overflow: hidden; }
.mock-logo b { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .6em; background: linear-gradient(135deg, var(--c-band-b), var(--c-band-c)); color: #fff; font-size: .9em; flex: none; }
.mock-nav { display: flex; align-items: center; gap: .6em; padding: .5em .65em; border-radius: .6em; color: #64748b; font-size: .8em; font-weight: 600; white-space: nowrap; overflow: hidden; }
.mock-nav .icon { width: 1.25em; height: 1.25em; }
.mock-nav.is-active { background: var(--c-band-b); color: #fff; box-shadow: 0 .5em 1em -.5em rgba(var(--c-primary-rgb), .8); }
@media (max-width: 599px) {
    .mock-logo span, .mock-nav span { display: none; }
    .mock-nav { justify-content: center; padding: .6em 0; }
    .mock-logo { justify-content: center; margin: 0 0 .8em; }
}
.mock-main { display: grid; gap: .9em; align-content: start; padding: 1.1em; min-width: 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; line-height: 1.3; }
.mock-head strong { font-size: 1.05em; color: var(--c-ink); }
.mock-head span { font-size: .72em; color: var(--c-muted); }
.mock-avatar { width: 2.3em; height: 2.3em; border-radius: 50%; background: linear-gradient(135deg, #fde68a, var(--c-accent)); flex: none; }
.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65em; }
.mock-stat { padding: .7em .75em; border: 1px solid var(--c-line); border-radius: .85em; background: #fff; min-width: 0; }
.mock-stat-label { display: flex; align-items: center; gap: .4em; font-size: .7em; color: var(--c-muted); font-weight: 600; white-space: nowrap; overflow: hidden; }
.mock-stat-label .icon { width: 1.7em; height: 1.7em; padding: .32em; border-radius: .45em; background: var(--tile-bg); color: var(--tile-fg); }
.mock-stat-value { display: block; margin-top: .3em; font-size: 1.25em; font-weight: 800; color: var(--c-ink); letter-spacing: -.02em; }
.mock-panels { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .65em; }
.mock-panel { padding: .8em .9em; border: 1px solid var(--c-line); border-radius: .85em; min-width: 0; }
.mock-panel-title { display: flex; align-items: center; justify-content: space-between; gap: .5em; font-size: .78em; font-weight: 700; color: var(--c-ink); white-space: nowrap; overflow: hidden; }
.mock-panel-title small { padding: .15em .6em; border-radius: 99em; background: var(--c-soft-2); color: var(--c-muted); font-size: .85em; font-weight: 600; }
.mock-bars { display: flex; align-items: flex-end; gap: .5em; height: 8.6em; margin-top: .8em; padding-bottom: .15em; border-bottom: 1px dashed var(--c-line-2); background: repeating-linear-gradient(180deg, transparent 0, transparent calc(2.15em - 1px), var(--c-line) calc(2.15em - 1px), var(--c-line) 2.15em); }
.mock-bars i { flex: 1; height: var(--h); border-radius: .35em .35em .12em .12em; background: linear-gradient(180deg, var(--c-primary-400), var(--c-primary)); }
.mock-bars i:nth-child(odd) { background: linear-gradient(180deg, var(--c-primary-200), var(--c-primary-300)); }
.mock-donut { position: relative; width: 7.2em; height: 7.2em; margin: .9em auto .7em; border-radius: 50%; background: conic-gradient(var(--c-success) 0 78%, var(--c-accent) 0 94%, var(--c-rose) 0); }
.mock-donut::after { content: ""; position: absolute; top: 1.15em; right: 1.15em; bottom: 1.15em; left: 1.15em; border-radius: 50%; background: #fff; }
.mock-donut b { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: .95em; color: var(--c-ink); white-space: nowrap; }
.mock-legend { display: grid; gap: .3em; list-style: none; font-size: .68em; color: var(--c-muted); }
.mock-legend li { display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.mock-legend li::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--dot); flex: none; }
.mock-legend li b { margin-left: auto; color: var(--c-ink); }

.mock-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 11.8em;
    height: 24em;
    padding: .45em;
    border-radius: 2.3em;
    background: #0b1b3a;
    box-shadow: 0 2.5em 4em -1.6em rgba(11, 27, 58, .55), inset 0 0 0 .12em #2b3d63;
}
[dir="rtl"] .mock-phone { right: auto; left: 0; }
.mock-screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 1.9em; background: #f4f7fd; }
.mock-notch { width: 4.6em; height: 1.15em; margin: 0 auto .2em; border-radius: 0 0 .8em .8em; background: #0b1b3a; flex: none; }
.mock-hello { display: flex; align-items: center; gap: .6em; margin: .3em .6em .6em; padding: .8em; border-radius: 1em; background: linear-gradient(135deg, var(--c-band-b), var(--c-band-c)); color: #fff; line-height: 1.25; }
.mock-hello i { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: rgba(255, 255, 255, .25); font-style: normal; font-weight: 800; font-size: .8em; flex: none; }
.mock-hello small { display: block; font-size: .62em; opacity: .85; }
.mock-hello strong { display: block; font-size: .78em; white-space: nowrap; }
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; padding: 0 .6em .6em; }
.mock-tile { padding: .75em .3em .6em; border-radius: .9em; background: #fff; box-shadow: 0 .15em .4em rgba(11, 27, 58, .06); text-align: center; font-size: .62em; font-weight: 700; color: var(--c-ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tile .icon { width: 2.9em; height: 2.9em; margin: 0 auto .45em; padding: .65em; border-radius: .8em; background: var(--tile-bg); color: var(--tile-fg); }
.mock-list { display: grid; gap: .5em; padding: 0 .6em .6em; }
.mock-list > div { display: flex; align-items: center; gap: .6em; padding: .6em; border-radius: .8em; background: #fff; box-shadow: 0 .15em .4em rgba(11, 27, 58, .06); line-height: 1.25; }
.mock-list i { width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--tile-bg); flex: none; }
.mock-list b { display: block; font-size: .66em; color: var(--c-ink); }
.mock-list small { display: block; font-size: .56em; color: var(--c-muted); }

.float-badge {
    position: absolute;
    left: 0;
    bottom: 1em;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .8em;
    max-width: 62%;
    padding: .85em 1.2em .85em .9em;
    font-size: max(11px, 1em);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 1.1em;
    box-shadow: var(--shadow);
}
[dir="rtl"] .float-badge { left: auto; right: 0; padding: .85em .9em .85em 1.2em; }
.float-badge .icon-tile { width: 3.3em; height: 3.3em; border-radius: .9em; }
.float-badge .icon-tile .icon { width: 1.7em; height: 1.7em; }
.float-badge-img { width: 3.3em; height: 3.3em; border-radius: 50%; object-fit: cover; flex: none; }
.float-badge small { display: block; font-size: .85em; color: var(--c-muted); font-weight: 600; line-height: 1.2; }
.float-badge strong { display: block; font-size: 1.3em; color: var(--c-ink); line-height: 1.15; letter-spacing: -.02em; }
/* handwritten note (Web Settings > hero title 1): in the flow above the window, so any length wraps without overlapping */
.float-note {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: .3em;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 85%;
    margin: 0 0 .9em 4%;
    font-size: max(17px, 2.1em);
    line-height: 1.12;
    transform: rotate(-3deg);
    transform-origin: left center;
    overflow-wrap: anywhere;
}
.float-note .icon { width: 1.1em; height: 1.1em; margin-top: .02em; color: var(--c-accent); }
[dir="rtl"] .float-note { margin: 0 4% .9em 0; transform: rotate(3deg); transform-origin: right center; }
@media (min-width: 1024px) {
    .float-note { margin-left: auto; margin-right: 12%; }
    [dir="rtl"] .float-note { margin-right: auto; margin-left: 12%; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero .mock-phone { animation: ew-float 7s ease-in-out infinite; }
    .hero .float-badge { animation: ew-float 7s ease-in-out -3.5s infinite; }
}
@keyframes ew-float { 50% { transform: translateY(-.6em); } }

/* hero photo uploaded in Web Settings, used instead of the illustration */
.hero-photo { position: relative; font-size: 13px; padding-bottom: 1.5em; }
.hero-photo > img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); object-fit: cover; }
.hero-photo .float-badge { left: -1em; bottom: 0; }

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 3; margin-top: -64px; }
.stats-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    list-style: none;
    background: var(--c-line);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.stat { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: #fff; min-width: 0; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
.stat .icon-tile { width: 46px; height: 46px; border-radius: 50%; }
.stat .icon-tile .icon { width: 23px; height: 23px; }
.stat-num { display: block; font-size: clamp(1.15rem, .95rem + 1vw, 1.6rem); font-weight: 800; color: var(--c-ink); line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-text { font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); letter-spacing: -.01em; }
.stat-label { display: block; color: var(--c-muted); font-size: .84rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 599px) {
    .stat { flex-direction: column; justify-content: center; gap: .55rem; padding: 1rem .7rem; text-align: center; }
    .stat .icon-tile { width: 40px; height: 40px; }
    .stat .icon-tile .icon { width: 20px; height: 20px; }
    .stat:last-child:nth-child(odd) { flex-direction: row; text-align: start; }
}
@media (min-width: 900px) {
    .stats-card { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
    .stat { padding: 1.35rem 1.1rem; }
    .stat:last-child:nth-child(odd) { grid-column: auto; justify-content: flex-start; }
}
@media (min-width: 1200px) { .stat { justify-content: center; } .stat:last-child:nth-child(odd) { justify-content: center; } }

/* ---------- Schools using the platform (logo marquee) ---------- */
.logos { padding-top: 48px; text-align: center; }
.logos-title { margin-bottom: 1.25rem; color: var(--c-muted); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: -webkit-max-content; width: max-content; animation: ew-marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: .75rem; color: var(--c-ink-2); font-weight: 700; white-space: nowrap; }
.marquee-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--c-line); padding: 4px; }
@keyframes ew-marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: ew-marquee-rtl; }
@keyframes ew-marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.1rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-100); }
.feature-card h3 { font-size: .98rem; margin: 0 0 .25rem; line-height: 1.3; }
.feature-card p { margin: 0; font-size: .86rem; color: var(--c-muted); line-height: 1.5; }
.feature-card .icon-tile { width: 46px; height: 46px; }
.feature-card .icon-tile .icon { width: 23px; height: 23px; }
@media (max-width: 599px) {
    .feature-card { gap: .7rem; padding: .95rem; }
    .feature-card h3 { font-size: .94rem; }
    .feature-card p { font-size: .82rem; }
    .feature-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
    .feature-card .icon-tile .icon { width: 21px; height: 21px; }
}
@media (min-width: 600px) { .feature-card { flex-direction: row; align-items: flex-start; padding: 1.25rem; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .feature-card { flex-direction: column; } }
.section-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 32px; }

/* ---------- Module showcase (Web Settings > Feature sections) ---------- */
.showcase { display: grid; gap: 64px; }
.showcase-row { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) {
    .showcase { gap: 96px; }
    .showcase-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
    .showcase-row:nth-child(even) .showcase-media { order: -1; }
}
.showcase-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.showcase-tabs { display: grid; gap: 10px; margin-top: 1.25rem; }
.showcase-tab {
    display: block;
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: #fff;
    text-align: start;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
[dir="rtl"] .showcase-tab { border-left-width: 1px; border-right: 4px solid var(--c-line); }
.showcase-tab strong { display: block; color: var(--c-ink); font-size: 1rem; }
.showcase-tab span { display: block; margin-top: .2rem; color: var(--c-muted); font-size: .9rem; line-height: 1.5; }
.showcase-tab:hover { border-color: var(--c-primary-200); }
.showcase-tab[aria-selected="true"] { border-color: var(--c-primary-200); border-left-color: var(--c-primary); background: var(--c-primary-50); box-shadow: var(--shadow-sm); }
[dir="rtl"] .showcase-tab[aria-selected="true"] { border-right-color: var(--c-primary); border-left-color: var(--c-primary-200); }
.showcase-media { position: relative; padding: clamp(14px, 3vw, 28px); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--c-primary-50), #fafcff 60%, var(--c-accent-50)); }
.showcase-panel img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; animation: ew-in .35s var(--ease); }
.check-list { display: grid; gap: .7rem; list-style: none; margin: 1.25rem 0 0; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--c-success-50); color: var(--c-success-ink); }

/* ---------- About / why us ---------- */
.eco { overflow: hidden; background: linear-gradient(180deg, var(--c-soft) 0%, var(--c-soft-2) 100%); }
.eco::before {
    content: "";
    position: absolute;
    width: 640px; height: 640px;
    right: -220px; top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--c-primary-rgb), .12), transparent 65%);
    pointer-events: none;
}
.eco-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .eco-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 64px; } }
@media (min-width: 1200px) { .eco-grid.has-media { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, .8fr); gap: 40px; } }
.eco h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.eco-lead { color: var(--c-muted); font-size: 1.05rem; }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-top: 1.75rem; list-style: none; }
.benefit { display: flex; align-items: center; gap: .75rem; color: var(--c-ink); font-size: .98rem; line-height: 1.3; }
.benefit .icon-tile { width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--tile-fg); box-shadow: 0 8px 18px -10px var(--tile-fg); }
.benefit .icon-tile .icon { width: 21px; height: 21px; }
@media (max-width: 479px) { .benefits { grid-template-columns: 1fr; } }
.eco-media { position: relative; }
.eco-media img { width: 100%; border-radius: var(--radius-xl); object-fit: cover; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.eco-media .hand { position: absolute; left: -6%; top: -34px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); transform: rotate(-6deg); }
@media (max-width: 1199px) { .eco-media { display: none; } }
.app-cards { display: grid; gap: 14px; }
.eco-hand { grid-column: 1 / -1; margin: 0 0 .2rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); transform: rotate(-3deg); transform-origin: left center; }
[dir="rtl"] .eco-hand { transform: rotate(3deg); transform-origin: right center; }
@media (min-width: 640px) and (max-width: 1023px) { .app-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-left: 4px solid var(--tile-fg);
    color: inherit;
    transition: transform .25s var(--ease), box-shadow .25s;
}
[dir="rtl"] .app-card { border-left: 1px solid var(--c-line); border-right: 4px solid var(--tile-fg); }
.app-card:hover { color: inherit; transform: translateX(4px); box-shadow: var(--shadow); }
[dir="rtl"] .app-card:hover { transform: translateX(-4px); }
.app-card strong { display: block; color: var(--c-ink); font-size: 1.02rem; line-height: 1.3; }
.app-card > div > span { display: block; color: var(--c-muted); font-size: .86rem; }
.app-card .app-links { display: flex; gap: .4rem; margin-top: .45rem; }
.app-card .app-links a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--c-soft-2); color: var(--c-ink); }
.app-card .app-links a:hover { background: var(--c-ink); color: #fff; }
.app-card .app-links .icon { width: 16px; height: 16px; }
@media (min-width: 640px) and (max-width: 1023px) { .app-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    gap: 18px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 86%);
    margin: 0 calc(var(--gutter) * -1);
    padding: 16px var(--gutter) 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
}
.pricing-grid::-webkit-scrollbar { display: none; }
.pricing-grid > * { scroll-snap-align: start; }
.pricing-grid.is-single { display: block; margin: 0; padding: 0; overflow: visible; }
@media (min-width: 768px) {
    .pricing-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0; padding: 16px 0 0; overflow: visible; }
    .pricing-grid.is-few { grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); justify-content: center; }
}
.price-card { display: flex; flex-direction: column; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius-lg); transition: transform .25s var(--ease), box-shadow .25s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.is-popular { border: 2px solid var(--c-primary); box-shadow: var(--shadow-lg); }
.price-ribbon { position: absolute; top: -13px; right: 20px; padding: .3rem .85rem; border-radius: var(--radius-pill); background: var(--c-primary); color: var(--c-on-primary); font-size: .74rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 8px 16px -8px rgba(var(--c-primary-rgb), .8); }
[dir="rtl"] .price-ribbon { right: auto; left: 20px; }
.price-head { display: flex; align-items: center; gap: .85rem; }
.price-head h3 { margin: 0; font-size: 1.15rem; }
.price-tag { display: inline-block; margin-top: .25rem; padding: .15rem .6rem; border-radius: var(--radius-pill); background: var(--c-primary-50); color: var(--c-primary-ink); font-size: .76rem; font-weight: 700; }
.price-desc { margin: 1rem 0 0; color: var(--c-muted); font-size: .92rem; }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; margin-top: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--c-line-2); }
.price-amount strong { color: var(--c-ink); font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price-amount span { color: var(--c-muted); font-size: .9rem; font-weight: 600; }
.price-rates { display: grid; gap: .35rem; margin-top: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--c-line-2); list-style: none; }
.price-rates li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.price-rates b { color: var(--c-ink); }
.price-features { display: grid; gap: .55rem; margin: 1.1rem 0 1.4rem; list-style: none; }
.price-features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; line-height: 1.4; }
.price-features .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--c-success-ink); }
.price-more summary { display: inline-flex; align-items: center; gap: .3rem; margin: -.6rem 0 1.2rem; color: var(--c-primary-ink); font-size: .9rem; font-weight: 700; cursor: pointer; list-style: none; }
.price-more summary::-webkit-details-marker { display: none; }
.price-more summary .icon { transition: transform .2s; }
.price-more[open] summary .icon { transform: rotate(180deg); }
.price-more .price-features { margin-top: -.6rem; }
.price-card > .btn { margin-top: auto; }
.price-card.is-custom { background: linear-gradient(160deg, #fff 40%, var(--c-accent-50)); }
.price-card.is-custom .price-tag { background: var(--c-accent-50); color: var(--c-accent-ink); }
.price-side { display: flex; flex-direction: column; flex: 1; }
.price-side .btn { margin-top: auto; }
.is-single .price-card.is-custom { max-width: 980px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 900px) {
    .is-single .price-card.is-custom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
    .is-single .price-card.is-custom .price-head h3 { font-size: 1.5rem; }
    .is-single .price-card.is-custom .price-desc { font-size: 1.02rem; }
    .is-single .price-card.is-custom .price-features { margin-top: 0; }
}
.pricing-note { margin: 18px 0 0; text-align: center; color: var(--c-muted); font-size: .95rem; }

/* ---------- Call to action band ---------- */
/* after a white section the band needs no extra space above it */
.section:not(.section-soft):not(.eco) + .section-cta { padding-top: 0; }
.cta-band {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 28px;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, var(--c-band-a), var(--c-band-b) 55%, var(--c-band-c));
    color: #e7efff;
    box-shadow: var(--shadow-lg);
}
.cta-band::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
    mask-image: linear-gradient(90deg, transparent 30%, #000);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
@media (min-width: 1024px) { .cta-band { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 48px; } }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.cta-band p { color: rgba(255, 255, 255, .86); }
.cta-band .check-list { margin: 0; gap: .85rem; }
@media (min-width: 600px) { .cta-band .check-list { grid-template-columns: 1fr 1fr; } }
.cta-band .check-list li { color: #fff; font-weight: 600; }
.cta-band .check-list .icon { background: rgba(255, 255, 255, .18); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cta-actions .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.cta-actions .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; }

/* ---------- Mobile apps ---------- */
.download { overflow: hidden; }
.download-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .download-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.download h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.download-lead { color: var(--c-muted); font-size: 1.05rem; }
.app-rows { display: grid; gap: 14px; margin-top: 1.5rem; }
.app-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.25rem; padding: 1rem 1.1rem; }
.app-row-title { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 1 1 260px; }
.app-row-title strong { display: block; color: var(--c-ink); line-height: 1.3; }
.app-row-title span { display: block; color: var(--c-muted); font-size: .86rem; line-height: 1.4; }
.store-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.store-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .45rem 1rem .45rem .8rem; border-radius: 12px; background: #0b1b3a; color: #fff; transition: transform .2s var(--ease), background-color .2s; }
.store-btn:hover { color: #fff; background: #000; transform: translateY(-2px); }
.store-btn .icon { width: 24px; height: 24px; }
.store-btn small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.store-btn strong { display: block; font-size: .98rem; line-height: 1.15; }
.download-media { position: relative; display: flex; justify-content: center; }
.download-media > img { width: 100%; max-width: 520px; }
/* two phones: sized in em from the box width so they keep their overlap at every size */
.phones { position: relative; width: min(100%, 460px); height: auto; aspect-ratio: 460 / 470; margin: 0 auto; font-size: min(calc(3.3vw - 1.4px), 15.5px); }
@media (min-width: 1024px) { .phones { font-size: min(1.15vw, 15.5px); } }
.phones::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: 2%; top: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--c-primary-rgb), .2), transparent); }
.phones .mock-phone { width: 13.4em; height: 27.4em; }
.phones .mock-phone:first-child { left: 7%; right: auto; bottom: auto; top: 0; transform: rotate(-6deg); z-index: 1; }
.phones .mock-phone:last-child { right: 7%; bottom: 0; transform: rotate(5deg); }
[dir="rtl"] .phones .mock-phone:first-child { left: auto; right: 7%; }
[dir="rtl"] .phones .mock-phone:last-child { right: auto; left: 7%; }
@supports not (aspect-ratio: 1) { .phones { height: 470px; font-size: 13px; } }
.mock-tabbar { display: flex; justify-content: space-around; margin-top: auto; padding: .7em .4em .9em; background: #fff; border-top: 1px solid var(--c-line); color: #94a3b8; }
.mock-tabbar .icon { width: 1.25em; height: 1.25em; }
.mock-tabbar .is-on { color: var(--c-primary-strong); }
.mock-list i { display: grid; place-items: center; color: var(--tile-fg); }
.mock-list i .icon { width: 1.1em; height: 1.1em; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.faq-aside h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.faq-aside p { color: var(--c-muted); }
.faq-help { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1.1rem 1.2rem; }
.faq-help strong { display: block; color: var(--c-ink); }
.faq-help a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--c-primary-200); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; color: var(--c-ink); font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary-ink); transition: transform .25s var(--ease), background-color .2s, color .2s; }
.faq-item[open] summary .icon { transform: rotate(45deg); background: var(--c-band-b); color: #fff; }
.faq-answer { padding: 0 1.2rem 1.15rem; color: var(--c-muted); }

/* ---------- Contact page ---------- */
.quick-contact { position: relative; z-index: 3; margin-top: -64px; }
.quick-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; }
.quick-grid.is-few { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 380px)); justify-content: center; }
.quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    height: 100%;
    padding: 1.3rem 1.3rem 1.2rem;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.quick-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-card .icon-tile { margin-bottom: .55rem; }
.quick-card small { color: var(--c-muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.quick-card strong { color: var(--c-ink); font-size: 1.02rem; line-height: 1.45; overflow-wrap: anywhere; }
[dir="rtl"] .quick-card strong[dir="ltr"] { text-align: right; }
.quick-action { display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: .55rem; color: var(--c-primary-ink); font-weight: 700; font-size: .92rem; }
.quick-card:hover .quick-action .icon { transform: translateX(2px); }
.quick-action .icon { transition: transform .2s var(--ease); }
.quick-contact + .contact-section { padding-top: 40px; }
@media (min-width: 1024px) { .quick-contact + .contact-section { padding-top: 56px; } }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: start; } }
.contact-form { padding: clamp(1.25rem, 3.5vw, 2.25rem); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.contact-form h2 { font-size: 1.45rem; margin-bottom: .25rem; }
.form-intro { margin-bottom: 1.25rem; color: var(--c-muted); font-size: .9rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.field .topic-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.topic-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.topic-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .45rem 1rem;
    border: 1.5px solid var(--c-line-2);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--c-ink-2);
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.25;
    transition: border-color .2s, background-color .2s, color .2s;
}
.topic-chip:hover span { border-color: var(--c-primary-300); }
.topic-chip input:checked + span { border-color: var(--c-primary-strong); background: var(--c-primary-50); color: var(--c-primary-ink); }
.topic-chip input:focus-visible + span { box-shadow: var(--ring); }
.contact-side { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1024px) { .contact-side { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 24px); } }
.side-card { padding: 1.4rem; border-radius: var(--radius-lg); }
.side-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.next-steps { display: grid; gap: 1rem; list-style: none; }
.next-steps li { display: flex; gap: .85rem; align-items: flex-start; }
.next-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary-ink); font-size: .9rem; flex: none; }
.next-steps strong { display: block; color: var(--c-ink); font-size: .95rem; line-height: 1.3; }
.next-steps span { display: block; color: var(--c-muted); font-size: .86rem; line-height: 1.45; }
.side-link { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.side-link:hover { color: inherit; border-color: var(--c-primary-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.side-link > span:not(.icon-tile) { flex: 1; min-width: 0; }
.side-link strong { display: block; color: var(--c-ink); line-height: 1.3; }
.side-link small { display: block; margin-top: .1rem; color: var(--c-muted); font-size: .85rem; line-height: 1.4; }
.side-link > .icon:last-child { width: 18px; height: 18px; color: var(--c-muted); }
.side-socials { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .3rem .2rem 0; color: var(--c-ink); font-weight: 700; }
.socials { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary-ink); transition: transform .2s var(--ease), background-color .2s, color .2s; }
.social:hover { background: var(--c-band-b); color: #fff; transform: translateY(-2px); }
.social .icon { width: 19px; height: 19px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: 64px; background: #fff; border-top: 1px solid var(--c-line); font-size: .94rem; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-primary-400) 45%, var(--c-accent) 75%, var(--c-success)); }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 40px; }
    .footer-brand, .footer-col:last-child { grid-column: auto; }
}
.footer-brand img { height: 48px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; margin-bottom: 1rem; }
[dir="rtl"] .footer-brand img { object-position: right center; }
.footer-brand p { color: var(--c-muted); max-width: 26rem; }
.footer-brand .socials { margin-top: 1.1rem; }
.footer-col h3 { margin-bottom: 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); }
.footer-col ul { display: grid; gap: .6rem; list-style: none; }
.footer-col a { color: var(--c-ink-2); font-weight: 500; }
.footer-col a:hover { color: var(--c-primary-ink); }
.footer-col .contact-line { display: flex; gap: .55rem; align-items: flex-start; color: var(--c-ink-2); overflow-wrap: anywhere; line-height: 1.5; }
.footer-col .contact-line .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-primary-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 48px; padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: .86rem; }
.footer-copy p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-bottom a { color: var(--c-muted); }
.footer-bottom a:hover { color: var(--c-primary-ink); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; min-width: 0; }
.field label, .field .label { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .92rem; color: var(--c-ink); }
.field .check { display: flex; margin-bottom: 0; font-weight: 500; }
.field .req { color: var(--c-rose); }
.control {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--c-line-2);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.control:hover { border-color: #b7c5da; }
.control:focus-within { border-color: var(--c-primary-strong); box-shadow: var(--ring); }
.control > .icon { margin-left: .95rem; color: var(--c-muted); width: 20px; height: 20px; }
[dir="rtl"] .control > .icon { margin-left: 0; margin-right: .95rem; }
.control:focus-within > .icon { color: var(--c-primary-strong); }
.control input,
.control select,
.control textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 50px;
    padding: .75rem .95rem;
    border: 0;
    border-radius: var(--radius-sm);
    outline: 0;
    background: transparent;
    font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
    color: var(--c-ink);
    -webkit-appearance: none;
    appearance: none;
}
.control > .icon + input, .control > .icon + select { padding-left: .7rem; }
[dir="rtl"] .control > .icon + input, [dir="rtl"] .control > .icon + select { padding-left: .95rem; padding-right: .7rem; }
.control select { padding-right: 2.4rem; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .95rem center; cursor: pointer; }
[dir="rtl"] .control select { padding-right: .95rem; padding-left: 2.4rem; background-position: left .95rem center; }
.control textarea { min-height: 120px; resize: vertical; }
.control input::placeholder, .control textarea::placeholder { color: #94a3b8; opacity: 1; }
.control input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--c-ink); }
.control input[type="file"] { padding-top: .8rem; font-size: .92rem; cursor: pointer; }
.control .addon {
    display: inline-flex; align-items: center; gap: .1rem;
    padding: 0 0 0 .95rem; align-self: stretch; flex: none;
    border-right: 1.5px solid var(--c-line-2);
    color: var(--c-ink-2); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
[dir="rtl"] .control .addon { border-right: 0; border-left: 1.5px solid var(--c-line-2); padding: 0 .95rem 0 0; }
.control .addon .icon { width: 20px; height: 20px; color: var(--c-muted); }
.control .addon select { width: 6.2rem; min-height: 48px; padding: 0 1.7rem 0 .55rem; font-weight: 600; font-size: 15px; background-position: right .45rem center; }
[dir="rtl"] .control .addon select { padding: 0 .55rem 0 1.7rem; background-position: left .45rem center; }
.control .toggle-pass {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: .2rem; flex: none;
    border: 0; background: transparent; color: var(--c-muted); border-radius: var(--radius-xs);
}
[dir="rtl"] .control .toggle-pass { margin-right: 0; margin-left: .2rem; }
.control .toggle-pass:hover { color: var(--c-ink); background: var(--c-soft-2); }
.control .toggle-pass .icon { width: 20px; height: 20px; }
.control-code input { font-size: 1.25rem; letter-spacing: .35em; font-weight: 700; }
.control.is-invalid { border-color: var(--c-rose); }
.control.is-invalid:focus-within { box-shadow: 0 0 0 4px rgba(225, 29, 72, .15); }
.field-error { display: block; margin-top: .35rem; color: var(--c-rose); font-size: .85rem; font-weight: 600; }
.field-hint { display: block; margin-top: .4rem; color: var(--c-muted); font-size: .84rem; line-height: 1.45; }
.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .94rem; color: var(--c-ink-2); cursor: pointer; line-height: 1.45; }
.check input {
    width: 20px; height: 20px; margin: 1px 0 0; flex: none;
    border: 1.5px solid var(--c-line-2); border-radius: 6px;
    -webkit-appearance: none; appearance: none; background: #fff; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked {
    border-color: var(--c-band-b);
    background: var(--c-band-b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check input[type="radio"]:checked { background: #fff; box-shadow: inset 0 0 0 5px var(--c-band-b); }
.check input:focus-visible { box-shadow: var(--ring); outline: 0; }
.check a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.choice-group { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding-top: .2rem; }
.form-grid { display: grid; gap: 0 1.1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid .span-2 { grid-column: 1 / -1; } }
.extra-fields { margin: .4rem 0 .6rem; padding-top: 1.1rem; border-top: 1px dashed var(--c-line-2); }
.extra-fields legend { float: left; width: 100%; margin-bottom: .9rem; padding: 0; color: var(--c-ink); font-weight: 700; }
.extra-fields legend + * { clear: both; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: -.2rem 0 1.4rem; font-size: .94rem; }
.form-row a { font-weight: 600; }
.alert {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .9rem 1rem; margin-bottom: 1.25rem;
    border-radius: var(--radius-sm); font-size: .94rem; font-weight: 600; line-height: 1.45;
}
.alert .icon { margin-top: 1px; }
.alert-error { background: var(--c-rose-50); color: #9f1239; }
.alert-success { background: var(--c-success-50); color: var(--c-success-ink); }
.alert-info { background: var(--c-primary-50); color: var(--c-band-a); }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--c-muted); font-size: .92rem; text-align: center; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

/* ---------- Auth pages (login, registration, passwords) ---------- */
.auth-page { background: var(--c-soft); }
.auth { display: grid; min-height: 100vh; }
@supports (min-height: 100dvh) { .auth { min-height: 100dvh; } }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .auth-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.auth-main {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(70% 45% at 0% 0%, rgba(var(--c-primary-rgb), .10), transparent 70%),
        radial-gradient(60% 40% at 100% 100%, rgba(var(--c-accent-rgb), .07), transparent 70%),
        var(--c-soft);
}
@media (min-width: 768px) { .auth-main { padding: 24px 40px 28px; } }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; }
.auth-top .brand img { height: 40px; }
@media (min-width: 768px) { .auth-top .brand img { height: 46px; } }
.auth-top-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.auth-top-link:hover { color: var(--c-primary-ink); }
.auth-trust { display: none; align-items: center; gap: .45rem; color: var(--c-ink-2); font-size: .9rem; font-weight: 600; text-align: end; }
.auth-trust .icon { color: var(--c-success-ink); }
@media (min-width: 640px) { .auth-trust { display: inline-flex; } }
.auth-card {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: clamp(1.4rem, 5vw, 2.6rem);
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px -36px rgba(11, 27, 58, .35);
}
.auth-wide .auth-card { max-width: 720px; }
.auth-card-head { margin-bottom: 1.6rem; }
.auth-card-head.is-center { text-align: center; }
.auth-logo { height: 56px; width: auto; max-width: 260px; margin: 0 auto 1.25rem; object-fit: contain; }
.auth-icon { width: 60px; height: 60px; margin-bottom: 1rem; }
.auth-icon .icon { width: 28px; height: 28px; }
.auth-card h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); letter-spacing: -.03em; margin-bottom: .45rem; }
.auth-card-head p { margin: 0; color: var(--c-muted); }
.auth-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.4rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-ink-2); font-weight: 600; font-size: .92rem; }
.back-link:hover { color: var(--c-primary-ink); }
.auth-foot { margin: 1.4rem 0 0; text-align: center; color: var(--c-muted); font-size: .94rem; }
.auth-foot a { font-weight: 700; }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; color: var(--c-muted); font-size: .84rem; }
.auth-legal a { color: var(--c-muted); }
.auth-legal a:hover { color: var(--c-primary-ink); }
.demo-logins { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

.auth-aside {
    position: relative;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 56px clamp(40px, 4vw, 72px) 0;
    background:
        radial-gradient(60% 40% at 100% 0%, rgba(var(--c-primary-rgb), .20), transparent 70%),
        radial-gradient(50% 35% at 0% 100%, rgba(var(--c-accent-rgb), .12), transparent 70%),
        linear-gradient(170deg, var(--c-primary-50) 0%, #f9fbff 55%, var(--c-soft-2) 100%);
}
.auth-aside::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(var(--c-primary-rgb), .13) 1.1px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
    mask-image: linear-gradient(180deg, #000, transparent 60%);
    pointer-events: none;
}
.auth-aside > * { position: relative; }
@media (min-width: 1024px) {
    .auth-aside { display: flex; }
    .auth-aside, .auth-main { min-height: 100vh; }
    @supports (min-height: 100dvh) { .auth-aside, .auth-main { min-height: 100dvh; } }
}
.auth-aside.has-poster { align-items: center; justify-content: center; padding: 32px; }
.auth-poster { position: -webkit-sticky; position: sticky; top: 32px; width: 100%; display: flex; justify-content: center; }
.auth-poster picture { display: contents; }
.auth-poster img { width: auto; max-width: 100%; max-height: calc(100vh - 64px); border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(11, 27, 58, .45); object-fit: contain; }
.auth-aside .eyebrow { align-self: flex-start; background: #fff; box-shadow: var(--shadow-xs); }
.auth-brand { margin: 0 0 .3rem; font-size: clamp(2.4rem, 1.4rem + 2.4vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.auth-brand .w1 { color: var(--c-primary-strong); }
.auth-brand .w2 { color: var(--c-accent-strong); }
.auth-tagline { margin: 0; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 800; color: var(--c-ink); line-height: 1.2; letter-spacing: -.02em; max-width: 30rem; }
.auth-tagline em { font-style: normal; color: var(--c-primary-strong); }
.auth-headline { margin: 0; font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.4rem); font-weight: 800; color: var(--c-ink); line-height: 1.04; letter-spacing: -.04em; }
.auth-headline .text-gradient { display: block; }
.auth-sub { margin: .9rem 0 0; color: var(--c-muted); font-size: 1.05rem; max-width: 32rem; }
.auth-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; margin-top: 28px; list-style: none; max-width: 520px; }
@media (min-width: 1440px) { .auth-features { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; } }
.auth-features li { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font-size: .8rem; font-weight: 700; color: var(--c-ink); line-height: 1.25; }
.auth-features .icon-tile { width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 10px 20px -12px rgba(11, 27, 58, .35); }
.auth-features .icon-tile .icon { width: 24px; height: 24px; }
.auth-visual { position: relative; margin-top: auto; padding-top: 36px; }
.auth-visual .hero-visual { font-size: min(calc(.88vw - 1px), 11px); padding: 0 0 2.4em; }
.aside-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; list-style: none; }
.aside-cards li { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; background: rgba(255, 255, 255, .85); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.aside-cards .icon-tile { width: 44px; height: 44px; margin-bottom: .3rem; }
.aside-cards .icon-tile .icon { width: 22px; height: 22px; }
.aside-cards strong { color: var(--c-ink); font-size: .95rem; line-height: 1.3; }
.aside-cards span:not(.icon-tile) { color: var(--c-muted); font-size: .84rem; line-height: 1.4; }
.aside-steps { margin-top: 28px; padding: 1.25rem 1.3rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.aside-steps-title { margin: 0 0 .9rem; color: var(--c-ink); font-weight: 800; }
.aside-steps ol { display: grid; gap: .9rem; list-style: none; }
.aside-steps li { display: flex; gap: .85rem; align-items: flex-start; }
.aside-steps li b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary-ink); font-size: .9rem; flex: none; }
.aside-steps strong { display: block; color: var(--c-ink); font-size: .95rem; line-height: 1.3; }
.aside-steps span { display: block; color: var(--c-muted); font-size: .86rem; line-height: 1.4; }
.aside-hand { display: block; margin: 24px 0 40px; font-size: 1.9rem; transform: rotate(-3deg); }

/* registration steps */
.stepper { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.6rem; list-style: none; }
.step { display: flex; align-items: center; gap: .7rem; min-width: 0; color: var(--c-muted); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-soft-2); color: var(--c-muted); font-weight: 800; flex: none; transition: background-color .25s, color .25s, box-shadow .25s; }
.step-num .icon { display: none; width: 18px; height: 18px; }
.step.is-active .step-num { background: var(--c-primary); color: var(--c-on-primary); box-shadow: 0 0 0 6px var(--c-primary-50); }
.step.is-done .step-num { background: var(--c-success-ink); color: #fff; }
.step.is-done .step-num span { display: none; }
.step.is-done .step-num .icon { display: block; }
.step-title { display: block; color: var(--c-ink); font-weight: 700; font-size: .95rem; line-height: 1.25; }
.step.is-active .step-title { color: var(--c-primary-ink); }
.step-sub { display: none; font-size: .8rem; line-height: 1.3; }
@media (min-width: 560px) { .step-sub { display: block; } }
.step-line { flex: 1 1 24px; max-width: 72px; height: 3px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.step-line::before { content: ""; display: block; width: 0; height: 100%; background: var(--c-success-ink); transition: width .4s var(--ease); }
.step.is-done + .step-line::before { width: 100%; }
@keyframes ew-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.success-panel { padding: .5rem 0 0; text-align: center; animation: ew-in .4s var(--ease); outline: 0; }
.success-panel .icon-tile { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 1rem; box-shadow: 0 0 0 10px var(--c-success-50); }
.success-panel .icon-tile .icon { width: 38px; height: 38px; }
.success-panel h2 { font-size: 1.6rem; }
.success-panel > p { color: var(--c-muted); }
.success-panel .check-list { max-width: 440px; margin: 1.25rem auto 0; text-align: start; }

/* ---------- Inner page hero (features, about, pricing, contact, legal) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 24px 0 64px;
    background:
        radial-gradient(46% 70% at 94% 0%, rgba(var(--c-primary-rgb), .15), transparent 70%),
        radial-gradient(34% 54% at 0% 24%, rgba(var(--c-success-rgb), .08), transparent 70%),
        linear-gradient(180deg, var(--c-soft) 0%, #fafcff 70%, #fff 100%);
}
.page-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(var(--c-primary-rgb), .13) 1.1px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(46% 60% at 84% 20%, #000, transparent 72%);
    mask-image: radial-gradient(46% 60% at 84% 20%, #000, transparent 72%);
    pointer-events: none;
}
.page-hero.is-center::before { -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 72%); mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 72%); }
@media (min-width: 1024px) { .page-hero { padding: 32px 0 88px; } }
.page-hero.is-tight { padding-bottom: 40px; }
.page-hero.has-stats, .page-hero.has-cards { padding-bottom: 104px; }
@media (min-width: 1024px) {
    .page-hero.is-tight { padding-bottom: 56px; }
    .page-hero.has-stats { padding-bottom: 136px; }
    .page-hero.has-cards { padding-bottom: 120px; }
}
.page-hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.page-hero-copy { position: relative; }
.page-hero.is-center .page-hero-copy { max-width: 800px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 1.25rem + 3.3vw, 3.5rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.page-hero-lead { max-width: 40rem; margin: 0; color: var(--c-muted); font-size: clamp(1rem, .95rem + .35vw, 1.15rem); }
.page-hero.is-center .page-hero-lead { margin: 0 auto; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.page-hero.is-center .page-hero-actions { justify-content: center; }
.page-hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .page-hero-actions .btn { flex: 0 0 auto; } }
.page-hero-visual { position: relative; min-width: 0; }

.crumbs { margin-bottom: 1rem; font-size: .86rem; font-weight: 600; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; }
.page-hero.is-center .crumbs ol { justify-content: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .45rem; color: var(--c-primary-ink); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--c-muted); border-right: 1.5px solid var(--c-muted); transform: rotate(45deg); }
[dir="rtl"] .crumbs li + li::before { transform: rotate(-135deg); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary-ink); }

.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; list-style: none; }
.hero-chips .chip { background: #fff; border: 1px solid var(--c-line); color: var(--c-ink-2); box-shadow: var(--shadow-xs); }
.hero-chips .chip .icon { color: var(--c-primary-strong); }
.chip-link:hover { background: var(--c-primary-100); color: var(--c-band-a); }

/* empty or "nothing found" notice */
.empty-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; max-width: 780px; margin: 0 auto; padding: 1.25rem 1.4rem; }
.empty-card > div { flex: 1 1 240px; min-width: 0; }
.empty-card strong { display: block; color: var(--c-ink); font-size: 1.05rem; line-height: 1.35; }
.empty-card p { margin: .2rem 0 0; color: var(--c-muted); font-size: .94rem; }

/* ---------- Features page ---------- */
/* hero: a wall of module icons with the module count on top */
.icon-wall { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); max-width: 500px; margin: 0 auto; padding: 6px; }
.icon-wall-tile {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid var(--c-line);
    border-radius: 24%;
    background: #fff;
    color: var(--tile-fg);
    box-shadow: var(--shadow-sm);
}
.icon-wall-tile:nth-child(3n + 1) { background: var(--tile-bg); border-color: transparent; }
.icon-wall-tile .icon { width: 40%; height: 40%; }
@supports not (aspect-ratio: 1) { .icon-wall-tile { height: 92px; } }
@media (prefers-reduced-motion: no-preference) {
    .icon-wall-tile { animation: ew-bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.55s); }
}
@keyframes ew-bob { 50% { transform: translateY(-5px); } }
.icon-wall-badge {
    position: absolute;
    left: 50%; top: 50%;
    display: grid;
    justify-items: center;
    gap: .2rem;
    min-width: 52%;
    padding: 1.1rem 1.4rem;
    transform: translate(-50%, -50%);
    text-align: center;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.icon-wall-badge strong { color: var(--c-ink); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.icon-wall-badge span { color: var(--c-muted); font-size: .9rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 1023px) { .icon-wall { max-width: 360px; } }

/* group links and search under the hero; sticky from tablets up */
.group-bar { position: relative; z-index: 20; background: rgba(255, 255, 255, .95); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.group-bar-inner { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; padding-top: .75rem; padding-bottom: .75rem; }
.group-links { display: flex; gap: .45rem; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.group-links::-webkit-scrollbar { display: none; }
.group-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex: none;
    min-height: 40px;
    padding: .4rem .55rem .4rem .8rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--c-ink-2);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.group-links a:hover { border-color: var(--c-primary-200); color: var(--c-primary-ink); }
.group-links a.is-active { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-on-primary); }
.group-links a.is-dim { opacity: .45; }
.group-links .count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: var(--radius-pill); background: var(--c-soft-2); color: var(--c-muted); font-size: .75rem; font-weight: 800; }
.group-links a.is-active .count { background: rgba(255, 255, 255, .24); color: inherit; }
.group-search {
    display: none;
    align-items: center;
    gap: .55rem;
    height: 44px;
    padding: 0 1rem;
    border: 1.5px solid var(--c-line-2);
    border-radius: var(--radius-pill);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.js .group-search { display: flex; }
.group-search:focus-within { border-color: var(--c-primary-strong); box-shadow: var(--ring); }
.group-search .icon { width: 18px; height: 18px; color: var(--c-muted); }
.group-search input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--c-ink); -webkit-appearance: none; appearance: none; }
.group-search input::placeholder { color: #94a3b8; opacity: 1; }
.group-search input::-webkit-search-cancel-button { cursor: pointer; }
@media (min-width: 768px) {
    .group-bar { position: -webkit-sticky; position: sticky; top: var(--header-h); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
    .group-bar-inner { flex-direction: row; align-items: center; gap: 1rem; min-height: 68px; padding-top: .6rem; padding-bottom: .6rem; }
    .group-links { flex: 1; }
    .group-search { flex: 0 0 240px; }
}

.feature-group { padding: 48px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.feature-group:nth-of-type(even) { background: var(--c-soft); }
.feature-group.is-hidden { display: none; }
@media (min-width: 768px) { .feature-group { scroll-margin-top: calc(var(--header-h) + 76px); } }
@media (min-width: 1024px) { .feature-group { padding: 72px 0; } }
.feature-group-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
    .feature-group-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 2.25fr); gap: 48px; align-items: start; }
    .feature-group-head { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 100px); }
}
.feature-group-head .icon-tile { margin-bottom: 1rem; }
.feature-group-head h2 { margin-bottom: .45rem; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.05rem); }
.feature-group-head p { margin-bottom: 1rem; color: var(--c-muted); }
.feature-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.feature-list .feature-card { flex-direction: row; align-items: flex-start; padding: 1.15rem; }
.feature-list .feature-card p { font-size: .88rem; }
.feature-card.is-hidden { display: none; }
[data-search-empty] { padding-top: 48px; padding-bottom: 48px; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border-radius: var(--radius-pill); background: var(--c-primary-50); color: var(--c-primary-ink); font-size: .74rem; font-weight: 700; line-height: 1.3; }
.tag .icon { width: 13px; height: 13px; }
.tag-green { background: var(--c-success-50); color: var(--c-success-ink); }
.tag-orange { background: var(--c-accent-50); color: var(--c-accent-ink); }

/* ---------- About page ---------- */
/* hero without a photo: the people of a school around the platform */
.orbit { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin: 0 auto; }
@supports not (aspect-ratio: 1) { .orbit { height: 420px; } }
.orbit-ring { position: absolute; top: 12%; right: 12%; bottom: 12%; left: 12%; border: 1.5px dashed var(--c-primary-200); border-radius: 50%; }
.orbit-ring-2 { top: 28%; right: 28%; bottom: 28%; left: 28%; border: 1px solid var(--c-line); background: radial-gradient(circle, rgba(var(--c-primary-rgb), .1), transparent 70%); }
.orbit-core {
    position: absolute;
    left: 50%; top: 50%;
    display: grid;
    place-items: center;
    width: 27%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    color: var(--c-primary-strong);
    box-shadow: var(--shadow-lg), 0 0 0 10px rgba(var(--c-primary-rgb), .07);
}
.orbit-core img { width: 60%; height: auto; }
.orbit-core .icon { width: 42%; height: 42%; }
.orbit-item { position: absolute; transform: translate(-50%, -50%); }
.orbit-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .85rem .3rem .3rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--c-ink);
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow);
}
[dir="rtl"] .orbit-chip { padding: .3rem .3rem .3rem .85rem; }
.orbit-chip .icon-tile { width: 34px; height: 34px; border-radius: 50%; }
.orbit-chip .icon-tile .icon { width: 17px; height: 17px; }
@media (max-width: 479px) {
    .orbit-chip { gap: .35rem; padding-right: .6rem; font-size: .76rem; }
    .orbit-chip .icon-tile { width: 28px; height: 28px; }
    .orbit-chip .icon-tile .icon { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
    .orbit-chip { animation: ew-bob 7s ease-in-out infinite; }
    .orbit-item:nth-of-type(odd) .orbit-chip { animation-delay: -3.5s; }
}
.about-photo { position: relative; padding-bottom: 18px; }
.about-photo img { width: 100%; border-radius: var(--radius-xl); object-fit: cover; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.about-photo .hand { position: absolute; left: 5%; bottom: 0; padding: .25rem .9rem; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); transform: rotate(-3deg); }
[dir="rtl"] .about-photo .hand { left: auto; right: 5%; transform: rotate(3deg); }

.value-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; }
.value-grid.is-few { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 380px)); justify-content: center; }
.value-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.3rem; }
.value-card .icon-tile { width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--tile-fg); box-shadow: 0 10px 20px -12px var(--tile-fg); }
.value-card strong { color: var(--c-ink); font-size: 1.05rem; line-height: 1.35; }

.role-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.role-card { padding: 1.4rem 1.3rem; }
.role-card .icon-tile { margin-bottom: .9rem; }
.role-card h3 { margin-bottom: 0; font-size: 1.1rem; }
.role-card .check-list { gap: .55rem; margin-top: .85rem; font-size: .92rem; line-height: 1.45; }

.step-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; }
.step-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.35rem 1.3rem 1.3rem; }
.step-card-num { position: absolute; top: .9rem; right: 1.1rem; color: var(--c-primary-100); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
[dir="rtl"] .step-card-num { right: auto; left: 1.1rem; }
.step-card .icon-tile { margin-bottom: .6rem; }
.step-card strong { color: var(--c-ink); font-size: 1.02rem; line-height: 1.3; }
.step-card > span:last-child { color: var(--c-muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Pricing page ---------- */
.pricing-main { padding-top: 8px; }
@media (min-width: 1024px) { .pricing-main { padding-top: 16px; } }
/* relative: keeps the screen-reader labels of the cells inside the scrolling box */
.compare-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.compare { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .94rem; }
.compare col:first-child { width: 220px; }
@media (min-width: 1024px) { .compare col:first-child { width: 32%; } }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 1px solid var(--c-line); text-align: center; vertical-align: middle; }
.compare th:first-child { text-align: start; }
.compare thead th { background: #fff; border-bottom: 2px solid var(--c-line-2); color: var(--c-ink); font-size: 1rem; font-weight: 800; line-height: 1.3; }
.compare thead th small { display: block; margin-top: .2rem; color: var(--c-muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.compare thead th.is-popular { background: var(--c-primary-50); color: var(--c-primary-ink); }
.compare tbody th { position: -webkit-sticky; position: sticky; left: 0; z-index: 1; background: #fff; color: var(--c-ink-2); font-weight: 600; overflow-wrap: anywhere; }
[dir="rtl"] .compare tbody th { left: auto; right: 0; }
.compare tbody tr:hover > * { background: var(--c-soft); }
.compare tr:last-child > * { border-bottom: 0; }
.compare-group th { background: var(--c-soft); color: var(--c-ink); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compare-yes { width: 22px; height: 22px; margin: 0 auto; color: var(--c-success-ink); }
.compare-no { width: 18px; height: 18px; margin: 0 auto; color: var(--c-line-2); }

.addon-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; }
.addon-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; }
.addon-card > div { flex: 1; min-width: 0; }
.addon-card strong { display: block; color: var(--c-ink); line-height: 1.3; }
.addon-card div span { display: block; margin-top: .1rem; color: var(--c-muted); font-size: .85rem; line-height: 1.4; }
.addon-price { flex: none; padding: .35rem .75rem; border-radius: var(--radius-pill); background: var(--c-accent-50); color: var(--c-accent-ink); font-weight: 800; }

.included { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .included { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; } }
.included-text h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.included-text > p { color: var(--c-muted); font-size: 1.05rem; }
.included-label { margin: 1.5rem 0 .75rem; color: var(--c-ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.module-chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; }
.module-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .95rem .4rem .4rem; border: 1px solid var(--c-line); border-radius: var(--radius-pill); background: #fff; color: var(--c-ink); font-size: .92rem; font-weight: 600; box-shadow: var(--shadow-xs); }
[dir="rtl"] .module-chip { padding: .4rem .4rem .4rem .95rem; }
.module-chip .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--tile-bg); color: var(--tile-fg); }
.included-card { padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.included-card .included-label { margin-top: 0; }
.included-card .check-list { margin: 0 0 1.4rem; }

.billing-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 900px; margin: 0 auto; }
.billing-grid.is-single { max-width: 560px; }
.billing-card { padding: 1.5rem; }
.billing-card .icon-tile { margin-bottom: 1rem; }
.billing-card h3 { font-size: 1.15rem; }
.billing-card p { margin: 0; color: var(--c-muted); }
.faq-more { display: inline-flex; align-items: center; gap: .35rem; justify-self: start; margin-top: .4rem; font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal-section { padding-top: 8px; }
.legal-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) {
    .legal-section { padding-top: 16px; }
    .legal-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
    .legal-side { position: -webkit-sticky; position: sticky; top: calc(var(--header-h) + 24px); }
}
.legal-side { display: grid; gap: 16px; }
.legal-side-title { margin: 0 0 .55rem; color: var(--c-muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav { display: grid; gap: .2rem; padding: 1rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.legal-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-xs); color: var(--c-ink-2); font-size: .94rem; font-weight: 600; }
.legal-nav a .icon { width: 18px; height: 18px; color: var(--c-muted); }
.legal-nav a:hover { background: var(--c-soft); color: var(--c-primary-ink); }
.legal-nav a[aria-current="page"] { background: var(--c-primary-50); color: var(--c-primary-ink); }
.legal-nav a[aria-current="page"] .icon { color: var(--c-primary-strong); }
.legal-toc { display: none; padding: .2rem 0 .2rem 1rem; border-left: 2px solid var(--c-line); }
[dir="rtl"] .legal-toc { padding: .2rem 1rem .2rem 0; border-left: 0; border-right: 2px solid var(--c-line); }
@media (min-width: 1024px) { .legal-toc { display: block; max-height: calc(100vh - var(--header-h) - 260px); overflow: auto; } }
.legal-toc ol { display: grid; gap: .1rem; list-style: none; }
.legal-toc a { display: block; padding: .3rem 0; color: var(--c-ink-2); font-size: .9rem; line-height: 1.4; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--c-primary-ink); }
.legal-toc a.is-active { font-weight: 700; }
.legal-toc .is-sub a { padding-left: .85rem; color: var(--c-muted); font-size: .86rem; }
[dir="rtl"] .legal-toc .is-sub a { padding-left: 0; padding-right: .85rem; }
.legal-main { display: grid; gap: 16px; min-width: 0; }
.legal-doc { padding: clamp(1.4rem, 4vw, 3rem); border-radius: var(--radius-lg); }
.legal-empty { display: grid; justify-items: center; gap: .6rem; padding: 1.5rem 0; text-align: center; }
.legal-empty .icon-tile { width: 64px; height: 64px; margin-bottom: .4rem; }
.legal-empty .icon-tile .icon { width: 30px; height: 30px; }
.legal-empty h2 { margin: 0; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
.legal-empty p { max-width: 36rem; margin: 0 0 .8rem; color: var(--c-muted); }
.legal-help { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; padding: 1rem 1.2rem; }
.legal-help > div { flex: 1 1 240px; min-width: 0; }
.legal-help strong { display: block; color: var(--c-ink); }
.legal-help span { color: var(--c-muted); font-size: .92rem; overflow-wrap: anywhere; }
.prose { max-width: 74ch; color: var(--c-ink-2); overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.2rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: .5rem .75rem; border: 1px solid var(--c-line); }

/* ---------- Small additions to shared parts ---------- */
.eco-more { margin-top: 1.75rem; }
.mobile-menu nav a.is-active { color: var(--c-primary-ink); }
.mobile-menu nav a.is-active .icon { color: var(--c-primary-strong); }
.aside-help { display: flex; align-items: center; gap: .9rem; margin: 20px 0 40px; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.aside-help > div { min-width: 0; }
.aside-help strong { display: block; margin-bottom: .1rem; color: var(--c-ink); font-size: .95rem; }
.aside-help a { display: block; font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Page not found (errors/404) ---------- */
.error-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(50% 45% at 50% 0%, rgba(var(--c-primary-rgb), .14), transparent 70%),
        radial-gradient(40% 40% at 100% 100%, rgba(var(--c-accent-rgb), .08), transparent 70%),
        var(--c-soft);
}
@supports (min-height: 100dvh) { .error-page { min-height: 100dvh; } }
.error-wrap { display: grid; justify-items: center; gap: 1rem; width: 100%; max-width: 640px; text-align: center; }
.error-brand { margin-bottom: .5rem; color: var(--c-ink); font-size: 1.3rem; font-weight: 800; }
.error-brand img { height: 46px; width: auto; max-width: 240px; object-fit: contain; }
.error-code { margin: 0; font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; }
.error-wrap h1 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.error-text { max-width: 30rem; margin: 0 0 .5rem; color: var(--c-muted); }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: .75rem; }
.error-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; color: var(--c-ink-2); font-weight: 600; transition: transform .2s var(--ease), border-color .2s, color .2s; }
.error-links a .icon { width: 18px; height: 18px; color: var(--c-primary-strong); }
.error-links a:hover { border-color: var(--c-primary-200); color: var(--c-primary-ink); transform: translateY(-2px); }

/* ---------- Page changes: a short cross-fade between pages (Chrome, Edge, Safari 18.2+), header kept still ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Reveal on scroll (only when the script runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media print {
    .site-header, .mobile-menu, .hero-visual, .auth-aside, .socials, .group-bar, .legal-side, .legal-help { display: none !important; }
    .legal-grid { display: block; }
    .js .reveal { opacity: 1; transform: none; }
}
