/* AI Switch website: the app's own native-Mac world. System font, system colours, the real app as the proof. One small script on Home, for the recording captions and capture links; it sends nothing, and every page works without it. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --line: #D2D2D7;
  /* #0071E3 keeps white text at 4.7:1 on buttons and markers in both themes. */
  --accent: #0071E3;
  --accent-text: #0066CC;
  --on-accent: #FFFFFF;
  /* Caption pill over the light-only recordings: the same in both themes. */
  --overlay: rgba(28, 28, 30, .88);
  --on-overlay: #FFFFFF;
  --shot-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 48px -12px rgba(0, 0, 0, .28);
  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 56px);
  --step: clamp(72px, 10vw, 136px);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #161617; --text: #F5F5F7; --text-2: #A1A1A6; --line: #424245;
    --accent-text: #3B9CFF;
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 18px 48px -12px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #161617; --text: #F5F5F7; --text-2: #A1A1A6; --line: #424245;
  --accent-text: #3B9CFF;
  --shot-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 18px 48px -12px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", sans-serif;
  font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; font-weight: 600; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 8px 0; color: var(--text-2); font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 980px; font-size: 16px; font-weight: 600; background: var(--accent); color: var(--on-accent); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.secondary:hover { filter: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn[aria-disabled="true"] { background: var(--bg-alt); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: not-allowed; filter: none; }

/* Hero */
.hero { padding-block: clamp(24px, 4vw, 56px) 0; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; letter-spacing: -.028em; font-weight: 700; margin: 0 auto; max-width: 16ch; }
.hero .lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--text-2); max-width: 40em; margin: 20px auto 0; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hero .meta { font-size: 15px; color: var(--text-2); margin: 14px 0 0; }
.hero .shot { margin: clamp(28px, 3.5vw, 44px) auto 0; max-width: 1060px; }

/* Screenshots: real captures of the app, window and all */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; box-shadow: var(--shot-shadow); background: var(--bg-alt); }
/* Each capture opens its full-size file, for pinch-zoom on a phone. */
.shot .zoom { display: block; border-radius: 12px; cursor: zoom-in; }
.shot figcaption { font-size: 14px; color: var(--text-2); margin-top: 14px; }
.hero .shot figcaption { text-align: center; }

/* Sections */
section { padding-block: var(--step) 0; }
section.alt { background: var(--bg-alt); padding-block: var(--step); margin-top: var(--step); }
section.alt + section { padding-top: var(--step); }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { text-align: center; margin-inline: auto; }
section h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.022em; font-weight: 700; margin: 0; }
.section-head p { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-2); margin: 14px 0 0; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }

/* Three-step story */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 104px); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.step:nth-child(even) .step-text { order: 2; }
.step-text .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.step-text h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.016em; margin: 16px 0 10px; }
.step-text p { color: var(--text-2); margin: 0 0 .8em; }
.step-text p strong { color: var(--text); font-weight: 600; }

/* Annotated screenshot: markers sit at --x/--y percentages of the image */
.annotated { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.marked { position: relative; container-type: inline-size; }
.marker { position: absolute; left: var(--x); top: var(--y); --d: clamp(20px, 3.4cqi, 30px); width: var(--d); height: var(--d); translate: -50% -50%; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: clamp(12px, 1.75cqi, 15px); font-weight: 700; box-shadow: 0 0 0 3px var(--bg-alt), 0 2px 8px rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.legend li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.legend .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700; }
.legend b { display: block; font-weight: 600; margin-bottom: 2px; }
.legend span { color: var(--text-2); font-size: 16.5px; }

/* Recording */
.recording { max-width: 1060px; margin-inline: auto; }
.recording video { width: 100%; border-radius: 12px; box-shadow: var(--shot-shadow); background: var(--bg-alt); }
.close .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }
.recording figcaption { font-size: 14px; color: var(--text-2); margin-top: 14px; text-align: center; }

