/* Tik website — phone first, then wider screens.
   Colors, glass and shapes follow the app. Farsi uses Vazirmatn (only the
   subsets that are needed); English uses the phone's own system font. */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Vazirmatn'; font-weight: 400; font-display: swap; src: url('../assets/fonts/vazirmatn-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-weight: 600; font-display: swap; src: url('../assets/fonts/vazirmatn-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-weight: 700; font-display: swap; src: url('../assets/fonts/vazirmatn-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-weight: 400; font-display: swap; src: url('../assets/fonts/vazirmatn-latin-400.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: 'Vazirmatn'; font-weight: 600; font-display: swap; src: url('../assets/fonts/vazirmatn-latin-600.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: 'Vazirmatn'; font-weight: 700; font-display: swap; src: url('../assets/fonts/vazirmatn-latin-700.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; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* The 11 accent colors come from the app (Palette.kt). Blue is the default. */
  --acc-l: #007AFF; --acc-d: #0A84FF; --par-l: #AF52DE; --par-d: #BF5AF2;
  --ink-l: #006BE0; --ink-d: #0A84FF; --on-l: #FFFFFF; --on-d: #FFFFFF;

  --accent: var(--acc-l);
  --partner: var(--par-l);
  --ink: var(--ink-l);            /* accent color for text: always readable */
  --on-accent: var(--on-l);       /* text on an accent background */

  --bg: #EEF1F8;
  --text: #0B0D12;
  --text-2: #4B5260;
  --text-3: #6C7381;
  --card: rgba(255, 255, 255, .62);
  --card-strong: rgba(255, 255, 255, .8);
  --card-border: rgba(255, 255, 255, .92);
  --line: rgba(15, 23, 42, .09);
  --field: rgba(118, 118, 128, .12);
  --shadow: 0 1px 1px rgba(16, 24, 40, .03), 0 12px 32px -14px rgba(16, 24, 40, .16);
  --glass: rgba(255, 255, 255, .6);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .8);
  --glass-shadow: 0 10px 34px -12px rgba(16, 24, 40, .28);
  --sheet-bg: rgba(246, 247, 251, .9);

  --red: #FF3B30; --orange: #FF9500; --green: #34C759; --blue: #007AFF; --pink: #FF2D55;
  --circle: rgba(60, 60, 67, .32);

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.3, 1.3, .5, 1);
  --topbar-h: 60px;
  --pad-l: max(16px, env(safe-area-inset-left));
  --pad-r: max(16px, env(safe-area-inset-right));
  --dir: 1;

  --font-fa: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
[dir="rtl"] { --dir: -1; }

[data-accent="blue"]{--acc-l:#007AFF;--acc-d:#0A84FF;--par-l:#AF52DE;--par-d:#BF5AF2;--ink-l:#006BE0;--ink-d:#0A84FF;--on-l:#FFFFFF;--on-d:#FFFFFF}
[data-accent="indigo"]{--acc-l:#5856D6;--acc-d:#5E5CE6;--par-l:#32ADE6;--par-d:#64D2FF;--ink-l:#5856D6;--ink-d:#7573EA;--on-l:#FFFFFF;--on-d:#FFFFFF}
[data-accent="purple"]{--acc-l:#AF52DE;--acc-d:#BF5AF2;--par-l:#FF2D55;--par-d:#FF375F;--ink-l:#9E4AC8;--ink-d:#BF5AF2;--on-l:#FFFFFF;--on-d:#FFFFFF}
[data-accent="pink"]{--acc-l:#FF2D55;--acc-d:#FF375F;--par-l:#FF9500;--par-d:#FF9F0A;--ink-l:#D62647;--ink-d:#FF375F;--on-l:#FFFFFF;--on-d:#FFFFFF}
[data-accent="red"]{--acc-l:#FF3B30;--acc-d:#FF453A;--par-l:#FF9500;--par-d:#FF9F0A;--ink-l:#D13027;--ink-d:#FF453A;--on-l:#FFFFFF;--on-d:#FFFFFF}
[data-accent="orange"]{--acc-l:#FF9500;--acc-d:#FF9F0A;--par-l:#FF2D55;--par-d:#FF375F;--ink-l:#A35F00;--ink-d:#FF9F0A;--on-l:#0B0D12;--on-d:#0B0D12}
[data-accent="yellow"]{--acc-l:#FFCC00;--acc-d:#FFD60A;--par-l:#FF9500;--par-d:#FF9F0A;--ink-l:#8A6E00;--ink-d:#FFD60A;--on-l:#0B0D12;--on-d:#0B0D12}
[data-accent="green"]{--acc-l:#34C759;--acc-d:#30D158;--par-l:#30B0C7;--par-d:#40CBE0;--ink-l:#217F39;--ink-d:#30D158;--on-l:#0B0D12;--on-d:#0B0D12}
[data-accent="mint"]{--acc-l:#00C7BE;--acc-d:#63E6E2;--par-l:#007AFF;--par-d:#0A84FF;--ink-l:#007B76;--ink-d:#63E6E2;--on-l:#0B0D12;--on-d:#0B0D12}
[data-accent="teal"]{--acc-l:#30B0C7;--acc-d:#40CBE0;--par-l:#5856D6;--par-d:#5E5CE6;--ink-l:#227B8B;--ink-d:#40CBE0;--on-l:#0B0D12;--on-d:#0B0D12}
[data-accent="graphite"]{--acc-l:#8E8E93;--acc-d:#8E8E93;--par-l:#007AFF;--par-d:#0A84FF;--ink-l:#6F6F73;--ink-d:#8E8E93;--on-l:#FFFFFF;--on-d:#FFFFFF}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: var(--acc-d);
    --partner: var(--par-d);
    --ink: var(--ink-d);
    --on-accent: var(--on-d);

    --bg: #07080D;
    --text: #F2F4F8;
    --text-2: #AAB1BE;
    --text-3: #858C9A;
    --card: rgba(30, 32, 45, .58);
    --card-strong: rgba(30, 32, 45, .82);
    --card-border: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .09);
    --field: rgba(118, 118, 128, .26);
    --shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 16px 36px -16px rgba(0, 0, 0, .7);
    --glass: rgba(34, 36, 50, .58);
    --glass-strong: rgba(44, 46, 62, .9);
    --glass-border: rgba(255, 255, 255, .1);
    --glass-shadow: 0 12px 34px -12px rgba(0, 0, 0, .7);
    --sheet-bg: rgba(22, 24, 34, .9);

    --red: #FF453A; --orange: #FF9F0A; --green: #30D158; --blue: #0A84FF; --pink: #FF375F;
    --circle: rgba(235, 235, 245, .3);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  scroll-padding-bottom: 110px;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.6; }
html[lang="en"] [lang="fa"] { font-family: var(--font-fa); }
html[lang="fa"] .en-font, .langbar[lang="en"] { font-family: var(--font-en); }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
bdi { unicode-bidi: isolate; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 100; inset-inline-start: 12px; top: 8px; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }

/* The soft glow behind everything, like the app's mesh background. It is a
   fixed layer with plain gradients, so it costs almost nothing to scroll. */
.glow { position: fixed; top: 0; left: 0; right: 0; height: 100lvh; z-index: -1; pointer-events: none; background: var(--bg); }
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 42% at 10% 4%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%),
    radial-gradient(58% 44% at 94% 16%, color-mix(in srgb, var(--partner) 24%, transparent), transparent 72%),
    radial-gradient(70% 48% at 82% 96%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    radial-gradient(60% 46% at 6% 82%, color-mix(in srgb, var(--partner) 17%, transparent), transparent 72%);
}
@media (prefers-color-scheme: dark) { .glow::before { opacity: .8; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn--glass { background: var(--glass-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.btn--lg { min-height: 60px; padding: 0 26px; font-size: 17px; }
.btn--lg .i { width: 24px; height: 24px; }
.btn__text { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.btn__meta { font-size: 13px; font-weight: 400; opacity: .82; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* ---------- Language bar ---------- */
.langbar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--accent) 13%, var(--bg));
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.45;
  text-align: center;
}
.show-langbar .langbar { display: flex; }
.langbar p { min-width: 0; }
.langbar__go, .langbar__close { flex: none; }
.langbar__go { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.langbar__close { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.langbar__close .i { width: 18px; height: 18px; }
.langbar__go::after, .langbar__close::after { content: ""; position: absolute; inset: -6px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__in { display: flex; align-items: center; gap: 12px; height: var(--topbar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-size: 20px; font-weight: 700; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.topnav { display: none; }
.topbar__spacer { flex: 1; }
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--glass-strong);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
}
.lang-btn .i { width: 19px; height: 19px; color: var(--ink); }
.topbar__dl { display: none; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 34px; padding-top: 30px; padding-bottom: 12px; }
.hero__text { text-align: center; }
.hero__icon { width: 80px; height: 80px; margin: 0 auto 16px; filter: drop-shadow(0 16px 26px color-mix(in srgb, var(--accent) 38%, transparent)); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); font-size: 14px; font-weight: 600; }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 10.5vw, 66px); font-weight: 700; line-height: 1.25; }
html[lang="en"] .hero h1 { letter-spacing: -.03em; line-height: 1.08; }
.grad { color: var(--ink); white-space: nowrap; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background-image: linear-gradient(90deg, var(--accent), var(--partner));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  [dir="rtl"] .grad { background-image: linear-gradient(270deg, var(--accent), var(--partner)); }
}
.hero__sub { margin: 16px auto 0; max-width: 34em; color: var(--text-2); font-size: 17.5px; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin: 26px auto 0; max-width: 420px; }
.hero__cta .btn { width: 100%; }
.hero__trust { margin-top: 16px; color: var(--text-3); font-size: 14.5px; }
.cta-ios { order: 2; }
[data-device="iphone"] .cta-ios { order: -1; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
[data-device="iphone"] .cta-android { background: var(--glass-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }

.inapp-hint { display: none; margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--orange) 14%, var(--card-strong)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 35%, transparent); text-align: start; font-size: 15px; line-height: 1.7; }
.inapp[data-device="android"] .inapp-hint { display: block; }
.inapp-hint strong { display: block; margin-bottom: 4px; }
.inapp-hint .btn { display: flex; width: max-content; margin-top: 12px; }
.inapp-hint bdi { white-space: nowrap; }

/* ---------- Live demo ---------- */
.demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  --w: clamp(260px, min(84vw, calc((100svh - 176px) * .4755)), 330px);
  position: relative;
  width: var(--w);
  aspect-ratio: .4755;
  padding: calc(var(--w) * .028);
  border-radius: calc(var(--w) * .168);
  background: linear-gradient(150deg, #34363d, #0d0e11 38%, #1d1e23);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 34px 60px -24px rgba(16, 24, 40, .5), 0 12px 26px -14px rgba(16, 24, 40, .35);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * .142);
  container-type: inline-size;
  isolation: isolate;
  background: #F3F5FB;
  transform: translateZ(0);
}
@media (prefers-color-scheme: dark) { .phone__screen { background: #0A0B12; } }

/* Inside the phone everything is measured in app points (the screen is 380
   points wide), so the demo stays a sharp copy of the app at any size. */
.app {
  --pt: calc(100cqw / 380);
  position: absolute;
  inset: 0;
  color: var(--text);
  font-size: calc(16 * var(--pt));
  line-height: 1.3;
  user-select: none;
  -webkit-user-select: none;
}
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 38% at 0% 6%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 75%),
    radial-gradient(64% 36% at 100% 10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 75%),
    radial-gradient(80% 44% at 30% 46%, color-mix(in srgb, var(--partner) 22%, transparent), transparent 75%),
    radial-gradient(70% 40% at 100% 88%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 75%);
}
.app__status { position: absolute; top: 0; left: 0; right: 0; height: calc(50 * var(--pt)); display: flex; align-items: center; justify-content: space-between; padding: calc(3 * var(--pt)) calc(28 * var(--pt)) 0 calc(40 * var(--pt)); font-family: var(--font-en); font-size: calc(16 * var(--pt)); font-weight: 600; }
.app__island { position: absolute; top: calc(10 * var(--pt)); left: 50%; width: calc(114 * var(--pt)); height: calc(33 * var(--pt)); margin-left: calc(-57 * var(--pt)); border-radius: 999px; background: #000; }
.app__sys { display: flex; align-items: center; gap: calc(5 * var(--pt)); }
.app__sys svg { height: calc(12 * var(--pt)); width: auto; fill: currentColor; }
.app__head { position: absolute; top: calc(56 * var(--pt)); left: calc(20 * var(--pt)); right: calc(18 * var(--pt)); display: flex; align-items: flex-start; justify-content: space-between; }
.app__date { color: var(--ink); font-size: calc(14 * var(--pt)); font-weight: 600; line-height: 1.3; margin-top: calc(6 * var(--pt)); }
html[lang="en"] .app__date { text-transform: uppercase; letter-spacing: .02em; }
.app__title { font-size: calc(32 * var(--pt)); font-weight: 700; line-height: 1.2; }
html[lang="en"] .app__title { letter-spacing: -.01em; }
.app__gear { display: grid; place-items: center; width: calc(48 * var(--pt)); height: calc(48 * var(--pt)); margin-top: calc(2 * var(--pt)); padding: 0; border: 0; border-radius: 50%; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--glass-border), 0 calc(4 * var(--pt)) calc(14 * var(--pt)) rgba(16, 24, 40, .1); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.app__gear svg { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); }

.app__progress { position: absolute; top: calc(134 * var(--pt)); left: calc(14 * var(--pt)); right: calc(14 * var(--pt)); padding: calc(16 * var(--pt)) calc(18 * var(--pt)) calc(18 * var(--pt)); border-radius: calc(24 * var(--pt)); background: var(--card-strong); box-shadow: inset 0 0 0 1px var(--card-border), 0 calc(6 * var(--pt)) calc(18 * var(--pt)) rgba(16, 24, 40, .06); }
.app__progress-row { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--pt)); font-size: calc(16 * var(--pt)); }
.app__count { font-weight: 600; display: inline-flex; align-items: center; gap: calc(8 * var(--pt)); }
.app__count svg { display: none; width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); color: var(--accent); }
.app__pct { color: var(--text-2); }
.is-all-done .app__count { color: var(--ink); }
.is-all-done .app__count svg { display: block; }
.app__bar { position: relative; height: calc(8 * var(--pt)); margin-top: calc(12 * var(--pt)); border-radius: 99px; background: var(--field); overflow: hidden; }
.app__bar span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--partner), var(--accent)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .55s var(--ease); }
[dir="rtl"] .app__bar span { background: linear-gradient(270deg, var(--partner), var(--accent)); transform-origin: right; }

/* The list never scrolls by itself, so a finger on the demo always scrolls the page. */
.app__list { position: absolute; top: calc(226 * var(--pt)); left: 0; right: 0; bottom: 0; margin: 0; padding: 0 calc(14 * var(--pt)); list-style: none; overflow: hidden; }
.task { margin-bottom: calc(9 * var(--pt)); transition: transform .5s cubic-bezier(.2, .9, .25, 1); }
.task.is-new { animation: task-in .45s var(--spring) both; }
@keyframes task-in { from { opacity: 0; transform: translateY(calc(10 * var(--pt))) scale(.96); } }
.task__btn {
  display: grid;
  grid-template-columns: calc(24 * var(--pt)) minmax(0, 1fr) auto;
  gap: calc(12 * var(--pt));
  align-items: start;
  width: 100%;
  min-height: calc(56 * var(--pt));
  padding: calc(14 * var(--pt)) calc(16 * var(--pt)) calc(13 * var(--pt));
  border: 0;
  border-radius: calc(22 * var(--pt));
  background: var(--card-strong);
  box-shadow: inset 0 0 0 1px var(--card-border);
  color: inherit;
  font-size: calc(16 * var(--pt));
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s var(--ease);
}
.task__btn:active { transform: scale(.985); }
.task__check { position: relative; width: calc(23 * var(--pt)); height: calc(23 * var(--pt)); margin-top: calc(-1 * var(--pt)); border: calc(2 * var(--pt)) solid var(--prio, var(--circle)); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.task__check svg { position: absolute; inset: calc(3.5 * var(--pt)); width: auto; height: auto; stroke: #fff; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .28s var(--ease) .05s; }
.is-done .task__check { background: var(--accent); border-color: var(--accent); }
.is-done .task__check svg { stroke-dashoffset: 0; stroke: var(--on-accent); }
.task__body { min-width: 0; }
.task__title { position: relative; display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: top; line-height: 1.35; transition: color .25s; }
.task__title::after { content: ""; position: absolute; left: 0; right: 0; top: 54%; height: calc(1.4 * var(--pt)); background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
[dir="rtl"] .task__title::after { transform-origin: right; }
.is-done .task__title { color: var(--text-3); }
.is-done .task__title::after { transform: scaleX(1); }
.task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: calc(4 * var(--pt)) calc(11 * var(--pt)); margin-top: calc(5 * var(--pt)); color: var(--text-2); font-size: calc(12.5 * var(--pt)); line-height: 1.3; }
.is-done .task__meta { color: var(--text-3); }
.meta { display: inline-flex; align-items: center; gap: calc(4.5 * var(--pt)); }
.meta svg { width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.meta--late { color: var(--red); }
.is-done .meta--late { color: var(--text-3); }
.meta__dot { width: calc(7.5 * var(--pt)); height: calc(7.5 * var(--pt)); border-radius: 50%; background: var(--c); }
.task__prio { color: var(--prio); font-size: calc(14 * var(--pt)); font-weight: 700; letter-spacing: -.08em; font-family: var(--font-en); line-height: 1.35; }
.is-done .task__prio { opacity: 0; }
[data-prio="high"] { --prio: var(--red); }
[data-prio="medium"] { --prio: var(--orange); }

.app__quick { position: absolute; left: calc(14 * var(--pt)); right: calc(14 * var(--pt)); bottom: calc(104 * var(--pt)); height: calc(56 * var(--pt)); pointer-events: none; }
.quick {
  position: absolute;
  top: calc(4 * var(--pt));
  bottom: calc(4 * var(--pt));
  left: 0;
  right: calc(66 * var(--pt));
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 calc(18 * var(--pt));
  border-radius: 999px;
  background: var(--glass-strong);
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 calc(8 * var(--pt)) calc(24 * var(--pt)) rgba(16, 24, 40, .16);
  clip-path: inset(0 0 0 calc(100% - 48 * var(--pt)) round 999px);
  opacity: 0;
  transition: clip-path .5s var(--ease), opacity .18s;
}
[dir="rtl"] .quick { left: calc(66 * var(--pt)); right: 0; clip-path: inset(0 calc(100% - 48 * var(--pt)) 0 0 round 999px); }
.quick__input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: max(16px, calc(16 * var(--pt))); padding: 0; }
.quick__input::placeholder { color: var(--text-3); }
.is-adding .app__quick { pointer-events: auto; }
.is-adding .quick { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
.fab {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: calc(56 * var(--pt));
  height: calc(56 * var(--pt));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 calc(10 * var(--pt)) calc(22 * var(--pt)) color-mix(in srgb, var(--accent) 45%, transparent);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: transform .2s var(--ease);
}
[dir="rtl"] .fab { right: auto; left: 0; }
.fab:active { transform: scale(.94); }
.fab svg { width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; transition: transform .45s var(--spring); }
.is-adding .fab svg { transform: rotate(135deg); }

.app__tabs { position: absolute; left: 50%; bottom: calc(24 * var(--pt)); display: flex; width: calc(266 * var(--pt)); margin-left: calc(-133 * var(--pt)); padding: calc(5 * var(--pt)); border-radius: 999px; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--glass-border), 0 calc(10 * var(--pt)) calc(26 * var(--pt)) rgba(16, 24, 40, .14); }
.app__tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(3 * var(--pt)); height: calc(56 * var(--pt)); border-radius: 999px; color: var(--text); font-size: calc(11 * var(--pt)); font-weight: 600; cursor: pointer; }
.app__tab svg { width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app__tab.is-active { color: var(--ink); background: color-mix(in srgb, var(--text) 7%, transparent); }
.app__home { position: absolute; left: 50%; bottom: calc(8 * var(--pt)); width: calc(132 * var(--pt)); height: calc(5 * var(--pt)); margin-left: calc(-66 * var(--pt)); border-radius: 99px; background: var(--text); opacity: .85; }
.app__toast { position: absolute; left: calc(24 * var(--pt)); right: calc(24 * var(--pt)); bottom: calc(176 * var(--pt)); margin: 0; padding: calc(11 * var(--pt)) calc(15 * var(--pt)); border-radius: calc(17 * var(--pt)); background: color-mix(in srgb, var(--text) 88%, transparent); color: var(--bg); font-size: calc(13.5 * var(--pt)); line-height: 1.45; text-align: center; opacity: 0; transform: translateY(calc(10 * var(--pt))); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.app__toast.is-shown { opacity: 1; transform: none; }
.app__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

.demo__hint { max-width: 320px; color: var(--text-2); font-size: 15px; line-height: 1.7; text-align: center; }
.colors { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.colors__dots { display: none; gap: 8px; }
.color-dot { position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); cursor: pointer; touch-action: manipulation; transition: transform .2s var(--spring); }
.color-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--c); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s var(--spring); }
.color-dot[aria-pressed="true"]::after { opacity: 1; transform: none; }
.color-dot:active { transform: scale(.9); }
.colors__btn .swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

/* ---------- Sections ---------- */
.section { padding-top: 76px; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section__head h2 { margin-top: 12px; font-size: clamp(28px, 7.4vw, 44px); font-weight: 700; line-height: 1.3; }
html[lang="en"] .section__head h2 { letter-spacing: -.02em; line-height: 1.15; }
.section__head p { margin-top: 12px; color: var(--text-2); font-size: 17px; }
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow); }

/* Features: compact rows on phones (icon beside text), a grid on wide screens. */
.features { display: grid; gap: 12px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; align-items: start; padding: 18px; }
.feature__icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--ink); }
.feature h3 { font-size: 17.5px; font-weight: 700; line-height: 1.4; }
.feature p { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
html[lang="en"] .feature p { line-height: 1.55; }

/* Screens: switches, a swipe gallery, extras and videos. */
.switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-width: 156px; padding: 4px; border-radius: 999px; background: var(--field); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 15px; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: color .2s; }
.seg button[aria-checked="true"] { color: var(--text); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--glass-strong); box-shadow: 0 2px 8px rgba(16, 24, 40, .12), inset 0 0 0 1px var(--glass-border); transform: translateX(calc(var(--i, 0) * 100% * var(--dir))); transition: transform .35s var(--spring); }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(64vw, 270px);
  gap: 16px;
  margin-left: calc(-1 * var(--pad-l));
  margin-right: calc(-1 * var(--pad-r));
  padding: 6px var(--pad-r) 18px var(--pad-l);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad-l);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: center; }
.shot { margin: 0; }
.shot__frame { position: relative; aspect-ratio: 506 / 1100; overflow: hidden; border-radius: 13% / 6%; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow); }
.shot__frame img, .shot__frame video { width: 100%; height: 100%; object-fit: cover; transition: opacity .22s; }
.shot__frame img.is-swapping { opacity: .35; }
.shot figcaption, .vid figcaption, .extras figcaption { margin-top: 12px; color: var(--text-2); font-size: 15px; font-weight: 600; text-align: center; }
.dots { display: flex; justify-content: center; margin-top: 2px; }
.dots span { box-sizing: content-box; width: 7px; height: 7px; border: 6px solid transparent; border-radius: 10px; background: var(--text-3); background-clip: padding-box; opacity: .35; cursor: pointer; transition: width .3s var(--ease), opacity .3s, background-color .3s; }
.dots span.is-active { width: 20px; opacity: 1; background: var(--accent); }

/* Swipe rows with a mouse (computers): drag, arrow buttons and clickable dots.
   Fingers already swipe natively, so phones never see the arrows. */
.swipe { position: relative; }
.swipe__btn { display: none; position: absolute; top: 50%; z-index: 2; place-items: center; width: 44px; height: 44px; margin-top: -40px; padding: 0; border: 0; border-radius: 50%; background: var(--glass-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-border), var(--glass-shadow); cursor: pointer; transition: opacity .2s, transform .15s var(--ease); }
.swipe__btn:active { transform: scale(.94); }
.swipe__btn[disabled] { opacity: 0; pointer-events: none; }
.swipe__btn--prev { inset-inline-start: 0; }
.swipe__btn--next { inset-inline-end: 0; }
.gallery img, .gallery video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) and (max-width: 959px) {
  .swipe__btn { display: grid; }
  .gallery { cursor: grab; }
}

