/* StayReplied marketing site. Same tokens as the app (web/app/src/styles.css): navy #0b1640, blue #1d3fd8, cyan #14c8e0,
   violet #6d4aff on cool-grey neutrals; Inter / Segoe UI, Arabic system fonts, no font CDN. Logical properties only, so
   Arabic mirrors without extra rules. Dark mode follows prefers-color-scheme. */
:root {
  --brand-navy: #0b1640;
  --brand-blue: #1d3fd8;
  --brand-blue-700: #1631ad;
  --brand-cyan: #14c8e0;
  --brand-violet: #6d4aff;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --surface-3: #eceff5;
  --border: #e5e8ef;
  --border-strong: #d3d9e3;
  --text: #111629;
  --text-2: #4c546c;
  --text-3: #5f6781;
  --primary: #1d3fd8;
  --primary-hover: #1834bb;
  --primary-active: #1631ad;
  --primary-soft: #eef1ff;
  --primary-soft-2: #e0e6ff;
  --accent-text: #1d3fd8;
  --on-primary: #ffffff;
  --ok: #0e7a47;
  --ok-soft: #e5f6ed;
  --warn: #8a5100;
  --warn-soft: #fff3dd;
  --danger: #c0233a;
  --danger-soft: #fdebee;
  --info: #0a6c7d;
  --info-soft: #e1f6f9;
  --violet: #5636db;
  --violet-soft: #efebff;

  --hero-1: #0d1a52;
  --hero-2: #0b1640;
  --hero-3: #0a1236;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --font-ar: "Segoe UI", "SF Arabic", "Noto Sans Arabic", "IBM Plex Sans Arabic", "Geeza Pro", "Dubai", Tahoma, system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 22, 41, 0.05), 0 1px 3px rgba(17, 22, 41, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(17, 22, 41, 0.1), 0 2px 4px -2px rgba(17, 22, 41, 0.05);
  --shadow-lg: 0 30px 60px -20px rgba(6, 12, 40, 0.45), 0 10px 24px -10px rgba(6, 12, 40, 0.25);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px rgba(29, 63, 216, 0.6);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms;
  --t-med: 220ms;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d18;
    --surface: #10141f;
    --surface-2: #0d111c;
    --surface-3: #1c2233;
    --border: #232a3c;
    --border-strong: #303952;
    --text: #e8ebf4;
    --text-2: #b4bacb;
    --text-3: #9aa1b6;
    --primary: #4462f0;
    --primary-hover: #5672ff;
    --primary-active: #3a55d6;
    --primary-soft: rgba(102, 128, 255, 0.14);
    --primary-soft-2: rgba(102, 128, 255, 0.22);
    --accent-text: #9aabff;
    --ok: #5ad19a;
    --ok-soft: rgba(90, 209, 154, 0.13);
    --warn: #f2b85c;
    --warn-soft: rgba(242, 184, 92, 0.13);
    --danger: #ff7d8f;
    --danger-soft: rgba(255, 125, 143, 0.13);
    --info: #5fd8ea;
    --info-soft: rgba(95, 216, 234, 0.12);
    --violet: #b6a4ff;
    --violet-soft: rgba(150, 128, 255, 0.15);
    --hero-1: #0c1547;
    --hero-2: #080f30;
    --hero-3: #070b22;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, 0.75);
    --ring: 0 0 0 2px var(--bg), 0 0 0 4px rgba(122, 146, 255, 0.8);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
:lang(ar), [dir="rtl"] body { font-family: var(--font-ar); }
[dir="rtl"] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: 1192px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-block-start: 32px; }
.ico { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ico.arrow { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 8px; inset-block-start: -60px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { inset-block-start: 8px; color: #fff; }
.preview-bar { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 0.85rem; padding: 6px 16px; }
main:focus { outline: none; box-shadow: none; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
  border: 1px solid transparent; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn:active { background: var(--primary-active); }
.btn.primary { box-shadow: 0 1px 2px rgba(29, 63, 216, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn.lg { min-height: 50px; padding: 13px 24px; font-size: 1rem; border-radius: 10px; }
.btn.soft { background: var(--primary-soft); color: var(--accent-text); box-shadow: none; }
.btn.soft:hover { background: var(--primary-soft-2); color: var(--accent-text); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.on-dark { background: #ffffff; color: var(--brand-navy); box-shadow: 0 8px 24px -8px rgba(20, 200, 224, 0.45); }
.btn.on-dark:hover { background: #eef1ff; color: var(--brand-navy); }
.btn.ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block: 28px 0; }
.actions.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent-text); min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.text-link .ico { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.text-link:hover .ico { transform: translateX(3px); }
[dir="rtl"] .text-link:hover .ico { transform: scaleX(-1) translateX(3px); }
.text-link.light { color: #cfe0ff; }
.text-link.light:hover { color: #fff; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); border-block-end: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 34px; width: auto; }
.nav-desk { margin-inline-start: 20px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--r-md); color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 550; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent-text); background: var(--primary-soft); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-md); color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 550; }
.lang:hover { color: var(--text); background: var(--surface-2); }
.lang .ico { width: 18px; height: 18px; }
.menu { display: none; }
.menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md); cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-panel { position: absolute; inset-inline: 0; inset-block-start: 100%; background: var(--surface); border-block-end: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 8px 16px 16px; }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-links a { display: flex; align-items: center; min-height: 48px; padding: 4px 8px; color: var(--text); text-decoration: none; font-weight: 600; border-block-end: 1px solid var(--border); }
.menu-links a[aria-current="page"] { color: var(--accent-text); }
.menu-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block-start: 12px; }
@media (max-width: 1040px) {
  .nav-desk, .top-actions > .signin { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  .top-actions > .lang { display: none; }
  .brand img { height: 28px; }
  .top-actions .btn.primary { padding-inline: 14px; font-size: 0.9rem; }
}
@media (max-width: 400px) {
  .top-in { gap: 8px; }
  .brand img { height: 24px; }
  .top-actions { gap: 6px; }
  .top-actions .btn.primary { padding-inline: 10px; font-size: 0.84rem; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding-block: 72px 0; text-align: center; isolation: isolate;
  background: linear-gradient(170deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 360px at 85% 0%, rgba(109, 74, 255, 0.4), transparent 70%),
    radial-gradient(560px 360px at 10% 30%, rgba(20, 200, 224, 0.22), transparent 70%); }
.hero::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 30%; z-index: -1; background: var(--bg); }
.hero-in { max-width: 920px; }
.hero h1 { color: #fff; max-width: 18ch; margin-inline: auto; margin-block-end: 20px; }
.hero .lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: #d3dbf7; max-width: 62ch; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-block-end: 18px; font-size: 0.85rem; font-weight: 650; letter-spacing: 0.02em; color: var(--accent-text); }
.eyebrow.on-dark { color: #bdf3fb; padding: 6px 14px; border-radius: var(--r-full); background: rgba(20, 200, 224, 0.1); border: 1px solid rgba(20, 200, 224, 0.3); }
.eyebrow .ico { width: 16px; height: 16px; }
.cta-note { margin-block: 14px 0; font-size: 0.92rem; color: #b8c4ec; }
.proof { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: #dfe6ff; font-size: 0.95rem; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof .ico { width: 18px; height: 18px; color: var(--brand-cyan); }
.hero-shot { margin-block-start: 56px; padding-block-end: 8px; }
.hero-shot figure { margin: 0; }
.hero-shot figcaption, .product-shot figcaption { margin-block-start: 14px; font-size: 0.85rem; color: var(--text-3); text-align: center; }
.product-shot { margin: 0; }
.frame { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow-lg); }
.section .frame { border-color: var(--border); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: #eceff5; border-block-end: 1px solid #e1e5ee; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d0de; }
.frame-bar span { margin-inline-start: 10px; padding: 2px 12px; border-radius: var(--r-full); background: #fff; color: #5f6781; font-size: 0.75rem; }
@media (prefers-color-scheme: dark) {
  .frame-bar { background: #161b28; border-color: #232a3c; }
  .frame-bar i { background: #343c52; }
  .frame-bar span { background: #0d111c; color: #9aa1b6; }
}
.frame img { width: 100%; }
@media (max-width: 640px) {
  .hero { padding-block-start: 48px; }
  .hero-shot { margin-block-start: 40px; }
  .frame-bar { height: 26px; }
  .frame-bar span { display: none; }
  .proof { flex-direction: column; align-items: center; }
}

/* ---------- Sub-page hero ---------- */
.page-hero { padding-block: 64px 48px; border-block-end: 1px solid var(--border);
  background: radial-gradient(700px 260px at 90% -20%, rgba(109, 74, 255, 0.1), transparent 70%),
    radial-gradient(600px 260px at 0% 120%, rgba(20, 200, 224, 0.1), transparent 70%), var(--surface-2); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); max-width: 22ch; }
.page-hero .lede { font-size: 1.15rem; color: var(--text-2); max-width: 66ch; margin: 0; }
.legal-hero { padding-block: 48px 36px; }
.legal-hero h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem); }
@media (max-width: 640px) { .page-hero { padding-block: 40px 32px; } }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section.tight { padding-block: 48px 72px; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-block-end: 12px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }
.narrow .section-head { text-align: start; margin-inline: 0; }
@media (max-width: 640px) { .section { padding-block: 56px; } .section-head { margin-block-end: 28px; } }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { color: var(--text); margin-block-end: 8px; }
.card p { color: var(--text-2); margin: 0; }
.card p + p { margin-block-start: 8px; }
.feature .tile, .channels .tile, .contact-side .tile { width: 44px; height: 44px; padding: 11px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--accent-text); margin-block-end: 16px; }
.grid .feature:nth-child(3n + 2) .tile { background: var(--info-soft); color: var(--info); }
.grid .feature:nth-child(3n + 3) .tile { background: var(--violet-soft); color: var(--violet); }

/* Channels */
.channels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.channels li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.channels h3 { margin: 0; font-size: 1.02rem; }
.channels p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.channels .tile { margin-block-end: 10px; }
.ch-whatsapp .tile { background: var(--ok-soft); color: var(--ok); }
.ch-instagram .tile { background: var(--violet-soft); color: var(--violet); }
.ch-mail .tile { background: var(--info-soft); color: var(--info); }
.channels-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 24px auto 0; max-width: 760px; color: var(--text-2); font-size: 0.95rem; text-align: start; }
.channels-note .ico { width: 18px; height: 18px; margin-block-start: 4px; color: var(--text-3); }
@media (max-width: 1000px) { .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .channels { grid-template-columns: 1fr 1fr; } .channels li { padding: 16px; } }
@media (max-width: 400px) { .channels { grid-template-columns: 1fr; } .channels li { flex-direction: row; align-items: center; gap: 14px; } .channels .tile { margin: 0; } }

/* Bento: two large feature cards with real screens */
.bento { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.card.big { display: flex; flex-direction: column; gap: 24px; padding: 0; overflow: hidden; }
.big-text { padding: 28px 28px 0; }
.big-text .tile { width: 44px; height: 44px; padding: 11px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--accent-text); margin-block-end: 16px; }
.alt-tone .big-text .tile { background: var(--violet-soft); color: var(--violet); }
.big-text h3 { font-size: 1.3rem; }
.big-shot { margin-block-start: auto; margin-inline-start: 28px; border-start-start-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); border-inline-end: 0; border-block-end: 0; box-shadow: var(--shadow-md); }
.big-shot.small { margin-inline: 28px; margin-block-end: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); }
.big-shot img { width: 100%; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .big-text { padding: 22px 22px 0; } .big-shot { margin-inline-start: 22px; } .big-shot.small { margin-inline: 22px; margin-block-end: 22px; } }

/* How it works */
.how { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
.how .section-head { text-align: start; margin-inline: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { counter-increment: step; position: relative; padding-block: 16px; padding-inline-start: 60px; border-block-end: 1px solid var(--border); }
.steps li:last-child { border-block-end: 0; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet)); }
.steps h3 { margin-block-end: 4px; }
.steps p { margin: 0; color: var(--text-2); }
.phone { margin: 0 auto; width: min(300px, 100%); padding: 10px; border-radius: 40px; background: #0b1640; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 30px; width: 100%; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 40px; } }

/* Pricing cards (home and /pricing). Values come from web/shared/plan-catalog.json. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.card.plan { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.card.plan.featured { border: 2px solid var(--primary); box-shadow: 0 18px 40px -18px rgba(29, 63, 216, 0.45); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-head h3 { margin: 0; font-size: 1.25rem; }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: var(--r-full); background: var(--primary-soft); color: var(--accent-text); font-size: 0.8rem; font-weight: 650; white-space: nowrap; }
.card.plan p { margin: 0; }
.plan .price { margin-block-start: 12px; color: var(--text); display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan .price strong { font-size: 2.4rem; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--text-2); }
.plan .price-note { font-weight: 600; color: var(--accent-text); font-size: 0.95rem; }
.code { display: inline-block; padding: 0 8px; border-radius: var(--r-sm); background: var(--primary-soft); font-weight: 700; letter-spacing: 0.03em; }
.plan .regular { color: var(--text-2); font-size: 0.95rem; }
.plan .vat { color: var(--text-3); font-size: 0.88rem; }
.plan-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; color: var(--text-2); border-block-start: 1px solid var(--border); padding-block-start: 18px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .ico { width: 18px; height: 18px; color: var(--ok); margin-block-start: 4px; }
.plan-actions { margin-block-start: auto; display: grid; gap: 10px; }
.plan-actions .btn { width: 100%; }
.plan-actions .btn[data-checkout-soon], .plan-actions .btn[data-checkout-open] { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.plan-actions .btn[data-checkout-soon]:hover, .plan-actions .btn[data-checkout-open]:hover { background: var(--surface-2); }
.plan-actions .btn[hidden] { display: none; }

.offer { display: flex; gap: 16px; align-items: flex-start; margin-block-start: 24px; padding: 22px 24px; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--primary-soft), var(--violet-soft)); border: 1px solid var(--primary-soft-2); }
.offer-ico { width: 44px; height: 44px; padding: 11px; border-radius: var(--r-lg); background: var(--surface); color: var(--accent-text); }
.offer h2 { margin: 0 0 6px; font-size: 1.15rem; }
.offer ul { margin: 0; padding-inline-start: 1.1rem; color: var(--text-2); display: grid; gap: 2px; }
@media (max-width: 640px) { .offer { flex-direction: column; padding: 20px; } }

.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-lg); padding: 12px 16px; font-weight: 600; margin: 0 0 24px; }
.notice[hidden] { display: none; }
.section .notice[data-checkout-soon], .section .notice[data-checkout-open] { background: var(--info-soft); color: var(--info); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { width: 18px; height: 18px; color: var(--ok); margin-block-start: 5px; }
@media (max-width: 900px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: start; padding: 12px 16px; border-block-end: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-block-end: 0; }
.table thead th { background: var(--surface-2); font-size: 0.85rem; color: var(--text-2); font-weight: 650; }
.capacity th[scope="row"], .example th[scope="row"] { font-weight: 500; }
.capacity td { white-space: nowrap; text-align: end; font-variant-numeric: tabular-nums; }
.capacity thead th:not(:first-child) { text-align: end; }
.example td { text-align: end; font-variant-numeric: tabular-nums; }
.example tr.total th, .example tr.total td { font-weight: 700; }
.table-note { color: var(--text-2); font-size: 0.92rem; margin-block-start: 16px; max-width: 80ch; }
@media (max-width: 640px) { .table th, .table td { padding: 10px 10px; font-size: 0.9rem; } .plan .price strong { font-size: 2rem; } }
/* Capacity table on phones: the limit names keep a readable width (no one word per line) and the table scrolls sideways. */
.table.capacity tbody th { min-inline-size: 8.5rem; }
/* On narrow screens the plan columns scroll sideways inside .table-scroll; the row names stay in view. */
.table.capacity tbody th, .table.capacity thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); }
.table.capacity thead th:first-child { background: var(--surface-2); }
.table.capacity td { white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; font-weight: 650; border-radius: var(--r-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq-ico { width: 20px; height: 20px; color: var(--text-3); transition: transform var(--t-med) var(--ease); }
.faq details[open] .faq-ico { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

/* Closing call to action */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: 80px; text-align: center;
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3)); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 300px at 80% 0%, rgba(109, 74, 255, 0.38), transparent 70%), radial-gradient(460px 280px at 15% 100%, rgba(20, 200, 224, 0.22), transparent 70%); }
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band p { color: #d3dbf7; font-size: 1.1rem; margin: 0; }
.cta-band .actions { justify-content: center; }
@media (max-width: 640px) { .cta-band { padding-block: 56px; } }

/* Integrations */
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; }
.legend div { display: flex; gap: 10px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.legend dd { margin: 0; color: var(--text-2); font-size: 0.92rem; }
@media (max-width: 760px) { .legend { grid-template-columns: 1fr; } }
.group-h { font-size: 1.35rem; margin-block: 8px 16px; }
.integrations { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 10px; }
.integrations li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.integrations h3 { margin: 0 0 2px; font-size: 1.02rem; }
.integrations p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 560px) { .integrations li { flex-direction: column; align-items: flex-start; } }
.badge { display: inline-flex; align-items: center; min-height: 24px; white-space: nowrap; font-size: 0.8rem; font-weight: 650; padding: 2px 10px; border-radius: var(--r-full); }
.badge.available { background: var(--ok-soft); color: var(--ok); }
.badge.private_beta { background: var(--info-soft); color: var(--info); }
.badge.planned { background: var(--surface-3); color: var(--text-2); }

.report { margin-inline: 0; }
.report h2 { font-size: 1.2rem; }

/* Long-form legal text */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.3rem; margin-block: 2em 0.6em; padding-block-start: 0.4em; }
.prose p, .prose li { color: var(--text-2); max-width: 72ch; }
.prose a { overflow-wrap: anywhere; }
.prose .table-scroll { margin-block: 12px 24px; }

/* Contact form */
.form-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; padding: 28px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row.two { grid-template-columns: 1fr; } .form { padding: 20px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 11px 12px; width: 100%; min-height: 46px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primary); }
[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.9rem; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-block-start: 3px; accent-color: var(--primary); }
.fine { font-size: 0.88rem; color: var(--text-2); margin: 0; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: var(--r-md); }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.error { background: var(--danger-soft); color: var(--danger); }
.form .btn { justify-self: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side h2 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.contact-side .tile { margin: 0; width: 40px; height: 40px; padding: 10px; }
.contact-side .card p { margin: 0 0 6px; }
.contact-side .try h2 { display: block; }
.contact-side .try .btn { margin-block-start: 14px; }

/* Footer */
.foot { border-block-start: 1px solid var(--border); background: var(--surface-2); padding-block: 56px 28px; font-size: 0.95rem; }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-block-end: 14px; }
[dir="rtl"] .foot h2 { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--accent-text); }
.foot-brand img { height: 32px; width: auto; }
.foot-brand p { color: var(--text-2); margin-block: 12px 0; max-width: 34ch; }
.foot-brand .foot-cta { margin-block-start: 18px; }
.foot-wa a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); text-decoration: none; font-weight: 550; }
.foot-wa .ico { color: var(--ok); }
.foot-note { margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid var(--border); color: var(--text-3); font-size: 0.85rem;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot-note p { margin: 0; max-width: 70ch; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.foot-meta a { color: var(--text-2); font-weight: 600; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-in { grid-template-columns: 1fr; } }

/* Cookie consent (assets/consent.js). Hidden until the script decides; both choices carry the same weight. */
.consent { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50; background: var(--surface); border-block-start: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15, 26, 58, 0.12); padding-block: 16px; }
.consent[hidden] { display: none; }
.consent-in { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; }
.consent-in p { margin: 0; max-width: 70ch; color: var(--text); }
.consent-in .consent-signal { color: var(--text-2); font-size: 0.92rem; }
.consent-in .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.consent-in .btn[hidden] { display: none; }
.linkish { background: none; border: 0; padding: 0; min-height: 32px; font: inherit; color: var(--text-2); text-decoration: underline; cursor: pointer; }
.linkish:hover, .linkish:focus-visible { color: var(--accent-text); }
@media (max-width: 560px) { .consent-in .actions { width: 100%; } .consent-in .actions .btn { flex: 1 1 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.channels .badge { align-self: flex-start; margin-block-start: 10px; }

/* Phones: every footer link and text button is a 44 px tap target. */
@media (max-width: 640px) {
  .foot ul { gap: 0; }
  .foot ul a, .foot-meta a, .linkish { min-height: 44px; min-inline-size: 44px; display: inline-flex; align-items: center; }
}

/* Long-form pages (src/articles): prose, comparison tables, related links */
.article h2:first-child { margin-block-start: 0; padding-block-start: 0; }
.article ul { padding-inline-start: 1.3em; display: grid; gap: 8px; margin-block: 0 1.2em; }
.article li strong, .article p strong { color: var(--text); }
.compare-wrap { margin-block: 0 32px; }
.table.compare { font-size: 0.95rem; line-height: 1.5; }
.table.compare tbody th { font-weight: 650; min-inline-size: 9rem; }
.table.compare td { color: var(--text-2); }
.table.compare td.na { color: var(--text-3); }
@media (max-width: 640px) {
  /* On a phone each row is a small card: the row name first, then each column with its name as a label. */
  .table.compare thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table.compare, .table.compare tbody, .table.compare tr, .table.compare th, .table.compare td { display: block; inline-size: auto; }
  .table.compare tr { padding: 14px 16px; border-block-end: 1px solid var(--border); }
  .table.compare tbody tr:last-child { border-block-end: 0; }
  .table.compare th, .table.compare td, .table.compare tbody tr:last-child th, .table.compare tbody tr:last-child td { padding: 3px 0; border: 0; }
  .table.compare tbody th { min-inline-size: 0; color: var(--text); font-size: 1rem; padding-block-end: 6px; }
  .table.compare td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 650; color: var(--text-3); }
  .table.compare td.na { display: none; }
}
.related-band { padding-block: 32px; }
.related { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-2); }
.related a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.cta-band p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-band p a:hover { color: #cfe0ff; }

/* Pass E 10 Nov 2026: More from BytesGlue, above the legal line (same block as the other brand sites) */
.foot-more { margin-block-start: 32px; }
.foot-more ul { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); font-size: 0.9rem; }
.foot-more li { display: block; color: var(--text-3); }
.foot-more a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; margin-inline-end: 0.45rem; font-weight: 700; color: var(--text-2); }
@media print { .foot-more { display: none; } }
