/* Nimbo — site design system. Editorial and calm: a serif voice, warm paper, the app's orange.
   Few words, big air, soft panels, real screenshots. Logical properties everywhere (RTL). */

/* Newsreader (SIL OFL 1.1, see /assets/fonts/OFL.txt): Latin, Latin Extended, Vietnamese. CJK and Arabic
   fall back to the system's own serif faces. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-normal-latin.woff2") format("woff2");
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-normal-latin-ext.woff2") format("woff2");
  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: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-normal-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  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: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-italic-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --bg: #fbf7f2;
  --bg-2: #f6efe6;
  --surface: #ffffff;
  --sunk: #f3ece3;
  --ink: #211b16;
  --ink-2: #5a5149;
  --ink-3: #72685f;
  --line: rgba(33, 27, 22, 0.09);
  --line-2: rgba(33, 27, 22, 0.17);
  --accent: #ff7a1a;           /* the app's accent */
  --accent-ink: #ad4507;       /* orange text on light backgrounds (AA) */
  --accent-soft: rgba(255, 122, 26, 0.12);
  --accent-fill: #c24e08;      /* filled orange behind white text (AA) */
  --on-accent: #ffffff;
  --ok: #1d7a46;
  --err: #b42318;
  /* soft panels, all from the app's warm palette */
  --peach: #ffe9d9;
  --apricot: #ffdcbc;
  --butter: #fcefcc;
  --blush: #fbe4dc;
  --sun-1: #ffc68f;
  --sun-2: #ff9b47;
  --sun-3: #ff7a1a;
  --night: #1d1712;            /* footer, Pro card */
  --night-ink: #f6efe7;
  --night-2: #b9ab9c;
  --shadow: 0 1px 2px rgba(60, 30, 10, 0.05), 0 10px 30px -10px rgba(60, 30, 10, 0.12);
  --shadow-lg: 0 2px 6px rgba(60, 30, 10, 0.06), 0 40px 80px -30px rgba(60, 30, 10, 0.35);
  --r: 14px;
  --r-lg: 24px;
  --r-xl: 36px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Apple Garamond", Baskerville, Georgia, "Times New Roman", serif;
  --display: var(--serif);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light dark;
}
:lang(ja) { --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif; }
:lang(zh-Hant) { --serif: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif; }
:lang(ko) { --serif: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", serif; }
:lang(ar) { --serif: "Noto Naskh Arabic", "Times New Roman", "Geeza Pro", serif; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100c;
    --bg-2: #1a150f;
    --surface: #201a15;
    --sunk: #29221b;
    --ink: #f6efe7;
    --ink-2: #cdc2b6;
    --ink-3: #a3978a;
    --line: rgba(255, 238, 220, 0.09);
    --line-2: rgba(255, 238, 220, 0.18);
    --accent: #ff8a33;
    --accent-ink: #ffa865;
    --accent-soft: rgba(255, 138, 51, 0.14);
    --accent-fill: #ff8a33;
    --on-accent: #1d1712;
    --ok: #4ccf86;
    --err: #ff8a80;
    --peach: #33231a;
    --apricot: #3a2617;
    --butter: #322a18;
    --blush: #35231f;
    --sun-1: #b8642a;
    --sun-2: #c4581a;
    --sun-3: #9c3e0c;
    --night: #0d0a08;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  }
}
@media (min-width: 700px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.arr { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }
a:hover .arr { transform: translateX(3px); }
[dir="rtl"] a:hover .arr { transform: scaleX(-1) translateX(3px); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 900px; }
.wrap.wide { max-width: 1320px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main { display: block; }
main:focus { outline: none; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ------------------------------------------------------------------ type */
.display { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.018em; }
.display em, .mega-type em, .slogan em, .hero-h em { font-style: italic; color: var(--accent-ink); }
.display-sm { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.015em; }
.mega-type { font-size: clamp(48px, 8.4vw, 116px); line-height: 0.98; letter-spacing: -0.025em; }
.lead { font-size: clamp(18px, 1.55vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.label .ic { width: 15px; height: 15px; color: var(--accent); }
.label .num { font-family: var(--mono); color: var(--accent-ink); letter-spacing: 0; }
.muted { color: var(--ink-3); font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); }
.more:hover { color: var(--accent-ink); }
/* CJK: no synthetic italics, no tight tracking. Arabic: no tracking, taller lines. */
:lang(ja) em, :lang(zh-Hant) em, :lang(ko) em, :lang(ar) em { font-style: normal; }
:lang(ja) :is(h1, h2, h3, .display, .mega-type), :lang(zh-Hant) :is(h1, h2, h3, .display, .mega-type), :lang(ko) :is(h1, h2, h3, .display, .mega-type) { letter-spacing: 0; line-height: 1.25; }
:lang(ar) :is(h1, h2, h3, .display, .mega-type, .slogan) { letter-spacing: 0; line-height: 1.35; }
:lang(ar) .label { letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 6px 15px; font-size: 14px; }
.btn.big { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn .ic { width: 18px; height: 18px; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; padding: 10px 4px; }
.btn-text:hover { color: var(--accent-ink); }
.ibtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); padding: 0; transition: background 0.15s, border-color 0.15s;
}
.ibtn:hover { border-color: var(--ink); }
.ibtn .ic { width: 17px; height: 17px; }
[dir="rtl"] .pager .ibtn .ic, [dir="rtl"] .fc-actions .ibtn:not(:last-child) .ic, [dir="rtl"] .pg-actions .ibtn .ic { transform: scaleX(-1); }

/* App Store: Apple's official badge artwork, never redrawn. Before release it is shown, unlinked, with a
   "coming soon" caption so it never claims an availability that does not exist yet. */
.store { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; flex: none; }
.store img { height: 50px; width: auto; }
.store.big img { height: 56px; }
.store.small img { height: 40px; }
a.store { border-radius: 10px; transition: transform 0.2s var(--ease); }
a.store:hover { transform: translateY(-2px); }
.store-soon { font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; white-space: nowrap; }
.store.soon img { opacity: 0.94; }
.on-dark .store-soon, .final .store-soon { color: inherit; opacity: 0.8; }

/* ------------------------------------------------------------------ nav: a floating pill */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav-in {
  position: relative; pointer-events: auto; display: flex; align-items: center; gap: 18px; height: 58px; max-width: 1120px; margin-inline: auto;
  padding-inline: 12px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.5) blur(20px); -webkit-backdrop-filter: saturate(1.5) blur(20px);
  box-shadow: 0 8px 30px -12px rgba(60, 30, 10, 0.18);
}
[dir="rtl"] .nav-in { padding-inline: 12px 8px; }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .nav-in { background: var(--surface); } }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .nav-links summary { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav-links > a:hover, .nav-links summary:hover, .dd[open] > summary { color: var(--ink); background: var(--sunk); }
.nav-end { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-cta { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.search-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); }
.search-btn:hover { background: var(--sunk); color: var(--ink); }
.search-btn .ic { width: 18px; height: 18px; }
kbd { font-family: var(--font); font-size: 12px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink-3); }

.dd { position: relative; }
.dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary .ic { width: 16px; height: 16px; transition: transform 0.2s; }
.dd[open] > summary .ic:last-child { transform: rotate(180deg); }
.langs > summary .ic, .mnav > summary .ic { transform: none !important; }
.dd-panel {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg); padding: 10px; animation: pop 0.2s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.langs > summary { height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.langs > summary:hover { background: var(--sunk); }
.langs > summary .ic { width: 17px; height: 17px; }
.lang-panel { inset-inline-start: auto; inset-inline-end: 0; width: min(420px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.lang-panel a { padding: 8px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.lang-panel a:hover { background: var(--sunk); }
.lang-panel a[aria-current] { font-weight: 700; color: var(--accent-ink); }
.dd.mega { position: static; }
.mega-panel { width: min(1000px, calc(100vw - 40px)); padding: 24px; top: calc(100% + 10px); inset-inline-start: 50%; translate: -50% 0; }
[dir="rtl"] .mega-panel { translate: 50% 0; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 24px; }
.mhead { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; padding-inline: 8px; }
.ml { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.ml:hover { background: var(--sunk); }
.ml .ti { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--peach); color: var(--accent-ink); }
.ml .ti .ic { width: 16px; height: 16px; }
.mega-all { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.mnav { display: none; }
.mnav > summary { width: 42px; height: 42px; justify-content: center; border-radius: 999px; }
.mnav > summary:hover { background: var(--sunk); }
.mnav-panel { position: fixed; top: 80px; inset-inline: 12px; max-height: calc(100dvh - 96px); overflow: auto; padding: 18px; }
.mn-big { display: block; padding: 12px 8px; font-family: var(--display); font-size: 28px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav-panel .mhead { margin-top: 18px; }
.mn-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.mn-langs a { padding: 8px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.mn-langs a[aria-current] { font-weight: 700; color: var(--accent-ink); }
@media (max-width: 1080px) { .mega-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .nav-links, .nav-end .langs { display: none; }
  .mnav { display: block; }
  .nav-in { height: 54px; }
}
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ------------------------------------------------------------------ decoration: clouds */
.cloud {
  position: absolute; z-index: 0; width: var(--w, 220px); aspect-ratio: 2 / 1; pointer-events: none; opacity: var(--o, 0.9);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='58' cy='64' r='28'/%3E%3Ccircle cx='96' cy='46' r='38'/%3E%3Ccircle cx='138' cy='62' r='27'/%3E%3Crect x='34' y='62' width='132' height='30' rx='15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: blur(0.5px);
}
@media (prefers-color-scheme: dark) { .cloud { opacity: calc(var(--o, 0.9) * 0.16); } }
@media (prefers-reduced-motion: no-preference) {
  .cloud.drift { animation: drift var(--d, 26s) ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translateX(var(--dx, 40px)); } }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) 0; text-align: center; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 28px; }
[dir="rtl"] .eyebrow { padding: 6px 6px 6px 14px; }
.eyebrow img { border-radius: 7px; }
/* The slogan is the H1 (sized so its longest line fits); the verbs are a quiet subline. */
.slogan { --sl: 14; font-size: min(98px, calc(1500px / var(--sl)), max(10vw, calc(172vw / var(--sl)))); line-height: 1; letter-spacing: -0.022em; margin-bottom: 26px; }
.slogan .sl { display: block; }
.slogan em { display: block; }
.slogan .sl, .slogan em, .verbs .v, .verbs em { word-break: keep-all; overflow-wrap: normal; } /* CJK: no break inside a word */
.verbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.verbs .v, .verbs em { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 550; font-style: normal; color: var(--ink-2); }
.verbs em { background: var(--peach); border-color: transparent; color: var(--accent-ink); }
.hero .lead { margin-inline: auto; margin-bottom: 34px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.cta-row.start { justify-content: flex-start; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); }
.proof li { display: inline-flex; align-items: center; gap: 7px; }
.proof .ic { width: 17px; height: 17px; color: var(--accent); }

/* hero stage: an orange panel like the App Store screenshots, three phones fanned out, clouds */
.stage { position: relative; margin-top: clamp(44px, 6vw, 72px); }
.stage-panel {
  position: relative; overflow: hidden; height: clamp(420px, 52vw, 640px); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--sun-1) 0%, var(--sun-2) 55%, var(--sun-3) 100%);
}
.stage-panel::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(255, 244, 232, 0.55)); }
@media (prefers-color-scheme: dark) { .stage-panel::after { background: linear-gradient(transparent, rgba(20, 16, 12, 0.5)); } }
.phones { position: absolute; inset: 0; z-index: 1; }
.phone { position: absolute; z-index: 2; left: 50%; top: 10%; width: clamp(200px, 22vw, 290px); border-radius: clamp(26px, 2.8vw, 38px); border: 5px solid rgba(255, 250, 244, 0.7); box-shadow: 0 40px 80px -24px rgba(110, 40, 0, 0.55); translate: -50% calc(var(--py, 0) * 1px); }
.phone.p-l { z-index: 1; width: clamp(150px, 16vw, 220px); top: 24%; rotate: -8deg; translate: calc(-50% - clamp(170px, 21vw, 300px)) calc(var(--py, 0) * 0.55px); }
.phone.p-r { z-index: 1; width: clamp(150px, 16vw, 220px); top: 24%; rotate: 8deg; translate: calc(-50% + clamp(170px, 21vw, 300px)) calc(var(--py, 0) * 0.55px); }
.stage-mascot { position: absolute; z-index: 3; width: clamp(110px, 13vw, 180px); inset-inline-end: clamp(12px, 8%, 120px); bottom: clamp(8px, 4%, 40px); filter: drop-shadow(0 18px 24px rgba(80, 30, 0, 0.25)); }
.stage .cloud { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .stage-mascot { animation: bob 5.5s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
  .js .phone { animation: rise-in 1s var(--ease) both; }
  .js .phone.p-l { animation-delay: 0.12s; }
  .js .phone.p-r { animation-delay: 0.2s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(60px); } }
}
@media (max-width: 700px) {
  .phone.p-l, .phone.p-r { display: none; }
  .phone { width: min(58vw, 250px); }
  .stage-panel { height: min(118vw, 520px); }
}

/* ------------------------------------------------------------------ sections */
.sec { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.sec-tight { padding-block: clamp(56px, 7vw, 96px); }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .lead { margin-inline: auto; }
.sec-head.row { flex-direction: row; flex-wrap: wrap; align-items: end; justify-content: space-between; text-align: start; }

/* ------------------------------------------------------------------ feature tabs + slides */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(6px, 1.4vw, 18px); margin-bottom: clamp(28px, 4vw, 44px); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 84px; padding: 10px 8px 8px; border: 0; border-radius: 18px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: color 0.2s, background 0.2s; }
.tab .ic { width: 26px; height: 26px; stroke-width: 1.5; transition: transform 0.3s var(--ease); }
.tab:hover { color: var(--ink); background: var(--surface); }
.tab[aria-current="true"] { color: var(--accent-ink); }
.tab[aria-current="true"] .ic { transform: translateY(-2px) scale(1.08); }
.tab::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: transparent; transition: background 0.2s, width 0.3s var(--ease); }
.tab[aria-current="true"]::after { background: var(--accent); width: 26px; }
@media (max-width: 760px) {
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { min-width: 76px; flex: none; }
}
.rail {
  display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 8px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))) 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.slide { flex: none; width: clamp(240px, 26vw, 320px); margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: 14px; transition: transform 0.5s var(--ease), opacity 0.5s; }
