:root {
  --paper: #f7f2e8;
  --light: #fffaf1;
  --ink: #242521;
  --mute: #5d5850;
  --line: #d9cdbb;
  --dark: #171d22;
  --rust: #8b422c;
  --warm: #f0cfac;
}

.top { background: #13191e; border-color: #31383c; }
.top-inner { min-height: 70px; }
.brand { font-size: 1.64rem; }
.nav a { font-weight: 650; }
.nav .nav-download {
  padding: 5px 14px; border: 1px solid #dfb48c; background: #e9c299;
  border-radius: 4px; color: #252321 !important;
}
.button { min-height: 47px; padding-inline: 18px; }
.button.primary { background: #88432f; border-color: #88432f; }
.button.primary:hover { background: #713423; }
.button.gold { background: #f1c9a1; border-color: #f1c9a1; color: #252221; }
.button.gold:hover { background: #ffe1c1; }
.button.glass { border-color: #ada59a; background: #14191e66; color: #fff7eb; }
.section-kicker { color: var(--rust); font-size: .81rem; font-weight: 750; margin-bottom: 9px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-heading > p { max-width: 43ch; color: var(--mute); }
.section-heading h2 { max-width: 20ch; }
.content-section { padding-block: clamp(51px, 7vw, 100px); }
.dark-panel { background: var(--dark); color: #f9f0e3; }
.dark-panel .section-heading > p { color: #d6cdc2; }
.dark-panel .section-kicker { color: #e7bd99; }

.front-hero {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: clamp(530px, 51vw, 760px); background: #171e27; color: #fff6ea;
}
.hero-photo, .front-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: center 52%; }
.front-hero::after {
  content: ""; background: linear-gradient(90deg, #111820ed 0%, #111820c2 30%, #11182035 61%, transparent 83%),
  linear-gradient(0deg, #111820d9, transparent 38%);
}
.hero-lead { padding-block: 64px 68px; }
.hero-lead .section-kicker { color: #f3caa4; }
.front-hero h1 { max-width: 15ch; font-size: clamp(3rem, 6.3vw, 6.15rem); line-height: 1.08; letter-spacing: -.075em; text-wrap: balance; }
.hero-lead > p:not(.section-kicker) { margin-top: 21px; max-width: 40ch; color: #eee3d5; font-size: clamp(.96rem, 1.5vw, 1.12rem); }
.hero-lead .actions { margin-top: 26px; }
.hero-lead > p.hero-build { margin-top: 7px; color: #f1ddc8; font-size: .76rem; }
.hero-credit { position: absolute; right: max(24px, calc((100% - 1280px) / 2)); bottom: 17px; color: #f0e1d2; font-size: .73rem; }
.hero-credit span { background: #131a20b3; padding: 3px 7px; border-radius: 2px; }

.app-section { background: #f1e7d8; }
.app-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 22px; margin: 0 0 22px; padding: 14px 14px 14px 34px; border-block: 1px solid var(--line); }
.app-start li { padding-inline: 3px 10px; }
.app-start li::marker { color: var(--rust); font-weight: 750; }
.app-start a { color: var(--ink); font-weight: 750; text-underline-offset: 4px; }
.app-start p { margin: 3px 0 0; color: var(--mute); font-size: .84rem; }
.app-feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .63fr); gap: clamp(25px, 5vw, 70px); align-items: center; padding: clamp(20px, 4vw, 49px); background: #fffbf3; border: 1px solid var(--line); border-radius: 5px; }
.app-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.app-tabs a { display: grid; align-items: center; min-height: 43px; padding: 6px 11px; font-weight: 750; font-size: .91rem; color: #60473a; border-radius: 4px; text-decoration: none; }
.app-tabs a[aria-selected="true"] { background: #efe2ce; color: #733c28; }
.app-tabs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-text { padding-top: 23px; }
.feature-text h3 { font-size: clamp(1.7rem, 3.7vw, 2.65rem); margin-bottom: 9px; }
.feature-text > p { color: var(--mute); }
.feature-text ol { margin-block: 15px 21px; font-size: .95rem; }
.feature-text li + li { margin-top: 4px; }
.feature-text .small { margin-top: 12px; }
.feature-media { display: grid; justify-items: center; align-items: center; }
.phone-frame {
  display: block; width: min(234px, 100%); padding: 6px; background: #24282d;
  border: 1px solid #3f474f; border-radius: 20px; box-shadow: 0 14px 28px #231c2425; text-align: center;
}
.phone-frame img { border-radius: 14px; aspect-ratio: 390/844; object-fit: cover; }
.phone-frame + figcaption { color: #675b4c; font-size: .76rem; margin-top: 8px; text-align: center; }

.empathy { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(26px, 5vw, 72px); align-items: center; }
.empathy figure { overflow: hidden; border-radius: 4px; background: #222a30; }
.empathy figure img { aspect-ratio: 16/10; object-fit: cover; object-position: 73% center; }
.empathy figcaption { color: #e1d4c2; font-size: .76rem; padding: 7px 12px; }
.empathy h2 { margin-bottom: 15px; max-width: 16ch; }
.empathy p + p { margin-top: 11px; color: #554d42; }
.example { margin-top: 18px; padding: 12px 15px; border-left: 3px solid #a55e40; background: #efe2d0; }
.example dt { color: #783e2a; font-weight: 740; font-size: .84rem; }
.example dd { margin: 2px 0 8px; }
.example dd:last-child { margin-bottom: 0; }

.atlas-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(18px, 3.4vw, 42px); align-items: start; }
.atlas-map { position: relative; overflow: hidden; border: 1px solid #414b56; border-radius: 4px; background: #202830; }
.atlas-map > img { width: 100%; aspect-ratio: 1052/1494; }
.atlas-map .floor-links { position: absolute; inset: 0; display: block; margin: 0; }
.atlas-map .floor-links li { position: absolute; top: var(--y); height: var(--h); width: 100%; }
.atlas-map .floor-links a {
  display: flex; align-items: center; min-height: 0; height: 100%; padding: 0 11px;
  border: 1px solid transparent; border-radius: 0; color: #fff5e8; text-decoration: none;
}
.atlas-map .floor-links a:hover { background: #151b2280; border-color: #d9aa80; }
.atlas-map .floor-links a:focus-visible { outline-offset: -3px; outline-color: #ffdbb4; }
.atlas-map .floor-links a[aria-current="true"] { background: #181c2370; border-color: #f4c198; }
.atlas-map .floor-links a span:first-child {
  width: 31px; min-width: 31px; height: 30px; background: #192028ed; color: #ffe1c0;
  border: 1px solid #ac9279; border-radius: 3px; font-size: .78rem;
}
.atlas-map .floor-links a[aria-current="true"] span:first-child { background: #f1c9a1; color: #211d19; }
.floor-node-title { display: inline-block; background: #141a20ec; padding: 4px 8px; border-radius: 3px; font-size: clamp(.69rem, 1.25vw, .87rem); line-height: 1.3; font-weight: 750; }
.atlas-map .floor-links a[aria-current="true"] .floor-node-title { color: #ffe0bd; }
.atlas-caption { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; }
.atlas-caption span { color: #d4c9bb; font-size: .77rem; }
.atlas-caption button { min-height: 40px; }
.atlas-section .floor-panel { color: var(--ink); }
.atlas-section .explain-grid { grid-template-columns: 1fr; gap: 12px; }
.atlas-section .floor-panel h3 { font-size: clamp(1.62rem, 2.8vw, 2.5rem); }
.atlas-section .floor-panel .actions { gap: 14px; margin-top: 17px; }
.atlas-section .defense { border-color: #48515a; }
.atlas-section .defense p:not(.eyebrow) { color: #e0d5c8; }
.atlas-section .defense .eyebrow, .atlas-section .defense a { color: #f0c9a5; }
.atlas-return { color: #843f2a; }

.book-section { background: #eee4d4; }
.book-map-image { max-height: 460px; aspect-ratio: 16/8; object-fit: cover; object-position: center 50%; }
.book-panorama .art-button span { display: flex; justify-content: space-between; padding: 10px 14px; background: #222a32; }
.book-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0 26px; padding: 0; list-style: none; border-top: 1px solid #c9b397; border-bottom: 1px solid #c9b397; }
.book-flow li { min-width: 0; padding: 13px 15px; }
.book-flow li + li { border-left: 1px solid #c9b397; }
.book-flow span { display: block; color: #744932; font-size: .77rem; font-weight: 750; }
.book-flow a { color: #282720; font-size: .98rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.book-section .chapter-list details { background: #fffaf0; }
.book-section .chapter-list summary { min-height: 58px; }
.book-section .chapter-list summary span:last-child { font-size: .95rem; }
.book-section .chapter-bridge { margin-top: 11px; }

.download-strip .section-heading { margin-bottom: 15px; }
.download-strip .download-copy { color: #ddd2c6; max-width: 60ch; }
.download-strip .actions { margin-top: 18px; }
.download-page .download-hero { padding-block: 50px 53px; }
.download-page h1 { font-size: clamp(2.55rem, 6vw, 4.7rem); margin-bottom: 14px; }
.download-page .download-hero p:not(.section-kicker) { color: #e2d8ca; max-width: 63ch; }
.download-cards { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); gap: 19px; align-items: start; }
.download-card { padding: clamp(18px, 4vw, 39px); border: 1px solid var(--line); border-radius: 5px; background: var(--light); }
.download-card h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); margin-bottom: 12px; }
.download-card p + p { margin-top: 8px; }
.download-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; padding-block: 14px; margin: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .88rem; }
.download-card dt { font-weight: 750; }
.download-card dd { margin: 0; color: var(--mute); }
.download-card .small { margin-top: 9px; }
.download-card details { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.download-card summary { cursor: pointer; font-weight: 700; }
.download-card code { display: block; font-size: .78rem; overflow-wrap: anywhere; }
.install-help { margin-top: 36px; }
.install-help h2 { font-size: clamp(1.62rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.install-help li + li { margin-top: 7px; }
.install-help .text-link { display: inline-block; margin-top: 14px; }
.foot { border-top: 1px solid var(--line); }

@media (max-width: 790px) {
  .top-inner { gap: 4px; }
  .nav { align-items: center; gap: 3px 13px; }
  .nav a { min-height: 39px; }
  .front-hero { min-height: 570px; }
  .hero-photo { object-position: 70% center; }
  .front-hero::after { background: linear-gradient(0deg, #141a22 2%, #141a22d1 29%, #141a2224 75%), linear-gradient(90deg, #141a2250, transparent); }
  .hero-lead { padding-block: 160px 52px; }
  .hero-credit { right: 17px; bottom: 11px; }
  .section-heading { flex-direction: column; align-items: start; gap: 10px; margin-bottom: 21px; }
  .app-feature-layout { grid-template-columns: minmax(0, 1fr) minmax(154px, .68fr); }
  .book-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-flow li:nth-child(3) { border-left: 0; }
  .book-flow li:nth-child(n + 3) { border-top: 1px solid #c9b397; }
}

@media (max-width: 560px) {
  .top .wrap { width: calc(100% - 30px); }
  .top-inner { position: relative; }
  .nav { gap: 2px 11px; }
  .nav .nav-download { padding-inline: 10px; }
  .nav .nav-lang { position: absolute; inset: 10px 0 auto auto; min-height: 35px; border: 0; }
  .front-hero { min-height: 525px; }
  .hero-photo { object-position: 82% center; }
  .hero-lead { padding-block: 145px 48px; }
  .front-hero h1 { max-width: 13ch; font-size: clamp(2.4rem, 9.8vw, 3.65rem); }
  .hero-lead > p:not(.section-kicker) { margin-top: 14px; }
  .hero-lead .actions { margin-top: 17px; }
  .hero-credit { font-size: .68rem; }
  .app-feature-layout, .empathy, .atlas-layout, .download-cards { grid-template-columns: 1fr; }
  .app-start { grid-template-columns: 1fr; }
  .app-tabs a { padding-inline: 7px; }
  .empathy figure { order: 2; }
  .empathy h2 { max-width: none; }
  .atlas-caption { gap: 4px; }
  .book-map-image { aspect-ratio: 16/9; }
}
