:root {
  color-scheme: light;
  --background: #fafbf8;
  --surface: #ffffff;
  --soft: #edf3ff;
  --ink: #142440;
  --muted: #4e607a;
  --accent: #245fe8;
  --accent-ink: #ffffff;
  --line: #dbe5f7;
  --shadow: 0 20px 65px -30px #3560ab40;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #101725;
    --surface: #182235;
    --soft: #1d2d49;
    --ink: #eaf1ff;
    --muted: #a5b6d3;
    --accent: #91b8ff;
    --accent-ink: #10223f;
    --line: #2a3a55;
    --shadow: 0 20px 65px -30px #03091290;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #101725;
  --surface: #182235;
  --soft: #1d2d49;
  --ink: #eaf1ff;
  --muted: #a5b6d3;
  --accent: #91b8ff;
  --accent-ink: #10223f;
  --line: #2a3a55;
  --shadow: 0 20px 65px -30px #03091290;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img { max-width: 100%; height: auto; }
header, main, footer { max-width: 1220px; margin-inline: auto; padding-inline: 40px; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.7px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 42px; height: 42px; border-radius: 11px; }
nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); }
.appearance { display: flex; align-items: center; }
.appearance select {
  min-height: 42px;
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--background);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.visually-hidden {
  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; top: -80px; padding: 10px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 0; z-index: 2; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; padding-block: 96px 88px; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--accent); font-size: 12px; letter-spacing: 1.7px; font-weight: 700; text-transform: uppercase; }
.status { display: inline-block; color: var(--accent); font-size: 12px; letter-spacing: .08em; font-weight: 650; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(44px, 4.6vw, 64px); font-weight: 650; letter-spacing: -3px; margin-block: 24px; }
.hero h1 { font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; font-weight: 500; letter-spacing: -2.7px; }
h1 span { color: var(--accent); }
h2 { max-width: 650px; margin-bottom: 24px; font-size: clamp(32px, 3.4vw, 44px); font-weight: 720; letter-spacing: -1.6px; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
p { color: var(--muted); }
.intro { font-size: 18px; max-width: 470px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 15px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.button:active { transform: scale(.97); }
.fine { font-size: 12px; }
.hero-visual { position: relative; padding: 28px 28px 0; background-color: var(--soft); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; border-radius: 28px; }
.screenshot-shell { padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow); }
.screenshot-shell img { display: block; width: 100%; border-radius: 16px; }
.hero-visual .screenshot-shell { overflow: hidden; }

.mascot-note { position: relative; display: flex; align-items: center; gap: 9px; padding: 15px 0; }
.mascot-note img { width: 62px; height: 62px; object-fit: contain; }
.mascot-note p { margin: 0; color: var(--ink); font-size: 12px; font-weight: 600; }
.strip { display: flex; justify-content: space-between; gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.section { padding-block: 85px; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: end; }
.section-heading p { max-width: 450px; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 30px; }
.feature { padding: 32px 0; border-top: 1px solid var(--line); }
.feature-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 30px; padding: 30px; background: var(--soft); border: 0; border-radius: 20px; }
.feature-wide img { width: 85px; height: 85px; object-fit: contain; flex-shrink: 0; }
.feature h3 { margin-block: 10px 13px; }
.feature p { font-size: 15px; margin-bottom: 0; }
.feature .number { color: var(--accent); font-size: 12px; font-weight: 700; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 15px; font-size: 13px; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.callout { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.callout h3 { font-size: 24px; }
.callout p { font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; }
.step { padding-block: 22px; border-top: 1px solid var(--line); }
.step h3:before { counter-increment: step; content: '0' counter(step) ' / '; margin-right: 12px; color: var(--accent); font-size: 12px; letter-spacing: 1px; }
.step p { font-size: 15px; margin-bottom: 0; }
.bottom { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-block: 65px; }
.bottom h2 { max-width: 650px; margin-bottom: 0; font-size: 34px; }
.bottom .buttons { margin: 0; flex-shrink: 0; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article { max-width: 850px; padding-block: 70px; }
.article h1 { font-size: 48px; letter-spacing: -2px; }
.article h2 { margin-top: 60px; font-size: 32px; letter-spacing: -1px; }
.article h3 { margin-top: 30px; }
.article li { margin-block: 10px; color: var(--muted); }
.article .callout { margin-top: 28px; }
.article-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
pre { overflow-x: auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); font-size: 13px; line-height: 1.8; }
code { font-size: .85em; }
p code, li code { overflow-wrap: anywhere; }
section[id] { scroll-margin-top: 30px; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  nav a:hover { color: var(--accent); }
}

@media (max-width: 760px) {
  header, main, footer { padding-inline: 22px; }
  header { margin: 14px 14px 0; padding: 14px; border-radius: 20px; flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 20px; }
  .brand img { width: 36px; height: 36px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; font-size: 13px; }
  .appearance { margin-left: auto; }
  .appearance select { min-height: 40px; }
  .hero, .split, .section-heading { grid-template-columns: 1fr; gap: 35px; }
  .hero { padding-block: 48px; }
  h1 { font-size: 47px; letter-spacing: -2.2px; }
  .hero-visual { padding: 16px 16px 0; border-radius: 26px; }

  .strip { justify-content: flex-start; flex-wrap: wrap; gap: 10px 22px; }
  .section { padding-block: 55px; }
  .feature-grid, .gallery { grid-template-columns: 1fr; gap: 20px; }
  .feature { padding: 25px; }
  .feature-wide { grid-column: auto; align-items: flex-start; gap: 16px; }
  .feature-wide img { width: 55px; height: 55px; }
  .callout { padding: 26px; }
  .bottom { align-items: flex-start; flex-direction: column; padding-block: 50px; gap: 25px; }
  .bottom h2 { font-size: 32px; }
  footer { flex-direction: column; }
  .article { padding-block: 45px; }
  .article h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}

.tour { margin-top: 28px; border-block: 1px solid var(--line); }
.tour summary { padding-block: 24px; cursor: pointer; font-weight: 600; color: var(--accent); }
.tour summary span { float: right; }
.tour summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.tour > img { display: block; width: min(100%, 540px); margin: 12px auto 30px; border: 1px solid var(--line); border-radius: 18px; }
.tour .fine { text-align: center; }
@media (prefers-reduced-motion: reduce) { .tour > img { display: none; } .tour[open]::after { content: 'See the still captures above. Animation is hidden to respect reduced motion.'; display: block; padding-bottom: 24px; color: var(--muted); } }