.slide img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); background: var(--peach); }
.slide figcaption { display: flex; flex-direction: column; gap: 4px; padding-inline: 6px; }
.slide figcaption strong { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.slide figcaption span { font-size: 15px; color: var(--ink-2); }
.slide img { transition: opacity 0.5s; }
.js .rail .slide:not(.is-current) { transform: scale(0.96); }
.js .rail .slide:not(.is-current) img { opacity: 0.55; }
.rail-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rail-ctl .ibtn { width: 44px; height: 44px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: width 0.3s var(--ease), background 0.3s; }
.dots i.on { width: 22px; background: var(--accent); }
[dir="rtl"] .rail-ctl .ic { transform: scaleX(-1); }
html:not(.js) .rail-ctl { display: none; }

/* ------------------------------------------------------------------ bento panels (Craft-like) */
.bento { padding-block: clamp(14px, 2vw, 22px); }
.panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4.5vw, 64px); border-radius: var(--r-xl); background: var(--tone, var(--peach)); }
.panel.flip .panel-copy { order: 2; }
.tone-peach { --tone: var(--peach); }
.tone-apricot { --tone: var(--apricot); }
.tone-butter { --tone: var(--butter); }
.tone-blush { --tone: var(--blush); }
.panel-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.panel-copy .display { font-size: clamp(34px, 4.2vw, 54px); }
.panel-copy .lead { color: var(--ink-2); }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 6px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.avail .ic { width: 16px; height: 16px; }
.panel-cards { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
.card.shot { padding: 0; overflow: hidden; grid-column: 1; grid-row: 1 / span 3; align-self: stretch; }
.panel-cards > .card:not(.shot) { grid-column: 2; }
.card.shot img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: top; }
.card .ci { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--peach); color: var(--accent-ink); margin-bottom: 12px; }
.card .ci .ic { width: 19px; height: 19px; }
.card p { font-size: 15px; line-height: 1.45; color: var(--ink); }
.card.num { display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; position: relative; overflow: hidden; }
.card.num b { font-family: var(--display); font-weight: 400; font-size: clamp(72px, 8vw, 110px); line-height: 0.9; letter-spacing: -0.03em; color: var(--accent-ink); }
.card.num span { font-size: 13px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.card.num img { position: absolute; width: 46%; inset-inline-end: -4%; top: -6%; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel.flip .panel-copy { order: 0; }
}
@media (max-width: 520px) { .panel-cards { grid-template-columns: 1fr 1fr; gap: 10px; } .card { padding: 16px; } .card p { font-size: 14px; } }

/* ------------------------------------------------------------------ trust row */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.trust-row li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.tri { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--accent-ink); }
.tri .ic { width: 24px; height: 24px; }
.trust-row strong { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.trust-row p { font-size: 15px; color: var(--ink-2); max-width: 22em; }
.trust-more { margin-top: clamp(32px, 4vw, 48px); text-align: center; font-weight: 600; }
@media (max-width: 860px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ free tools */
.toolbox { background: var(--bg-2); border-radius: var(--r-xl); margin-inline: clamp(0px, 1.2vw, 16px); }
.filter { position: relative; display: flex; align-items: center; width: 100%; max-width: 520px; margin-inline: auto; }
.filter .ic { position: absolute; inset-inline-start: 18px; width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; }
.filter input { width: 100%; height: 54px; padding-inline: 48px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 17px; box-shadow: var(--shadow); }
.filter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filter input::placeholder { color: var(--ink-3); }
.filter kbd { position: absolute; inset-inline-end: 16px; }
.filter.big input { height: 60px; font-size: 18px; }
.tb-pop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
.pop { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.pop:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pop .ti { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--peach); color: var(--accent-ink); flex: none; }
.pop .ti .ic { width: 22px; height: 22px; }
.pop .tn { font-family: var(--display); font-size: 23px; line-height: 1.15; }
.tb-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 28px; }
.tb-cat h3 { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
:lang(ar) .tb-cat h3 { letter-spacing: 0; }
.tl { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; font-size: 16px; color: var(--ink); }
.tl .ti { color: var(--ink-3); display: grid; }
.tl .ti .ic { width: 17px; height: 17px; }
.tl:hover, .tl:hover .ti { color: var(--accent-ink); }
.tb-proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(36px, 5vw, 56px); color: var(--ink-2); font-size: 15px; text-align: center; }
.tb-proof .ic { color: var(--accent); }
.filter-empty { padding: 24px 0; color: var(--ink-3); text-align: center; }
[data-hit="0"] { display: none !important; }
@media (max-width: 1000px) { .tb-cats { grid-template-columns: repeat(2, 1fr); } .tb-pop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tb-cats { grid-template-columns: 1fr; } .tb-pop { grid-template-columns: 1fr; } .pop { padding: 18px; } }

/* ------------------------------------------------------------------ comparison */
.cmp-card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: clamp(14px, 3vw, 36px); }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { text-align: start; font-weight: 500; }
.cmp thead th { font-size: 13px; font-weight: 700; color: var(--ink-2); vertical-align: bottom; width: 22%; }
.cmp .app { background: var(--accent-soft); }
.cmp thead .app { border-radius: 16px 16px 0 0; color: var(--accent-ink); }
.cmp tbody tr:last-child .app { border-radius: 0 0 16px 16px; }
.cmp .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; background: var(--ink); color: var(--bg); }
.cmp .app .yes { background: var(--accent-fill); color: var(--on-accent); }
.cmp .yes .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.cmp .no { color: var(--ink-3); }
.cmp-cta { margin-top: 34px; display: flex; justify-content: center; }
@media (max-width: 560px) { .cmp { font-size: 14.5px; } .cmp th, .cmp td { padding: 12px 6px; } .cmp thead th { font-size: 12px; } }

