:root {
  --bg: #F7F8FB;
  --surface: #FFFFFF;
  --ink: #111827;
  --text: #374151;
  --muted: #4B5563;
  --line: #E3E6EC;
  --pill-line: #D5DAE3;
  --accent: #2445D6;
  --accent-hover: #1A33A3;
  --accent-soft: #EEF1FD;
  --development: #23379E;
  --development-line: #CBD4F6;
  --amber: #8A4B00;
  --amber-bg: #FFF4E5;
  --amber-line: #F3D9B1;
  --yes: #0F7A55;
  --table-head: #F1F3F7;
  --more-bg: #EEF1F6;
  --button-line: #C9D0DC;
  --dark-text: #F3F4F6;
  --video-bg: #1F2937;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 'DM Sans', system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1, h2, .logo, .card-name, .step-label { font-family: 'Space Grotesk', sans-serif; }
h1, h2 { font-weight: 700; }
h1 { max-width: 16em; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
ul, ol { list-style: none; margin: 0; padding: 0; }
section, tr, tbody, #top { scroll-margin-top: 20px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  padding: 10px 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.guide-pill {
  padding: 4px 10px;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.section-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 0; color: var(--text); text-decoration: none; }
.section-nav a:hover { color: var(--accent); }

.hero { display: flex; flex-direction: column; gap: 36px; padding-top: 56px; padding-bottom: 72px; }
.hero-intro { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; }
.chips li:last-child { color: var(--muted); }
.lead { max-width: 38em; font-size: 19px; color: var(--text); }
.phone-note { display: none; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.app-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.app-card:hover { border-color: var(--accent); color: var(--ink); }
.card-label { font-size: 14px; color: var(--muted); }
.card-name { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.stage {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid var(--development-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--development);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.alpha { border-color: var(--amber-line); background: var(--amber-bg); color: var(--amber); }
.more-card { border-style: dashed; border-color: var(--button-line); background: var(--more-bg); }
.more-copy { font-size: 14px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary-button { padding-right: 24px; padding-left: 24px; background: var(--accent); color: var(--surface); }
.primary-button:hover { background: var(--accent-hover); color: var(--surface); }
.secondary-button { border: 1px solid var(--button-line); background: var(--surface); color: var(--ink); }
.secondary-button:hover { border-color: var(--accent); }
.hero-note { margin-top: -16px; font-size: 13px; text-align: center; color: var(--muted); }

.section { display: flex; flex-direction: column; gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.section-border { border-top: 1px solid var(--line); }
.white-section { background: var(--surface); }
.section-heading { display: flex; flex-direction: column; gap: 10px; }
.intro { max-width: 48em; font-size: 17px; color: var(--text); }
.comparison { gap: 20px; }
.table-frame { min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead { background: var(--table-head); text-align: left; }
thead th { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--text); }
tbody tr { border-top: 1px solid var(--line); vertical-align: top; }
tbody th, td { padding: 16px; text-align: left; }
td { color: var(--text); }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; padding-left: 20px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.screenshot-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  scroll-margin-top: 20px;
}
.screenshot-card figure { margin: 0; background: var(--video-bg); }
.screenshot-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.screenshot-card figcaption { padding: 5px 12px; font-size: 11px; color: #D1D5DB; }
.screenshot-details { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 20px; }
.instead { font-size: 13px; color: var(--muted); }
.screenshot-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.screenshot-title h3 { font: 700 22px/1.3 'Space Grotesk', sans-serif; }
.screenshot-title .stage { align-self: auto; }
.app-description { font-size: 15px; color: var(--text); }
.official-links, .app-notes { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 15px; }
.official-links { margin-top: auto; }
.official-links a { display: inline-flex; align-items: center; min-height: 44px; }
.official-links a:first-child, .official-links a[href="#videos-apps"] { font-weight: 600; }
.app-notes a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.featured-app { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
.featured-app .screenshot-details { gap: 10px; padding: 28px; }
.featured-app .screenshot-title { justify-content: flex-start; gap: 12px; }
.featured-app h3 { font-size: 30px; }
.featured-app .instead { font-size: 14px; }
.featured-app .app-description, .featured-app .official-links { font-size: 16px; }
.featured-app .official-links { gap: 4px 20px; }
.featured-app figcaption { padding: 6px 12px; font-size: 12px; }
.suite-group { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
#more-apps { scroll-margin-top: 20px; }
.suite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.suite-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  scroll-margin-top: 20px;
}
.suite-card:hover { border-color: var(--accent); color: var(--ink); }
.suite-card img { display: block; width: 112px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.suite-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suite-name { overflow-wrap: anywhere; }
.suite-product { color: var(--muted); }
.suite-card .stage { padding: 2px 8px; font-size: 11px; }
.source-note { font-size: 14px; color: var(--muted); }

.files-layout, .faq-layout { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px 64px; }
.files-layout > .section-heading { flex: 1 1 300px; min-width: 0; }
.files-frame { flex: 999 1 640px; }
.files-table thead th { padding: 12px 16px; }
.files-table tbody th, .files-table td { padding: 14px 16px; }
.files-table th:first-child { padding-left: 20px; }
.files-table th:last-child, .files-table td:last-child { padding-right: 20px; padding-left: 20px; }
.files-table tbody th { font-weight: 600; }
.files-table tbody tr { vertical-align: middle; }
.yes, .partial { font-weight: 600; }
.yes { color: var(--yes); }
.partial { color: var(--amber); }
.files-table a { display: inline-flex; align-items: center; min-height: 44px; }

.safe-content { gap: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.step-label { font-size: 14px; font-weight: 700; color: var(--accent); }
.steps li > p { font-size: 15px; color: var(--text); }
.text-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.steps .text-action { margin-top: auto; }
.commands { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.commands p { color: var(--text); font-weight: 600; }
.commands code + p { margin-top: 4px; }
.commands code {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--dark-text);
  font: 13px/1.55 'JetBrains Mono', monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.video-content { gap: 28px; }
.video-columns, .video-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; align-items: start; }
.video-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 20px; }
.video-group > p { margin-bottom: 4px; font-size: 15px; color: var(--muted); }
.video-app-grid { gap: 8px 40px; }
.vid {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vid:hover { border-color: var(--accent); }
.video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: var(--video-bg);
}
.play-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
}
.play-badge svg { width: 18px; height: 18px; fill: currentColor; }
.vid:hover .play-badge { background: var(--accent-hover); }
.video-copy { display: flex; flex-direction: column; min-width: 0; }
.video-title { font-weight: 600; line-height: 1.35; }
.video-tag { font-size: 12px; font-weight: 700; color: var(--development); }
.channel { font-size: 14px; color: var(--muted); }
.video-other { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 20px; border: 1px dashed var(--button-line); border-radius: 14px; background: var(--bg); }
.video-other-heading { flex: 1 1 360px; min-width: 0; }
.video-other h3 { font-size: 18px; }
.video-other p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.video-other > .vid { flex: 1 1 420px; background: var(--surface); }
.video-other > .video-player { flex-basis: 100%; }
.video-other .play-badge { background: var(--muted); }

.faq-layout > .section-heading { flex: 1 1 280px; min-width: 0; }
.faq-layout .section-heading p { color: var(--text); }
.faq-items { flex: 999 1 600px; min-width: 0; border-top: 1px solid var(--line); }
.faq-items details { padding: 6px 0; border-bottom: 1px solid var(--line); }
.faq-items summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
.faq-items details[open] summary::after { transform: rotate(225deg); }
.faq-items summary:hover { color: var(--accent); }
.faq-items p { margin-bottom: 14px; color: var(--text); }

.pdf-band { background: var(--ink); color: var(--dark-text); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 40px; padding-bottom: 40px; }
.band-inner p { font: 700 22px/1.55 'Space Grotesk', sans-serif; color: var(--surface); }
.band-button { gap: 10px; min-height: 48px; background: var(--surface); color: var(--ink); font-size: 16px; }
.band-button .icon { width: 18px; height: 18px; }
.band-button:hover { background: var(--accent-soft); color: var(--ink); }
.band-button:focus-visible { outline-color: var(--surface); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.footer-inner > p { flex: 1 1 560px; min-width: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 20px; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
.not-found { min-height: 55vh; align-items: flex-start; justify-content: center; }

@media (720px <= width <= 1100px) {
  .header-inner { gap: 8px 16px; }
  .section-nav { gap: 0 16px; }
  .app-card { padding: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding: 18px; }
}

@media (width <= 1000px) {
  .screenshot-grid, .suite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width < 900px) {
  .featured-app { grid-template-columns: minmax(0, 1fr); }
}

@media (width < 640px) {
  .screenshot-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .screenshot-card { border-radius: 14px; }
  .screenshot-card .screenshot-details { gap: 6px; padding: 14px 16px; }
  .screenshot-card .screenshot-title { justify-content: space-between; gap: 8px; }
  .screenshot-card h3 { font-size: 21px; }
  .featured-app .instead { font-size: 13px; }
  .featured-app .app-description, .featured-app .official-links { font-size: 15px; }
  .featured-app figcaption { padding: 5px 12px; font-size: 11px; }
  .screenshot-card .official-links { gap: 0 18px; }
  .app-notes { flex-direction: column; }
  .app-notes .browser-link {
    justify-content: center;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }
  .app-notes .browser-link:hover { background: var(--more-bg); }
  .suite-group { gap: 0; margin-top: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
  #more-apps { padding: 14px 16px 10px; font-size: 15px; color: var(--text); }
  .suite-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .suite-card { grid-template-columns: 88px minmax(0, 1fr) auto; min-height: 64px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .suite-card:hover { border-color: var(--line); background: var(--accent-soft); }
  .suite-card:focus-visible { outline-offset: -3px; }
  .suite-card img { width: 88px; border-radius: 6px; }
  .suite-copy { display: contents; }
  .suite-card .stage { align-self: center; }
}

@media (width < 720px) {
  .wrap { padding-right: 16px; padding-left: 16px; }
  h1 { font-size: 36px; line-height: 1.08; letter-spacing: -0.025em; }
  h2 { font-size: 28px; }
  .header-inner { gap: 0 10px; padding-top: 6px; padding-bottom: 0; }
  .logo { font-size: 19px; }
  .section-nav { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; gap: 0 20px; margin-left: 0; overflow-x: auto; white-space: nowrap; }
  .section-nav a { flex: 0 0 auto; }
  .hero { gap: 18px; padding-top: 28px; padding-bottom: 40px; }
  .hero-intro { align-items: flex-start; gap: 18px; text-align: left; }
  .chips { justify-content: flex-start; gap: 6px; }
  .chips li { padding: 4px 10px; font-size: 12px; }
  .lead { font-size: 17px; }
  .phone-note { display: block; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--dark-text); font-size: 15px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-card { gap: 4px; padding: 14px; border-radius: 14px; }
  .card-label { font-size: 13px; }
  .card-name { font-size: 19px; letter-spacing: normal; }
  .app-card .stage { padding: 2px 8px; font-size: 11px; }
  .more-copy { font-size: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .button { padding-right: 10px; padding-left: 10px; }
  .hero-note { margin-top: 0; text-align: left; }
  .section { gap: 14px; padding-top: 48px; padding-bottom: 48px; }
  .intro { font-size: 15px; }
  .comparison { gap: 14px; }
  .source-note { font-size: 13px; }
  .files-layout, .faq-layout { flex-direction: column; align-items: stretch; }
  .files-layout > .section-heading, .files-frame { flex: none; }
  .files-layout .section-heading { gap: 14px; }
  .files-frame { border-radius: 14px; }
  .files-table { display: block; }
  .files-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .files-table tbody { display: block; }
  .files-table tbody tr { display: block; padding: 12px 16px; }
  .files-table tbody tr:first-child { border-top: 0; }
  .files-table tbody th:first-child, .files-table td, .files-table td:last-child { padding: 0; }
  .files-table tbody th { display: inline; font-size: 16px; font-weight: 700; }
  .files-table td:first-of-type { display: inline; color: var(--muted); font-weight: 500; }
  .files-table td:first-of-type::before { content: ' → '; }
  .files-table td:last-child { display: block; margin-top: 2px; font-size: 15px; }
  .safe-content { gap: 14px; }
  .safe-content .section-heading { gap: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps li { gap: 8px; padding: 18px; border-radius: 14px; }
  .step-label { font-size: 13px; }
  .steps h3 { font-size: 18px; }
  .commands code { font-size: 12px; }
  .video-content { gap: 22px; }
  .video-content .section-heading { gap: 8px; }
  .video-columns, .video-app-grid { grid-template-columns: minmax(0, 1fr); }
  .video-columns { gap: 22px; }
  .video-group h3 { font-size: 19px; }
  .video-group > p { font-size: 14px; }
  .video-title { font-size: 15px; }
  .channel { font-size: 13px; }
  .video-other { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .video-other-heading, .video-other > .vid, .video-other > .video-player { flex: none; }
  .video-other h3 { font-size: 17px; }
  .video-other p { margin-top: 10px; font-size: 14px; }
  .faq-layout { gap: 16px; }
  .faq-layout > .section-heading, .faq-items { flex: none; }
  .faq-layout .section-heading p { font-size: 15px; }
  .faq-items details { padding: 4px 0; }
  .faq-items summary { min-height: 48px; font-size: 17px; }
  .faq-items p { margin-bottom: 12px; font-size: 15px; }
  .band-inner { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 32px; padding-bottom: 32px; }
  .band-inner p { font-size: 20px; }
  .band-button { padding-right: 10px; padding-left: 10px; }
  .footer-inner { flex-direction: column; gap: 12px; padding-top: 28px; padding-bottom: 40px; font-size: 13px; }
  .footer-inner > p { flex: none; }
  .footer-inner nav { gap: 0 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