/* Standard vs Advanced */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.compare h3 { font-size: 22px; letter-spacing: -.012em; margin: 22px 0 6px; }
.compare p { color: var(--text-2); margin: 0 0 10px; }
.compare ul { margin: 0; padding-left: 1.15em; }
.compare li { margin-bottom: .35em; }

/* Won't-do list */
.wont { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; }
.wont li { padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 16.5px; }
.wont b { display: block; color: var(--text); font-weight: 600; font-size: 18px; margin-bottom: 4px; }

/* Close */
.close { text-align: center; padding-block: var(--step); }
.close h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.024em; margin: 0 auto; max-width: 18ch; }
.close p { color: var(--text-2); max-width: 36em; margin: 16px auto 28px; }

.example-note { font-size: 14px; color: var(--text-2); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 26px 36px; font-size: 14px; color: var(--text-2); }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: -10px 0; padding: 0; }
.site-foot li a { display: inline-block; padding: 10px 0; }

/* Inner pages (Read mode in the same world) */
.page { padding-block: clamp(32px, 5vw, 72px) var(--step); }
.page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -.026em; margin: 0 0 clamp(20px, 3vw, 32px); }
.page h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.016em; line-height: 1.2; margin: clamp(44px, 6vw, 64px) 0 14px; }
.page h3 { font-size: 19px; margin: 26px 0 6px; }
.page .prose ul, .page .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.page .prose li { margin-bottom: .45em; }
.status { border-radius: var(--radius); background: var(--bg-alt); padding: 24px 26px; max-width: var(--measure); margin: 0 0 28px; }
.status .display { display: block; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-weight: 600; padding-right: 28px; }
.facts dd { color: var(--text-2); }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; }
code { background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; }
.pending { background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; font-weight: 600; color: var(--text); }
.actions .pending { font-size: 15px; padding: 4px 10px; }

@media (max-width: 900px) {
  .step, .annotated, .compare { grid-template-columns: 1fr; }
  .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-nav ul { gap: 0 16px; }
  .site-nav a { font-size: 14px; }
  .marker { font-size: 13px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}
.status p { margin: 0 0 16px; }

/* Recording captions: a numbered list that works on its own. With the script, each item becomes a button
   that plays from its time, and a pill over the video follows playback (hidden on phones, where the list does it). */
.recording .stage { position: relative; }
.beats { list-style: none; counter-reset: beat; margin: 18px auto 0; padding: 0; max-width: 46rem; display: grid; gap: 2px; font-size: 15px; color: var(--text-2); }
.beats li { counter-increment: beat; display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 10px; }
.beats li::before, .beats button::before { content: counter(beat); flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg-alt); color: var(--text); font-variant-numeric: tabular-nums; }
.live .beats li { padding: 0; }
.live .beats li::before { content: none; }
.beats button { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.beats button:hover { background: var(--bg-alt); }
.beats button:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.beats li.on { color: var(--text); }
.beats li.on button::before { background: var(--accent); color: var(--on-accent); }
.beat-pill { position: absolute; left: 18.3%; right: 0; bottom: calc(3% + 48px); margin: 0 auto; width: max-content; max-width: calc(81.7% - 24px);
  display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 999px;
  background: var(--overlay); color: var(--on-overlay); font-size: clamp(12px, 1.7vw, 18px); font-weight: 600; line-height: 1.25; pointer-events: none; }
.beat-pill[hidden] { display: none; }
.beat-pill .n { flex: none; width: 1.45em; height: 1.45em; border-radius: 50%; display: grid; place-items: center; background: var(--on-overlay); color: var(--accent); font-size: .82em; font-weight: 700; }
.tour .beat-pill { font-size: clamp(12px, 1.25vw, 15px); }
.beat-pill.in { animation: beat-in .25s ease-out; }
@keyframes beat-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .beat-pill.in { animation: none; } }
@media (max-width: 560px) { .beat-pill { display: none; } }
/* The Advanced tour is secondary to the 15-second recording: narrower, labelled, closer to the comparison. */
.recording.tour { max-width: 760px; margin-top: clamp(48px, 6vw, 80px); }
.tour-head { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-2); text-align: center; margin: 0 0 14px; }
