/* Settli — styles for about.html (extracted from inline <style>) */
:root {
    --shadow: 0,0,0;
    --accent: #007AFF;
    --accent-deep: #0040A0;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --ink: #1d1d1f;
    --ink-muted: #6e6e73;
    --ink-light: #86868b;
    --nav-bg: rgba(255,255,255,0.72);
    --hairline: rgba(0,0,0,0.08);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  [data-theme="dark"] {
    --shadow: 150,150,150;
    --bg: #000000; --bg-alt: #161618;
    --ink: #f5f5f7; --ink-muted: #a1a1a6; --ink-light: #86868b;
    --nav-bg: rgba(0,0,0,0.72); --hairline: rgba(255,255,255,0.10);
  }
  @media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
      --shadow: 150,150,150;
      --bg: #000000; --bg-alt: #161618;
      --ink: #f5f5f7; --ink-muted: #a1a1a6; --ink-light: #86868b;
      --nav-bg: rgba(0,0,0,0.72); --hairline: rgba(255,255,255,0.10);
    }
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--font); color: var(--ink); background: var(--bg);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color .3s ease, color .3s ease;
  }
  ::selection { background: var(--accent); color: #fff; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }

  /* Nav */
  .nav {
    position: sticky; top: 0; z-index: 100; height: 48px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--hairline);
    transition: background-color .3s ease;
  }
  .nav-inner {
    max-width: 1080px; margin: 0 auto; height: 100%;
    padding: 0 22px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px;
    font-size: 14px; letter-spacing: -0.01em;
  }
  .nav-logo {
    font-weight: 600; font-size: 19px; letter-spacing: -0.025em;
    display: flex; align-items: center; gap: 8px;
    color: var(--ink); text-decoration: none;
  }
  .nav-logo:hover { text-decoration: none; }
  .nav-logo-mark {
    width: 28px; height: 28px; border-radius: 7px;
    background-image: url('../logo/logo-light.svg');
    background-size: cover; background-position: center; flex-shrink: 0;
  }
  [data-theme="dark"] .nav-logo-mark { background-image: url('../logo/logo-dark.svg'); }
  @media (prefers-color-scheme: dark) {
    [data-theme="auto"] .nav-logo-mark { background-image: url('../logo/logo-dark.svg'); }
  }
  /* Language picker (popover) */
  .lang-picker { position: relative; }
  .lang-trigger {
    background: transparent; border: none; cursor: pointer;
    color: var(--ink); opacity: 0.7;
    height: 32px; padding: 0 8px;
    border-radius: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit; font-size: 12px; font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity .15s ease, background-color .15s ease;
  }
  .lang-trigger:hover { opacity: 1; background: var(--hairline); }
  .lang-trigger .flag { width: 18px; height: 13px; border-radius: 2px; display: block; flex-shrink: 0; }
  .lang-trigger .caret {
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px,-1px);
    opacity: 0.6;
  }
  .lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    z-index: 200;
    background: var(--bg);
    border: 0.5px solid var(--hairline);
    border-radius: 12px; padding: 6px;
    box-shadow: 0 18px 36px rgba(var(--shadow),0.10), 0 4px 10px rgba(var(--shadow),0.06);
    display: none; min-width: 180px;
  }
  [data-theme="dark"] .lang-menu {
    background: #1c1c1e;
    box-shadow: 0 18px 36px rgba(var(--shadow),0.5), 0 4px 10px rgba(var(--shadow),0.3);
  }
  @media (prefers-color-scheme: dark) {
    [data-theme="auto"] .lang-menu {
      background: #1c1c1e;
      box-shadow: 0 18px 36px rgba(var(--shadow),0.5), 0 4px 10px rgba(var(--shadow),0.3);
    }
  }
  .lang-picker.is-open .lang-menu { display: block; }
  .lang-option {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 10px; border-radius: 8px;
    background: transparent; border: none; cursor: pointer;
    text-align: left;
    font-family: inherit; font-size: 14px; font-weight: 500;
    color: var(--ink); letter-spacing: -0.005em;
    transition: background-color .12s ease;
  }
  .lang-option:hover { background: var(--bg-alt); }
  .lang-option .flag { width: 22px; height: 16px; border-radius: 2px; display: block; flex-shrink: 0; }
  .lang-option.is-active { color: var(--accent); }
  .lang-option .check {
    margin-left: auto; width: 14px; height: 14px; opacity: 0;
    color: var(--accent);
  }
  .lang-option.is-active .check { opacity: 1; }

  .nav-tools { display: flex; align-items: center; gap: 6px; }
  .nav-cta {
    color: var(--accent); font-weight: 500; text-decoration: none;
    white-space: nowrap; margin-left: 6px;
  }

  .nav-btn {
    background: transparent; border: none; cursor: pointer;
    color: var(--ink); opacity: 0.7;
    width: 32px; height: 32px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: opacity .15s ease, background-color .15s ease;
    font-family: inherit; font-size: 12px; font-weight: 600;
    letter-spacing: 0.02em;
  }
  .nav-btn:hover { opacity: 1; background: var(--hairline); }

  /* Page */
  main, article[role="main"] { max-width: 760px; margin: 0 auto; padding: 80px 22px 80px; }
  .eyebrow {
    font-size: 17px; font-weight: 600; color: var(--accent);
    letter-spacing: -0.005em; margin-bottom: 14px;
  }
  h1 {
    margin: 0 0 18px; font-weight: 600;
    font-size: clamp(48px, 7vw, 84px); line-height: 1.02;
    letter-spacing: -0.04em;
  }
  h1 .accent {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .lede {
    margin: 0 0 56px;
    font-size: clamp(22px, 2vw, 28px); line-height: 1.3;
    color: var(--ink-muted); letter-spacing: -0.02em;
    font-weight: 400; max-width: 640px;
    text-wrap: balance;
  }
  h2 {
    margin: 56px 0 16px; font-weight: 600;
    font-size: 28px; line-height: 1.2; letter-spacing: -0.025em;
  }
  h2:first-of-type { margin-top: 0; }
  p {
    margin: 0 0 18px; font-size: 19px; line-height: 1.55;
    color: var(--ink); letter-spacing: -0.011em;
    text-wrap: pretty;
  }
  p.muted { color: var(--ink-muted); }

  /* Pull-quote card */
  .quote {
    margin: 40px 0;
    padding: 36px 32px;
    background: var(--bg-alt);
    border-radius: 22px;
    transition: background-color .3s ease;
  }
  .quote p {
    font-size: 23px; line-height: 1.35;
    letter-spacing: -0.02em;
    font-weight: 500;
    margin: 0;
    text-wrap: balance;
  }
  .quote-sig {
    margin-top: 18px;
    font-size: 14px; color: var(--ink-light);
    letter-spacing: 0;
  }

  /* CTA */
  .cta {
    margin-top: 72px;
    padding: 48px 32px;
    background: var(--bg-alt);
    border-radius: 22px;
    text-align: center;
    transition: background-color .3s ease;
  }
  .cta h3 {
    margin: 0 0 10px; font-size: 28px; letter-spacing: -0.025em;
    font-weight: 600; line-height: 1.2;
  }
  .cta p { font-size: 17px; color: var(--ink-muted); margin: 0 0 24px; }
  /* App Store badge (CTA) */
  .appstore-badge {
    display: inline-block;
    line-height: 0;
    transition: transform .15s ease, opacity .15s ease;
  }
  .appstore-badge:hover { opacity: 0.88; }
  .appstore-badge:active { transform: scale(0.97); }
  .appstore-badge img {
    height: 54px; width: auto;
    display: block;
    border-radius: 9px;
  }
  .appstore-badge .badge-dark { display: none; }
  [data-theme="dark"] .appstore-badge .badge-light { display: none; }
  [data-theme="dark"] .appstore-badge .badge-dark { display: block; }
  @media (prefers-color-scheme: dark) {
    [data-theme="auto"] .appstore-badge .badge-light { display: none; }
    [data-theme="auto"] .appstore-badge .badge-dark { display: block; }
  }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 980px;
    font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
    border: none;
    background: var(--accent); color: #fff;
  }
  .btn:hover { opacity: 0.92; text-decoration: none; }
  .btn:active { transform: scale(0.98); }

  /* Footer */
  footer {
    background: var(--bg-alt);
    padding: 36px 22px;
    font-size: 12px; color: var(--ink-light);
    border-top: 0.5px solid var(--hairline);
    transition: background-color .3s ease;
  }
  .foot-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
  }
  .foot-links { display: flex; gap: 22px; }
  .foot-links a { color: var(--ink-muted); text-decoration: none; }
  .foot-links a:hover { color: var(--ink); }

  /* ── i18n loader overlay ─────────────────────────────── */
  html.is-i18n-loading body { visibility: hidden; }
  .i18n-overlay {
    position: fixed; inset: 0;
    background: var(--bg, #fff);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    visibility: visible !important;
    opacity: 1; transition: opacity .25s ease;
  }
  .i18n-overlay.is-hiding { opacity: 0; pointer-events: none; }
  .i18n-overlay .spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2.5px solid rgba(0,0,0,0.12);
    border-top-color: var(--accent, #007AFF);
    animation: i18n-spin 0.8s linear infinite;
  }
  [data-theme="dark"] .i18n-overlay .spinner { border-color: rgba(255,255,255,0.18); border-top-color: var(--accent, #007AFF); }
  @media (prefers-color-scheme: dark) {
    [data-theme="auto"] .i18n-overlay .spinner { border-color: rgba(255,255,255,0.18); border-top-color: var(--accent, #007AFF); }
  }
  @keyframes i18n-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) {
    .i18n-overlay .spinner { animation: none; }
  }
