/* Tokens shared with the app (apps/android/.../Theme.kt). */
@font-face {
  font-family: "Heebo";
  src: url("/fonts/heebo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --primary: #1B4D73;
  --on-primary: #fff;
  --primary-c: #D7EAF8;
  --on-primary-c: #102F46;
  --owed: #08705A;
  --owed-c: #D4F3E9;
  --warn: #8A4F00;
  --warn-c: #FFF0D1;
  --bg: #FAFCFE;
  --surface: #fff;
  --low: #F1F5F8;
  --text: #17232C;
  --muted: #4D5D68;
  --line: #D3DDE4;
  --shadow: 0 22px 64px rgba(16, 47, 70, .18);
  --shadow-soft: 0 12px 32px rgba(16, 47, 70, .09);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --primary: #9CCCF0;
    --on-primary: #073653;
    --primary-c: #173F5D;
    --on-primary-c: #D5EAF8;
    --owed: #62D7B6;
    --owed-c: #0D3D33;
    --warn: #FFD166;
    --warn-c: #493600;
    --bg: #0E151B;
    --surface: #151E25;
    --low: #1B252D;
    --text: #E7EDF2;
    --muted: #B8C3CB;
    --line: #34434D;
    --shadow: 0 22px 64px rgba(0, 0, 0, .45);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, .24);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary);
  text-underline-offset: .2em;
}

a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: 28px;
}

.narrow {
  max-width: 860px;
}

/* Header */
header.top {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}

header.top .wrap {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  color: var(--primary);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

header.top nav {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-inline-start: auto;
  gap: 10px;
}

header.top nav > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

header.top nav > a:not(.btn):hover {
  color: var(--primary);
}

/* Shared controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(16, 47, 70, .14);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 47, 70, .2);
}

.btn.small {
  min-height: 44px;
  padding-inline: 17px;
  font-size: 14px;
  border-radius: 6px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -.035em;
}

.section-heading > p:last-child,
.split-heading > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end;
  max-width: none;
  gap: 64px;
}

.split-heading > p {
  margin: 0;
  padding-block-end: 5px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 94px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.8%, color-mix(in srgb, var(--line) 44%, transparent) 50%, transparent 50.2%),
    linear-gradient(180deg, var(--primary-c), var(--bg));
  background-size: 118px 100%, 100% 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .86fr);
  align-items: center;
  min-height: 660px;
  gap: 54px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 690px;
}

.hero h1 {
  color: var(--on-primary-c);
  font-size: clamp(58px, 7.4vw, 104px);
  font-weight: 900;
  letter-spacing: -.06em;
}

.hero h1 span {
  display: inline-block;
  font-size: .72em;
  font-weight: 760;
  letter-spacing: -.04em;
}

.hero .lead {
  max-width: 620px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.72;
}

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

.cta-note {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  direction: ltr;
  width: 100%;
  height: 660px;
  min-width: 0;
}

.hero-orbit {
  position: absolute;
  inset: 10% 1% 7% 5%;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.phone {
  overflow: hidden;
  width: 280px;
  max-width: 80vw;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid #34434D;
  border-radius: 36px;
  background: #0E151B;
  box-shadow: var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--bg);
}

.hero-phone {
  position: absolute;
  margin: 0;
}

.hero-phone-primary {
  z-index: 2;
  inset-block-start: 46px;
  inset-inline-start: 3%;
  width: 330px;
  transform: rotate(-5deg);
}

.hero-phone-secondary {
  z-index: 1;
  inset-block-start: 155px;
  inset-inline-end: 0;
  width: 275px;
  transform: rotate(7deg);
}

.money-signal {
  position: absolute;
  z-index: 4;
  inset-inline-start: 5%;
  inset-block-end: 34px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--owed);
  border-radius: 6px;
  background: var(--owed-c);
  color: var(--owed);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

/* Checked items */
.checks-section {
  padding: 116px 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.check-card {
  position: relative;
  min-height: 330px;
  padding: 34px 28px 38px;
  border-inline-end: 1px solid var(--line);
}

.check-card:first-child {
  border-inline-start: 1px solid var(--line);
}

.check-index {
  display: block;
  margin-bottom: 76px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}

.check-card h3 {
  margin-bottom: 14px;
  font-size: 27px;
  font-weight: 820;
}

.check-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

/* Steps */
.how-section {
  padding: 116px 0;
  background: var(--low);
}

.step-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 60px;
  height: 60px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 21px;
  font-weight: 800;
}

.step-list h3 {
  margin-bottom: 9px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 820;
}

.step-list p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-action {
  margin-top: 38px;
}

/* Product tour */
.tour-section {
  padding: 116px 0 94px;
  overflow: hidden;
}

.tour {
  display: flex;
  direction: rtl;
  gap: 34px;
  overflow-x: auto;
  margin-inline: calc((100vw - min(100vw, 1240px)) / -2);
  padding: 12px max(28px, calc((100vw - 1184px) / 2)) 38px;
  scroll-padding-inline: max(28px, calc((100vw - 1184px) / 2));
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--primary) var(--low);
}

.tour figure {
  flex: 0 0 286px;
  margin: 0;
  scroll-snap-align: start;
}

.tour .phone {
  width: 286px;
  max-width: none;
}

.tour figcaption {
  padding: 20px 8px 0;
}

.tour figcaption strong,
.tour figcaption span {
  display: block;
}

.tour figcaption strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 19px;
}

.tour figcaption span {
  color: var(--muted);
  font-size: 15px;
}

