:root {
  color-scheme: light;
  --orange-cat-accent: #ff9800;
  --orange-cat-accent-hover: #ed8d00;
  --orange-cat-fur: #ffb84d;
  --page: #f7f7f5;
  --surface: #ffffff;
  --surface-muted: #efefec;
  --text: #1d1d1f;
  --secondary: #68686d;
  --border: #d2d2d7;
  --deep: #1c1c1e;
  --deep-surface: #242426;
  --deep-text: #f5f5f7;
  --deep-secondary: #a1a1a6;
  --diff-added: #34c759;
  --diff-removed: #ff3b30;
  --shadow: 0 28px 70px rgba(28, 28, 30, 0.14), 0 2px 10px rgba(28, 28, 30, 0.08);
  --header-bg: rgba(247, 247, 245, 0.86);
  --max-width: 1240px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #1c1c1e;
  --surface: #242426;
  --surface-muted: #303033;
  --text: #f5f5f7;
  --secondary: #a1a1a6;
  --border: #3a3a3c;
  --deep: #121214;
  --deep-surface: #202023;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 2px 12px rgba(0, 0, 0, 0.25);
  --header-bg: rgba(28, 28, 30, 0.86);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--orange-cat-accent); outline-offset: 4px; }

.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-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--page);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.wrap {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled { border-color: color-mix(in srgb, var(--border) 72%, transparent); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035); }

.nav-shell {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-icon img, .app-icon-large img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

.site-nav, .legal-nav { display: flex; align-items: center; }
.site-nav { gap: 22px; }
.legal-nav { gap: 16px; }

.site-nav a, .legal-nav a {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover, .legal-nav a:hover { color: var(--text); }

.site-nav .history-link { color: var(--orange-cat-accent); }
.site-nav .history-link:hover { color: var(--orange-cat-accent-hover); }

.site-nav .nav-cta { padding: 8px 14px; border-radius: 7px; background: var(--text); color: var(--page); }

.language-control { display: inline-flex; align-items: center; }
.language-control select {
  min-height: 38px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background-color: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.theme-toggle, .menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.theme-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: block; }
.menu-toggle { display: none; }

.hero {
  padding: 88px 0 104px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-copy { text-align: center; }

.eyebrow, .section-index {
  margin: 0 0 22px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; }

.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-cat-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange-cat-accent) 16%, transparent); }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2, h3 {
  margin-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 { margin-bottom: 22px; font-size: clamp(64px, 9vw, 116px); font-weight: 760; }

.hero-lede { max-width: 680px; margin: 0 auto; color: var(--secondary); font-size: clamp(19px, 2vw, 23px); line-height: 1.48; }

.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.button {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange-cat-accent); color: #1d1d1f; }
.button-primary:hover { background: var(--orange-cat-accent-hover); }
.button-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button-secondary:hover { border-color: var(--secondary); }

.availability-note { margin: 20px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--secondary); font-size: 13px; }
.availability-note > span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange-cat-accent); }
.hero-history-note { margin: 25px auto 0; color: var(--secondary); font-size: 14px; }
.hero-history-note strong { color: var(--text); }
.hero-history-note + .availability-note { margin-top: 10px; }

.app-shot { margin: 0; }
.app-shot img { width: 100%; height: auto; filter: drop-shadow(var(--shadow)); }
.hero-shot { width: min(1540px, calc(100% - 36px)); margin: 76px auto 0; }

.section { padding: 140px 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr); gap: 12%; align-items: end; }
.section-heading h2, .centered-heading h2, .organization-copy h2, .final-cta h2, .legal-hero h1 { margin-bottom: 0; font-size: clamp(45px, 5.7vw, 76px); font-weight: 720; }
.section-copy { padding-bottom: 5px; }
.section-copy > p, .centered-heading > p:last-child, .organization-copy > p { margin: 0; color: var(--secondary); font-size: 19px; line-height: 1.6; }

.feature-list { margin: 28px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--border); font-weight: 600; }
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list li::before { content: ""; position: absolute; top: 20px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-cat-accent); }

.media-wide { margin-top: 72px; }
.writing-section { background: var(--surface); }

.centered-heading { max-width: 840px; text-align: center; }
.centered-heading > p:last-child { max-width: 650px; margin: 28px auto 0; }
.mode-demo { margin-top: 58px; }
.segmented-control { width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 4px; display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); overflow-x: auto; }
.mode-tab { min-height: 42px; padding: 8px 15px; border: 0; border-radius: 6px; background: transparent; color: var(--secondary); font-weight: 650; white-space: nowrap; cursor: pointer; }
.mode-tab kbd { margin-left: 9px; color: inherit; font-size: 12px; font-weight: 500; }
.mode-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.mode-panel { border-radius: 8px; }
.mode-panel.is-changing { opacity: 0.4; transform: translateY(4px); }
.mode-panel { transition: opacity 180ms ease, transform 180ms ease; }

