:root {
  --background: #FEF9F1;
  --surface: #FFF9F0;
  --surface-soft: #F2EDE5;
  --surface-high: #E7E2DA;
  --text: #1D1C17;
  --muted: #55433D;
  --muted-soft: #88726C;
  --border: #DBC1B9;
  --primary: #99462A;
  --primary-soft: #D97757;
  --primary-light: #FFDBD0;
  --online: #39D98A;
  --nav: #1D1C17;
  --white: #FFFFFF;
  --max: 1120px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 34px;
  --shadow-subtle: 0 18px 44px rgba(29, 28, 23, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--primary-light); color: var(--text); }

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  z-index: 99;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}
.narrow { max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(254, 249, 241, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 193, 185, 0.72);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo,
.footer-brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo {
  height: 58px;
  max-width: 238px;
}

.footer-brand-logo {
  height: 54px;
  max-width: 230px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.72);
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active {
  background: var(--primary-light);
  color: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
  background: var(--surface);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 17px;
  background: var(--text);
  color: var(--surface);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
}

main { overflow: clip; }
.hero-section { padding: 82px 0 42px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 58px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 820;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 820;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 760;
}
.hero-lead, .page-hero p, .section-lead {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.5;
  font-weight: 620;
}
.hero-lead { max-width: 670px; margin-bottom: 28px; }
.hero-note, .small-note, .legal-date {
  margin: 16px 0 0;
  color: var(--muted-soft);
  font-size: 14px;
  font-weight: 680;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.centered-actions { justify-content: center; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 140ms ease-out, background 140ms ease-out, border-color 140ms ease-out;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.985); }
.button-primary { background: var(--primary); color: var(--white); }
.button-primary:hover { background: #873a22; }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--surface-soft); }


.phone-art { margin: 0; }
.nma-preview-art {
  display: flex;
  justify-content: center;
}
.nma-phone.phone-shell {
  position: relative;
  width: min(100%, 374px);
  height: 748px;
  margin-inline: auto;
  padding: 9px;
  border-radius: 50px;
  background: #171610;
  border: 1px solid rgba(29, 28, 23, 0.2);
  box-shadow: 0 28px 58px rgba(29, 28, 23, 0.12);
}
.nma-phone.phone-shell::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 45px;
  border: 1px solid rgba(255, 249, 240, 0.11);
  pointer-events: none;
}
.phone-screen {
  position: relative;
  z-index: 1;
  height: 730px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--background);
  border: 1px solid rgba(219, 193, 185, 0.78);
}
.phone-safe-top {
  display: none;
}
.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phone-signal {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-block;
}
.phone-signal::before,
.phone-signal::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--text);
}
.phone-signal::before {
  left: 2px;
  height: 7px;
  box-shadow: 6px -3px 0 var(--text), 12px -7px 0 var(--text);
}
.phone-signal::after {
  right: 0;
  height: 14px;
  opacity: 0.32;
}
.phone-wifi {
  position: relative;
  width: 21px;
  height: 15px;
  display: inline-block;
}
.phone-wifi::before,
.phone-wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 3px solid var(--text);
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom: 0;
  transform: translateX(-50%);
}
.phone-wifi::before {
  top: 0;
  width: 21px;
  height: 10px;
  border-radius: 20px 20px 0 0;
}
.phone-wifi::after {
  top: 7px;
  width: 10px;
  height: 6px;
  border-radius: 12px 12px 0 0;
}
.phone-battery {
  position: relative;
  width: 27px;
  height: 13px;
  border: 1.5px solid rgba(29, 28, 23, 0.35);
  border-radius: 4px;
  display: inline-block;
}
.phone-battery::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 7px;
  border-radius: 2px;
  background: #D93A2E;
}
.phone-battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 4px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: rgba(29, 28, 23, 0.35);
}
.phone-shot-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--background);
}
.phone-shot-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  pointer-events: none;
  background: var(--background);
}
.phone-shot-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.phone-shot-panel[hidden] { display: none; }
.phone-shot-head,
.phone-shot-tabs img,
.phone-shot-body-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.phone-shot-head {
  position: relative;
  z-index: 2;
  background: var(--background);
}
.phone-shot-body {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  background: var(--background);
}
.phone-shot-body::-webkit-scrollbar { display: none; }
.phone-shot-body.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.phone-shot-body:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: -4px;
}
.phone-shot-tabs {
  position: relative;
  z-index: 3;
  pointer-events: none;
  background: var(--nav);
}
.phone-hit-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 85px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.phone-hit-tab {
  appearance: none;
  border: 0;
  background: transparent;
  min-width: 0;
  cursor: pointer;
  border-radius: 16px;
  opacity: 1;
  transition: background 140ms ease-out, transform 120ms ease-out;
}
.phone-hit-tab:hover,
.phone-hit-tab:focus-visible { background: rgba(255, 249, 240, 0.08); }
.phone-hit-tab:active { transform: scale(0.98); }
.phone-hit-tab span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.trust-strip { padding: 28px 0 24px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.trust-item {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.trust-item span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary-soft);
}
.trust-item strong { font-size: 14px; line-height: 1.25; }

