*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-primary: #346b84;
  --color-primary-strong: #2f5d7c;
  --color-ink: #17212b;
  --color-secondary: #536678;
  --color-background: #f7f8fa;
  --color-mist: #eaf2f5;
  --color-warm: #f4e9d1;
  --color-sage: #c7dbd2;
  --color-rose: #eac6c6;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-solid: #ffffff;
  --color-border: rgba(23, 33, 43, 0.12);
  --color-border-strong: rgba(52, 107, 132, 0.24);
  --shadow-soft: 0 18px 52px rgba(23, 33, 43, 0.12);
  --shadow-card: 0 10px 30px rgba(23, 33, 43, 0.08);
  --radius: 8px;
  --max-width: 1160px;
  --content-width: 720px;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-stack);
  color: var(--color-ink);
  background:
    linear-gradient(180deg, rgba(247, 248, 250, 0.78) 0%, rgba(247, 248, 250, 0.97) 620px, rgba(247, 248, 250, 1) 100%),
    url("assets/img/brand/onboarding-hero.png") calc(100% + 260px) -130px / 820px auto no-repeat,
    url("assets/img/brand/onboarding-hero.png") -360px 48% / 740px auto no-repeat,
    var(--color-background);
  line-height: 1.58;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(52, 107, 132, 0.42);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--color-ink);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(18px);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(23, 33, 43, 0.1);
  background: rgba(247, 248, 250, 0.94);
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.06);
}

