:root {
  color-scheme: light;
  --ink: #101b36;
  --muted: #455472;
  --navy: #0b1835;
  --paper: #fffcf6;
  --tint: #f5efe3;
  --line: #dfd8ca;
  --blue: #1546c0;
  --gold: #f7c367;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 system-ui, sans-serif; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
a { color: var(--blue); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #ae6912; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 1; padding: .5rem; background: white; }
.skip:focus { transform: none; }
.nav, .brand, nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav { min-height: 4.6rem; justify-content: space-between; padding-block: .5rem; }
.brand { color: var(--ink); font: 700 1.32rem Georgia, serif; gap: .45rem; text-decoration: none; }
nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
nav a:hover, nav .current { color: var(--blue); text-decoration: underline; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.13; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.65rem, 5vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.27rem; }
p { margin: 0 0 1rem; }
.section { width: 100%; padding-block: clamp(2.35rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.split p { max-width: 77ch; }
.tint { background: var(--tint); }
.hero { background: radial-gradient(ellipse at 76% 41%, #254879 0%, var(--navy) 69%); color: #fff9ed; }
.hero-layout, .split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.3rem, 5vw, 4.4rem); }
.hero p { color: #e0e9fa; max-width: 51ch; }
.scene { display: block; width: 100%; height: auto; border-radius: 1rem; }
.split > .scene, figure { max-width: 27rem; justify-self: end; }
.hero .scene { max-height: 32rem; object-fit: contain; }
.button, .install { display: inline-block; background: var(--blue); color: white; text-decoration: none; border-radius: .55rem; padding: .55rem .78rem; font-weight: 700; }
.hero-button { background: var(--gold); color: var(--ink); padding: .9rem 1.15rem; margin-top: .35rem; }
.hero-button:hover { background: #ffdaa0; }
.install:hover { background: #10358f; }
.downloads { background: #f0f4fa; }
.download-layout { align-items: start; margin-top: 1.4rem; }
.stores, .walkthrough, .note { border: 1px solid var(--line); border-radius: 1rem; padding: clamp(.9rem, 3vw, 1.5rem); background: var(--paper); }
.store-row + .store-row { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .85rem; }
.browser-top { display: flex; gap: .75rem; align-items: center; }
.browser-mark img { display: block; border-radius: .3rem; }
.browser-top h3 { margin-bottom: .35rem; }
.setup-note { font-size: .88rem; }
video { display: block; width: 100%; height: auto; margin: .7rem 0 1rem; background: var(--navy); border-radius: .55rem; }
figure { margin: 0; }
figcaption { color: var(--muted); margin-top: .35rem; }
table { width: 100%; border-collapse: collapse; background: white; font-size: .9rem; }
th, td { border: 1px solid var(--line); text-align: left; padding: .55rem; overflow-wrap: anywhere; }
thead { background: #e9eef9; }
details { border-bottom: 1px solid var(--line); padding: .6rem 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: .55rem; }
.guide-list { margin-top: 1.25rem; display: grid; gap: .85rem; }
.guide { display: grid; grid-template-columns: minmax(5rem, 9rem) 1fr; gap: 1rem; align-items: center; padding: .65rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); color: var(--ink); text-decoration: none; }
.guide span { color: var(--blue); font-weight: 650; }
.guide:hover span { text-decoration: underline; }
footer { background: #f2e8d8; }
@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .split > .scene, figure { justify-self: start; }
  .hero .scene { max-height: 23rem; }
  .nav { gap: .6rem; }
  nav { gap: .75rem; }
}

.site-header { background: #fffcf6; border-bottom: 1px solid var(--line); }
.header-grid, .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.header-grid { min-height: 5.25rem; }
.header-grid nav, .footer-grid nav { justify-content: center; gap: clamp(.65rem, 2vw, 1.6rem); }
.nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: .3rem .15rem;
}
nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
nav .nav-button:hover { text-decoration: underline; text-underline-offset: .2em; }
.hero { background: radial-gradient(ellipse at 76% 42%, #2a5289 0%, #0b1835 66%); }
.hero-layout { min-height: clamp(24rem, 47vw, 37rem); }
.hero-button { transition: background-color .2s ease, transform .2s ease; }
.hero-button:hover { transform: translateY(-2px); }
.intro .wrap { border-inline-start: 4px solid #a76418; padding-inline-start: clamp(1rem, 4vw, 2rem); }
.image-first > .scene { grid-column: 1; grid-row: 1; justify-self: start; }
.image-first > div { grid-column: 2; grid-row: 1; }
.mobile-store { margin: .95rem 0 0; border-top: 1px solid var(--line); padding-top: .7rem; }
.site-footer { background: #101b36; color: #fff7e8; padding-block: 2.1rem 1.2rem; }
.site-footer a, .site-footer button { color: inherit; }
.site-footer nav { font-size: .94rem; }
.back-top { justify-self: end; }
.copyright { border-top: 1px solid #52617d; text-align: center; margin-top: 1.3rem; padding-top: 1.05rem; color: #e0e7f4; font-size: .92rem; }
dialog { border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; color: var(--ink); background: var(--paper); max-width: min(26rem, calc(100% - 2rem)); }
dialog::backdrop { background: #101b36b0; }
dialog button { border: 0; cursor: pointer; font: inherit; }
@media (max-width: 47rem) {
  .header-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .5rem; padding-block: .75rem; }
  .back-top { justify-self: center; }
  .hero-layout { min-height: 0; }
  .image-first > .scene, .image-first > div { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-button { transition: none; }
  .hero-button:hover { transform: none; }
}

.page-jump { display: block; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.3rem; }
.page-jump ul { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: .55rem 0 0; padding: 0; }
.page-jump a { display: block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--paper); }
.comparison { margin-top: 1.2rem; }
.comparison caption { text-align: left; font-weight: 700; padding-bottom: .55rem; }
.comparison th, .comparison td { padding: .75rem; vertical-align: top; }
.issue-stack { display: grid; gap: .9rem; margin-top: 1.25rem; }
.issue-card { width: 100%; padding: clamp(.95rem, 2.5vw, 1.5rem); border: 1px solid var(--line); border-inline-start: 4px solid #a76418; border-radius: .75rem; background: var(--paper); }
.issue-card dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; margin: 0; }
.issue-card dt { color: var(--blue); font-weight: 750; margin-bottom: .2rem; }
.issue-card dd { margin: 0; }
.step-list { display: grid; width: 100%; gap: .65rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: procedure; }
.step-list li { position: relative; counter-increment: procedure; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); padding: .75rem .85rem .75rem 3.1rem; }
.step-list li::before { content: counter(procedure); position: absolute; inset-inline-start: .8rem; top: .72rem; width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border-radius: 50%; background: #e8efff; color: var(--blue); font-weight: 800; font-size: .88rem; }
.step-list p { margin: .18rem 0 0; }
@media (max-width: 40rem) {
  .issue-card dl { grid-template-columns: 1fr; gap: .65rem; }
  .comparison th, .comparison td { padding: .45rem; }
}

.section-tip { margin-top: 1.1rem; padding: 1rem 1.2rem; background: #eaf1fc; border-inline-start: 4px solid var(--blue); border-radius: .65rem; }
.section-tip h3 { margin-bottom: .35rem; }
.section-tip p { margin: 0; }
.section-fold { margin-top: 1rem; padding: .85rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; }
.section-fold:last-child { border-bottom: 1px solid var(--line); }
.section-fold[open] { background: #eef4fc; }
.section-fold summary { color: var(--blue); }
.section-fold p { margin-bottom: 0; }
#permissions .comparison tbody tr:nth-child(even), #profiles .comparison tbody tr:nth-child(even), #safe-examples .comparison tbody tr:nth-child(even) { background: #f4f7fc; }
