:root {
  --background: #F5F5F7;
  --surface: #FFFFFF;
  --surface-warm: #F3EFE6;
  --text-primary: #10243B;
  --numeric-navy: #06377B;
  --link: #335B85;
  --text-secondary: #59616A;
  --text-muted: #86868B;
  --accent: #B7A06A;
  --accent-soft: #E9E0C8;
  --border: #E1D8C5;
  --divider: #ECE4D5;
  --danger-quiet: #9B625A;
  --display-font: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --reading-width: 720px;
  --feature-width: 1020px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--link);
  font-weight: 650;
  text-decoration-color: color-mix(in srgb, var(--link), transparent 52%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), white 20%);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--divider);
  background: var(--background);
}

.nav {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
  min-height: 60px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 22px;
  flex-wrap: wrap;
}

.brand {
  color: var(--text-primary);
  font-family: var(--display-font);
  font-size: clamp(19px, 1.75vw, 22px);
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 36px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12.75px;
  font-weight: 620;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--surface-warm);
}

main {
  display: block;
}

.section {
  padding: 48px 20px;
}

.section:first-child {
  padding-top: 40px;
}

.inner {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
}

.reading {
  max-width: var(--reading-width);
}

.feature-width {
  max-width: var(--feature-width);
}

.hero {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 50px;
}

.hero-content {
  max-width: var(--reading-width);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-primary);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--display-font);
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: clamp(31px, 4.8vw, 42px);
  line-height: 1.08;
}

.hero h1 {
  color: var(--numeric-navy);
}

h2 {
  max-width: 760px;
  font-size: clamp(22px, 2.7vw, 27px);
  line-height: 1.18;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 660;
}

p {
  margin: 0;
}

.lead {
  max-width: 680px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.48;
}

.body-copy {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.body-copy + .body-copy {
  margin-top: 12px;
}

.actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--surface-warm);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.section-header {
  max-width: var(--reading-width);
}

.section-header .body-copy {
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.surface-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(24px, 4vw, 38px);
}

.warm-band {
  background: var(--surface-warm);
  border-block: 1px solid var(--divider);
}

.home-hero > .inner,
.home-measures > .inner,
.home-privacy > .inner,
.purchase-section > .inner,
.home-limitations > .inner {
  max-width: var(--reading-width);
}

.home-experience > .inner,
.home-history > .inner {
  max-width: var(--feature-width);
}

.home-measures h2,
.home-measures .body-copy,
.home-privacy h2,
.home-privacy .body-copy,
.home-privacy .actions,
.purchase-section h2,
.purchase-section .body-copy,
.purchase-section .quiet-note,
.home-limitations h2,
.home-limitations .body-copy {
  max-width: var(--reading-width);
}

.home-privacy h2,
.home-privacy .body-copy,
.home-privacy .actions {
  max-width: var(--reading-width);
}

.home-hero {
  padding-bottom: 44px;
}

.home-measures {
  padding-top: 38px;
  padding-bottom: 24px;
}

.home-experience {
  padding-top: 12px;
  padding-bottom: 42px;
}

.home-privacy {
  padding-top: 42px;
  padding-bottom: 44px;
}

.home-history {
  padding-top: 42px;
  padding-bottom: 38px;
  background: var(--background);
}

.purchase-section {
  padding-top: 36px;
  padding-bottom: 34px;
  border-top: 1px solid var(--divider);
}

.home-limitations {
  padding-top: 34px;
  padding-bottom: 40px;
}

.keep-together {
  white-space: nowrap;
}

#purchase-title {
  font-variant-numeric: lining-nums;
}

.app-feature {
  --screen-width: 216px;
  --status-offset: -4.667%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, var(--screen-width));
  align-items: center;
  gap: clamp(28px, 4.4vw, 48px);
  padding-inline-start: max(0px, calc((100% - var(--reading-width)) / 2));
}

.home-experience > .inner,
.home-history > .inner {
  margin-inline: auto;
}

.app-feature-secondary {
  --screen-width: 200px;
}

.app-screen {
  width: min(100%, var(--screen-width));
  margin: 0;
  justify-self: end;
}

.screen-trigger {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.screen-trigger .device-frame {
  transition: opacity 160ms ease, transform 160ms ease;
}

.screen-trigger:hover .device-frame,
.screen-trigger:focus-visible .device-frame {
  opacity: 0.96;
  transform: translateY(-1px);
}

.device-frame {
  position: relative;
  padding: 3px;
  border: 1px solid #7F858B;
  border-radius: 28px;
  background: #B9BEC4;
  box-shadow:
    inset 1px 0 0 rgba(245, 247, 248, 0.90),
    inset -1px 0 0 rgba(92, 99, 106, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 4px rgba(5, 6, 7, 0.14),
    0 8px 18px rgba(16, 36, 59, 0.08);
}

.device-shell {
  padding: 5px;
  border: 1px solid #2B2F33;
  border-radius: 24px;
  background: #0B0D0F;
  box-shadow: inset 0 0 0 1px #050607;
}

.screen-viewport {
  position: relative;
  aspect-ratio: 1080 / 2288;
  padding: 2px;
  overflow: hidden;
  border-radius: 19px;
  background: #000000;
}

.screen-viewport img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(var(--status-offset));
}

.measure-frame {
  margin-top: 30px;
  max-width: 820px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
  color: var(--text-muted);
  font-size: 15px;
}

.detail-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

.detail-item {
  border-top: 1px solid var(--divider);
  padding-top: 18px;
}

.detail-item p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 16px;
}

.trust-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.trust-list li {
  padding-left: 18px;
  position: relative;
  color: var(--text-secondary);
}

