.safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 76px;
  align-items: center;
  border-top: 1px solid var(--xf-border-subtle);
}

.safety-photo {
  position: relative;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
}

.safety-photo img {
  width: 100%;
  height: 610px;
  object-fit: cover;
}

.safety-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 11px;
  color: #fff;
  background: var(--xf-basil-800);
  font-size: 10px;
  font-weight: 800;
}

.safety-copy h2 {
  font-size: 52px;
}

.large-copy {
  margin: 24px 0 0;
  color: var(--xf-text-secondary);
  font-family: var(--xf-font-display);
  font-size: 19px;
  line-height: 1.9;
}

.safety-list {
  display: grid;
  margin-top: 32px;
  border-top: 1px solid var(--xf-text-primary);
}

.safety-list > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--xf-border-subtle);
}

.safety-list span {
  color: var(--xf-action-primary);
  font-size: 10px;
  font-weight: 900;
}

.safety-list strong {
  font-size: 13px;
}

.privacy-note {
  margin: 21px 0 0;
  padding: 14px;
  color: var(--xf-basil-800);
  border: 1px solid #cadcca;
  background: var(--xf-green-100);
  font-size: 11px;
  line-height: 1.7;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 62px 80px;
  align-items: center;
}

.download-main h2 {
  font-size: 64px;
}

.download-qr-block {
  display: grid;
  justify-items: center;
  padding: 16px;
  color: var(--xf-text-primary);
  background: #fffdf9;
}

.download-qr-block img {
  width: 208px;
  height: 208px;
  padding: 8px;
  background: #fff;
}

.download-qr-block strong {
  margin-top: 13px;
  font-family: var(--xf-font-display);
  font-size: 18px;
}

.download-qr-block span {
  margin-top: 5px;
  color: var(--xf-text-muted);
  font-size: 9px;
}

.release-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.release-details div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.release-details div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.release-details dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.release-details dd {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.release-details button {
  padding: 0;
  color: #f6c35d;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 12px;
}

.faq-list {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--xf-text-primary);
}

.faq-list details {
  border-bottom: 1px solid var(--xf-border-subtle);
}

.faq-list summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
  cursor: pointer;
  font-family: var(--xf-font-display);
  font-size: 18px;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font-family: var(--xf-font-body);
  font-size: 22px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 780px;
  margin: -5px 0 23px;
  color: var(--xf-text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.site-footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 48px;
  padding: 38px max(28px, calc((100vw - 1180px) / 2));
  color: #fffdf9;
  background: var(--xf-ink-900);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.footer-brand strong {
  font-family: var(--xf-font-display);
  font-size: 20px;
}

.footer-brand small,
.footer-meta {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 10px;
}

.footer-links a:hover {
  color: #f6c35d;
}

.footer-meta {
  display: grid;
  gap: 5px;
  text-align: right;
}

.mobile-download-bar {
  display: none;
}

.site-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--xf-text-primary);
  border: 0;
  border-radius: 8px;
  background: var(--xf-surface-primary);
  box-shadow: 0 28px 100px rgba(25, 28, 24, 0.38);
}

.site-dialog::backdrop {
  background: rgba(30, 32, 29, 0.72);
}

.dialog-shell {
  padding: 28px;
}

.dialog-shell header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--xf-border-subtle);
}

.dialog-shell header small {
  color: var(--xf-action-primary);
  font-size: 9px;
  font-weight: 900;
}

.dialog-shell h2 {
  margin: 5px 0 0;
  font-size: 30px;
}

.dialog-shell header > button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--xf-border-subtle);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
}

.install-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--xf-border-subtle);
}

.install-steps li > span {
  color: var(--xf-action-primary);
  font-family: var(--xf-font-display);
  font-size: 19px;
  font-weight: 900;
}

.install-steps strong {
  font-size: 14px;
}

.install-steps p {
  margin: 5px 0 0;
  color: var(--xf-text-secondary);
  font-size: 11px;
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.dialog-actions button,
.dialog-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--xf-border-subtle);
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.dialog-actions a {
  color: #fff;
  border-color: var(--xf-action-primary);
  background: var(--xf-action-primary);
}

.version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.version-grid div {
  padding: 16px 0;
  border-bottom: 1px solid var(--xf-border-subtle);
}

.version-grid dt {
  color: var(--xf-text-muted);
  font-size: 9px;
}

.version-grid dd {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.release-source {
  margin: 12px 0 0;
  color: var(--xf-text-muted);
  font-size: 10px;
}

.hash-block {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--xf-border-subtle);
  background: var(--xf-surface-page);
}

.hash-block > span {
  color: var(--xf-action-primary);
  font-size: 9px;
  font-weight: 900;
}

.hash-block code {
  overflow-wrap: anywhere;
  color: var(--xf-text-secondary);
  font-size: 10px;
  line-height: 1.7;
}