.section { padding: 78px 0; }
.surface-section { background: rgba(242, 237, 229, 0.56); }
.split-section, .feature-row, .two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.section-intro { padding-top: 62px; }
.feature-row { align-items: center; }
.feature-row-reverse .feature-copy { order: 2; }
.feature-copy p, .quiet-card p, .feature-card p, .legal-block p { color: var(--muted); font-weight: 610; }
.quiet-card, .feature-card, .closed-test-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.strong-note { background: var(--primary-light); border-color: rgba(153, 70, 42, 0.22); }
.strong-note p { color: var(--muted); }
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.clean-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 720;
}
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary-soft);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading p { color: var(--muted); font-weight: 620; }

.home-section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}
.home-section-heading > p,
.home-section-heading-split > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 620;
}
.home-section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 54px;
  align-items: end;
}
.home-section-heading-split > p { margin-bottom: 8px; }

.home-process-section { padding-top: 64px; }
.home-process-list { border-top: 1px solid var(--border); }
.home-process-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(230px, 0.62fr);
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.home-process-number {
  width: 52px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(153, 70, 42, 0.24);
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.home-process-copy .eyebrow { margin-bottom: 8px; }
.home-process-copy h3 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 810;
}
.home-process-copy > p:last-child,
.home-feature-card > p:not(.eyebrow),
.home-trust-card > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 610;
}
.home-process-points,
.home-feature-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-process-points {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.home-process-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 740;
}
.home-process-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary-soft);
}

.home-feature-grid,
.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-feature-card {
  min-height: 100%;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.home-feature-card h3,
.home-trust-card h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 810;
}
.home-feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.home-feature-points li {
  padding: 8px 12px;
  border: 1px solid rgba(153, 70, 42, 0.16);
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 820;
}

.home-trust-section { background: var(--background); }
.home-trust-grid {
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-trust-card {
  padding: 34px 36px 34px 0;
}
.home-trust-card + .home-trust-card {
  padding-right: 0;
  padding-left: 36px;
  border-left: 1px solid var(--border);
}
.home-trust-card .home-feature-points li {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}

.dark-section {
  background: var(--nav);
  color: var(--surface);
}
.dark-section .eyebrow { color: var(--primary-soft); }
.dark-section p { color: rgba(255, 249, 240, 0.76); }
.dark-card {
  background: rgba(255, 249, 240, 0.08);
  border-color: rgba(255, 249, 240, 0.18);
}
.dark-card h3 { color: var(--surface); }

.faq-section h2 { margin-bottom: 24px; }
.faq-list { display: grid; gap: 10px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0;
}
summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 850;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 900;
}
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-weight: 610; }

.final-cta { padding-top: 34px; }
.final-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: clamp(30px, 6vw, 62px);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}
.final-card p { max-width: 680px; margin-inline: auto; color: var(--muted); font-weight: 620; }
.final-card .button { margin-top: 10px; }