.extras { display: grid; gap: 16px; margin-top: 28px; }
.extras figure { margin: 0; }
.extras .shot__frame { border-radius: 26px; }
.extras .x-widgets .shot__frame { width: min(64vw, 270px); margin-inline: auto; border-radius: 13% / 6%; }
.extras .x-tablet .shot__frame { aspect-ratio: 1050 / 1400; border-radius: 22px; max-width: 420px; margin-inline: auto; }
.extras[data-platform="android"] .x-tablet .shot__frame { aspect-ratio: 1400 / 875; max-width: 640px; }

.sub-head { margin: 56px 0 18px; text-align: center; font-size: 24px; font-weight: 700; }
.vid .shot__frame { background: #000; }
.vid__play { position: absolute; inset: 0; display: none; place-items: center; border: 0; background: rgba(0, 0, 0, .12); color: #fff; cursor: pointer; }
.vid__play span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vid__play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-inline-start: 4px; }
.vid.needs-tap .vid__play { display: grid; }

/* Download */
.dl-grid { display: grid; gap: 16px; }
.dl-card { padding: 24px 20px; border-radius: var(--radius-xl); background: var(--card-strong); box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow); }
.dl-card__head { display: flex; align-items: center; gap: 14px; }
.dl-card__badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--ink); flex: none; }
.dl-card__badge .i { width: 26px; height: 26px; }
.dl-card h3 { font-size: 22px; font-weight: 700; }
.dl-card__req { color: var(--text-3); font-size: 14.5px; }
.dl-card .btn { width: 100%; margin-top: 20px; }
.dl-card p { margin-top: 16px; color: var(--text-2); }
.dl-card .btn + .btn { margin-top: 10px; }
.steps { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; counter-increment: step; font-size: 15.5px; line-height: 1.75; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); font-family: var(--font-en); font-size: 14px; font-weight: 700; }
.qr { display: none; align-items: center; gap: 16px; margin-top: 22px; padding: 14px; border-radius: var(--radius); background: var(--field); }
.qr img { width: 104px; height: 104px; border-radius: 12px; background: #fff; padding: 6px; }
.qr p { margin: 0; font-size: 14.5px; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--field); color: var(--text-2); font-size: 14.5px; line-height: 1.75; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-border), var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 14px 18px; font-weight: 600; line-height: 1.6; cursor: pointer; list-style: none; touch-action: manipulation; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--text-3); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 18px; color: var(--text-2); line-height: 1.85; }
html[lang="en"] .faq .answer { line-height: 1.6; }
.faq .answer p + p { margin-top: 8px; }
.hash { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--field); color: var(--text); font-size: 12.5px; line-height: 1.5; word-break: break-all; text-align: left; }

