:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f6673;
  --line: #dce2ea;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --blue: #167dfc;
  --navy: #122b59;
  --mint: #e9fbf6;
  --sky: #eaf4ff;
  --teal: #0f766e;
  --amber: #b7791f;
  --rose: #b91c1c;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 226, 234, 0.84);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  gap: 20px;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: #303642;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 26%, rgba(22, 125, 252, 0.2), transparent 28%),
    radial-gradient(circle at 74% 78%, rgba(15, 118, 110, 0.18), transparent 24%),
    linear-gradient(116deg, #ffffff 0%, #f7fbff 42%, #dceffd 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 86px;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-stage::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: min(820px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(191, 230, 219, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-screen {
  position: absolute;
  margin: 0;
  display: block;
  z-index: 2;
  border: 1px solid rgba(220, 226, 234, 0.9);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.16);
}

.hero-screen img {
  display: block;
  width: 100%;
}

.hero-screen-main {
  right: 12.5%;
  bottom: -7%;
  top: auto;
  width: min(440px, 32vw);
  transform: rotate(1deg);
  z-index: 4;
}

.hero-screen-left {
  right: 31%;
  bottom: -5%;
  width: min(410px, 30vw);
  transform: rotate(-6deg);
  opacity: 0.96;
}

.hero-screen-right {
  right: -3.8%;
  bottom: -5%;
  width: min(410px, 30vw);
  transform: rotate(6deg);
  opacity: 0.96;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
}

.hero-copy {
  max-width: 590px;
  margin: 20px 0 0;
  color: #343b47;
  font-size: 1.18rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 10px 16px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.google-play-badge {
  display: block;
  height: auto;
  margin-left: -12px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #263244;
  font-size: 0.97rem;
  font-weight: 760;
}

.trust-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(22, 125, 252, 0.24);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.1 13.8 4.6 10.3l1.4-1.4 2.1 2.1 5.9-5.9 1.4 1.4z' fill='white'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, #f7faff 0%, #f4f8f6 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #167dfc 0%, #125fd2 58%, #0b3f9e 100%);
  color: #fff;
}

.intro-band .eyebrow {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 9px;
  color: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.intro-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.intro-grid p:not(.eyebrow) {
  margin: 0;
  color: #eaf4ff;
  font-size: 1.08rem;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.level-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.level {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.level span {
  color: var(--muted);
  font-size: 0.94rem;
}

.level b {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
}

.screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: center;
}

.screen-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.screen-card.featured {
  transform: translateY(-12px);
}

.screen-card.dark-card {
  background: transparent;
  box-shadow: none;
}

.screen-card img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.1);
}

.screen-card figcaption {
  padding: 14px 6px 0;
  color: #3f4754;
  font-weight: 650;
  line-height: 1.45;
}

.screen-card.dark-card figcaption {
  color: #3f4754;
}

.premium-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #bfe6db;
  border-radius: var(--radius);
  background: var(--mint);
  padding: 16px 18px;
}

.premium-note strong {
  color: var(--teal);
}

.premium-actions {
  margin-top: 18px;
}

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

.policy-link {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.policy-link:hover {
  border-color: rgba(22, 125, 252, 0.55);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.policy-link strong,
.policy-link span {
  display: block;
}

.policy-link span {
  margin-top: 8px;
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--amber);
  background: #fffaf0;
  padding: 18px 20px;
  border-radius: var(--radius);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
}

.legal {
  max-width: 840px;
}

.legal h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.legal h2 {
  margin-top: 36px;
  font-size: 1.55rem;
}

.legal p,
.legal li {
  color: #363d48;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

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

.legal-meta {
  color: var(--muted);
  font-weight: 650;
}

.side-note {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--soft);
}

.side-note p {
  margin: 0 0 12px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111827;
  color: #e5e7eb;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-inner a {
  color: #dbeafe;
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .trust-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-grid,
  .level-strip,
  .intro-grid,
  .policy-grid,
  .screen-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .screen-card.featured {
    transform: none;
  }

  .side-note {
    position: static;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ── Tablet: text on top, screenshots below (3-up) ── */
@media (max-width: 1199px) {
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 4rem 0 2rem;
  }

  .hero-inner {
    padding: 0;
    width: min(720px, calc(100% - 32px));
    text-align: center;
  }

  .hero-inner h1 {
    max-width: 100%;
  }

  .hero-inner .hero-copy {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .eyebrow {
    margin-top: 1rem;
  }

  .hero-inner .actions {
    justify-content: center;
  }

  .hero-stage {
    position: static;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 2.5rem;
    padding: 0 1rem;
  }

  .hero-stage::before {
    display: none;
  }

  .hero-screen {
    position: static;
    width: 180px;
    flex: 0 0 auto;
    transform: none;
    opacity: 1;
    border-radius: 16px;
  }

  .hero-screen img {
    width: 100%;
  }
}

/* ── Mobile: single screenshot ── */
@media (max-width: 767px) {
  .hero {
    padding: 3rem 0 1.5rem;
  }

  .hero-inner {
    width: calc(100% - 32px);
  }

  .hero-inner .hero-copy {
    max-width: 100%;
  }

  .hero-stage {
    margin-top: 2rem;
  }

  .hero-screen {
    width: 200px;
  }

  .hero-screen-left,
  .hero-screen-right {
    display: none;
  }
}