.page-hero {
  padding: 82px 0 50px;
  text-align: center;
}
.page-hero h1 { margin-inline: auto; font-size: clamp(42px, 6.6vw, 76px); }
.page-hero p { margin-inline: auto; max-width: 760px; }
.legal-hero { text-align: left; }
.legal-hero h1, .legal-hero p { margin-left: 0; }
.legal-content {
  display: grid;
  gap: 26px;
  max-width: 860px;
}
.legal-block {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.legal-block:last-child { border-bottom: 0; }
.legal-block h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.legal-block p { margin-bottom: 12px; }
.legal-list { margin-top: 12px; }
.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.closed-test-box {
  margin-top: 28px;
  text-align: left;
}
.closed-test-box h2 { font-size: 28px; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.swatch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
}
.swatch {
  width: 100%;
  aspect-ratio: 1.4;
  border: 1px solid rgba(29, 28, 23, 0.1);
  border-radius: 18px;
  margin-bottom: 12px;
}
.swatch-card strong, .swatch-card code { display: block; }
.swatch-card code { margin-top: 4px; color: var(--muted-soft); font-size: 13px; }

.site-footer {
  padding: 56px 0 28px;
  background: var(--nav);
  color: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 0.8fr;
  gap: 34px;
}
.footer-brand p { max-width: 360px; color: rgba(255, 249, 240, 0.72); font-weight: 610; }
.footer-small { font-size: 14px; }
.footer-column { display: grid; align-content: start; gap: 9px; }
.footer-column h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-soft);
  margin-bottom: 6px;
}
.footer-column a {
  text-decoration: none;
  color: rgba(255, 249, 240, 0.76);
  font-weight: 690;
}
.footer-column a:hover { color: var(--surface); }
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 249, 240, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 249, 240, 0.56);
  font-size: 13px;
  font-weight: 650;
}

.language-choice {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 30px;
  text-align: center;
}
.big-brand { justify-content: center; margin-bottom: 20px; }
.language-choice h1 { margin-inline: auto; margin-bottom: 14px; }
.language-choice p { color: var(--muted); font-size: 18px; font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .hero-grid, .split-section, .feature-row, .two-column, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .home-section-heading-split { grid-template-columns: 1fr; gap: 16px; }
  .home-process-step { grid-template-columns: 62px minmax(0, 1fr); }
  .home-process-points { grid-column: 2; }
  .feature-row-reverse .feature-copy { order: 0; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--max)); }
  .site-header { position: sticky; }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-cta { display: none; }
  .hero-section { padding-top: 48px; }
  h1 {
    font-size: clamp(42px, 14vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  h2 {
    font-size: clamp(30px, 10vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.025em;
  }
  .hero-actions .button { width: 100%; }
  .phone-shell { min-height: 560px; border-radius: 40px; padding: 18px; }
  .trust-grid, .card-grid, .swatch-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 64px; }
  .section { padding: 58px 0; }
  .page-hero { padding: 54px 0 34px; }
  .home-section-heading { margin-bottom: 30px; }
  .home-section-heading > p,
  .home-section-heading-split > p { font-size: 16px; }
  .home-process-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0;
  }
  .home-process-number { width: 42px; height: 30px; }
  .home-process-points { grid-column: 1 / -1; padding-left: 64px; }
  .home-feature-grid,
  .home-trust-grid { grid-template-columns: 1fr; }
  .home-feature-card { padding: 24px; border-radius: 28px; }
  .home-trust-card,
  .home-trust-card + .home-trust-card { padding: 28px 0; border-left: 0; }
  .home-trust-card + .home-trust-card { border-top: 1px solid var(--border); }
  .quiet-card, .feature-card, .closed-test-box { border-radius: 28px; padding: 22px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 720px) {
  .brand-logo {
    height: 42px;
    max-width: 174px;
  }

  .footer-brand-logo {
    height: 40px;
    max-width: 170px;
  }
}

@media (max-width: 640px) {
  .nma-phone.phone-shell {
    width: min(100%, 348px);
    height: 704px;
    border-radius: 46px;
    padding: 8px;
  }

  .phone-screen {
    height: 686px;
    border-radius: 37px;
  }

  .phone-safe-top {
    display: none;
  }
  
  .phone-shot-stage {
    inset: 0;
  }

  .phone-hit-tabbar {
    height: 79px;
  }
}

/* Release QA additions: mobile navigation, access request form and local 404. */
html { scrollbar-gutter: stable; }
html.mobile-menu-open { overflow: hidden; }

.mobile-menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.mobile-menu-icon {
  width: 16px;
  display: grid;
  gap: 4px;
}

.mobile-menu-icon span {
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.mobile-menu-layer.is-open { opacity: 1; }

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 28, 23, 0.32);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 390px);
  min-height: 100%;
  padding: 22px 20px 32px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(12px);
  transition: transform 180ms ease-out;
  overflow-y: auto;
}