.hash-block button {
  width: fit-content;
  min-height: 36px;
  padding: 0 10px;
  color: var(--xf-basil-700);
  border: 1px solid var(--xf-basil-700);
  border-radius: 4px;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.release-notes {
  margin-top: 20px;
}

.release-notes strong {
  font-size: 13px;
}

.release-notes ul {
  margin: 10px 0 0;
  padding-left: 19px;
  color: var(--xf-text-secondary);
  font-size: 11px;
  line-height: 1.9;
}

.reveal {
  animation: reveal-up 560ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.delay-1 {
  animation-delay: 110ms;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .mobile-nav {
    position: fixed;
    z-index: 49;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    padding: 12px 24px 18px;
    border-bottom: 1px solid var(--xf-border-subtle);
    background: #fffdf9;
    box-shadow: 0 14px 30px rgba(53, 47, 43, 0.12);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--xf-border-subtle);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-nav .mobile-nav-download {
    justify-content: center;
    margin-top: 10px;
    color: #fff;
    border: 0;
    border-radius: 6px;
    background: var(--xf-action-primary);
  }

  .product-stage {
    grid-template-columns: 385px 320px;
    justify-content: center;
  }

  .experience-index {
    grid-column: 1 / -1;
    width: min(720px, 100%);
    margin: 25px auto 0;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .workflow-steps li {
    min-height: 220px;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 64px;
  }

  body {
    padding-bottom: 72px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    height: 64px;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand small,
  .version-link,
  .header-download {
    display: none;
  }

  .header-actions {
    width: 44px;
  }

  .mobile-nav {
    top: 64px;
  }

  .hero {
    height: calc(100svh - 44px);
    min-height: 650px;
    max-height: 780px;
  }

  .hero-photo {
    object-position: 43% center;
  }

  .hero-shade {
    background: rgba(25, 61, 43, 0.76);
  }

  .hero-inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 64px;
  }

  .hero h1 {
    font-size: 61px;
  }

  .hero-slogan {
    margin-top: 18px;
    font-size: 23px;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-download-station {
    display: none;
  }

  .hero-trust {
    gap: 8px 12px;
  }

  .release-strip {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px;
  }

  .release-strip > div {
    min-height: 94px;
    padding: 13px;
  }

  .release-strip > div:nth-child(3) {
    border-left: 1px solid var(--xf-border-subtle);
  }

  .section,
  .section-dark {
    padding: 76px 18px;
  }

  .section-heading h2,
  .safety-copy h2,
  .download-main h2 {
    font-size: 38px;
  }

  .section-heading > p:last-child,
  .split-heading > p,
  .download-main > p:last-of-type {
    font-size: 15px;
  }

  .product-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 42px;
  }

  .phone-main {
    width: min(100%, 375px);
    height: 770px;
  }

  .phone-secondary {
    display: none;
  }

  .experience-index {
    grid-column: auto;
    margin-top: 12px;
  }

  .workflow .section-heading h2 {
    font-size: 38px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-steps li,
  .workflow-steps li:first-child {
    min-height: auto;
    grid-template-columns: 42px 120px 1fr;
    align-items: center;
    gap: 12px;
    padding: 18px 10px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .workflow-steps strong,
  .workflow-steps p {
    margin: 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .desktop-plan-table {
    display: none;
  }

  .mobile-plans {
    display: block;
    margin-top: 38px;
  }

  .safety {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .safety-photo,
  .safety-photo img {
    min-height: 390px;
    height: 390px;
  }

  .safety-list > div {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .download {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .download-main h2 {
    font-size: 42px;
  }

  .download-actions {
    display: grid;
  }

  .download-qr-block {
    display: none;
  }

  .release-details {
    grid-template-columns: 1fr 1fr;
  }

  .release-details div:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 20px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    text-align: left;
  }

  .mobile-download-bar {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    color: var(--xf-text-primary);
    border-top: 1px solid var(--xf-border-subtle);
    background: #fffdf9;
    box-shadow: 0 -12px 30px rgba(53, 47, 43, 0.1);
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 16px));
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .mobile-download-bar.is-visible {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-download-bar strong {
    font-size: 12px;
  }

  .mobile-download-bar small {
    margin-top: 3px;
    color: var(--xf-text-muted);
    font-size: 9px;
  }

  .mobile-download-bar a {
    min-width: 82px;
    min-height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--xf-action-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
  }

  .dialog-shell {
    padding: 22px 18px;
  }

  .dialog-shell h2 {
    font-size: 25px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 55px;
  }

  .hero-slogan {
    font-size: 21px;
  }

  .hero-trust span:nth-child(2) {
    display: none;
  }

  .phone-main {
    height: 730px;
  }

  .release-strip strong {
    font-size: 13px;
  }

  .release-details {
    grid-template-columns: 1fr;
  }

  .release-details div,
  .release-details div:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .version-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-actions button,
  .dialog-actions a {
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
