/* 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 .cloud { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  @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; translate: 0 34px; scale: 0.985; transition: opacity 0.9s var(--ease), translate 1s cubic-bezier(0.2, 0.8, 0.2, 1), scale 1s var(--ease); transition-delay: var(--rd, 0s); }
  .js [data-reveal="pop"] { translate: 0 24px; scale: 0.86; transition-timing-function: var(--ease), cubic-bezier(0.34, 1.56, 0.64, 1), cubic-bezier(0.34, 1.56, 0.64, 1); }
  .js [data-reveal="left"] { translate: -60px 0; }
  .js [data-reveal="right"] { translate: 60px 0; }
  .js [data-reveal].is-in { opacity: 1; translate: none; scale: 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; } }

/* ---------- footer clouds (static/art/horizon) and the webpage panel scene */
.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; }

/* ------------------------------------------------------------------ the rainbow (vector, see rainbow() in build.py)
   Four glossy bands: a base, a bright core and a highlight; a glint runs along each band. It draws itself
   on, leans towards the pointer (each band at its own depth) and glows at night. */
.rainbow { display: block; overflow: visible; pointer-events: none; max-width: none; }
.rainbow path { fill: none; stroke-linecap: butt; }
.rb-base { stroke-width: 33; }
.rb-core { stroke-width: 21; }
.rb-hl { stroke-width: 5; opacity: 0.45; }
.rb-glint { stroke-width: 12; stroke: #fff; opacity: 0; stroke-linecap: round; stroke-dasharray: 0.035 2; }
.b1 { --c0: #e2430f; --c1: #ff5a16; --c2: #ffa27a; --d: 22; }
.b2 { --c0: #e8642a; --c1: #ff8c42; --c2: #ffc8a0; --d: 15; }
.b3 { --c0: #a95c12; --c1: #c9771f; --c2: #eab069; --d: 9; }
.b4 { --c0: #d9851d; --c1: #f0a43a; --c2: #ffd994; --d: 4; }
.rb-base { stroke: var(--c0); } .rb-core { stroke: var(--c1); } .rb-hl { stroke: var(--c2); }
.band { translate: calc(var(--px, 0) * var(--d) * 1px) calc(var(--py, 0) * var(--d) * 0.6px); transition: translate 0.6s var(--ease); }
@media (prefers-color-scheme: dark) { .rainbow { filter: drop-shadow(0 0 16px rgba(255, 110, 30, 0.5)) drop-shadow(0 0 60px rgba(255, 90, 20, 0.25)); } }
@media (prefers-reduced-motion: no-preference) {
  .js .rainbow.draw path:not(.rb-glint) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rb-draw 2.2s cubic-bezier(0.5, 0, 0.2, 1) calc(0.15s + var(--i) * 0.14s) forwards; }
  @keyframes rb-draw { to { stroke-dashoffset: 0; } }
  .rb-glint { animation: rb-glint 6.5s ease-in-out calc(2.4s + var(--i) * 0.9s) infinite; }
  @keyframes rb-glint { 0% { stroke-dashoffset: 0.08; opacity: 0; } 8% { opacity: 0.75; } 60% { opacity: 0.75; } 70%, 100% { stroke-dashoffset: -1; opacity: 0; } }
}

/* ------------------------------------------------------------------ toys: mascots you can play with */
.fx { position: fixed; z-index: 90; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.toy { display: block; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  translate: calc(var(--tx, 0px) + var(--px, 0) * var(--z, 0) * 1px) calc(var(--ty, 0px) + var(--py, 0) * var(--z, 0) * 1px - var(--sy, 0) * var(--zs, 0) * 1px);
  rotate: calc(var(--tr, 0) * 1deg); }
.toy img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 14px 18px rgba(90, 35, 0, 0.22)); }
@media (prefers-color-scheme: dark) { .toy img { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); } }
.toy .bob, .toy .face { display: block; }
.toy.dragging { cursor: grabbing; z-index: 40; }
.toy.dragging img { filter: drop-shadow(0 30px 30px rgba(90, 35, 0, 0.3)); }
.toy.home { transition: translate 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (prefers-reduced-motion: no-preference) {
  .toy .bob { animation: float var(--fd, 5.6s) ease-in-out var(--fdl, 0s) infinite alternate; }
  @keyframes float { from { transform: translateY(-7px) rotate(-2.5deg); } to { transform: translateY(8px) rotate(2.5deg); } }
  .toy.dragging .bob { animation-play-state: paused; }
  .toy .face.boing { animation: boing 0.75s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
  .toy .face.spin { animation: spin 1s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
  @keyframes boing {
    14% { transform: translateY(6px) scale(1.14, 0.84); }
    38% { transform: translateY(-38px) scale(0.9, 1.12) rotate(-7deg); }
    58% { transform: translateY(0) scale(1.08, 0.92); }
    76% { transform: translateY(-8px) scale(0.97, 1.03) rotate(2deg); }
  }
  @keyframes spin {
    12% { transform: translateY(6px) scale(1.12, 0.86); }
    45% { transform: translateY(-60px) rotate(200deg) scale(1.1); }
    75% { transform: translateY(-10px) rotate(360deg); }
    100% { transform: rotate(360deg); }
  }
  @media (hover: hover) { .toy .face { transition: scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); } .toy:hover .face { scale: 1.07; } }
}

/* ------------------------------------------------------------------ home: the sky hero
   The hero artwork, redrawn: night (or daylight) sky, the vector rainbow framing the copy, mascots flying
   around it, the hill the phones rise from behind. Stars, glitter and shooting stars: a canvas (site.js). */
.sky-hero {
  --rw: min(1220px, calc(100vw - 40px));  /* rainbow width */
  --rt: 78px;                               /* its top */
  --sky-bg: #fffdf9;
  position: relative; isolation: isolate; overflow: clip; margin-top: -70px; background: var(--sky-bg);
  padding: calc(var(--rt) + var(--rw) * 0.163 + 22px) 0 clamp(330px, 30vw, 430px);
}
@media (prefers-color-scheme: dark) { .sky-hero { --sky-bg: #070402; } }
.sky-hero::after { content: ""; position: absolute; z-index: 6; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.sky-glow { position: absolute; z-index: 0; inset: auto 0 0; height: 70%; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 100%, rgba(255, 170, 90, 0.38), rgba(255, 200, 150, 0.12) 55%, transparent 75%); }
@media (prefers-color-scheme: dark) { .sky-glow { background: radial-gradient(55% 55% at 50% 100%, rgba(255, 110, 30, 0.42), rgba(160, 50, 10, 0.16) 55%, transparent 78%); } }
.hero-rb { position: absolute; z-index: 1; top: var(--rt); left: 50%; width: var(--rw); height: auto; translate: -50% 0; transform-origin: 50% 100%;
  rotate: calc(var(--px, 0) * 1.2deg); transition: rotate 0.8s var(--ease); }
.sky-toy { position: absolute; z-index: 3; width: var(--w); top: var(--top); left: calc(50% + var(--x)); }
.st-1 { --w: clamp(100px, 10vw, 150px); --x: -640px; --top: 150px; --z: 16; --zs: 120; --fd: 5.2s; --fdl: -1s; --pd: 0.9s; }
.st-2 { --w: clamp(130px, 13vw, 200px); --x: 460px; --top: 96px; --z: 22; --zs: 170; --fd: 4.4s; --fdl: -2s; --pd: 1.05s; }
.st-3 { --w: clamp(120px, 12vw, 175px); --x: -715px; --top: 470px; --z: 12; --zs: 70; --fd: 6.2s; --fdl: -3s; --pd: 1.2s; }
.st-4 { --w: clamp(110px, 11vw, 165px); --x: 545px; --top: 520px; --z: 14; --zs: 90; --fd: 5.8s; --fdl: -4s; --pd: 1.3s; }

.sky-hero .hero-copy { position: relative; z-index: 8; pointer-events: none; opacity: calc(1 - var(--fade, 0)); translate: 0 calc(var(--fade, 0) * -36px); }
.sky-hero .hero-copy > * { pointer-events: auto; }
.sky-hero .hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -2% 14% 4%; pointer-events: none;
  background: radial-gradient(closest-side, var(--sky-bg) 35%, color-mix(in srgb, var(--sky-bg) 60%, transparent) 70%, transparent); }
.sky-hero .eyebrow { margin-bottom: 22px; box-shadow: 0 6px 24px -10px rgba(255, 122, 26, 0.45); }
.sky-hero .slogan { font-size: min(88px, calc(1500px / var(--sl)), max(10vw, calc(172vw / var(--sl))), calc(var(--rw) * 0.072)); }
.sky-hero .promise { margin-bottom: 28px; }

.horizon { position: absolute; z-index: 4; inset: auto 0 0; height: clamp(330px, 30vw, 430px); pointer-events: none; }
.horizon .phones { position: absolute; inset: 0; z-index: 1; translate: 0 calc(var(--rise, 0) * -30%); }
.sky-hero .phone { top: 6%; width: clamp(150px, 17vw, 250px); translate: -50% 0; box-shadow: 0 30px 70px -20px rgba(255, 122, 26, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15); }
.sky-hero .phone.p-l, .sky-hero .phone.p-r { top: 22%; width: clamp(112px, 12.5vw, 190px); }
.sky-hero .phone.p-l { translate: calc(-50% - clamp(110px, 14vw, 230px)) calc(var(--rise, 0) * 26px); }
.sky-hero .phone.p-r { translate: calc(-50% + clamp(110px, 14vw, 230px)) calc(var(--rise, 0) * 26px); }
.hill-svg { position: absolute; z-index: 2; inset: auto 0 0; width: 100%; height: 66%; overflow: visible; }
.hill-body { stroke: none; }
.hg0 { stop-color: #ffffff; } .hg1 { stop-color: #eef0f4; }
.hill-rim { fill: none; stroke: rgba(255, 160, 80, 0.55); stroke-width: 10; filter: blur(8px); }
@media (prefers-color-scheme: dark) { .hg0 { stop-color: #120904; } .hg1 { stop-color: #070402; } .hill-rim { stroke: rgba(255, 120, 40, 0.75); } }
.hm { position: absolute; z-index: 3; bottom: 34%; width: clamp(90px, 9vw, 135px); pointer-events: auto; --z: 6; }
.hm-l { left: 12%; --fd: 4.6s; --fdl: -1.2s; --pd: 1.4s; }
.hm-r { right: 11%; --fd: 5.4s; --fdl: -2.6s; --pd: 1.5s; }
.sky-hero .flow { position: absolute; z-index: 4; inset: auto 0 13%; margin: 0; padding-inline: var(--gutter); pointer-events: auto; }
.sky-hero .flow li { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.45); }
.sky-fx { position: absolute; z-index: 7; inset: 0; width: 100%; height: 100%; pointer-events: none; }

@media (max-width: 999px) {
  .sky-hero { --rw: 132vw; --rt: 70px; margin-top: -66px; padding-bottom: 300px; }
  .horizon { height: 300px; }
  .st-1 { --x: calc(-50vw - 18px); --top: 74px; --w: 110px; }
  .st-2 { --x: calc(50vw - 118px); --top: 64px; --w: 128px; }
  .st-3, .st-4 { display: none; }
  .hm { width: 92px; bottom: 30%; }
  .hm-l { left: 3%; } .hm-r { right: 3%; }
}
@media (max-width: 700px) {
  .sky-hero { --rw: 172vw; padding-bottom: 270px; }
  .horizon { height: 270px; }
  .st-1 { --w: 84px; --top: 78px; --x: calc(-50vw - 10px); }
  .st-2 { --w: 100px; --top: 66px; --x: calc(50vw - 92px); }
  .sky-hero .phone { width: min(44vw, 210px); top: 4%; }
  .hm { width: 74px; bottom: 26%; }
  .hm-l { left: 1%; } .hm-r { right: 1%; }
  .sky-hero .flow { bottom: 9%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .sky-hero .hero-copy > *, .js .sky-hero .slogan .sl, .js .sky-hero .slogan em { animation: word-in 1s var(--ease) both; }
  .js .sky-hero .hero-copy > .slogan { animation: none; }
  .js .sky-hero .eyebrow { animation-delay: 0.35s; }
  .js .sky-hero .slogan .sl { animation-delay: 0.5s; }
  .js .sky-hero .slogan em { animation-delay: 0.66s; }
  .js .sky-hero .promise { animation-delay: 0.8s; }
  .js .sky-hero .cta-row { animation-delay: 0.92s; }
  .js .sky-hero .hero-store, .js .sky-hero .proof { animation-delay: 1.02s; }
  @keyframes word-in { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } }
  .js .sky-hero .toy .face { animation: m-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--pd, 0.6s) both; }
  @keyframes m-pop { from { opacity: 0; transform: translateY(40px) scale(0.55); } }
  .js .sky-hero .toy .face.boing { animation: boing 0.75s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
  .js .sky-hero .toy .face.spin { animation: spin 1s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
}

/* the cloud parade: every mascot of the app, marching; tap, drag and throw them */
.parade { direction: ltr; overflow: hidden; padding: clamp(28px, 5vw, 56px) 0 8px; margin-top: calc(-1 * clamp(32px, 6vw, 96px));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.parade li { flex: none; width: clamp(86px, 9vw, 132px); margin-right: clamp(14px, 2.6vw, 36px); }
.parade li::after { content: ""; display: block; width: 58%; height: 12px; margin: -8px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 60, 20, 0.2), transparent); }
@media (prefers-color-scheme: dark) { .parade li::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); } }
.parade li .bob { --fd: 4.4s; --fdl: calc(var(--i) * -0.55s); }
.parade li:nth-child(odd) .bob { --fd: 3.6s; }
@media (prefers-reduced-motion: no-preference) {
  .parade-track { animation: parade 80s linear infinite; }
  .parade:hover .parade-track, .parade:has(.dragging) .parade-track { animation-play-state: paused; }
  @keyframes parade { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .parade { overflow-x: auto; } }


/* ================================================================== design system, v3
   Warm daylight (or a starry night) behind everything; every text sits on a card; tools wear glossy
   app icons in their category's colour; the mascots live everywhere and can be played with. */
:root { --bg: #fffaf5; --bg-2: #fff3e8; --sunk: #fdf0e4; --r-card: 30px; }
@media (prefers-color-scheme: dark) { :root { --bg: #0c0806; --bg-2: #17100c; --surface: #1b1410; --sunk: #241a14; } }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 700px at 6% -12%, rgba(255, 168, 96, 0.22), transparent 62%),
    radial-gradient(900px 650px at 104% 12%, rgba(255, 128, 150, 0.1), transparent 60%),
    radial-gradient(1300px 820px at 50% 118%, rgba(255, 196, 120, 0.2), transparent 62%); }
@media (prefers-color-scheme: dark) {
  body::before { background: radial-gradient(1100px 700px at 6% -12%, rgba(255, 110, 30, 0.16), transparent 62%),
      radial-gradient(900px 650px at 104% 12%, rgba(255, 70, 90, 0.07), transparent 60%),
      radial-gradient(1300px 820px at 50% 118%, rgba(255, 120, 40, 0.14), transparent 62%),
      radial-gradient(1.2px 1.2px at 23px 41px, rgba(255, 230, 200, 0.8), transparent 2px),
      radial-gradient(1px 1px at 141px 97px, rgba(255, 200, 140, 0.7), transparent 2px),
      radial-gradient(1.4px 1.4px at 211px 183px, rgba(255, 240, 220, 0.75), transparent 2px),
      radial-gradient(1px 1px at 77px 229px, rgba(255, 190, 120, 0.6), transparent 2px);
    background-size: auto, auto, auto, 260px 260px, 260px 260px, 260px 260px, 260px 260px; }
}

/* ---------- banner: the sky at the top of every inner page */
.banner { padding-top: 14px; }
.bn-in { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); align-items: stretch; gap: 12px;
  min-height: clamp(330px, 32vw, 430px); padding: 0 clamp(22px, 5vw, 64px); border-radius: 40px;
  background: radial-gradient(70% 90% at 78% 115%, rgba(255, 150, 70, 0.45), transparent 62%), linear-gradient(165deg, #fffaf4 0%, #ffeedd 55%, #ffdcbd 100%);
  box-shadow: 0 34px 70px -44px rgba(150, 60, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 150, 70, 0.18); }
.bn-in::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0.9;
  background: radial-gradient(circle at 8% 18%, #ffb36b 0 2px, transparent 3px), radial-gradient(circle at 46% 12%, #ffc68f 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 62% 30%, #ff9a47 0 2px, transparent 3px), radial-gradient(circle at 90% 14%, #ffb36b 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 30% 80%, #ffc68f 0 1.5px, transparent 2.5px), radial-gradient(circle at 96% 60%, #ff9a47 0 2px, transparent 3px); }
@media (prefers-color-scheme: dark) {
  .bn-in { background: radial-gradient(70% 90% at 78% 118%, rgba(255, 100, 20, 0.42), transparent 62%), linear-gradient(170deg, #1a0e08 0%, #0e0805 100%); border-color: rgba(255, 140, 60, 0.14); box-shadow: 0 34px 70px -44px rgba(0, 0, 0, 0.9); }
  .bn-in::before { background: radial-gradient(circle at 8% 18%, #fff0dc 0 1.2px, transparent 2px), radial-gradient(circle at 46% 12%, #ffd2a0 0 1px, transparent 2px),
      radial-gradient(circle at 62% 30%, #fff 0 1.3px, transparent 2px), radial-gradient(circle at 90% 14%, #ffc68f 0 1px, transparent 2px),
      radial-gradient(circle at 30% 80%, #ffe2c0 0 1px, transparent 2px), radial-gradient(circle at 96% 60%, #fff 0 1.2px, transparent 2px),
      radial-gradient(circle at 20% 45%, #ffd2a0 0 1px, transparent 2px), radial-gradient(circle at 74% 8%, #fff 0 1px, transparent 2px); }
}
@media (prefers-reduced-motion: no-preference) { .bn-in::before { animation: twinkle 3.6s ease-in-out infinite alternate; } @keyframes twinkle { to { opacity: 0.35; } } }
.bn-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 6px clamp(34px, 5vw, 56px); align-self: center; }
.bn-copy .crumbs ol { padding-top: 18px; }
.bn-copy h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; max-width: 15em; }
.bn-copy .lead { margin: 0; max-width: 34em; }
.bn-copy .proof { justify-content: flex-start; margin-top: 4px; }
.bn-copy .filter { margin: 8px 0 0; max-width: 560px; }
.bn-copy .byline { margin-top: 2px; }
.bn-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 150, 70, 0.22); font-weight: 650; font-size: 14px; color: var(--ink-2); }
.bn-kicker > .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .bn-kicker { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 150, 70, 0.2); } }
.bn-art { position: relative; min-height: 290px; pointer-events: none; }
.bn-rb { position: absolute; top: 28px; left: 50%; width: clamp(330px, 32vw, 460px); height: auto; translate: -50% 0; }
.bn-toy { position: absolute; z-index: 2; bottom: 18px; left: 50%; width: clamp(130px, 12vw, 180px); margin-inline-start: calc(clamp(130px, 12vw, 180px) / -2); pointer-events: auto; --pd: 0.5s; }
[dir="rtl"] .bn-toy { margin-inline-start: 0; margin-inline-end: calc(clamp(130px, 12vw, 180px) / -2); left: auto; right: 50%; }
.bn-cloud { position: absolute; z-index: 1; bottom: -18px; width: 200px; aspect-ratio: 2 / 1; pointer-events: none;
  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: drop-shadow(0 -6px 14px rgba(255, 150, 70, 0.2)); }
.bn-cloud.c1 { left: 2%; } .bn-cloud.c2 { right: -4%; width: 240px; bottom: -30px; }
@media (prefers-color-scheme: dark) { .bn-cloud { opacity: 0.12; } }
@media (prefers-reduced-motion: no-preference) {
  .bn-cloud { animation: drift 22s ease-in-out infinite alternate; --dx: 30px; } .bn-cloud.c2 { --dx: -36px; animation-duration: 27s; }
  .js .bn-toy .face { animation: m-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--pd) both; }
  .js .bn-toy .face.boing { animation: boing 0.75s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
  .js .bn-toy .face.spin { animation: spin 1s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
  .js .bn-copy > * { animation: word-in 0.9s var(--ease) both; }
  .js .bn-copy > :nth-child(2) { animation-delay: 0.08s; } .js .bn-copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .bn-copy > :nth-child(4) { animation-delay: 0.24s; } .js .bn-copy > :nth-child(5) { animation-delay: 0.32s; }
}
@media (max-width: 760px) {
  .bn-in { grid-template-columns: 1fr; padding: 0 20px; border-radius: 30px; min-height: 0; gap: 0; }
  .bn-art { order: -1; min-height: 210px; margin-inline: -20px; }
  .bn-rb { width: 300px; top: 22px; }
  .bn-toy { width: 120px; margin-inline-start: -60px; bottom: 6px; }
  [dir="rtl"] .bn-toy { margin-inline-end: -60px; }
  .bn-copy { padding-bottom: 30px; }
  .bn-copy .crumbs { order: -1; }
  .bn-copy .crumbs ol { padding-top: 0; }
}

/* ---------- glossy app icons (tools) */
.appi { --g1: #ffac5e; --g2: #ff6a00; position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--g1), var(--g2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.1), 0 8px 18px -8px var(--g2); }
.appi::after { content: ""; position: absolute; inset: 0 0 52%; border-radius: inherit; background: linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)); pointer-events: none; }
.appi .ic { position: relative; z-index: 1; width: 54%; height: 54%; stroke-width: 2; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)); }
.ti.appi { color: #fff; background: linear-gradient(160deg, var(--g1), var(--g2)); }
.ti.appi .ic, .pop .ti.appi .ic, .rl .ti.appi .ic, .tl .ti.appi .ic { width: 54%; height: 54%; color: #fff; }
.tl:hover .ti.appi { color: #fff; }
.c-organize { --g1: #ffb468; --g2: #ff6a00; --soft: rgba(255, 122, 26, 0.12); }
.c-convert_to { --g1: #ff9a8b; --g2: #f0466a; --soft: rgba(240, 70, 106, 0.1); }
.c-convert_from { --g1: #ffd36b; --g2: #f39200; --soft: rgba(243, 146, 0, 0.12); }
.c-optimize { --g1: #6ee7b7; --g2: #0fa676; --soft: rgba(15, 166, 118, 0.1); }
.c-edit { --g1: #7cc4ff; --g2: #2f74f0; --soft: rgba(47, 116, 240, 0.1); }
.c-security { --g1: #b3a6ff; --g2: #6a52f0; --soft: rgba(106, 82, 240, 0.1); }
.c-analyze { --g1: #6fe3dc; --g2: #0b9f9a; --soft: rgba(11, 159, 154, 0.1); }
.bn-kicker .appi { width: 30px; height: 30px; border-radius: 9px; }

/* ---------- tool tiles */
.pop, .dl, .rlist.row .rl, .glist a, .side-block, .toc, .dir-cat, .post-card { -webkit-tap-highlight-color: transparent; }
.pop { position: relative; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); transition: box-shadow 0.35s var(--ease), translate 0.35s var(--ease); }
.pop:hover { transform: none; translate: 0 -4px; box-shadow: var(--shadow-lg); }
.pop .ti.appi, .pop-grid .pop .ti.appi { width: 58px; height: 58px; border-radius: 17px; }
.dl { border-radius: 18px; transition: background 0.25s, translate 0.3s var(--ease); }
.dl:hover { background: var(--bg-2); translate: 4px 0; }
[dir="rtl"] .dl:hover { translate: -4px 0; }
.dl .ti.appi { width: 46px; height: 46px; border-radius: 14px; }
.rl .ti.appi { width: 34px; height: 34px; border-radius: 10px; }
.tl .ti.appi { width: 28px; height: 28px; border-radius: 8px; }
.tl { gap: 12px; padding: 7px 0; }
@media (prefers-reduced-motion: no-preference) {
  .pop:hover .appi, .dl:hover .appi, .rl:hover .appi, .tl:hover .appi { animation: icon-hop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes icon-hop { 30% { transform: translateY(-5px) rotate(-8deg) scale(1.08); } 60% { transform: translateY(1px) rotate(3deg); } }
}

/* ---------- directory: one card per category, its mascot on top */
.dir-pop { margin-top: clamp(32px, 4vw, 48px); }
.dir-cat { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 34px); margin-top: 18px; grid-template-columns: 220px 1fr; align-items: start; }
.dc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dc-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.cat-toy { width: 112px; --fd: 4.8s; }
.cat-toy.sm { width: 54px; display: inline-block; vertical-align: middle; margin-inline-end: 6px; }
.tb-cat h3 { display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) { .dir-cat { grid-template-columns: 1fr; } .dc-head { flex-direction: row; align-items: center; } .cat-toy { width: 76px; } }

/* ---------- cards for everything you read */
.tool-body .tb-main, .g-main, .how, .sitemap, .bench-card { background: var(--surface); border: 1px solid var(--line); border-radius: 36px; box-shadow: var(--shadow); padding: clamp(24px, 4.4vw, 60px); }
.tool-body { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 90px); }
.g-layout { padding-top: clamp(28px, 4vw, 48px); }
.wrap.narrow:has(> .how) { padding-top: clamp(28px, 4vw, 48px); max-width: 920px; }
.sitemap { margin-top: clamp(28px, 4vw, 48px); }
.tb-main > section + section, .g-main > section + section, .how > section + section { padding-top: 46px; border-top: 1px dashed var(--line-2); }
.tb-main > * + *, .g-main > * + * { margin-top: 46px; }
.tb-main h2, .g-main h2, .how h2, .post-body > h2, .sitemap h2 { display: flex; align-items: center; gap: 14px; }
.tb-main h2::before, .g-main h2::before, .how h2::before, .post-body > h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(160deg, #ffb468, #ff6a00); box-shadow: 0 0 0 6px var(--accent-soft); }
.tb-main h2 .ic, .g-main h2 .ic, .how h2 .ic { display: none; }
.privacy-note h2::before, .answer h2::before { display: none; }
.about { padding-bottom: 6px; }
.tb-main p, .g-main p, .how p { line-height: 1.65; }

.steps-big { gap: 12px; }
.steps-big li { grid-template-columns: 46px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); font-size: 17px; line-height: 1.5;
  transition: translate 0.3s var(--ease), box-shadow 0.3s, background 0.3s; }
.steps-big li:hover { translate: 4px 0; background: var(--surface); box-shadow: var(--shadow); }
.steps-big li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-family: var(--font); font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(160deg, #ffb468, #ff6a00); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 16px -8px rgba(255, 106, 0, 0.7); }
.ticks li { padding-inline-start: 36px; min-height: 24px; }
.ticks li::before { width: 24px; height: 24px; top: 0.02em; inset-inline-start: 0; border: 0; border-radius: 50%; transform: none;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
[dir="rtl"] .ticks li::before { transform: none; }
.dash li { padding-inline-start: 26px; }
.dash li::before { content: ""; top: 0.62em; width: 12px; height: 3px; border-radius: 2px; background: var(--line-2); }
.issues { display: grid; gap: 10px; }
.issues > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); padding: 0 20px; transition: background 0.3s, box-shadow 0.3s; }
.faq details[open] { background: var(--surface); box-shadow: var(--shadow); }
.faq summary { padding-block: 18px; }
.faq summary::after { content: ""; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding-bottom: 20px; }
.answer { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 140, 60, 0.22); background: linear-gradient(140deg, #fff3e6, #ffe2c6); }
.answer::after { content: "“"; position: absolute; inset-inline-end: 18px; top: -24px; font-family: var(--serif); font-size: 160px; line-height: 1; color: rgba(255, 106, 0, 0.14); pointer-events: none; }
.privacy-note { position: relative; border-radius: 28px; border: 1px solid rgba(106, 82, 240, 0.16); background: linear-gradient(140deg, #f4f1ff, #fff1e6); }
@media (prefers-color-scheme: dark) {
  .answer { background: linear-gradient(140deg, #2a1a0f, #1f140c); border-color: rgba(255, 140, 60, 0.22); }
  .privacy-note { background: linear-gradient(140deg, #1d1830, #21160e); border-color: rgba(150, 130, 255, 0.18); }
}
.facts dl { border-radius: 26px; border: 1px solid var(--line); }
.facts dt { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }

/* side: little cards */
.tb-side, .g-side { gap: 18px; }
.side-block, .toc { padding: 20px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.toc a { border-radius: 10px; border-inline-start: 0; padding: 8px 12px; }
.toc a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.side-app { border-radius: 28px; border: 1px solid rgba(255, 140, 60, 0.22); background: radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, 0.7), transparent 60%), linear-gradient(160deg, #ffe9d4, #ffcf9f); }
@media (prefers-color-scheme: dark) { .side-app { background: radial-gradient(90% 70% at 100% 0%, rgba(255, 150, 70, 0.2), transparent 60%), linear-gradient(160deg, #2a1a0f, #1c110a); } }
.side-tool { border-radius: 28px; background: radial-gradient(90% 80% at 100% 0%, rgba(255, 120, 40, 0.35), transparent 60%), var(--night); }
@media (prefers-reduced-motion: no-preference) { .sa-mascot, .as-mascot { animation: float 4.8s ease-in-out infinite alternate; } }

/* lists of guides and posts: cards, two by two, each with its mascot */
.glist { border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.glist a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n m" "t m" "d m"; gap: 6px 18px; align-items: start; height: 100%;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); transition: box-shadow 0.35s var(--ease), translate 0.35s var(--ease); }
.glist a:hover { padding-inline-start: 24px; background: var(--surface); translate: 0 -4px; box-shadow: var(--shadow-lg); }
.glist .gn { grid-area: n; font-family: var(--font); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; color: var(--accent-ink); }
.glist .gt { grid-area: t; font-size: clamp(20px, 1.9vw, 24px); }
.glist .gd { grid-area: d; font-size: 15px; }
.glist .gm { grid-area: m; width: 78px; height: 78px; align-self: center; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(90, 35, 0, 0.2)); }
@media (prefers-reduced-motion: no-preference) { .glist a:hover .gm { animation: icon-hop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); } }
.blog-index .glist a, .blog-index .glist { grid-template-columns: minmax(0, 1fr) auto; }
.blog-index .glist { grid-template-columns: 1fr; }
@media (max-width: 760px) { .glist { grid-template-columns: 1fr; } .glist a { grid-template-columns: minmax(0, 1fr) auto; } .glist .gd { grid-column: auto; } .glist .gm { width: 60px; height: 60px; } }
.guides-index { padding-top: clamp(32px, 4vw, 52px); }
.guides-index .label, .dir-pop .label { font-size: 13px; }

/* tool zone: the sky panel around the drop zone */
.ws-zone { margin-top: clamp(20px, 3vw, 32px); }
.ws-zone .zone-panel { border-radius: 40px; background: radial-gradient(80% 90% at 50% 120%, rgba(255, 150, 70, 0.4), transparent 60%), linear-gradient(170deg, #fff4ea, #ffe2c8); border: 1px solid rgba(255, 140, 60, 0.18); }
@media (prefers-color-scheme: dark) { .ws-zone .zone-panel { background: radial-gradient(80% 90% at 50% 120%, rgba(255, 100, 20, 0.3), transparent 60%), linear-gradient(170deg, #1a0e08, #120a06); border-color: rgba(255, 140, 60, 0.14); } }

/* reading progress: a little cloud rides along the top of articles */
.progress { position: fixed; z-index: 70; inset: 0 0 auto; height: 4px; pointer-events: none; }
.progress i { position: absolute; inset: 0; transform-origin: 0 50%; scale: var(--p, 0) 1; background: linear-gradient(90deg, #ffb468, #ff6a00 60%, #f0466a); border-radius: 0 4px 4px 0; }
[dir="rtl"] .progress i { transform-origin: 100% 50%; }
.progress img { position: absolute; top: -4px; left: calc(var(--p, 0) * 100% - 16px); width: 30px; height: 30px; filter: drop-shadow(0 4px 6px rgba(90, 35, 0, 0.3)); }
[dir="rtl"] .progress img { left: auto; right: calc(var(--p, 0) * 100% - 16px); }

/* 3D tilt (cards under the pointer) and a soft light that follows it */
[data-tilt] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease), translate 0.35s var(--ease), box-shadow 0.35s var(--ease); }
[data-tilt].tilting { transition: transform 0.08s linear, translate 0.35s var(--ease), box-shadow 0.35s var(--ease); }
[data-tilt]::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.4), transparent 45%); }
[data-tilt].tilting::before { opacity: 1; }
@media (prefers-color-scheme: dark) { [data-tilt]::before { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 180, 110, 0.12), transparent 45%); } }
.magnet { transition: translate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.magnet.pulling { transition: translate 0.12s linear; }

/* 404 */
.notfound { position: relative; padding-block: 40px 20px; }
.nf-sky { position: relative; width: min(420px, 90vw); height: 270px; margin: 0 auto -6px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.nf-sky .rainbow { position: absolute; left: 50%; top: 10px; width: 100%; translate: -50% 0; }
.nf-sky .toy { position: absolute; left: 50%; bottom: 0; width: 170px; margin-inline-start: -85px; }


/* ---------- /app/: the sky banner with the three phones rising inside the rainbow */
.app-banner .bn-in { min-height: clamp(540px, 48vw, 660px); grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr); }
.app-banner .bn-copy h1 { font-size: clamp(42px, 5.6vw, 80px); }
.app-banner .promise { text-align: start; margin: 0; font-size: clamp(20px, 2vw, 26px); }
.app-banner .bn-kicker img { border-radius: 8px; }
.app-banner .cta-row { margin-top: 10px; }
.ap-rb { position: absolute; top: 34px; left: 50%; width: clamp(380px, 40vw, 580px); translate: -50% 0; }
.ap-phones { position: absolute; inset: auto 0 0; height: 100%; }
.ap-ph { position: absolute; left: 50%; bottom: -70px; width: clamp(150px, 15vw, 220px); border-radius: clamp(22px, 2.4vw, 32px); border: 5px solid rgba(255, 250, 244, 0.9);
  box-shadow: 0 40px 80px -24px rgba(110, 40, 0, 0.55); translate: -50% 0; }
.ap-l { width: clamp(118px, 11.5vw, 170px); bottom: -110px; rotate: -9deg; translate: calc(-50% - clamp(110px, 11vw, 160px)) 0; }
.ap-r { width: clamp(118px, 11.5vw, 170px); bottom: -110px; rotate: 9deg; translate: calc(-50% + clamp(110px, 11vw, 160px)) 0; }
.ap-t1, .ap-t2 { position: absolute; z-index: 3; width: clamp(84px, 8vw, 120px); pointer-events: auto; }
.ap-t1 { left: 2%; top: 30%; --fd: 4.8s; --pd: 0.9s; }
.ap-t2 { right: 2%; top: 46%; --fd: 5.6s; --fdl: -2s; --pd: 1.05s; }
@media (prefers-reduced-motion: no-preference) {
  .js .ap-ph { animation: rise-in 1.1s var(--ease) both; } .js .ap-l { animation-delay: 0.35s; } .js .ap-r { animation-delay: 0.45s; } .js .ap-c { animation-delay: 0.2s; }
  .js .ap-t1 .face, .js .ap-t2 .face, .js .panel-toy .face { animation: m-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--pd, 0.6s) both; }
  .js .ap-t1 .face.boing, .js .ap-t2 .face.boing, .js .panel-toy .face.boing { animation: boing 0.75s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
  .js .ap-t1 .face.spin, .js .ap-t2 .face.spin, .js .panel-toy .face.spin { animation: spin 1s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
}
@media (max-width: 760px) {
  .app-banner .bn-in { min-height: 0; }
  .app-banner .bn-art { min-height: 360px; }
  .ap-rb { width: 340px; }
  .ap-ph { width: 150px; bottom: -40px; } .ap-l, .ap-r { width: 110px; bottom: -70px; }
  .ap-l { translate: calc(-50% - 104px) 0; } .ap-r { translate: calc(-50% + 104px) 0; }
  .ap-t1 { top: 12%; } .ap-t2 { top: 18%; }
}
.screen .panel { padding-bottom: clamp(28px, 4.5vw, 64px); }
.screen .panel-copy { padding-bottom: clamp(90px, 10vw, 130px); }
.panel-toy { position: absolute; z-index: 2; bottom: clamp(16px, 2.4vw, 30px); inset-inline-start: clamp(22px, 4vw, 60px); width: clamp(90px, 9vw, 130px); --fd: 5s; }
.panel.flip .panel-toy { inset-inline-start: auto; inset-inline-end: clamp(22px, 4vw, 60px); }
@media (max-width: 900px) { .screen .panel-copy { padding-bottom: 0; } .panel-toy { top: 18px; bottom: auto; inset-inline-start: auto; inset-inline-end: 18px; width: 84px; } .panel.flip .panel-toy { inset-inline-end: 18px; } }
.screen-phone img { transition: transform 0.6s var(--ease); }
.private-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: clamp(28px, 5vw, 60px); border-radius: 40px;
  background: radial-gradient(80% 70% at 50% 0%, rgba(106, 82, 240, 0.12), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.private-card .app-safe { width: clamp(120px, 14vw, 170px); margin: -20px auto 4px; }
.final-panel .final-mascot { position: absolute; }
.pro-visual .crown { position: absolute; }
.final-panel .final-mascot.toy { left: calc(50% - clamp(150px, 17vw, 230px) / 2); }
[dir="rtl"] .final-panel .final-mascot.toy { left: auto; right: calc(50% - clamp(150px, 17vw, 230px) / 2); }
@media (max-width: 760px) {
  .bn-art { overflow: hidden; height: 230px; min-height: 0; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
  .bn-rb { width: 290px; top: 18px; }
  .app-banner .bn-in { grid-template-columns: 1fr; }
  .app-banner .bn-art { height: 380px; -webkit-mask-image: none; mask-image: none; }
  .app-banner .bn-copy { padding-top: 8px; }
}

/* home story panels: the mascot of each job, playable */
.bento .panel-copy { padding-bottom: clamp(90px, 10vw, 130px); }
.bento .panel-toy { inset-inline-start: clamp(28px, 4.5vw, 64px); }
.bento .panel.flip .panel-toy { inset-inline-start: auto; inset-inline-end: auto; inset-inline-start: calc(50% + clamp(14px, 2vw, 28px)); }
@media (max-width: 900px) { .bento .panel-copy { padding-bottom: 0; } .bento .panel.flip .panel-toy { inset-inline-start: auto; inset-inline-end: 18px; } }
/* trust row: little app icons */
.tri { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--g1, #ffb468), var(--g2, #ff6a00)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 22px -10px var(--g2, #ff6a00); }
.tri::after { content: ""; position: absolute; inset: 0 0 52%; background: linear-gradient(rgba(255, 255, 255, 0.34), transparent); }
.tri .ic { position: relative; z-index: 1; stroke-width: 2; }
.trust-row li:nth-child(1) .tri { --g1: #7cc4ff; --g2: #2f74f0; }
.trust-row li:nth-child(2) .tri { --g1: #ffb468; --g2: #ff6a00; }
.trust-row li:nth-child(3) .tri { --g1: #ff9a8b; --g2: #f0466a; }
.trust-row li:nth-child(4) .tri { --g1: #b3a6ff; --g2: #6a52f0; }
.trust-row li { padding: 26px 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- fixes: mascots never cover text, screenshots never cropped */
@media (max-width: 900px) {
  .panel-toy, .bento .panel-toy, .panel.flip .panel-toy, .bento .panel.flip .panel-toy {
    position: relative; inset: auto; order: -1; justify-self: end; width: 84px; margin: -6px -4px -4px 0; }
  .screen .panel-copy, .bento .panel-copy { padding-bottom: 0; }
}
.card.shot { align-self: start; background: var(--surface); }
.card.shot img { height: auto; min-height: 0; object-fit: contain; object-position: top; }
.final-panel { padding-bottom: clamp(200px, 20vw, 260px); }
.final-panel .final-mascot.toy { width: clamp(130px, 14vw, 190px); bottom: clamp(6px, 1.5vw, 18px); left: calc(50% - clamp(130px, 14vw, 190px) / 2); }
[dir="rtl"] .final-panel .final-mascot.toy { left: auto; right: calc(50% - clamp(130px, 14vw, 190px) / 2); }
@media (max-width: 700px) { .hm { bottom: 47%; width: 64px; } }

/* ---------- home story panels: the mascot sits under the links, in the flow (never over them) */
.bento .panel-toy, .bento .panel.flip .panel-toy { position: relative; inset: auto; order: 0; justify-self: auto; width: clamp(104px, 9vw, 140px); margin: 6px 0 0; }
.bento .panel-copy, .bento .panel.flip .panel-copy { padding-bottom: 0; }
@media (max-width: 900px) { .bento .panel-toy, .bento .panel.flip .panel-toy { position: relative; inset: auto; order: 0; width: 88px; margin: 0; } }
/* the screenshot keeps its whole picture at a phone's size; the small cards stack at the top beside it */
.panel-cards { grid-template-rows: auto auto 1fr; align-items: start; }
.panel-cards > .card:not(.shot) { align-self: start; }
.card.shot { justify-self: center; width: min(100%, 300px); }
@media (max-width: 520px) { .card.shot { width: 100%; } }
/* long words (Finnish, German…) never push a column wider than the screen */
@media (max-width: 980px) { .g-layout, .tool-body { grid-template-columns: minmax(0, 1fr); } }
.g-main, .tb-main, .how, .g-side, .tb-side, .bn-copy, .panel-copy, .glist a { overflow-wrap: break-word; }
.bn-copy h1, .g-main h2, .tb-main h2, .panel-copy h2 { hyphens: auto; }