/* ------------------------------------------------------------------ Pro: a dark card */
.pro-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 72px); border-radius: var(--r-xl); background: var(--night); color: var(--night-ink); }
.pro-card .label { color: var(--night-2); }
.pro-card .lead, .pro-card p, .pro-card .store-soon { color: var(--night-2); }
.pro-card .store { align-items: flex-start; }
.pro-card .display { color: var(--night-ink); }
.pro-card .display em { color: #ffa865; }
.pro-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pro-visual { position: relative; display: flex; justify-content: center; }
.pro-visual img.shot-img { width: min(100%, 280px); border-radius: 34px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.pro-visual .crown { position: absolute; width: 38%; inset-inline-start: -6%; top: -10%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.4)); }
@media (max-width: 860px) { .pro-card { grid-template-columns: 1fr; } .pro-visual img.shot-img { width: min(70%, 260px); } }

/* ------------------------------------------------------------------ guide lists */
.glist { counter-reset: g; border-top: 1px solid var(--line-2); }
.glist a { display: grid; grid-template-columns: 56px 1fr 1.1fr; gap: 20px; align-items: baseline; padding: 24px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 0.2s, padding 0.3s var(--ease); }
.glist a:hover { background: var(--surface); padding-inline-start: 14px; }
.gn { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.gt { font-family: var(--display); font-size: clamp(21px, 2.1vw, 26px); line-height: 1.2; }
.gd { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .glist a { grid-template-columns: 40px 1fr; } .gd { grid-column: 2; } }

/* ------------------------------------------------------------------ final call to action */
.final-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: clamp(56px, 8vw, 110px) clamp(22px, 5vw, 64px) clamp(150px, 16vw, 210px); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--sun-1), var(--sun-2) 60%, var(--sun-3)); color: #2a1406; }
.final-panel .mega-type { position: relative; z-index: 2; color: #2a1406; font-size: clamp(44px, 7vw, 96px); }
.final-panel .mega-type em { color: #fff; }
.final-panel .lead { position: relative; z-index: 2; color: #3d2210; text-align: center; }
.final-panel .store { position: relative; z-index: 2; }
.final-panel .store-soon { color: #3d2210; }
.final-mascot { position: absolute; z-index: 2; width: clamp(150px, 17vw, 230px); bottom: clamp(10px, 2vw, 24px); left: 50%; translate: -50% 0; }
@media (prefers-color-scheme: dark) {
  .final-panel, .final-panel .mega-type, .final-panel .lead, .final-panel .store-soon { color: #fff4ea; }
  .final-panel .mega-type em { color: #ffd2a8; }
}

/* ------------------------------------------------------------------ breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 26px 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs.center ol { justify-content: center; }

/* ------------------------------------------------------------------ tools directory */
.dir-head { padding-block: clamp(28px, 4vw, 48px) clamp(32px, 4vw, 52px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.dir-head .lead { margin-inline: auto; }
.dir-head .filter { margin-top: 10px; }
.dir-pop { margin-bottom: 56px; }
.dir-pop .label { margin-bottom: 16px; display: flex; }
.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pop-grid .pop { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; }
.pop .tx { display: flex; flex-direction: column; gap: 6px; }
.td { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.dir-cat { padding-block: 34px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.dir-cat h2 { font-size: 28px; }
.dir-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
.dl { display: flex; gap: 14px; padding: 14px 10px; border-radius: 16px; text-decoration: none; transition: background 0.2s; }
.dl:hover { background: var(--surface); }
.dl .ti { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--peach); color: var(--accent-ink); }
.dl .tx { display: flex; flex-direction: column; gap: 3px; }
.dl .tn { font-weight: 650; font-size: 17px; }
.dir-proof { padding-block: 40px 0; }
.dir-proof p { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2); max-width: 820px; margin-inline: auto; }
.dir-proof .ic { color: var(--accent); margin-top: 3px; }
.dir-proof strong { color: var(--ink); }
@media (max-width: 900px) { .pop-grid { grid-template-columns: 1fr 1fr; } .dir-cat { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 600px) { .pop-grid, .dir-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ tool page */
.tool-head { padding-block: clamp(20px, 3vw, 36px) clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.tool-head .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tool-head .chip .ic { width: 16px; height: 16px; color: var(--accent); }
.tool-head h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.018em; max-width: 16em; }
.tool-head .lead { margin-inline: auto; max-width: 36em; }
.tool-head .proof { margin-top: 2px; }
.ws-zone { position: relative; }
.ws-zone .zone-panel { position: relative; padding: clamp(10px, 2.6vw, 36px); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--peach), var(--apricot)); overflow: hidden; }
.ws-zone .workspace { position: relative; z-index: 1; max-width: 1000px; margin-inline: auto; }
.facts { margin-top: clamp(28px, 4vw, 44px); }
.facts-card { display: grid; grid-template-columns: auto 1fr; gap: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.facts h2 { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
:lang(ar) .facts h2 { letter-spacing: 0; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 0; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.facts dl > div { padding: 18px 20px; background: var(--surface); }
.facts dt { font-size: 13px; font-weight: 650; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.tool-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); padding-block: clamp(56px, 8vw, 104px); }
.tb-main > * + * { margin-top: 60px; }
.tb-main h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.tb-main h2 .ic { width: 24px; height: 24px; color: var(--accent); }
.tb-main p + p { margin-top: 10px; }
.about { font-family: var(--display); font-size: clamp(21px, 2vw, 27px); line-height: 1.45; color: var(--ink); letter-spacing: -0.005em; }
.steps-big { counter-reset: s; display: grid; gap: 4px; }
.steps-big li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.steps-big li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 14px; color: var(--accent-ink); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.45em; width: 15px; height: 8px; border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
[dir="rtl"] .ticks li::before { transform: rotate(45deg) scaleX(-1); }
.dash li { position: relative; padding-inline-start: 22px; margin-bottom: 8px; }
.dash li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--ink-3); }
.issues > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.issues dt { font-weight: 650; margin-bottom: 4px; }
.issues dd { margin: 0; color: var(--ink-2); }
.privacy-note { padding: 30px; border-radius: var(--r-lg); background: var(--peach); }
.privacy-note h2 { font-size: 26px; margin-bottom: 10px; }
.privacy-note p { color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 14px; font-size: 26px; font-weight: 300; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 46em; }
.tb-side, .g-side { display: flex; flex-direction: column; gap: 28px; align-self: start; position: sticky; top: 96px; }
.side-block h2 { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
:lang(ar) .side-block h2 { letter-spacing: 0; }
.rlist { display: grid; gap: 2px; }
.rlist.row { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; font-weight: 550; transition: background 0.2s; }
.rl:hover { background: var(--surface); }
.rlist.row .rl { background: var(--surface); box-shadow: var(--shadow); }
.rlist.row .rl:hover { box-shadow: var(--shadow-lg); }
.rl .ti { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--peach); color: var(--accent-ink); flex: none; }
.rl .ti .ic { width: 16px; height: 16px; }
.glinks li { border-bottom: 1px solid var(--line); }
.glinks a { display: block; padding: 11px 2px; text-decoration: none; font-weight: 500; }
.glinks a:hover { color: var(--accent-ink); }
.side-app { position: relative; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--peach), var(--apricot)); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; overflow: hidden; }
.sa-mascot { width: 96px; margin-bottom: 2px; }
.sa-title { font-family: var(--display); font-size: 25px; line-height: 1.15; }
.side-app p:not(.sa-title) { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.side-app .store { align-items: flex-start; }
.more-tools { padding-bottom: clamp(56px, 8vw, 100px); }
.more-tools h2 { font-size: 30px; margin-bottom: 18px; }
.more-tools .more { margin-top: 20px; }
/* Under the workspace on narrow screens, where the sidebar card would sit far below. */
.app-strip { display: none; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.app-strip p { flex: 1 1 220px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.app-strip strong { display: block; color: var(--ink); font-size: 15px; }
.as-mascot { width: 56px; height: 56px; flex: none; }
.inlink { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.inlink:hover { text-decoration-color: currentColor; }
.inlink .arr { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 980px) { .tool-body { grid-template-columns: 1fr; } .tb-side, .g-side { position: static; } .app-strip { display: flex; } .tb-side .side-app { display: none; } }
@media (max-width: 600px) { .app-strip { flex-wrap: wrap; } .app-strip p { flex-basis: calc(100% - 70px); } .app-strip .store { margin-inline-start: 70px; align-items: flex-start; } }
.how { padding-bottom: 24px; }
.how .steps-big + p, .how .ticks + p { margin-top: 18px; }

/* ------------------------------------------------------------------ scroll reveal (only once JS is running) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
/* ------------------------------------------------------------------ workspace */
.workspace { position: relative; background: var(--surface); border-radius: 30px; box-shadow: var(--shadow-lg); padding: clamp(12px, 2vw, 22px); }
.ws-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; min-height: 340px;
  padding: 40px 20px; border-radius: 22px; border: 1.5px dashed var(--line-2); background: var(--bg); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.ws-drop:hover, .dragging .ws-drop { border-color: var(--accent); background: var(--accent-soft); }
.dragging .workspace, .workspace.dragging { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.ws-drop-art .up { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--peach); color: var(--accent-ink); transition: transform 0.4s var(--ease); }
.ws-drop:hover .ws-drop-art .up, .dragging .ws-drop-art .up { transform: translateY(-4px) scale(1.04); }
.ws-drop-art .ic { width: 32px; height: 32px; }
.ws-drop-title { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.ws-drop-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ws-drop-hint { font-size: 14px; color: var(--ink-3); }
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .only-touch { display: inline-flex; } }
.has-files .ws-drop { display: none; }
.ws-noscript { padding: 18px; border-radius: 14px; background: var(--accent-soft); margin-top: 12px; }
.ws-stage { display: flex; flex-direction: column; gap: 18px; }
.stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 0; }
.stage-title { font-weight: 650; font-size: 17px; overflow-wrap: anywhere; }
.stage-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-hint { font-size: 15px; color: var(--ink-3); padding-inline: 4px; }
.ws-feedback { display: flex; flex-direction: column; gap: 14px; }
.ws-feedback:not(:empty) { margin-top: 16px; }
.ws-error, .ws-info { padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.ws-error { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
.ws-info { background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); }
.ws-progress { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.pbar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; order: -1; }
.pbar i { display: block; height: 100%; width: 2%; background: var(--accent); border-radius: inherit; transition: width 0.25s; }
.pbar.indeterminate i { width: 30% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { margin-inline-start: -30%; } to { margin-inline-start: 100%; } }
.plabel { font-size: 15px; color: var(--ink-2); }
.busy .ws-run .btn, .busy .stage-tools .btn { pointer-events: none; opacity: 0.5; }

/* action bar: sticks to the bottom of the viewport while the workspace is visible */
.ws-run { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 12px 12px 12px 20px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); }
[dir="rtl"] .ws-run { padding: 12px 20px 12px 12px; }
.run-summary { font-size: 15px; color: var(--ink-2); min-width: 0; }
.run { min-width: 200px; }
@media (max-width: 560px) { .ws-run { border-radius: 22px; padding: 12px; } .ws-run .run { width: 100%; } .run-summary { padding-inline: 6px; } }

/* forms */
.opts { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 4px; }
.opts.col { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field input:not([type=range]):not([type=color]), .field select, .page-input, .text-out {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-weight: 500; font-size: 16px; min-width: 0;
}
.field select { padding-inline-end: 34px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
[dir="rtl"] .field select { background-position: left 10px center; }
.field input:focus, .field select:focus, .page-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .fc-range input[aria-invalid="true"] { border-color: var(--err); }
.field input[type=range] { accent-color: var(--accent); height: 28px; }
.field input[type=color] { width: 100%; height: 44px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.field input[type=file] { font-size: 15px; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.unit { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.warn { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.warn::before { content: "⚠ "; color: var(--accent-ink); }
.fine-note { font-size: 13px; color: var(--ink-3); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
/* segmented choices: chips (legend floated so it lays out like a label) */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { float: left; width: 100%; margin-bottom: 8px; }
[dir="rtl"] .seg legend { float: right; }
.seg > label { position: relative; display: inline-flex; }
.seg > label input { position: absolute; opacity: 0; pointer-events: none; }
.seg > label span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 15px; font-weight: 550; cursor: pointer; color: var(--ink-2); transition: background 0.15s, color 0.15s; }
.seg > label span:hover { border-color: var(--ink); }
.seg > label input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg > label input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
/* choice cards (compress levels, flatten modes) */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice legend { grid-column: 1 / -1; }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice label > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--bg); transition: border-color 0.15s; }
.choice strong { font-size: 16px; }
.choice small { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
/* 3×3 position grid */
.pos-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; padding: 8px; width: fit-content; border-radius: 14px; background: var(--sunk); }
.pos-grid label { position: relative; display: block; width: 44px; height: 34px; cursor: pointer; }
.pos-grid input { position: absolute; opacity: 0; }
.pos-grid span { position: absolute; inset: 0; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); }
.pos-grid input:checked + span { background: var(--accent); border-color: var(--accent); }
.pos-grid input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatches { display: flex; gap: 8px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 32px; height: 32px; border-radius: 99px; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); }
.swatches input:checked + span { box-shadow: 0 0 0 2.5px var(--accent); }
.swatches input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); gap: 22px; align-items: start; }
.preview-box, .doc-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px; border-radius: 20px; background: var(--sunk); min-height: 220px; justify-content: center; }
.preview-box canvas, .doc-preview canvas, .stamp-preview { max-width: 100%; height: auto; box-shadow: var(--shadow); border-radius: 4px; background: #fff; }
@media (max-width: 760px) { .split-layout { grid-template-columns: 1fr; } .row4 { grid-template-columns: 1fr 1fr; } }

/* file cards (merge, images) */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.file-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; touch-action: manipulation; cursor: grab; transition: border-color 0.15s, box-shadow 0.15s; }
.file-card:hover { border-color: var(--line-2); }
.file-card:focus-visible { outline: 3px solid var(--accent); }
.file-card.bad { border-color: var(--err); }
.fc-thumb { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--sunk); overflow: hidden; }
.fc-thumb canvas, .fc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.fc-thumb canvas { box-shadow: none; }
.fc-num { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; }
.thumb-fallback { display: grid; place-items: center; text-align: center; padding: 12px; font-size: 13px; color: var(--ink-3); }
.fc-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 4px; min-width: 0; }
.fc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-size { font-size: 13px; color: var(--ink-3); }
.file-card.bad .fc-size { color: var(--err); }
.fc-range { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.fc-range input { height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; width: 100%; }
.fc-actions { display: flex; gap: 4px; padding: 6px 10px 10px; }
.fc-actions .ibtn { width: 32px; height: 32px; }
.fc-actions .ibtn:last-child { margin-inline-start: auto; }
.sort-drag { position: fixed !important; z-index: 90; pointer-events: none; box-shadow: var(--shadow-lg) !important; transform: rotate(-2deg) scale(1.03); opacity: 0.95; cursor: grabbing; }
.sort-ph { background: transparent !important; border: 2px dashed var(--accent) !important; visibility: visible; }
.sort-ph > * { visibility: hidden; }

/* page grid (organize, extract, delete, rotate, split) */
.grid-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding-inline: 4px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 14px; padding: 4px; }
.pg { position: relative; display: flex; flex-direction: column; gap: 6px; touch-action: manipulation; }
.pg[tabindex] { cursor: grab; border-radius: 12px; }
.pg-thumb { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 12px; background: var(--sunk); border: 1.5px solid var(--line); overflow: hidden; }
.pg-thumb canvas, .pg-thumb .blank-page { max-width: 86%; max-height: 86%; width: auto; height: auto; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); background: #fff; transform: rotate(var(--rot, 0deg)); transition: transform 0.25s; }
.blank-page { width: 64%; aspect-ratio: 1 / 1.414; }
.pg-hit { position: absolute; inset: 0; background: transparent; border: 0; border-radius: 12px; z-index: 2; }
.pg-check { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--line-2); background: var(--surface); color: transparent; }
.pg-check .ic { width: 15px; height: 15px; stroke-width: 3; }
.pg.is-sel .pg-thumb { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pg.is-sel .pg-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.sel-drop .pg.is-sel .pg-thumb { border-color: var(--err); box-shadow: 0 0 0 2px var(--err); }
.sel-drop .pg.is-sel .pg-check { background: var(--err); border-color: var(--err); }
.sel-drop .pg.is-sel .pg-thumb canvas { opacity: 0.35; }
.pg-badge { position: absolute; bottom: 8px; inset-inline-start: 8px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: hsl(var(--g) 62% 44%); }
.pg-label { font-size: 13px; color: var(--ink-3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.pg-actions .ibtn { width: 32px; height: 32px; }
@media (max-width: 480px) { .page-grid { grid-template-columns: repeat(2, 1fr); } }

/* result panel */
.ws-result { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--bg); border: 1px solid var(--line); animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.r-title { display: flex; align-items: center; gap: 14px; font-size: clamp(28px, 3.4vw, 40px); }
.r-title:focus { outline: none; }
.r-check { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 99px; background: var(--ok); color: #fff; }
.r-check .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.r-stats { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; }
.r-stats div { display: flex; flex-direction: column; }
.r-stats dt::first-letter { text-transform: uppercase; }
.r-stats dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.r-stats dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.r-stats .good dd { color: var(--ok); }
.r-note { font-size: 15px; color: var(--ink-2); padding: 12px 16px; border-radius: 12px; background: var(--sunk); }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.r-meta { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.r-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.r-gallery.single { grid-template-columns: minmax(0, 280px); }
.r-gallery img, .r-gallery canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); background: #fff; }
.r-gallery li { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); }
.gauge { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; max-width: 560px; }
.g-line { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); min-width: 96px; }
.g-line b { font-size: 18px; color: var(--ink); }
.g-bar { height: 12px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: inherit; }
.g-bar .full { width: 100%; background: var(--line-2); }
.g-bar .new { width: var(--ratio); background: var(--accent); }
.r-app { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(180deg, var(--peach), var(--apricot)); }
.r-app > div { flex: 1 1 220px; }
.ra-mascot { width: 64px; }
.ra-title { font-family: var(--display); font-size: 23px; line-height: 1.2; }
.r-app p:not(.ra-title) { font-size: 14px; color: var(--ink-2); }
.text-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.text-out { width: 100%; height: 300px; padding: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.5; resize: vertical; white-space: pre-wrap; }

/* pager / crop / sign / stamp */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pager-label { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 90px; text-align: center; }
.crop-box { position: relative; display: inline-block; max-width: 100%; touch-action: none; }
.crop-canvas { display: block; max-width: 100%; height: auto; }
.crop-frame { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); cursor: move; touch-action: none; }
.crop-box { overflow: hidden; }
.ch { position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 99px; background: #fff; border: 2px solid var(--accent); }
.ch-n { top: 0; left: 50%; cursor: ns-resize; } .ch-s { top: 100%; left: 50%; cursor: ns-resize; }
.ch-e { top: 50%; left: 100%; cursor: ew-resize; } .ch-w { top: 50%; left: 0; cursor: ew-resize; }
.ch-ne { top: 0; left: 100%; cursor: nesw-resize; } .ch-nw { top: 0; left: 0; cursor: nwse-resize; }
.ch-se { top: 100%; left: 100%; cursor: nwse-resize; } .ch-sw { top: 100%; left: 0; cursor: nesw-resize; }
.sign-wrap { display: flex; justify-content: center; padding: 18px; border-radius: 20px; background: var(--sunk); overflow: auto; }
.sign-sheet { position: relative; display: inline-block; max-width: 100%; box-shadow: var(--shadow); background: #fff; touch-action: none; }
.sign-sheet > canvas { display: block; max-width: 100%; height: auto; }
.sig-item { position: absolute; border: 1.5px dashed var(--accent); border-radius: 4px; cursor: move; touch-action: none; }
.sig-item:focus-visible { outline: 3px solid var(--accent); }
.sig-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sig-resize { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 99px; background: var(--accent); border: 2px solid #fff; cursor: nwse-resize; }
.sig-del { position: absolute; top: -16px; right: -16px; width: 28px !important; height: 28px !important; background: var(--ink); color: var(--bg); border: 2px solid #fff; }
.pad-dialog { width: min(640px, calc(100vw - 24px)); border: 0; border-radius: 26px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.pad-dialog::backdrop, .palette::backdrop { background: rgba(10, 10, 10, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pad-dialog > * + * { margin-top: 14px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; }
.dlg-head h2 { font-size: 22px; }
.tabs-row { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); width: fit-content; }
.tabs-row button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--ink-2); min-height: 38px; }
.tabs-row button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.pad { width: 100%; height: auto; aspect-ratio: 900 / 320; border-radius: 16px; border: 1.5px dashed var(--line-2); background: #fff; touch-action: none; cursor: crosshair; }
.pad-panel { display: flex; flex-direction: column; gap: 12px; }
.pad-row { display: flex; align-items: center; justify-content: space-between; }
.typed-preview { min-height: 110px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: #111; font-size: 52px; padding: 10px; overflow: hidden; }
.upload-preview { min-height: 90px; display: grid; place-items: center; border-radius: 16px; background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.upload-preview img { max-height: 140px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }
.stamp-preview { max-height: 560px; width: auto; }

/* forms tool / metadata */
.form-fields { display: flex; flex-direction: column; gap: 20px; }
.ff-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.ff-page h3 { grid-column: 1 / -1; font-size: 15px; color: var(--ink-3); font-family: var(--font); }
.radios { display: flex; flex-direction: column; gap: 2px; }
.meta-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 4px; }
.meta-dates { font-size: 14px; color: var(--ink-3); padding-inline: 4px; }

/* reader */
.reader-bar { position: sticky; top: 72px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.reader-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; padding-inline: 6px; }
.reader-nav, .reader-zoom { display: flex; align-items: center; gap: 6px; }
.page-input { width: 64px; height: 36px; text-align: center; padding: 0 4px; }
.reader-total, .zoom-label { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.reader-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 8px; max-height: 80vh; overflow: auto; border-radius: 18px; background: var(--sunk); margin-top: 10px; }
.reader-page { position: relative; flex: none; max-width: 100%; background: #fff; box-shadow: var(--shadow); }
.reader-page canvas { width: 100%; height: 100%; }
.textLayer { position: absolute; inset: 0; overflow: clip; opacity: 1; line-height: 1; text-align: initial; -webkit-text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; z-index: 2; }
.textLayer span, .textLayer br { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.textLayer ::selection { background: rgba(240, 96, 15, 0.3); color: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: -1; cursor: default; user-select: none; }
@media (max-width: 600px) { .reader-name { max-width: 100%; flex-basis: 100%; } .reader-bar { top: 66px; } }

/* ------------------------------------------------------------------ guide */
.g-head { padding-block: clamp(20px, 3vw, 36px) clamp(30px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.g-head > * { max-width: 920px; }
.byline { font-size: 14px; color: var(--ink-3); }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); }
.g-main > * + * { margin-top: 56px; }
.g-main h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.answer { padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); background: var(--peach); }
.answer .label { margin-bottom: 12px; }
.answer-text { font-family: var(--display); font-size: clamp(21px, 2vw, 26px); line-height: 1.45; }
.g-figure { margin-block: 56px 0; margin-inline: 0; position: relative; overflow: hidden; display: flex; justify-content: center; padding: 48px 20px; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--sun-1), var(--sun-2) 60%, var(--sun-3)); }
.g-figure img { position: relative; z-index: 1; width: min(300px, 78%); border-radius: 34px; box-shadow: var(--shadow-lg); }
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc .label { margin-bottom: 8px; }
.toc a { padding: 7px 12px; border-inline-start: 2px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.side-tool { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg); background: var(--night); color: var(--night-ink); }
.side-tool .label { color: var(--night-2); }
.side-tool .btn.primary { background: var(--accent); border-color: var(--accent); color: #1d1712; }
.side-tool .btn.primary:hover { background: #fff; border-color: #fff; color: #1d1712; }
.side-tool p:last-child { font-size: 14px; color: var(--night-2); }
.guides-index { display: flex; flex-direction: column; gap: 64px; padding-bottom: clamp(56px, 8vw, 110px); }
.guides-index .label { margin-bottom: 16px; display: flex; }
@media (max-width: 980px) { .g-layout { grid-template-columns: 1fr; } .g-side { order: -1; } .toc { display: none; } }

/* ------------------------------------------------------------------ search palette */
.palette { width: min(640px, calc(100vw - 24px)); margin-top: min(14vh, 120px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.pal-head { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.pal-head .ic { color: var(--ink-3); }
.pal-head input { flex: 1; height: 62px; border: 0; background: transparent; font-size: 19px; outline: none; min-width: 0; }
.pal-list { max-height: min(60vh, 460px); overflow: auto; padding: 8px; }
.pal-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.pal-list li[aria-selected="true"] { background: var(--sunk); }
.pal-list .ti { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sunk); flex: none; }
.pal-list li[aria-selected="true"] .ti { background: var(--accent); color: #fff; }
.pal-list .pn { font-weight: 600; }
.pal-list .pc { margin-inline-start: auto; font-size: 13px; color: var(--ink-3); }
.pal-empty { padding: 26px; text-align: center; color: var(--ink-3); }

/* ------------------------------------------------------------------ footer: a dark sheet */
.foot { margin-top: clamp(64px, 8vw, 110px); padding-block: clamp(56px, 7vw, 84px) 28px; font-size: 15px; background: var(--night); color: var(--night-ink); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-brand .brand { color: var(--night-ink); }
.foot-brand p { color: var(--night-2); max-width: 26em; font-family: var(--display); font-size: 21px; line-height: 1.35; }
.foot-brand .store-soon { color: var(--night-2); }
.foot-brand .store { align-items: flex-start; }
.foot h2 { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-2); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 238, 220, 0.12); }
:lang(ar) .foot h2 { letter-spacing: 0; }
.foot li { margin-bottom: 9px; }
.foot ul a { text-decoration: none; color: var(--night-ink); opacity: 0.86; }
.foot ul a:hover { opacity: 1; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255, 238, 220, 0.12); color: var(--night-2); font-size: 13px; }
.foot-base .tm { flex-basis: 100%; }
.langs-foot > summary { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 238, 220, 0.2); color: var(--night-ink); font-size: 14px; }
.langs-foot > summary .ic { width: 16px; height: 16px; }
.langs-foot .dd-panel { color: var(--ink); }
.dd.up .dd-panel { top: auto; bottom: calc(100% + 10px); inset-inline-start: 0; inset-inline-end: auto; }
.foot :focus-visible { outline-color: #ffa865; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ 404 */
.notfound { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: 80px 40px; }
.nf-mascot { width: 160px; }

/* ------------------------------------------------------------------ print / forced colors */
@media print { .nav, .foot, .workspace, .tb-side, .g-side, .palette { display: none !important; } body { background: #fff; } }
@media (forced-colors: active) { .btn, .ibtn, .store img, .pg-thumb, .choice label > span { border: 1px solid CanvasText; } .pos-grid input:checked + span { background: Highlight; } }

/* ---------- reader search */
.reader-search { display: flex; align-items: center; gap: 6px; flex: 1 1 260px; min-width: 0; }
.reader-q { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.reader-q:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.reader-count { font-size: 13px; color: var(--ink-2); white-space: nowrap; min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.textLayer mark.hl { background: rgba(255, 200, 0, 0.45); color: transparent; border-radius: 2px; padding: 0; }
.textLayer mark.hl.cur { background: rgba(240, 96, 15, 0.55); box-shadow: 0 0 0 2px rgba(240, 96, 15, 0.55); }

/* ---------- flatten: explicit confirmation */
.warn-check { padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); align-items: flex-start; }
.warn-check input { margin-top: 2px; }

/* ---------- compare */
.cmp-slots { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.cmp-slot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.cmp-slot .label { grid-column: 1 / -1; margin-bottom: 8px; }
.cmp-thumb { grid-row: 2 / 4; width: 64px; min-height: 84px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.cmp-thumb canvas { width: 100%; height: auto; display: block; }
.cmp-name { font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.cmp-meta { margin: 0; font-size: 14px; }
.cmp-slot.is-empty { border-style: dashed; }
.cmp-slot.is-empty .cmp-name { color: var(--ink-3); font-weight: 500; }
.cmp-add { padding: 0 4px; }
.cmp-result { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cmp-result h3 { font-size: 18px; margin: 14px 0 4px; }
.cmp-hunks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; }
.cmp-hunks li { padding: 12px 14px; border-radius: 12px; background: var(--sunk); }
.cmp-where { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 0 0 4px; }
.cmp-text { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.cmp-text del { background: rgba(180, 35, 24, 0.14); color: var(--err); text-decoration: line-through; border-radius: 3px; }
.cmp-text ins { background: rgba(29, 122, 70, 0.14); color: var(--ok); text-decoration: none; border-radius: 3px; }
.cmp-vis { display: flex; flex-direction: column; gap: 18px; }
.cmp-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cmp-trio figure { margin: 0; }
.cmp-trio img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.cmp-trio figcaption { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.cmp-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.cmp-legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cmp-legend .sw.del { background: #dc2626; } .cmp-legend .sw.add { background: #16964a; margin-inline-start: 10px; }
.r-stats .is-add dd { color: var(--ok); } .r-stats .is-del dd { color: var(--err); }
@media (max-width: 640px) { .cmp-slots { grid-template-columns: 1fr; } .cmp-trio { grid-template-columns: 1fr 1fr; } }

/* ---------- redact */
.rd-find { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 4px; }
.rd-find .field { flex: 1 1 260px; }
.rd-pages { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.rd-page { width: min(100%, 760px); }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.rd-sheet { position: relative; width: 100%; background: #fff; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.rd-canvas, .rd-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.rd-layer.is-whole { background: rgba(0, 0, 0, 0.88); }
.rd-box { position: absolute; background: rgba(0, 0, 0, 0.85); outline: 2px solid var(--accent); }
.rd-box.drawing { background: rgba(0, 0, 0, 0.45); }
.rd-x { position: absolute; top: -12px; inset-inline-end: -12px; width: 26px; height: 26px; border-radius: 99px; border: 0; background: var(--accent-fill); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; padding: 0; }
.rd-x .ic { width: 15px; height: 15px; }

/* ---------- guides that carry the tool */
.g-tool { margin: 8px 0 36px; }
.g-tool > h2 { display: flex; align-items: center; gap: 10px; }
.g-tool > h2 .ic { width: 24px; height: 24px; color: var(--accent-ink); }
.g-tool .workspace { margin-top: 12px; }

/* ---------- delivery: the finished PDF flies into the phone (then the app handoff below) */
.deliver { position: relative; height: 168px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, var(--peach), var(--apricot)); }
[dir="rtl"] .deliver { transform: scaleX(-1); }
[dir="rtl"] .deliver .dv-tag { transform: scaleX(-1); }
.dv-phone { position: absolute; top: 14px; left: calc(50% + 34px); width: 76px; height: 140px; padding: 5px; border-radius: 18px; background: #1d1712; box-shadow: 0 20px 40px -18px rgba(60, 25, 0, 0.6); }
.dv-screen { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 13px; overflow: hidden; background: #2c241d; }
.dv-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #ffc68f, #ff7a1a); opacity: 1; }
.dv-screen img { position: relative; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.dv-ok { position: absolute; z-index: 2; bottom: 18px; left: 50%; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -13px; border-radius: 99px; background: #fff; color: #1d7a46; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.dv-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dv-sheet { position: absolute; top: 40px; left: calc(50% - 150px); width: 62px; height: 80px; padding: 10px 9px; border-radius: 7px; background: #fff; box-shadow: 0 14px 30px -12px rgba(60, 25, 0, 0.45); display: flex; flex-direction: column; gap: 5px; opacity: 0; }
.dv-sheet i { display: block; height: 4px; border-radius: 2px; background: #eadfd4; }
.dv-sheet i:nth-child(3) { width: 70%; }
.dv-tag { align-self: flex-start; padding: 2px 5px; border-radius: 4px; background: #e2461a; color: #fff; font: 800 9px/1 var(--font); letter-spacing: 0.04em; margin-bottom: 2px; }
.dv-spark { position: absolute; top: 84px; left: calc(50% + 72px); width: 7px; height: 7px; border-radius: 99px; background: var(--accent); opacity: 0; }
.dv-spark:nth-child(2n) { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .deliver.go .dv-sheet { animation: dv-fly 1.05s 0.1s cubic-bezier(0.45, 0, 0.2, 1) both; }
  .deliver.go .dv-screen::before { animation: dv-on 0.45s 0.95s both; }
  .deliver.go .dv-screen img { animation: dv-pop 0.5s 1s var(--ease) both; }
  .deliver.go .dv-ok { animation: dv-pop 0.45s 1.15s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .deliver.go .dv-phone { animation: dv-bump 0.5s 0.95s var(--ease); }
  .deliver.go .dv-spark { animation: dv-burst 0.8s 1.05s ease-out both; }
  @keyframes dv-fly {
    0% { opacity: 0; transform: translate(-30px, 30px) rotate(-14deg); }
    18% { opacity: 1; }
    55% { transform: translate(100px, -34px) rotate(6deg) scale(0.9); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(184px, 6px) rotate(0) scale(0.3); }
  }
  @keyframes dv-on { from { opacity: 0; } }
  @keyframes dv-pop { from { opacity: 0; transform: scale(0.3); } }
  @keyframes dv-bump { 40% { transform: scale(1.06) rotate(-2deg); } }
  @keyframes dv-burst {
    0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); }
    100% { opacity: 0; transform: rotate(var(--a)) translateX(64px) scale(0.4); }
  }
}
.r-app .store { margin-inline-start: auto; }
@media (max-width: 560px) { .r-app .store { margin-inline-start: 0; align-items: flex-start; } }

/* ---------- optional illustrations (website/static/art) */
.stage-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: 0; }
.stage-panel.has-sky { background: var(--sun-2); }
.panel-art { width: clamp(130px, 13vw, 190px); margin-top: 10px; margin-inline-start: -8px; filter: drop-shadow(0 18px 22px rgba(90, 40, 0, 0.18)); }
@media (prefers-reduced-motion: no-preference) { .panel.is-in .panel-art { animation: float-in 1.2s 0.2s var(--ease) both, bob 6s 1.4s ease-in-out infinite; } @keyframes float-in { from { opacity: 0; transform: translateY(24px) rotate(-6deg); } } }
@media (max-width: 900px) { .panel-art { width: 120px; } }
.how-art { width: min(100%, 680px); margin: 22px auto 0; border-radius: var(--r-xl); background: #fbf7f2; }
.cat-art { width: 44px; height: 44px; object-fit: contain; margin-inline-end: 12px; display: inline-block; vertical-align: middle; }
.cat-art.sm { width: 26px; height: 26px; margin-inline-end: 8px; vertical-align: -7px; }
.dir-cat h2 { display: flex; align-items: center; }
.foot.has-horizon { position: relative; margin-top: clamp(150px, 16vw, 220px); border-radius: 0; }
.foot-horizon { position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: clamp(110px, 12vw, 175px); background-repeat: repeat-x; background-size: auto 100%; background-position: center bottom; pointer-events: none; }
.foot.has-horizon { background: #211913; }
@media (prefers-color-scheme: dark) { .foot-horizon { display: none; } .foot.has-horizon { margin-top: clamp(64px, 8vw, 110px); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--night); } }
.card.scene { display: grid; place-items: center; background: linear-gradient(180deg, var(--sun-1), var(--sun-3)); }
.card.scene .scene-art { width: 92%; height: auto; min-height: 0; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(90, 30, 0, 0.3)); }

/* hero before release: the CTA shows the product; the badge sits quietly below with "coming soon" */
.hero-store { margin-top: 22px; display: flex; justify-content: center; }
.btn.big .arr { width: 18px; height: 18px; }
.nav-links > a, .nav-links summary, .nav-cta, .langs > summary { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links > a[href$="how-it-works/"] { display: none; } }
@media (max-width: 1060px) { .nav-end .langs span { display: none; } }

/* ---------- Launch polish: hero promise, story flow, bridge, Pro results, /app/, site map */
.promise { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--ink); max-width: 26em; margin: 0 auto 32px; }
.promise span { display: block; color: var(--ink-2); font-style: italic; }
:lang(ja) .promise span, :lang(zh-Hant) .promise span, :lang(ko) .promise span, :lang(ar) .promise span { font-style: normal; }
.flow { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); counter-reset: f; }
.flow li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.flow li .ic { width: 17px; height: 17px; color: var(--accent); }
.flow li + li::before { content: "→"; margin-inline-end: 8px; color: var(--ink-3); }
[dir="rtl"] .flow li + li::before { content: "←"; }
.bridge { display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 18px; align-items: stretch; }
.br-col { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.br-col.app { background: linear-gradient(180deg, var(--peach), var(--apricot)); box-shadow: none; }
.br-col .ticks a { text-decoration: none; font-weight: 550; }
.br-col .ticks a:hover { color: var(--accent-ink); }
.br-line { font-family: var(--display); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; margin-top: auto; }
.br-col .store { align-items: flex-start; }
.br-arrow { display: grid; place-items: center; color: var(--accent); }
.br-arrow .ic { width: 30px; height: 30px; }
[dir="rtl"] .br-arrow .ic { transform: scaleX(-1); }
@media (max-width: 860px) { .bridge { grid-template-columns: 1fr; } .br-arrow { transform: rotate(90deg); } [dir="rtl"] .br-arrow { transform: rotate(90deg); } }
.pro-r { display: grid; gap: 8px; }
.pro-r li { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; color: var(--night-ink); }
.pro-r li::before { content: "✓"; color: #ffa865; margin-inline-end: 12px; font-family: var(--font); font-size: 0.8em; }
.pro-small { font-size: 13.5px; line-height: 1.5; color: var(--night-2); max-width: 40em; }
.card.prompt { background: var(--night); color: var(--night-ink); }
.card.prompt p { font-family: var(--display); font-size: 19px; color: var(--night-ink); }
.card.prompt .ci { background: rgba(255, 168, 101, 0.16); color: #ffa865; }
.screen { padding-block: clamp(12px, 1.6vw, 20px); }
.screen-phone { display: flex; justify-content: center; }
.screen-phone img { width: auto; max-width: 100%; height: clamp(400px, 42vw, 560px); aspect-ratio: 600 / 1150; object-fit: cover; object-position: top; border-radius: 38px; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.prompt-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: var(--night); color: var(--night-ink); font-family: var(--display); font-size: 18px; }
.prompt-chip .ic { color: #ffa865; }
.app-private { max-width: 30em; margin: 24px auto 0; text-align: start; }
.app-safe { width: 150px; margin: 0 auto 10px; }
.app-hero h1 { font-size: clamp(44px, 7vw, 92px); margin-bottom: 18px; }
.sitemap { display: flex; flex-direction: column; gap: 44px; padding-bottom: clamp(48px, 7vw, 90px); }
.sitemap h2 { font-size: 26px; margin-bottom: 12px; }
.sitemap ul { columns: 2 260px; column-gap: 32px; }
.sitemap li { break-inside: avoid; padding: 5px 0; }
.sitemap a { text-decoration: none; }
.sitemap a:hover { color: var(--accent-ink); text-decoration: underline; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-top: 14px; }
.sm-grid ul { columns: 1; }
.sm-grid h2 { font-size: 20px; }
.author a { color: inherit; }

/* Blog posts and measured data */
.blog-index .glist a { grid-template-columns: 150px 1fr 1.1fr; }
@media (max-width: 760px) { .blog-index .glist a { grid-template-columns: 1fr; gap: 6px; } .blog-index .gd { grid-column: 1; } }
.post-body > * + * { margin-top: 22px; }
.post-body > h2 { margin-top: 56px; }
.post-body > p { font-size: 18px; line-height: 1.65; max-width: 68ch; }
.post-body .ticks { max-width: 68ch; }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data.wide { min-width: 900px; font-size: 14px; }
table.data caption { caption-side: top; text-align: start; padding: 16px 16px 6px; font-weight: 700; color: var(--ink-2); font-size: 13px; }
table.data th, table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: end; vertical-align: top; }
table.data th:first-child, table.data td:first-child { text-align: start; }
table.data thead th { font-size: 12px; font-weight: 700; color: var(--ink-2); vertical-align: bottom; }
table.data tbody th { font-weight: 500; }
table.data tbody th a { overflow-wrap: anywhere; }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data .total > * { font-weight: 700; background: var(--accent-soft); }
table.data small { display: block; color: var(--ink-3); }
table.data .muted { color: var(--ink-3); }
.data-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-2); }
.post-body { min-width: 0; }
table.data.wide { min-width: 740px; font-size: 13px; }
table.data.wide th, table.data.wide td { padding: 9px 8px; }
table.data.wide tbody th { min-width: 150px; }
table.data td { white-space: nowrap; }
table.data tbody th small { display: block; font-weight: 400; color: var(--ink-3); }
table.data td.muted { font-size: inherit; }