.revisions-section { background: var(--deep); color: var(--deep-text); }
.revisions-section .section-index, .revisions-section .section-copy > p { color: var(--deep-secondary); }
.revisions-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr); gap: 12%; align-items: end; }
.revision-types { display: flex; gap: 20px; margin-top: 28px; color: var(--deep-text); font-size: 14px; font-weight: 650; }
.revision-types span { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.status-dot.automatic { background: var(--orange-cat-accent); }
.status-dot.manual { border: 2px solid var(--orange-cat-fur); }
.revision-story { margin-top: 72px; }
.revision-story .app-shot img { filter: drop-shadow(0 28px 66px rgba(0, 0, 0, 0.48)); }
.revision-caption { max-width: 640px; margin: 28px 0 94px auto; display: grid; grid-template-columns: 44px 1fr; gap: 20px; }
.revision-caption:last-child { margin-bottom: 0; }
.step-number { margin: 0; color: var(--orange-cat-accent); font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 14px; }
.revision-caption h3 { margin: 0 0 9px; font-size: 24px; }
.revision-caption div p { margin: 0; color: var(--deep-secondary); }
.diff-label { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 14px; }
.diff-label.added { color: var(--diff-added); }
.diff-label.removed { color: var(--diff-removed); }

.organization-layout { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.45fr); gap: 8%; align-items: center; }
.organization-copy h2 { margin-bottom: 28px; font-size: clamp(44px, 5vw, 68px); }
.mini-specs { margin: 38px 0 0; border-top: 1px solid var(--border); }
.mini-specs div { padding: 13px 0; display: grid; grid-template-columns: 92px 1fr; border-bottom: 1px solid var(--border); }
.mini-specs dt { font-weight: 700; }
.mini-specs dd { margin: 0; color: var(--secondary); }
.organization-shot { width: 120%; }