.note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Privacy */
.privacy-band {
  padding: 112px 0;
  background: #102F46;
  color: #fff;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 86px;
}

.privacy-band .eyebrow {
  color: #9CCCF0;
}

.privacy-band h2 {
  max-width: 520px;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 870;
  letter-spacing: -.045em;
}

.privacy-content ul {
  margin: 0 0 34px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  list-style: none;
}

.privacy-content li {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr);
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.privacy-content li strong {
  color: #fff;
  font-size: 18px;
}

.privacy-content li span {
  color: #D5EAF8;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 750;
}

.privacy-link::after {
  content: "←";
  margin-inline-start: 10px;
}

/* FAQ */
.faq-section {
  padding: 116px 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 18px 0 18px 58px;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  inset-inline-start: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  max-width: 720px;
  margin: -2px 0 0;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

/* Closing */
.closing {
  padding: 105px 0;
  border-block: 1px solid var(--line);
  background: var(--primary-c);
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items: end;
  gap: 80px;
}

.closing h2 {
  color: var(--on-primary-c);
  font-size: clamp(44px, 6.6vw, 82px);
  font-weight: 890;
  letter-spacing: -.055em;
}

.closing-action p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

/* Documents, including privacy.html */
article.doc {
  max-width: 780px;
  padding: 58px 0 68px;
}

article.doc h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 860;
  letter-spacing: -.035em;
}

article.doc h2 {
  margin: 42px 0 10px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
}

article.doc p,
article.doc li {
  color: var(--text);
}

article.doc .updated {
  margin: 0 0 34px;
  color: var(--muted);
}

article.doc ol,
article.doc ul {
  padding-inline-start: 25px;
}

article.doc li {
  margin-bottom: 8px;
}

article.doc a {
  overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  }

  .hero-phone-primary {
    width: 290px;
  }

  .hero-phone-secondary {
    width: 240px;
  }

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

  .check-card {
    min-height: 280px;
    border-bottom: 1px solid var(--line);
  }

  .check-card:nth-child(3) {
    border-inline-start: 1px solid var(--line);
  }

  .check-card:nth-child(n + 3) {
    border-bottom: 0;
  }

  .check-index {
    margin-bottom: 48px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 58px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 42px;
  }

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

  .hero-visual {
    width: min(100%, 590px);
    height: 590px;
    margin-inline: auto;
  }

  .split-heading,
  .privacy-layout,
  .closing-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-heading > p {
    max-width: 680px;
  }

  .privacy-layout {
    gap: 54px;
  }

  .closing-action {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 20px;
  }

  header.top .wrap {
    min-height: 68px;
    gap: 10px;
  }

  .hide-sm {
    display: none !important;
  }

  header.top nav {
    gap: 6px;
  }

  .btn.small {
    padding-inline: 13px;
    font-size: 13px;
  }

  .hero {
    padding: 44px 0 66px;
    background-size: 78px 100%, 100% 100%;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .hero .lead {
    margin-top: 22px;
    font-size: 18px;
  }

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

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

  .cta-note {
    text-align: center;
  }

  .trust {
    gap: 7px;
    margin-top: 24px;
  }

  .trust li {
    padding: 7px 10px;
    font-size: 13px;
  }

  .hero-visual {
    height: 430px;
  }

  .hero-orbit {
    inset: 6% 0 4%;
  }

  .hero-phone-primary {
    inset-block-start: 32px;
    inset-inline-start: 2%;
    width: min(55vw, 212px);
    padding: 6px;
    border-radius: 27px;
  }

  .hero-phone-secondary {
    inset-block-start: 102px;
    inset-inline-end: 1%;
    width: min(48vw, 184px);
    padding: 6px;
    border-radius: 25px;
  }

  .hero-phone img {
    border-radius: 21px;
  }

  .money-signal {
    inset-inline-start: 3%;
    inset-block-end: 10px;
    max-width: 230px;
    font-size: 13px;
  }

  .checks-section,
  .how-section,
  .tour-section,
  .faq-section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

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

  .section-heading > p:last-child,
  .split-heading > p {
    font-size: 17px;
  }

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

  .check-card,
  .check-card:first-child,
  .check-card:nth-child(3) {
    min-height: 0;
    padding: 27px 22px 30px;
    border-inline: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .check-card:last-child {
    border-bottom: 0;
  }

  .check-index {
    margin-bottom: 34px;
  }

  .step-list li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .step-list p {
    font-size: 16px;
  }

  .section-action .btn {
    width: 100%;
  }

  .tour {
    gap: 22px;
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
  }

  .tour figure {
    flex-basis: min(74vw, 270px);
  }

  .tour .phone {
    width: min(74vw, 270px);
  }

  .privacy-band {
    padding: 78px 0;
  }

  .privacy-band h2 {
    font-size: 46px;
  }

  .privacy-content li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 21px 0;
  }

  summary {
    min-height: 70px;
    padding-inline-start: 50px;
    font-size: 18px;
  }

  .closing {
    padding: 76px 0;
  }

  .closing h2 {
    font-size: 48px;
  }

  .closing-action .btn {
    width: 100%;
  }

  article.doc {
    padding: 42px 0 54px;
  }

  article.doc h2 {
    margin-top: 34px;
  }
}

@media (max-width: 430px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand {
    flex: 0 0 40px;
  }

  header.top nav {
    margin-inline-start: auto;
  }

  .hero h1 {
    letter-spacing: -.05em;
  }

  .phone {
    border-radius: 30px;
  }

  .phone img {
    border-radius: 23px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn:hover {
    transform: none;
  }
}
