/* Shiny website. System fonts, the app icon's blues as the brand colours
   (Brand.swift in the app), and iOS system colours for the feature tints, as
   in the app's dashboard. Layout: a white, airy page with big rounded "bento"
   cards, each showing a real screen of the app. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --card: #ffffff;
  --text: #111216;
  --muted: #5b6270;
  --border: #e3e6ec;
  /* The icon's gradient ends, and its midpoint as the one accent for buttons.
     Text links use the deep end, which reads better on white. */
  --link: #2347d9;
  --brand-1: #5cb8ff;
  --brand-2: #2347d9;
  --accent: #4080ec;
  --on-brand: #ffffff;
  --on-brand-muted: rgba(255, 255, 255, .86);
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 10px 30px rgba(20, 30, 60, .08);
  --phone-edge: #111216;
  --hero-wash: radial-gradient(70% 90% at 85% 10%, rgba(92, 184, 255, .22), transparent 70%),
               radial-gradient(60% 70% at 10% 100%, rgba(64, 128, 236, .10), transparent 70%);

  /* Bento card backgrounds: soft washes of the feature tints. */
  --tone-sun: linear-gradient(160deg, #fff6d9, #ffe4b3);
  --tone-peach: linear-gradient(160deg, #ffece0, #ffd6e2);
  --tone-sky: linear-gradient(160deg, #e3f4ff, #cfe2ff);
  --tone-lilac: linear-gradient(160deg, #f0e8ff, #dce6ff);
  --tone-night: radial-gradient(80% 70% at 50% 0%, rgba(92, 184, 255, .25), transparent 70%), linear-gradient(180deg, #121722, #0b0e14);
  --tone-ink: #111216;

  /* Feature tints: [icon colour, chip background]. Icons use a darker shade
     where the iOS colour is too light to read on white. */
  --t-duplicates: #b37f00;   --t-duplicates-bg: #fff6d6;
  --t-screenshots: #0a7fb0;  --t-screenshots-bg: #e3f5fc;
  --t-blurry: #c46a00;       --t-blurry-bg: #fff0dc;
  --t-videos: #1f8a3b;       --t-videos-bg: #e3f7e8;
  --t-live: #d1204a;         --t-live-bg: #ffe5eb;
  --t-chat: #00837c;         --t-chat-bg: #dcf7f5;
  --t-icloud: #8e3cbf;       --t-icloud-bg: #f4e8fb;
  --t-contacts: #0062cc;     --t-contacts-bg: #e2eeff;

  --radius: 20px;
  --radius-xl: 28px;
  --wrap: 1120px;
  --narrow: 760px;
}

/* Dark colours: from the device setting, unless the visitor picked a theme with
   the header toggle (main.js sets data-theme on <html>). The two blocks must match. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0d12;
    --bg-alt: #151922;
    --card: #181d27;
    --text: #f2f4f7;
    --muted: #a3abb8;
    --border: #262d3a;
    --link: #5cb8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --phone-edge: #000000;
    --hero-wash: radial-gradient(70% 90% at 85% 10%, rgba(64, 128, 236, .28), transparent 70%),
                 radial-gradient(60% 70% at 10% 100%, rgba(35, 71, 217, .18), transparent 70%);
    --tone-sun: linear-gradient(160deg, #2e2814, #221c10);
    --tone-peach: linear-gradient(160deg, #2f1f1d, #2a1823);
    --tone-sky: linear-gradient(160deg, #13263a, #121c36);
    --tone-lilac: linear-gradient(160deg, #221b36, #161d36);
    --tone-ink: #f2f4f7;

    --t-duplicates: #ffd60a;   --t-duplicates-bg: rgba(255, 214, 10, .14);
    --t-screenshots: #64d2ff;  --t-screenshots-bg: rgba(100, 210, 255, .14);
    --t-blurry: #ff9f0a;       --t-blurry-bg: rgba(255, 159, 10, .14);
    --t-videos: #30d158;       --t-videos-bg: rgba(48, 209, 88, .14);
    --t-live: #ff375f;         --t-live-bg: rgba(255, 55, 95, .14);
    --t-chat: #63e6e2;         --t-chat-bg: rgba(99, 230, 226, .14);
    --t-icloud: #bf5af2;       --t-icloud-bg: rgba(191, 90, 242, .16);
    --t-contacts: #409cff;     --t-contacts-bg: rgba(64, 156, 255, .16);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-alt: #151922;
  --card: #181d27;
  --text: #f2f4f7;
  --muted: #a3abb8;
  --border: #262d3a;
  --link: #5cb8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --phone-edge: #000000;
  --hero-wash: radial-gradient(70% 90% at 85% 10%, rgba(64, 128, 236, .28), transparent 70%),
               radial-gradient(60% 70% at 10% 100%, rgba(35, 71, 217, .18), transparent 70%);
  --tone-sun: linear-gradient(160deg, #2e2814, #221c10);
  --tone-peach: linear-gradient(160deg, #2f1f1d, #2a1823);
  --tone-sky: linear-gradient(160deg, #13263a, #121c36);
  --tone-lilac: linear-gradient(160deg, #221b36, #161d36);
  --tone-ink: #f2f4f7;

  --t-duplicates: #ffd60a;   --t-duplicates-bg: rgba(255, 214, 10, .14);
  --t-screenshots: #64d2ff;  --t-screenshots-bg: rgba(100, 210, 255, .14);
  --t-blurry: #ff9f0a;       --t-blurry-bg: rgba(255, 159, 10, .14);
  --t-videos: #30d158;       --t-videos-bg: rgba(48, 209, 88, .14);
  --t-live: #ff375f;         --t-live-bg: rgba(255, 55, 95, .14);
  --t-chat: #63e6e2;         --t-chat-bg: rgba(99, 230, 226, .14);
  --t-icloud: #bf5af2;       --t-icloud-bg: rgba(191, 90, 242, .16);
  --t-contacts: #409cff;     --t-contacts-bg: rgba(64, 156, 255, .16);
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 5.6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: var(--narrow); }
.centered { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--card); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.lead { font-size: clamp(18px, 2.1vw, 20px); color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.eyebrow a { text-decoration: none; color: inherit; }
.display { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.03em; }
.display em { font-weight: 800; }
.more { margin-top: 28px; font-weight: 600; }
.text-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--accent); }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-brand); font-weight: 600; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 23%; }
.nav-end { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.nav-links a:hover { background: var(--bg-alt); }
.nav-links a[aria-current="page"] { font-weight: 650; }
.nav-links .nav-cta { background: var(--accent); color: var(--on-brand); font-weight: 600; margin-left: 6px; padding: 8px 16px; }
.nav-links .nav-cta:hover { background: var(--accent); filter: brightness(1.1); }
/* On phones only "Download" stays; every page is in the footer. */
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); min-width: 160px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; }
.lang li a:hover { background: var(--bg-alt); }

/* Theme toggle: the moon offers dark, the sun offers light. */
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[data-mode="light"] .icon-sun,
.theme-toggle[data-mode="dark"] .icon-moon { display: none; }

/* ---------- hero ---------- */

.hero { background: var(--hero-wash); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "text phone" "tiles phone";
  column-gap: 48px; padding-top: 48px;
}
.hero-text { grid-area: text; padding-bottom: 28px; }
.hero h1 { max-width: 13em; }
.hero .lead { max-width: 33em; }
.hero-note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.hero-phone { grid-area: phone; align-self: end; margin: 0 0 -90px; }

.device-chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.device-chips li {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px;
  padding: 8px 12px; border-radius: 12px; background: var(--bg-alt); font-size: 13px; color: var(--muted);
}
.device-chips svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.badge { display: inline-flex; align-items: center; gap: 10px; }
.badge img { height: 52px; width: auto; display: block; }
.badge.soon img { opacity: .92; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text); font-size: 13px; font-weight: 650; }
.download .pill { background: #fff; color: var(--brand-2); }

/* Tiles: the app's dashboard cards, as a collage under the hero text. */
.hero-tiles {
  grid-area: tiles; align-self: end;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 118px; gap: 12px;
  padding-bottom: 36px;
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; border-radius: 22px; color: #fff; overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 30, 60, .12);
}
.tile-wide { grid-column: span 2; }
.tile-value { font-family: var(--font-display); font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.tile-title { font-size: 14px; font-weight: 600; }
.tile-sub { font-size: 12.5px; opacity: .85; }
.tile-review { background: linear-gradient(135deg, #5cb8ff, #2347d9); }
.tile-videos { background: linear-gradient(135deg, #34c759, #1f8a3b); }
.tile-duplicates { background: linear-gradient(135deg, #ffd60a, #ff9f0a); color: #3a2a00; }
.tile-screenshots { background: linear-gradient(135deg, #64d2ff, #0a84ff); }
.tile-blurry { background: linear-gradient(135deg, #ffb340, #ff6b00); }
.tile-contacts { background: linear-gradient(135deg, #7d8cff, #2347d9); }
.tile-live { background: linear-gradient(135deg, #ff6482, #d1204a); }
.tile-ring { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; transform: rotate(-90deg); fill: none; stroke-width: 5; }
.tile-ring circle { stroke: rgba(255, 255, 255, .28); }
.tile-ring .ring-fill { stroke: #fff; stroke-dasharray: 72 100; stroke-linecap: round; }
.tile-icon { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "phone" "tiles"; padding-top: 32px; }
  .hero-phone { width: min(280px, 72vw); justify-self: center; margin: 8px 0 0; }
  .hero-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 104px; margin-top: 28px; }
  .hero-tiles .tile:nth-child(n + 5) { display: none; }
}

/* ---------- phone frame ---------- */

.phone { margin: 0; }
.phone img {
  display: block; width: 100%;
  border-radius: 13% / 6%;
  border: 7px solid var(--phone-edge);
  box-shadow: 0 24px 60px rgba(10, 20, 50, .25);
  background: #fff;
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.hero + .section { padding-top: 150px; }
.section-lead { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 38em; margin: 0 auto 36px; }
.section:not(.centered) .section-lead { margin-left: 0; }
.page-intro { padding: 56px 0 8px; }
.page-intro + .section { padding-top: 24px; }
.updated { color: var(--muted); font-size: 15px; }

.proof {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--muted);
}
.proof svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* bento */
.bento-section { padding: 0 0 24px; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bento-card {
  position: relative; overflow: hidden; height: 560px; border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 28px 0; color: var(--tone-ink);
}
.bento-card h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; letter-spacing: -0.02em; margin: 0 0 8px; }
.bento-card p { margin: 0 auto; max-width: 30em; opacity: .8; }
.bento-wide { grid-column: 1 / -1; }
.bento-phone { width: 270px; margin-top: 32px; flex: none; }
.bento-phones { display: flex; justify-content: center; gap: 36px; }
.tone-sun { background: var(--tone-sun); }
.tone-peach { background: var(--tone-peach); }
.tone-sky { background: var(--tone-sky); }
.tone-lilac { background: var(--tone-lilac); }
.tone-night { background: var(--tone-night); color: #fff; }
.tone-brand { background: radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; }
.tone-night .phone img, .tone-brand .phone img { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card { height: 480px; padding-top: 32px; }
  .bento-phone { width: 230px; }
  .bento-phones .bento-phone:nth-child(2) { display: none; }
}

/* feature grid */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; text-align: left; }
.feature-card a {
  display: block; height: 100%; padding: 22px; border-radius: var(--radius);
  background: var(--bg-alt); color: var(--text); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.feature-card a:hover { transform: translateY(-2px); background: var(--card); box-shadow: var(--shadow); }
.feature-card h3 { margin: 14px 0 6px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature-icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 13px; flex: none;
  fill: none; stroke: var(--tint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: var(--tint-bg);
}
.tint-duplicates   { --tint: var(--t-duplicates);  --tint-bg: var(--t-duplicates-bg); }
.tint-screenshots  { --tint: var(--t-screenshots); --tint-bg: var(--t-screenshots-bg); }
.tint-blurry       { --tint: var(--t-blurry);      --tint-bg: var(--t-blurry-bg); }
.tint-videos       { --tint: var(--t-videos);      --tint-bg: var(--t-videos-bg); }
.tint-live-photos  { --tint: var(--t-live);        --tint-bg: var(--t-live-bg); }
.tint-chat-photos  { --tint: var(--t-chat);        --tint-bg: var(--t-chat-bg); }
.tint-icloud-drive { --tint: var(--t-icloud);      --tint-bg: var(--t-icloud-bg); }
.tint-contacts     { --tint: var(--t-contacts);    --tint-bg: var(--t-contacts-bg); }

/* grey panel (how it works) */
.panel { background: var(--bg-alt); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 48px); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; }
.steps p { margin: 0; color: var(--muted); }
.step-icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; text-align: left; }
.plan { background: var(--bg-alt); border-radius: var(--radius-xl); padding: 30px; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.plan-pro { background: var(--card); box-shadow: inset 0 0 0 2px var(--accent); }
.pro-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plans-note { margin-top: 22px; color: var(--muted); }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; text-align: left; }
.faq details { background: var(--bg-alt); border-radius: 16px; }
.faq summary { cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.faq-group { margin-top: 48px; }
.callout { margin-top: 32px; padding: 18px 20px; background: var(--bg-alt); border-radius: 16px; }

/* long pages */
.toc ul { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg-alt); text-decoration: none; color: var(--text); font-size: 15px; }
.toc a:hover { background: var(--border); }
.feature-detail { padding: 32px 0; border-top: 1px solid var(--border); }
.feature-detail h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 3vw, 30px); }
.topic { padding: 26px 0; border-top: 1px solid var(--border); }
.topic:first-child { border-top: 0; padding-top: 0; }
.topic h2 { font-size: clamp(22px, 2.8vw, 27px); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }

/* support */
.contact-card { background: var(--bg-alt); border-radius: var(--radius-xl); padding: 30px; margin-bottom: 36px; }
.contact-card p:last-child { margin-bottom: 0; }

/* guides */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guide-list a { display: block; padding: 26px; border-radius: var(--radius-xl); background: var(--bg-alt); color: var(--text); text-decoration: none; transition: background .15s ease, box-shadow .15s ease; }
.guide-list a:hover { background: var(--card); box-shadow: var(--shadow); }
.guide-list h2 { font-size: 22px; }
.guide-list p { margin: 0; color: var(--muted); }
.cta-box { display: flex; gap: 20px; align-items: flex-start; margin: 36px 0 8px; padding: 28px; border-radius: var(--radius-xl); background: var(--bg-alt); }
.cta-box img { border-radius: 23%; flex: none; }
.cta-box h2 { font-size: 22px; }
.cta-box p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .cta-box { flex-direction: column; } }

/* blog */
.feed-link { font-size: 15px; font-weight: 600; margin: 0; }
.post-list time { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.5em; }
.post-body h3 { font-size: 21px; margin-top: 1.4em; }
.post-body h4 { font-size: 18px; margin: 1.3em 0 .5em; }
.post-body img { display: block; margin: 24px auto; border-radius: 16px; }
.post-body blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.post-body code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); padding: 2px 5px; border-radius: 6px; }
.post-body pre { background: var(--bg-alt); padding: 16px 18px; border-radius: 14px; overflow-x: auto; margin: 0 0 1em; }
.post-body pre code { background: none; padding: 0; font-size: 14.5px; }

/* press */
.facts { display: grid; gap: 0; margin: 0 0 40px; border-radius: 16px; overflow: hidden; background: var(--bg-alt); }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 13px 20px; }
.facts div + div { border-top: 1px solid var(--border); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; }
.press-icon { display: inline-flex; align-items: center; gap: 16px; font-weight: 600; }
.press-icon img { border-radius: 23%; }
.press-shots { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.press-shots img { border-radius: 14px; border: 1px solid var(--border); display: block; }

/* ---------- closing card and footer ---------- */

.download { padding: 72px 0 24px; }
.download-card {
  text-align: center; padding: 64px 24px 68px; border-radius: var(--radius-xl); color: var(--on-brand);
  background: radial-gradient(80% 100% at 50% 0%, rgba(255, 255, 255, .2), transparent 65%),
              linear-gradient(135deg, var(--brand-1), var(--brand-2));
}
.download-icon { border-radius: 23%; box-shadow: 0 14px 34px rgba(10, 20, 60, .3); margin-bottom: 20px; }
.download h2 { color: var(--on-brand); font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.download p { color: var(--on-brand-muted); font-size: 19px; }
.download .cta { justify-content: center; }

.site-footer { padding: 28px 0 44px; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.post-body th { font-weight: 650; background: var(--bg-alt); }
.post-body thead th:first-child { border-top-left-radius: 10px; }
.post-body thead th:last-child { border-top-right-radius: 10px; }

/* cookie banner (only when GA_ID is set in build.mjs) */
.consent {
  position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px;
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  font-size: 15px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent-actions { display: flex; gap: 10px; margin-left: auto; }
.consent .button { padding: 9px 18px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.button.secondary { background: var(--bg-alt); color: var(--text); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-button:hover { color: var(--text); }

/* ---------- per-language typography ---------- */

/* Chinese: system CJK fonts, no italics (there are none), and no tightened tracking. */
:lang(zh) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; --font-display: var(--font); }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .display { letter-spacing: 0; }
:lang(zh) em { font-style: normal; color: var(--accent); }
/* Long German, Greek and French words would overflow big headings on phones. */
:lang(de) :is(h1, h2, h3), :lang(el) :is(h1, h2, h3), :lang(fr) :is(h1, h2, h3) { hyphens: auto; overflow-wrap: break-word; }
