:root {
  color-scheme: light;
  --ink: #172129;
  --muted: #58646d;
  --subtle: #7b8790;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #dfe5df;
  --sky: #ffe3a3;
  --sun: #f6c75c;
  --coral: #f08a5d;
  --water: #2e6f8e;
  --deep: #173a52;
  --green: #2d8c69;
  --shadow: 0 18px 50px rgba(23, 58, 82, 0.16);
  --inner: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 227, 163, 0.16), transparent 360px),
    var(--paper);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.4) blur(18px);
  background: rgba(251, 252, 248, 0.82);
  border-bottom: 1px solid rgba(223, 229, 223, 0.75);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 58, 82, 0.2);
}

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

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(46, 111, 142, 0.09);
  outline: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 70svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 243, 207, 0.72), transparent 20rem),
    linear-gradient(180deg, rgba(255, 227, 163, 0.98) 0%, rgba(255, 180, 107, 0.92) 42%, rgba(46, 111, 142, 0.96) 42%, #173a52 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.92) 0%, rgba(251, 252, 248, 0.72) 42%, rgba(251, 252, 248, 0.08) 76%),
    linear-gradient(180deg, transparent 0%, rgba(23, 33, 41, 0.22) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10svh;
  width: 320px;
  height: 34px;
  transform: translateX(-12%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 217, 160, 0.94), transparent);
  box-shadow:
    72px 84px 0 -10px rgba(255, 217, 160, 0.42),
    120px 154px 0 -16px rgba(255, 217, 160, 0.28);
  opacity: 0.9;
}

.hero-inner {
  width: var(--inner);
  min-height: 70svh;
  margin: 0 auto;
  position: relative;
  display: grid;
  align-items: center;
  padding: 34px 0 40px;
}

.hero-copy {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

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

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  color: #28333b;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.store-link,
.button-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(23, 33, 41, 0.12);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(23, 33, 41, 0.22);
}

.store-link span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  line-height: 1;
}

.store-link strong {
  display: block;
  margin-top: 3px;
  font-size: 1.14rem;
  line-height: 1;
}

.store-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  font-weight: 800;
}

.button-link {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: none;
}

.button-link:hover,
.button-link:focus-visible,
.store-link:hover,
.store-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(23, 58, 82, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 700;
}

/* The screenshots are full App Store frames (background + caption + device),
   so they are shown directly with rounded corners and a shadow - never wrapped
   in another phone mockup, which would nest a device inside a device. */
.hero-visual {
  position: absolute;
  right: clamp(-32px, 4vw, 28px);
  bottom: -96px;
  width: min(34vw, 360px);
  min-width: 280px;
  z-index: 1;
}

.hero-shot {
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(10, 26, 36, 0.36);
}

.hero-shot.front {
  position: relative;
  display: block;
  width: 80%;
  z-index: 2;
  transform: rotate(-3deg);
}

.hero-shot.back {
  position: absolute;
  right: 0;
  bottom: 96px;
  width: 70%;
  z-index: 1;
  transform: rotate(6deg);
}

main > section,
.page-section {
  padding: 78px 0;
}

.section-inner {
  width: var(--inner);
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.answer,
.feature,
.support-card,
.step,
.doc-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 33, 41, 0.04);
}

.answer,
.feature,
.support-card {
  padding: 22px;
}

.answer-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(246, 199, 92, 0.24);
  color: #996316;
  font-weight: 900;
}

.answer p,
.feature p,
.support-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.band {
  background: linear-gradient(180deg, rgba(46, 111, 142, 0.08), rgba(45, 140, 105, 0.06));
  border-block: 1px solid rgba(46, 111, 142, 0.12);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
}

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

.calm-panel {
  border-radius: 8px;
  padding: 26px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 243, 207, 0.75), transparent 142px),
    linear-gradient(180deg, #ffe3a3 0%, #ffb46b 46%, #2e6f8e 46%, #173a52 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.calm-panel .metric {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.metric small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metric strong {
  display: block;
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
}

.metric .ok {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(45, 140, 105, 0.14);
  color: #246f55;
  font-weight: 800;
}

.shot-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 2px 0 4px;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(23, 58, 82, 0.12);
}

.shot img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
}

.privacy-band {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 58, 82, 0.94), rgba(45, 140, 105, 0.82)),
    #173a52;
}

.privacy-band .section-head p,
.privacy-band .section-kicker {
  color: rgba(255, 255, 255, 0.78);
}

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

.privacy-list div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.privacy-list b {
  display: block;
  margin-bottom: 6px;
}

.privacy-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.page-hero {
  padding: 76px 0 58px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 227, 163, 0.72), transparent 300px),
    linear-gradient(180deg, rgba(46, 111, 142, 0.11), rgba(45, 140, 105, 0.05));
  border-bottom: 1px solid rgba(46, 111, 142, 0.12);
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  gap: 34px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
}

.page-icon {
  justify-self: end;
  width: min(100%, 230px);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 38px;
  align-items: start;
}

.onboarding-steps {
  display: grid;
  gap: 14px;
}

.onboarding-steps .step {
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 22px;
}

.side-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.side-panel .shot {
  min-width: 0;
}

.checklist {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checklist ul,
.doc-content ul {
  padding-left: 1.15rem;
}

.checklist li,
.doc-content li {
  margin: 0.45rem 0;
}

.doc-shell {
  width: min(900px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 68px 0 88px;
}

.doc-content {
  font-size: 1.02rem;
}

.doc-content h2 {
  margin: 42px 0 12px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.doc-content h3 {
  margin-top: 28px;
}

.doc-content p,
.doc-content li {
  color: #34404a;
}

.doc-content a {
  color: var(--water);
  font-weight: 700;
}

.doc-note {
  margin: 26px 0;
  padding: 18px;
  background: rgba(246, 199, 92, 0.16);
}

.legal-meta {
  color: var(--subtle);
  font-weight: 700;
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: var(--inner);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 900px) {
  .answer-grid,
  .feature-grid,
  .support-grid,
  .privacy-list,
  .workflow,
  .onboarding-layout,
  .page-hero .section-inner {
    grid-template-columns: 1fr;
  }

  .page-icon {
    justify-self: start;
    width: 140px;
    border-radius: 24px;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --inner: min(100vw - 28px, 1120px);
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-links {
    max-width: 220px;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 0.86rem;
  }

  .nav-links a {
    min-height: 34px;
    padding: 0 8px;
  }

  .hero,
  .hero-inner {
    min-height: 74svh;
  }

  .hero-inner {
    align-items: start;
    padding: 38px 0 46px;
  }

  .lead {
    max-width: 92%;
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
  }

  .store-link,
  .button-link {
    width: 100%;
  }

  .hero-points {
    max-width: 74%;
  }

  .hero-visual {
    right: -96px;
    bottom: -130px;
    width: 250px;
    min-width: 250px;
    opacity: 0.78;
  }

  .hero-shot.front {
    width: 100%;
  }

  .hero-shot.back {
    display: none;
  }

  main > section,
  .page-section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 54px 0 42px;
  }

  .footer-inner {
    display: grid;
  }
}