.trust-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 0.78em;
  background: var(--accent);
}

.quiet-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.body-copy + .quiet-note,
.quiet-note + .quiet-note {
  margin-top: 10px;
}

.page-hero {
  padding-top: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--divider);
}

.page-hero > .inner.reading {
  max-width: var(--reading-width);
}

.page-hero h1 {
  font-size: clamp(29px, 3.7vw, 36px);
}

.content-stack {
  max-width: var(--reading-width);
  display: grid;
  gap: 28px;
}

.content-section {
  max-width: var(--reading-width);
  border-top: 1px solid var(--divider);
  padding-top: 24px;
}

.content-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.content-section h2 {
  font-size: clamp(21px, 2.4vw, 25px);
}

.content-section h3 {
  margin-top: 18px;
}

.content-section p,
.content-section li {
  color: var(--text-secondary);
}

.content-section p {
  margin-top: 12px;
}

.content-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.content-section li + li {
  margin-top: 8px;
}

.faq-list {
  max-width: var(--reading-width);
  display: grid;
  gap: 16px;
}

.faq-item {
  border-top: 1px solid var(--divider);
  padding-top: 22px;
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-item h2 {
  font-family: var(--body-font);
  font-size: clamp(20px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.25;
}

.faq-item p {
  margin-top: 8px;
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 28px 20px 34px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 620;
}

@media (min-width: 640px) {
  .nav {
    padding-inline: 32px;
  }

  .section,
  .site-footer {
    padding-inline: 32px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 30px;
  }
}

@media (min-width: 900px) {
  .nav {
    padding-inline: 48px;
  }

  .section {
    padding: 56px 48px;
  }

  .section:first-child {
    padding-top: 44px;
  }

  .hero {
    padding-bottom: 54px;
  }

  .home-hero {
    padding-bottom: 46px;
  }

  .home-measures {
    padding-top: 42px;
    padding-bottom: 26px;
  }

  .home-experience {
    padding-top: 14px;
    padding-bottom: 46px;
  }

  .home-privacy {
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .home-history {
    padding-top: 46px;
    padding-bottom: 40px;
  }

  .purchase-section {
    padding-top: 38px;
    padding-bottom: 36px;
  }

  .home-limitations {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .site-footer {
    padding-inline: 48px;
  }

  .split {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: 64px;
  }

  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .nav {
    padding-inline: 64px;
  }

  .section {
    padding: 62px 64px;
  }

  .home-hero {
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .home-measures {
    padding-top: 42px;
    padding-bottom: 26px;
  }

  .home-experience {
    padding-top: 14px;
    padding-bottom: 46px;
  }

  .home-privacy {
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .home-history {
    padding-top: 46px;
    padding-bottom: 40px;
  }

  .purchase-section {
    padding-top: 38px;
    padding-bottom: 36px;
  }

  .home-limitations {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .site-footer {
    padding-inline: 64px;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: center;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .hero {
    padding-bottom: 40px;
  }

  .home-measures {
    padding-top: 34px;
    padding-bottom: 22px;
  }

  .home-experience {
    padding-top: 10px;
    padding-bottom: 38px;
  }

  .home-privacy {
    padding-top: 38px;
    padding-bottom: 40px;
  }

  .home-history {
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .purchase-section {
    padding-top: 32px;
    padding-bottom: 30px;
  }

  .home-limitations {
    padding-top: 30px;
    padding-bottom: 38px;
  }

  .app-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .app-screen {
    width: min(100%, 242px);
    justify-self: center;
  }

  .app-feature-secondary .app-screen {
    width: min(100%, 228px);
  }
}

@media (max-width: 430px) {
  body {
    font-size: 16px;
  }

  .section {
    padding-inline: 18px;
  }

  .nav {
    min-height: 54px;
    padding: 7px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-links a {
    min-height: 44px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .app-screen {
    width: min(100%, 239px);
  }

  .app-feature-secondary .app-screen {
    width: min(100%, 224px);
  }

  .device-frame {
    border-radius: 27px;
  }

  .device-shell {
    border-radius: 25px;
  }

  .screen-viewport {
    border-radius: 23px;
  }
}

.screen-lightbox {
  width: min(420px, 82vw);
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  overflow: visible;
}

.screen-lightbox::backdrop {
  background: rgba(10, 14, 18, 0.72);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.92);
  color: #10243B;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-device {
  --status-offset: -4.667%;
  width: min(420px, 82vw, calc((92vh - 54px) * 1080 / 2288));
  margin-inline: auto;
}

@media (max-width: 760px) {
  .screen-lightbox {
    width: 90vw;
  }

  .lightbox-device {
    width: min(90vw, calc((92vh - 54px) * 1080 / 2288));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* === PHASE 1.14 FINAL FRAMED IMAGE START === */

/*
  Finished device frame is now part of the image asset itself.
  Existing layout, reading rail and inline phone widths remain unchanged.
*/

.framed-app-image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.screen-trigger {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.screen-trigger .framed-app-image {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.screen-trigger:hover .framed-app-image,
.screen-trigger:focus-visible .framed-app-image {
  opacity: 0.97;
  transform: translateY(-1px);
}

.screen-trigger:focus-visible {
  outline: 2px solid rgba(6, 55, 123, 0.45);
  outline-offset: 5px;
  border-radius: 24px;
}

.lightbox-device {
  width: min(420px, 82vw);
  margin-inline: auto;
}

.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border: 0;
}

@media (max-width: 760px) {
  .lightbox-device {
    width: min(90vw, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-trigger .framed-app-image {
    transition: none;
  }
}

/* === PHASE 1.14 FINAL FRAMED IMAGE END === */