/* Footer */
.footer { margin-top: 84px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.footer__in { display: grid; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer__brand img { width: 30px; height: 30px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer small { color: var(--text-3); font-size: 13.5px; }

/* ---------- Bottom tab bar (phones and small tablets) ---------- */
.tabbar {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  transition: transform .35s var(--ease), opacity .25s;
}
.tabbar__pill {
  position: relative;
  display: flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--glass-border), var(--glass-shadow);
}
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 70px; height: 54px; padding: 0 8px; border-radius: 999px; color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; touch-action: manipulation; transition: color .25s; }
.tab .i { width: 23px; height: 23px; }
.tab.is-active { color: var(--ink); }
.tabbar__drop { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: var(--dw, 70px); border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--glass-strong)); box-shadow: inset 0 0 0 1px var(--glass-border); transform: translateX(var(--dx, 5px)); transition: transform .5s var(--spring), width .4s var(--ease), opacity .25s; }
.tabbar__drop.is-hidden { opacity: 0; }
.tabbar__dl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; min-width: 64px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); touch-action: manipulation; transition: transform .2s var(--ease); }
.tabbar__dl:active { transform: scale(.95); }
.tabbar__dl .i { width: 23px; height: 23px; }
.tabbar__dl.is-active { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--accent) 55%, transparent); }
.sheet-open .tabbar { opacity: 0; pointer-events: none; }
body.has-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Slide-up sheets ---------- */
html.sheet-open { overflow: hidden; }
.sheet:not([open]) { display: none; }
.color-dot, .color-opt { --c: var(--c-l); }
@media (prefers-color-scheme: dark) { .color-dot, .color-opt { --c: var(--c-d); } }
.sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 16, 0); color: var(--text); overflow: hidden; transition: background-color .35s; }
.sheet::backdrop { background: transparent; }
.sheet.is-open { background: rgba(8, 10, 16, .42); }
.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 28px 28px 0 0;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-border), 0 -12px 40px -12px rgba(0, 0, 0, .35);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}
.sheet.is-open .sheet__panel { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging .sheet__panel { transition: none; }
.sheet__grab { display: block; width: 40px; height: 5px; margin: 9px auto 0; border-radius: 3px; background: var(--text-3); opacity: .45; touch-action: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 10px 20px; touch-action: none; cursor: grab; }
[dir="rtl"] .sheet__head { padding: 8px 20px 10px 12px; }
.sheet__head h2 { font-size: 20px; font-weight: 700; }
.sheet__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--field); color: var(--text-2); cursor: pointer; touch-action: manipulation; }
.sheet__close .i { width: 18px; height: 18px; }
.sheet__body { padding: 4px 20px 26px; overflow-y: auto; overscroll-behavior: contain; }
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.color-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 84px; padding: 12px 6px; border: 0; border-radius: 18px; background: var(--field); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: transform .15s var(--ease), box-shadow .2s; }
.color-opt:active { transform: scale(.96); }
.color-opt span:first-child { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.color-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--c); }
.sheet .steps { margin-top: 6px; }
.sheet .steps li { font-size: 15.5px; }