.site-nav {
  max-width: var(--max-width);
  min-height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-link img,
.footer-brand img {
  width: 34px;
  height: 34px;
}

.brand-link span,
.footer-brand span {
  line-height: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav,
.lang-switch,
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a,
.lang-switch a,
.footer-links a {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a.active,
.lang-switch a:hover,
.lang-switch a.lang-active,
.footer-links a:hover {
  color: var(--color-primary-strong);
}

.nav-download {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.lang-switch {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.lang-switch a {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.lang-switch a.lang-active {
  background: var(--color-mist);
}

.page-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(247, 248, 250, 0.99) 0%, rgba(247, 248, 250, 0.94) 46%, rgba(247, 248, 250, 0.7) 100%),
    url("assets/img/brand/onboarding-hero.png") right center / auto 102% no-repeat;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 82px 24px 62px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.74fr);
  align-items: center;
  gap: 68px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  color: var(--color-primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: rgba(234, 242, 245, 0.78);
}

.section-kicker {
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 3.8rem;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 780;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 760;
  letter-spacing: 0;
}

p {
  color: var(--color-secondary);
}

code {
  padding: 2px 5px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 5px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.74);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.hero-subtitle {
  max-width: 590px;
  margin-bottom: 14px;
  color: #455768;
  font-size: 1.16rem;
}

.hero-support {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 680;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.1;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--color-primary-strong);
  box-shadow: 0 12px 28px rgba(47, 93, 124, 0.26);
}

.button-primary:hover {
  background: var(--color-primary);
}

.button-secondary {
  color: var(--color-primary-strong);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.74);
}

.button.is-disabled,
.app-store-badge.is-disabled,
.nav-download.is-disabled {
  cursor: default;
  opacity: 0.58;
  box-shadow: none;
}

.button.is-disabled:hover,
.app-store-badge.is-disabled:hover,
.nav-download.is-disabled:hover {
  transform: none;
}

.app-store-badge {
  display: inline-flex;
  width: 258px;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 22px;
  border: 1px solid #000;
  border-radius: 14px;
  color: #fff;
  background: #050505;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.app-store-badge:hover {
  transform: translateY(-1px);
  background: #151515;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.app-store-glyph {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.app-store-glyph svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.app-store-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
  line-height: 1;
}

.app-store-preline,
.app-store-store {
  display: block;
  color: #fff;
  white-space: nowrap;
}

.app-store-preline {
  font-size: 0.92rem;
  font-weight: 600;
}

.app-store-store {
  font-size: 1.74rem;
  font-weight: 760;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 420px);
}

.phone-frame {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1242 / 2688;
  object-fit: contain;
  box-shadow: none;
  mix-blend-mode: multiply;
}

.hero .phone-frame img {
  height: min(58svh, 560px);
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-position: top center;
}

.trust-strip {
  padding: 0 24px;
}

.trust-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  min-height: 48px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(52, 107, 132, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.trust-item strong {
  display: block;
  color: var(--color-ink);
  font-size: 0.86rem;
  line-height: 1.25;
  text-align: center;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 82px 24px;
}

.section-heading {
  max-width: var(--content-width);
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 670px;
  margin-bottom: 0;
  color: #4f6172;
  font-size: 1.06rem;
}

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

.feature-card,
.privacy-point,
.legal-card,
.screenshot-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.feature-card {
  min-height: 196px;
  padding: 22px;
}

.feature-card p {
  margin-bottom: 0;
  color: #4f6172;
  font-size: 0.96rem;
}

.feature-chip {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--color-ink);
  background: var(--chip-color, var(--color-mist));
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-chip.teal {
  --chip-color: var(--color-mist);
}

.feature-chip.warm {
  --chip-color: var(--color-warm);
}

.feature-chip.sage {
  --chip-color: var(--color-sage);
}

.feature-chip.rose {
  --chip-color: var(--color-rose);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.92fr);
}

.split-section.reverse .split-copy {
  order: 2;
}

.split-section.reverse .split-media {
  order: 1;
}

.split-copy {
  max-width: 620px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 12px;
  color: #4f6172;
}

.check-list li::before {
  content: "";
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.split-media {
  justify-self: center;
  width: min(100%, 430px);
  margin: 0;
}

.split-media .phone-frame img {
  width: 100%;
  max-height: none;
  margin: 0 auto;
}

.screen-caption {
  max-width: 340px;
  margin: 14px auto 0;
  text-align: center;
}

.screen-caption strong,
.screen-caption span {
  display: block;
}

.screen-caption strong {
  color: var(--color-ink);
  font-size: 0.98rem;
}

.screen-caption span {
  margin-top: 2px;
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.privacy-section {
  position: relative;
}

.privacy-section::before {
  content: "";
  position: absolute;
  inset: 34px 24px;
  z-index: -1;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(234, 242, 245, 0.76)),
    url("assets/img/brand/onboarding-hero.png") right center / auto 132% no-repeat;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.privacy-point {
  min-height: 154px;
  padding: 18px;
}

.privacy-point strong,
.privacy-point span {
  display: block;
}

.privacy-point strong {
  margin-bottom: 6px;
  color: var(--color-ink);
}

.privacy-point span {
  color: #4f6172;
  font-size: 0.92rem;
}

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

.screenshot-card {
  min-width: 0;
  margin: 0;
  padding: 16px;
}

.screenshot-card img {
  width: 100%;
  max-height: none;
  margin: 0 auto;
  aspect-ratio: 1242 / 2688;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.screenshot-card figcaption {
  margin-top: 12px;
}

.screenshot-card figcaption strong,
.screenshot-card figcaption span {
  display: block;
}

.screenshot-card figcaption strong {
  color: var(--color-ink);
  font-size: 0.96rem;
}

.screenshot-card figcaption span {
  margin-top: 2px;
  color: #4f6172;
  font-size: 0.88rem;
  line-height: 1.42;
}

.final-cta {
  padding: 84px 24px 90px;
  background:
    linear-gradient(135deg, rgba(234, 242, 245, 0.94), rgba(255, 255, 255, 0.84)),
    url("assets/img/brand/onboarding-hero.png") center 50% / 860px auto no-repeat;
}

.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.final-cta h2 {
  max-width: 620px;
  margin-bottom: 12px;
}

.final-cta p:not(.section-kicker) {
  max-width: 620px;
  margin-bottom: 24px;
  color: #4f6172;
  font-size: 1.06rem;
}

.site-footer {
  border-top: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.footer-inner > div {
  display: grid;
  justify-items: center;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--color-secondary);
  font-size: 0.88rem;
}

.footer-meta p {
  margin: 0;
  color: inherit;
}

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 24px 78px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin-bottom: 10px;
  font-size: 2.55rem;
}

.effective-date {
  display: block;
  color: var(--color-secondary);
  font-size: 0.94rem;
  font-weight: 650;
}

.legal-card {
  padding: 26px;
}

.legal-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(23, 33, 43, 0.1);
}

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

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 8px;
  color: var(--color-primary-strong);
  font-size: 1.13rem;
}

.legal-section p {
  margin-bottom: 10px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.contact-link {
  color: var(--color-primary-strong);
  font-weight: 760;
  word-break: break-word;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.redirect-card {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.redirect-card img {
  margin: 0 auto 16px;
}

.redirect-card h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.redirect-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    gap: 36px;
    padding-top: 58px;
  }

  .hero .phone-frame img {
    height: 460px;
  }

  h1 {
    font-size: 3rem;
  }

  .privacy-points,
  .screenshot-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-copy,
  .split-section.reverse .split-media {
    order: initial;
  }

  .hero-visual {
    width: min(100%, 320px);
  }

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

  .split-copy {
    max-width: var(--content-width);
  }
}

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

  [id] {
    scroll-margin-top: 86px;
  }

  body {
    background: var(--color-background);
  }

  .site-nav {
    min-height: 50px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-link span {
    display: none;
  }

  .lang-switch {
    padding: 4px;
  }

  .lang-switch a {
    padding: 4px 6px;
    font-size: 0.74rem;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(247, 248, 250, 0.99) 0%, rgba(247, 248, 250, 0.96) 64%, rgba(234, 242, 245, 0.7) 100%);
  }

  .hero-inner,
  .content-section,
  .legal-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: 2.02rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-subtitle,
  .section-heading p,
  .final-cta p:not(.section-kicker) {
    font-size: 1rem;
  }

  .hero-subtitle {
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .hero-support {
    margin-bottom: 18px;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .app-store-badge {
    width: 218px;
    min-height: 64px;
    gap: 12px;
    padding: 10px 16px;
  }

  .app-store-glyph {
    width: 34px;
    height: 34px;
  }

  .app-store-preline {
    font-size: 0.78rem;
  }

  .app-store-store {
    font-size: 1.4rem;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100vw;
    margin: 18px calc(50% - 50vw) 0;
  }

  .hero .phone-frame img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-position: top center;
  }

  .hero .phone-frame,
  .split-media .phone-frame {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .trust-strip {
    padding: 8px 16px 0;
  }

  .trust-strip-inner,
  .feature-grid,
  .privacy-points,
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trust-item {
    min-height: 40px;
    padding: 9px 10px;
  }

  .trust-item strong {
    font-size: 0.78rem;
  }

  .content-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .feature-grid {
    gap: 12px;
  }

  .feature-card,
  .privacy-point {
    min-height: 0;
    padding: 18px 20px;
  }

  .feature-card p {
    font-size: 0.98rem;
  }

  .feature-chip {
    margin-bottom: 12px;
  }

  .split-media {
    justify-self: stretch;
    width: 100vw;
    margin: 10px calc(50% - 50vw) 0;
  }

  .split-media .phone-frame img {
    width: 100%;
    max-height: none;
  }

  .screen-caption {
    max-width: 360px;
    padding: 0 16px;
    text-align: left;
  }

  .privacy-section::before {
    inset: 18px 0;
    border-radius: 0;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(234, 242, 245, 0.68)),
      url("assets/img/brand/onboarding-hero.png") center 20% / 560px auto no-repeat;
  }

  .screenshot-gallery {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
  }

  .screenshot-card {
    display: block;
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .screenshot-card img {
    width: 100%;
    max-height: none;
  }

  .screenshot-card figcaption {
    margin-top: 12px;
    padding: 0 16px 16px;
  }

  .final-cta {
    padding: 62px 16px 66px;
  }

  .footer-links {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-card {
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .screenshot-card img {
    max-height: none;
  }
}

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

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