:root {
  color-scheme: dark;
  --bg: #171629;
  --bg-deep: #0e0d1b;
  --bg-ink: #111020;
  --surface: #242142;
  --surface-strong: #2d2854;
  --surface-soft: #312d55;
  --surface-raised: #383064;
  --border: #49436f;
  --border-soft: rgba(183, 173, 255, 0.18);
  --text: #f8f5ff;
  --text-soft: #d8d1ef;
  --muted: #aaa3c2;
  --accent: #7d67ff;
  --accent-strong: #9b8cff;
  --accent-dark: #5142a5;
  --amber: #f2bd5b;
  --cream: #fff7e8;
  --teal: #70d8b7;
  --danger: #ffaaa4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  --radius-sm: 7px;
  --radius-md: 8px;
  --radius-lg: 18px;
  --space-page: clamp(18px, 5vw, 40px);
  --max-page: 1160px;
  --max-readable: 720px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: #d8d1ff;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

header {
  border-bottom: 1px solid var(--border);
  background: #19182d;
}

nav,
body:not(.home) main,
body:not(.home) footer {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
}

nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.language-select select {
  max-width: 150px;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover,
.nav-links a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--text);
}

body:not(.home) main {
  padding: 54px 0 64px;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 7vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 38px 0 8px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 24px 0 6px;
  font-size: 18px;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
}

ul,
ol {
  padding-left: 24px;
}

.updated {
  margin: 0 0 34px;
  color: #c8c0ff;
  font-weight: 700;
}

.notice {
  margin: 28px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.danger {
  color: var(--danger);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #6d57ed, #4c3aa5);
  box-shadow: 0 16px 34px rgba(71, 55, 171, 0.34);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-soft);
}

body:not(.home) footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Shared static pages */

.site-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(125, 103, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 34rem, #141323);
}

.site-page .site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom-color: rgba(183, 173, 255, 0.14);
  background: rgba(14, 13, 27, 0.88);
  backdrop-filter: blur(18px);
}

.site-page nav,
.site-page .section-inner,
.site-page .footer-inner {
  width: min(var(--max-page), calc(100% - (var(--space-page) * 2)));
  margin: 0 auto;
}

.site-page nav {
  min-height: 76px;
}

.site-page .brand img {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.site-page main {
  width: 100%;
  padding: 0;
}

.page-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(34px, 5vw, 58px);
  border-bottom: 1px solid rgba(183, 173, 255, 0.08);
}

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

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6.2vw, 70px);
  line-height: 1.02;
}

.page-hero p:not(.eyebrow):not(.updated) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.page-section {
  padding: clamp(42px, 7vw, 82px) 0;
}

.page-card-stack,
.legal-content {
  display: grid;
  gap: 18px;
  max-width: 880px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
}

.content-card h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.12;
}

.content-card h3 {
  margin: 22px 0 6px;
  color: var(--text);
}

.content-card p:last-child,
.content-card ul:last-child,
.content-card ol:last-child {
  margin-bottom: 0;
}

.content-card li + li {
  margin-top: 6px;
}

.highlight-card {
  border-color: rgba(242, 189, 91, 0.34);
  background: linear-gradient(160deg, rgba(125, 103, 255, 0.17), rgba(242, 189, 91, 0.06));
}

.notice-card {
  border-color: rgba(255, 170, 164, 0.34);
  background: linear-gradient(160deg, rgba(255, 170, 164, 0.11), rgba(255, 255, 255, 0.05));
}

.legal-content {
  max-width: 900px;
}

.legal-page .content-card {
  padding: clamp(22px, 3.4vw, 34px);
}

.invite-section {
  min-height: min(680px, calc(100svh - 76px));
  display: grid;
  align-items: center;
}

.invite-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.invite-code {
  margin: 24px 0;
  color: var(--text);
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.error {
  color: var(--danger) !important;
  font-weight: 800;
}

.site-page footer {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-deep);
  color: inherit;
  font-size: inherit;
}

/* Public homepage */

.home {
  background:
    radial-gradient(circle at top left, rgba(125, 103, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 36rem, #141323);
  color: var(--text);
}

.home .site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom-color: rgba(183, 173, 255, 0.14);
  background: rgba(14, 13, 27, 0.88);
  backdrop-filter: blur(18px);
}

.home nav,
.section-inner,
.footer-inner {
  width: min(var(--max-page), calc(100% - (var(--space-page) * 2)));
  margin: 0 auto;
}

.home nav {
  min-height: 76px;
}

.home .brand img {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.nav-cta {
  padding: 9px 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(125, 103, 255, 0.16);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.home main {
  padding: 0;
}

.hero {
  width: min(1440px, 100%);
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 78px) var(--space-page) clamp(44px, 6vw, 82px);
}

.hero-copy-block {
  max-width: 620px;
  justify-self: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 24px;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-media {
  position: relative;
  min-width: 0;
  align-self: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 4%;
  background: radial-gradient(circle, rgba(125, 103, 255, 0.28), transparent 62%);
  filter: blur(28px);
}

.hero-media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 854;
  object-fit: contain;
  object-position: 58% center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-inner {
  position: relative;
}

.section-heading {
  max-width: var(--max-readable);
}

.section-heading.compact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  align-items: end;
  gap: 42px;
  max-width: none;
}

.section-heading.centred {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.home h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4.9vw, 60px);
  line-height: 1.06;
  letter-spacing: 0;
}

.home h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}