/* ---------- Prose pages (privacy, 404) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding-top: 34px; }
.prose h1 { font-size: clamp(30px, 8vw, 44px); font-weight: 700; }
.prose .updated { margin-top: 8px; color: var(--text-3); font-size: 14.5px; }
.prose h2 { margin-top: 34px; font-size: 22px; font-weight: 700; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.prose .card { margin-top: 16px; padding: 18px 20px; }
.prose .card p:first-child { margin-top: 0; }
.center-page { min-height: 70dvh; display: grid; place-items: center; text-align: center; }
.center-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
  .hero__cta .btn { width: auto; }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature { display: block; padding: 22px; }
  .feature__icon { margin-bottom: 14px; }
  .feature h3 { margin-bottom: 6px; }
  .dl-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .extras { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: center; justify-content: center; gap: 28px; }
  .extras .x-widgets .shot__frame { width: 100%; }
  .sheet__panel { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100% - 48px)); max-height: min(84dvh, 760px); padding-bottom: 0; border-radius: 28px; opacity: 0; transform: translate(-50%, -46%) scale(.97); transition: transform .3s var(--ease), opacity .2s; }
  .sheet.is-open .sheet__panel { opacity: 1; transform: translate(-50%, -50%); }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: 16px; cursor: default; }
}
@media (min-width: 960px) {
  :root { --topbar-h: 68px; }
  .topnav { display: flex; gap: 4px; margin-inline-start: 18px; }
  .topnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; }
  .topnav a:hover, .topnav a.is-active { color: var(--text); background: var(--field); }
  .topbar__dl { display: inline-flex; }
  .tabbar { display: none; }
  body.has-tabbar { padding-bottom: 0; }

  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; padding-top: 56px; }
  .hero__text { text-align: start; }
  .hero__icon { margin-inline: 0; }
  .hero__sub { margin-inline: 0; }
  .hero__cta { justify-content: flex-start; margin-inline: 0; }
  .phone { --w: 340px; }
  .colors__dots { display: flex; }
  .colors__btn { display: none; }

  .section { padding-top: 110px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; overflow: visible; }
  .gallery--3 { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; }
  .dots { display: none; }
  .qr { display: flex; }
  .footer__in { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 959px) {
  /* Phones and tablets have the bottom bar's download button and the download section,
     so the first screen only shows the intro and the demo. */
  .hero__cta, .hero .inapp-hint { display: none; }
}
@media (max-width: 359px) {
  .tab { min-width: 60px; padding: 0 4px; font-size: 11px; }
  .tabbar__dl { padding: 0 12px; }
  .lang-btn { padding: 0 12px; }
  .brand span { display: none; }
}

/* ---------- Fallbacks and user settings ---------- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar { background: var(--bg); }
  .tabbar__pill, .sheet__panel { background: var(--glass-strong); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .btn, .lang-btn, .tab, .tabbar__dl, .seg button, .task__btn { border: 1px solid CanvasText; }
}