.mac-section { padding-bottom: 0; background: var(--surface); }
.mac-gallery { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.62fr); gap: 22px; align-items: stretch; }
.mac-gallery figure { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--page); }
.mac-gallery figure img { height: 100%; object-fit: contain; filter: none; }
.mac-gallery .font-shot img { padding: 7%; }
.mac-gallery figcaption { position: absolute; left: 20px; bottom: 18px; padding: 7px 11px; border-radius: 5px; background: rgba(22, 22, 24, 0.82); color: #f5f5f7; font-size: 13px; font-weight: 650; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.shortcuts { margin-top: 112px; padding: 76px 0 92px; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 10%; border-top: 1px solid var(--border); }
.shortcuts-heading h3 { font-size: clamp(34px, 4vw, 52px); }
.shortcut-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 42px; }
.shortcut-list li { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.shortcut-list span { color: var(--secondary); }
kbd, code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.shortcut-list kbd { min-width: 52px; color: var(--text); text-align: right; font-size: 13px; font-weight: 650; }

.final-cta { padding: 120px 0; background: var(--surface-muted); }
.final-cta-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.55fr); gap: 10%; align-items: center; }
.final-cta .eyebrow { justify-content: flex-start; }
.final-cta h2 { max-width: 760px; margin-bottom: 28px; }
.final-cta-inner > div:first-child > p:last-child { max-width: 590px; margin: 0; color: var(--secondary); font-size: 19px; }
.availability-card { padding: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.app-icon-large { position: relative; width: 74px; height: 74px; display: block; margin-bottom: 18px; }
.availability-card > p { margin: 0 0 22px; }
.availability-card p strong, .availability-card p span { display: block; }
.availability-card p span { margin-top: 3px; color: var(--secondary); font-size: 14px; }
.availability-card .button { width: 100%; }
.availability-card .notify-message { min-height: 0; margin: 0; color: var(--secondary); font-size: 13px; }
.availability-card .notify-message:not(:empty) { margin-top: 14px; }

.site-footer { padding: 58px 0 28px; background: var(--deep); color: var(--deep-text); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 40px; }
.site-footer .brand { color: var(--deep-text); }
.footer-main > p { color: var(--deep-secondary); }
.footer-main nav { display: flex; gap: 26px; }
.footer-main nav a { color: var(--deep-secondary); text-decoration: none; }
.footer-main nav a:hover { color: var(--deep-text); }
.footer-meta { margin-top: 42px; padding-top: 20px; border-top: 1px solid #38383a; display: flex; justify-content: space-between; color: var(--deep-secondary); font-size: 12px; }
.footer-meta p { margin: 0; }

.legal-page { padding-bottom: 120px; }
.legal-hero { padding-top: 112px; padding-bottom: 96px; border-bottom: 1px solid var(--border); }
.legal-hero .eyebrow { justify-content: flex-start; }
.legal-hero h1 { font-size: clamp(58px, 8vw, 104px); }
.legal-intro { max-width: 720px; margin: 28px 0 0; color: var(--secondary); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.5; }
.effective-date { margin: 35px 0 0; color: var(--secondary); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; }
.legal-layout { padding-top: 82px; display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 10%; align-items: start; }
.legal-toc { position: sticky; top: 110px; }
.legal-toc > p { margin: 0 0 15px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.legal-toc nav { display: flex; flex-direction: column; align-items: flex-start; }
.legal-toc a { padding: 5px 0; color: var(--secondary); font-size: 14px; text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.legal-content section { padding-bottom: 68px; margin-bottom: 68px; border-bottom: 1px solid var(--border); scroll-margin-top: 110px; }
.legal-content section:last-child { margin-bottom: 0; }
.legal-number { margin: 0 0 10px; color: var(--orange-cat-accent); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; font-weight: 700; }
.legal-content h2 { margin-bottom: 24px; font-size: clamp(34px, 4vw, 50px); }
.legal-content p, .legal-content li { color: var(--secondary); font-size: 17px; line-height: 1.75; }
.legal-content li + li { margin-top: 8px; }
.privacy-summary { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-summary > div { padding: 24px 18px 24px 0; }
.privacy-summary > div + div { padding-left: 18px; border-left: 1px solid var(--border); }
.privacy-summary span { display: block; margin-bottom: 28px; color: var(--orange-cat-accent); font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 12px; }
.privacy-summary strong { display: block; }
.privacy-summary p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.legal-footer { margin-top: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #1c1c1e;
    --surface: #242426;
    --surface-muted: #303033;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --border: #3a3a3c;
    --deep: #121214;
    --deep-surface: #202023;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 2px 12px rgba(0, 0, 0, 0.25);
    --header-bg: rgba(28, 28, 30, 0.86);
  }
  html:not([data-theme="light"]) .logo-light { display: none; }
  html:not([data-theme="light"]) .logo-dark { display: block; }
  html:not([data-theme="light"]) .sun-icon { display: none; }
  html:not([data-theme="light"]) .moon-icon { display: block; }
}

@media (max-width: 900px) {
  .section { padding: 104px 0; }
  .section-grid, .revisions-intro, .organization-layout, .final-cta-inner { grid-template-columns: 1fr; gap: 38px; }
  .organization-shot { width: 100%; }
  .organization-layout { gap: 58px; }
  .mac-gallery { grid-template-columns: 1fr; }
  .mac-gallery .font-shot { max-height: 620px; }
  .mac-gallery .font-shot img { max-height: 620px; margin: auto; }
  .shortcuts { grid-template-columns: 1fr; gap: 35px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

@media (max-width: 720px) {
  .wrap, .nav-shell { width: min(calc(100% - 32px), var(--max-width)); }
  .nav-shell { min-height: 64px; }
  .menu-toggle { width: 42px; height: 42px; padding: 11px 8px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 64px 0 auto; max-height: calc(100vh - 64px); padding: 24px 16px 30px; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--border); background: var(--page); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--border); font-size: 18px; }
  .site-nav .nav-cta { margin-top: 16px; padding: 13px 16px; border: 0; text-align: center; }
  .site-nav .language-control { margin-top: 18px; }
  .site-nav .language-control select { width: 100%; }
  .site-nav .theme-toggle { margin-top: 14px; }
  .hero { padding-top: 70px; padding-bottom: 78px; }
  .hero h1 { font-size: clamp(58px, 20vw, 82px); }
  .hero-shot { width: calc(100% - 18px); margin-top: 58px; }
  .hero-shot img, .media-wide img, .mode-panel img, .revision-story .app-shot img, .organization-shot img { min-width: 700px; width: 700px; max-width: none; }
  .hero-shot, .media-wide, .mode-panel, .revision-story .app-shot, .organization-shot { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .hero-shot img { min-width: 730px; width: 730px; }
  .section { padding: 88px 0; }
  .section-heading h2, .centered-heading h2, .organization-copy h2, .final-cta h2 { font-size: clamp(40px, 13vw, 56px); }
  .media-wide { margin-top: 48px; }
  .centered-heading { text-align: left; }
  .centered-heading > p:last-child { margin-left: 0; }
  .mode-demo { margin-top: 42px; }
  .segmented-control { width: 100%; justify-content: flex-start; }
  .mode-tab { padding-inline: 13px; }
  .mode-tab kbd { display: none; }
  .revision-story { margin-top: 50px; }
  .revision-caption { margin-bottom: 72px; }
  .revision-types { flex-wrap: wrap; }
  .organization-layout { gap: 44px; }
  .mac-gallery { margin-top: 46px; }
  .mac-gallery .dark-shot img { min-width: 680px; max-width: none; }
  .mac-gallery .dark-shot { overflow-x: auto; }
  .shortcuts { margin-top: 78px; padding: 58px 0 70px; }
  .shortcut-list { grid-template-columns: 1fr; }
  .final-cta { padding: 84px 0; }
  .availability-card { padding: 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
  .footer-main > p { margin: 0; }
  .footer-meta { gap: 24px; }
  .legal-nav { gap: 14px; }
  .legal-hero { padding-top: 76px; padding-bottom: 68px; }
  .legal-hero h1 { font-size: clamp(52px, 17vw, 76px); }
  .legal-layout { padding-top: 62px; }
  .legal-content section { padding-bottom: 48px; margin-bottom: 48px; }
  .privacy-summary { grid-template-columns: 1fr; }
  .privacy-summary > div { padding: 22px 0; }
  .privacy-summary > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .privacy-summary span { margin-bottom: 13px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(56px, 16.5vw, 64px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .footer-meta { flex-direction: column; }
  .legal-nav a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