.mobile-menu-layer.is-open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-heading,
.mobile-menu-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-menu-heading {
  min-height: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
  font-size: 17px;
  font-weight: 850;
}

.mobile-menu-close {
  min-width: 48px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
}

.mobile-menu-links {
  display: grid;
  padding: 18px 0;
}

.mobile-menu-links a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 760;
}

.mobile-menu-links .mobile-menu-cta {
  justify-content: center;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.mobile-menu-language {
  min-height: 54px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.mobile-menu-language a {
  min-width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
}

.access-panel { margin-top: 34px; }
.access-panel-heading { margin-bottom: 24px; }
.access-panel-heading h2 { font-size: clamp(26px, 4vw, 38px); }
.access-panel-heading > p:last-child { margin-bottom: 0; }

.access-notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.access-form { display: grid; gap: 20px; }
.form-required-note {
  margin: 0;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 680;
}

.form-error-summary {
  padding: 13px 15px;
  border: 1px solid #B93C2A;
  border-radius: 16px;
  background: #FFEAE6;
  color: #7D281C;
  font-size: 14px;
  font-weight: 760;
}

.form-field { display: grid; gap: 7px; }
.form-field label,
.form-check-field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 780;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  outline: 2px solid transparent;
}

.form-field input[aria-invalid="true"],
.form-check-field input[aria-invalid="true"] {
  border-color: #B93C2A;
}

.form-hint,
.form-error,
.form-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.form-hint { color: var(--muted-soft); }
.form-error { color: #8E2F20; font-weight: 720; }
.form-status { min-height: 1.45em; color: var(--muted); }

.form-check-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
}

.form-check-field input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.form-check-field .form-error { grid-column: 2; }
.form-check-field a { color: var(--primary); text-underline-offset: 3px; }
.access-submit { justify-self: start; border: 0; cursor: pointer; }

.direct-email {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.direct-email p { margin-bottom: 8px; color: var(--muted); }

.root-choice-logo {
  width: min(238px, 72vw);
  height: auto;
  margin: 0 auto 22px;
}

.not-found-page { min-height: 100svh; }
.not-found-main {
  width: min(100% - 40px, 960px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 54px 0;
  display: grid;
  align-content: center;
}

.not-found-brand { width: min(238px, 70vw); margin-bottom: 34px; }
.not-found-brand img { width: 100%; height: auto; }
.not-found-code {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.not-found-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
}

.not-found-card { padding: 34px; }
.not-found-card + .not-found-card { border-left: 1px solid var(--border); }
.not-found-card h1,
.not-found-card h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}
.not-found-card p { color: var(--muted); font-size: 17px; }
.not-found-actions { display: grid; justify-items: start; gap: 12px; margin-top: 24px; }

@media (max-width: 980px) {
  .mobile-menu-button { display: inline-flex; }
}

@media (max-width: 640px) {
  .mobile-menu-button > span:last-child { display: none; }
  .mobile-menu-button { width: 44px; padding: 0; }
  .mobile-menu-panel { width: min(94vw, 360px); }
  .access-panel { padding: 22px; }
  .access-submit { width: 100%; }
  .not-found-main { width: min(100% - 32px, 960px); padding: 34px 0; }
  .not-found-grid { grid-template-columns: 1fr; border-radius: 28px; }
  .not-found-card { padding: 26px 22px; }
  .not-found-card + .not-found-card { border-left: 0; border-top: 1px solid var(--border); }
  .not-found-actions .button { width: 100%; }
}