.home p {
  color: var(--muted);
}

.feature-strip,
.scanner-section,
.workflow-section,
.family-section,
.pricing-section,
.trust-section,
.final-cta {
  padding: clamp(58px, 8vw, 96px) 0;
}

.feature-strip {
  padding-top: clamp(42px, 6vw, 72px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-card,
.workflow-step,
.role-list article,
.price-card,
.trust-grid article,
.scan-card,
.family-panel {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: rgba(125, 103, 255, 0.2);
  color: var(--accent-strong);
  font-size: 21px;
  font-weight: 900;
}

.feature-icon svg,
.scan-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scanner-section,
.family-section,
.trust-section {
  background: rgba(9, 8, 18, 0.36);
  border-block: 1px solid rgba(183, 173, 255, 0.08);
}

.scanner-layout,
.family-layout,
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.scanner-layout .section-heading p,
.pricing-layout .section-heading p {
  font-size: 18px;
}

.scanner-walkthrough .section-heading p {
  max-width: 760px;
  margin-inline: auto;
  font-size: 18px;
}

.walkthrough-shell {
  position: relative;
  margin-top: clamp(28px, 4vw, 46px);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.walkthrough-shell.is-visible,
.no-motion .walkthrough-shell {
  opacity: 1;
  transform: none;
}

.walkthrough-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 8px 0 20px;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.walkthrough-carousel::-webkit-scrollbar {
  display: none;
}

.walkthrough-card {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding-inline: clamp(10px, 4vw, 28px);
  scroll-snap-align: center;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.walkthrough-shell.is-visible .walkthrough-card,
.no-motion .walkthrough-card {
  opacity: 1;
  transform: none;
}

.walkthrough-shell.is-visible .walkthrough-card:nth-child(2) { transition-delay: 70ms; }
.walkthrough-shell.is-visible .walkthrough-card:nth-child(3) { transition-delay: 140ms; }
.walkthrough-shell.is-visible .walkthrough-card:nth-child(4) { transition-delay: 210ms; }
.walkthrough-shell.is-visible .walkthrough-card:nth-child(5) { transition-delay: 280ms; }
.walkthrough-shell.is-visible .walkthrough-card:nth-child(6) { transition-delay: 350ms; }
.walkthrough-shell.is-visible .walkthrough-card:nth-child(7) { transition-delay: 420ms; }

.phone-frame {
  position: relative;
  display: block;
  width: min(100%, 314px);
  padding: 12px;
  border: 1px solid rgba(183, 173, 255, 0.24);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    #111020;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: zoom-in;
}

.phone-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  transform: translateX(-50%);
}

.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 591 / 1280;
  border-radius: 24px;
  object-fit: contain;
  background: #0b0a17;
}

.walkthrough-card h3 {
  margin: 18px 4px 6px;
  max-width: 360px;
  text-align: center;
  font-size: 18px;
}

.walkthrough-card p {
  margin: 0 4px;
  max-width: 360px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

.carousel-control {
  position: absolute;
  z-index: 4;
  top: 42%;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(183, 173, 255, 0.24);
  border-radius: 50%;
  background: rgba(36, 33, 66, 0.92);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-control span {
  display: block;
  margin-top: -2px;
  font-size: 34px;
  line-height: 1;
}

.carousel-control-prev {
  left: -14px;
}

.carousel-control-next {
  right: -14px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 209, 239, 0.34);
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  width: 24px;
  background: var(--accent-strong);
}

.walkthrough-lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(7, 6, 14, 0.86);
  backdrop-filter: blur(12px);
}

.walkthrough-lightbox[hidden] {
  display: none;
}

.walkthrough-lightbox img {
  max-width: min(92vw, 520px);
  max-height: 88vh;
  border-radius: 28px;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(183, 173, 255, 0.26);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.scan-flow {
  display: grid;
  grid-template-columns: minmax(130px, 0.72fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
}

.scan-card {
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.photo-card figcaption {
  padding: 12px 14px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 750;
}

.scan-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
}

.scan-arrow svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.1;
}

.result-card {
  padding: 24px;
  background: linear-gradient(160deg, rgba(125, 103, 255, 0.17), rgba(255, 255, 255, 0.05));
}

.result-card ul,
.price-card ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.workflow-step {
  overflow: hidden;
  padding-bottom: 20px;
}

.workflow-step img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.workflow-step h3,
.workflow-step p {
  padding-inline: 20px;
}

.workflow-step h3 {
  margin-top: 20px;
}

.family-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.role-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.role-list article {
  padding: 18px;
}

.role-list p {
  margin: 0;
}

.family-panel {
  padding: 14px;
}

.family-panel img {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
}

.family-panel p {
  margin: 14px 4px 2px;
  color: var(--text-soft);
  font-weight: 750;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  padding: 26px;
}

.featured-price {
  border-color: rgba(242, 189, 91, 0.46);
  background: linear-gradient(160deg, rgba(125, 103, 255, 0.22), rgba(242, 189, 91, 0.08));
}

.plan-label {
  margin: 0 0 10px;
  color: var(--amber) !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  margin: 10px 0 0;
  color: var(--text) !important;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.trust-grid article {
  padding: 20px;
}

.final-cta {
  padding-top: clamp(56px, 7vw, 92px);
}

.final-cta-card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(242, 189, 91, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(125, 103, 255, 0.24), transparent 28rem),
    linear-gradient(140deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  text-align: center;
}

.final-cta-card p {
  max-width: 640px;
  margin: 16px auto 24px;
  font-size: 18px;
}

.home footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 30px;
  padding: 42px 0;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-links {
  justify-content: flex-end;
  gap: 12px 20px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .scanner-layout,
  .family-layout,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-copy-block {
    max-width: 760px;
    justify-self: start;
  }

  .hero-media {
    max-width: 860px;
  }

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

@media (max-width: 820px) {
  .home nav,
  .site-page nav {
    width: min(100% - 32px, var(--max-page));
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0;
  }

  .home .brand span,
  .site-page .brand span {
    white-space: nowrap;
  }

  .home .nav-toggle,
  .site-page .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .home .nav-links,
  .home .language-select,
  .site-page .nav-links,
  .site-page .language-select {
    display: none;
  }

  .home nav.is-open .nav-links,
  .site-page nav.is-open .nav-links {
    display: flex;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .home nav.is-open .nav-links a,
  .site-page nav.is-open .nav-links a {
    display: block;
    padding: 11px 0;
  }

  .home nav.is-open .nav-cta,
  .site-page nav.is-open .nav-cta {
    margin-top: 8px;
    padding: 12px;
    text-align: center;
  }

  .home nav.is-open .language-select,
  .site-page nav.is-open .language-select {
    display: flex;
    width: 100%;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 4px;
  }

  .home nav.is-open .language-select select,
  .site-page nav.is-open .language-select select {
    width: min(220px, 62vw);
    max-width: 220px;
  }

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

  .workflow-step {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
    align-items: center;
    padding: 0;
  }

  .workflow-step img {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }

  .workflow-step h3,
  .workflow-step p {
    padding-inline: 18px;
  }

  .screen-row img,
  .family-layout img {
    max-width: 100%;
  }

  .carousel-control {
    display: none;
  }
}

@media (max-width: 640px) {
  body:not(.home):not(.site-page) nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  body:not(.home):not(.site-page) .nav-links {
    justify-content: flex-start;
  }

  body:not(.home):not(.site-page) main {
    padding-top: 38px;
  }

  .home nav,
  .site-page nav,
  .section-inner,
  .footer-inner {
    width: min(100% - 32px, var(--max-page));
  }

  .hero {
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .section-heading.compact,
  .pricing-cards,
  .trust-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    object-fit: contain;
    object-position: 60% center;
  }

  .scan-flow {
    grid-template-columns: 1fr;
  }

  .scan-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .photo-card img {
    max-height: 440px;
  }

  .walkthrough-shell {
    margin-inline: -6px;
  }

  .walkthrough-carousel {
    grid-auto-columns: 100%;
    gap: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .walkthrough-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: 6px;
    scroll-snap-stop: always;
  }

  .walkthrough-card .phone-frame {
    display: inline-block;
    width: min(72vw, 320px);
    max-width: 320px;
    height: auto;
  }

  .walkthrough-card .phone-frame img {
    width: 100%;
    height: auto;
  }

  .walkthrough-card h3,
  .walkthrough-card p {
    width: min(72vw, 320px);
    text-align: center;
  }

  .workflow-step {
    display: block;
  }

  .workflow-step img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

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

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

  .page-hero {
    padding-top: 38px;
  }

  .page-section {
    padding: 34px 0 58px;
  }
}

@media (hover: hover) {
  .phone-frame:hover {
    border-color: rgba(242, 189, 91, 0.46);
    transform: translateY(-2px);
    transition: border-color 220ms ease, transform 220ms ease;
  }
}

@media (max-width: 400px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .home nav.is-open .language-select,
  .site-page nav.is-open .language-select {
    align-items: stretch;
    flex-direction: column;
  }

  .home nav.is-open .language-select select,
  .site-page nav.is-open .language-select select {
    width: 100%;
    max-width: 100%;
  }
}

@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;
  }

  .walkthrough-carousel {
    scroll-behavior: auto;
  }

  .walkthrough-shell,
  .walkthrough-card {
    opacity: 1;
    transform: none;
  }
}
