/* Kept website. One stylesheet, no build step. Light by default, dark when the device is dark. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-tint: #eef4ff;
  --card: #ffffff;
  --border: #e4e7ec;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --brand: #3b82f6;
  --brand-strong: #2563eb;
  --brand-soft: #e5efff;
  --phone: #0f172a;
  --shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.35);
  --radius: 16px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-soft: #12161e;
    --bg-tint: #101a2e;
    --card: #161a22;
    --border: #262b36;
    --text: #f1f5f9;
    --text-2: #a3b0c2;
    --text-3: #64748b;
    --brand: #4f8ff7;
    --brand-strong: #3b82f6;
    --brand-soft: #172554;
    --phone: #000000;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  color: var(--text-2);
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-tint), var(--bg));
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
h1 .accent {
  color: var(--brand);
}
.lede {
  font-size: 19px;
  color: var(--text-2);
  max-width: 34em;
  margin: 0 0 28px;
}
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-2);
}
.sources span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}
.hero-phones {
  position: relative;
  height: 600px;
}
.hero-phones .phone {
  position: absolute;
  width: 270px;
}
.hero-phones .phone.front {
  left: 8%;
  top: 0;
  z-index: 2;
}
.hero-phones .phone.back {
  right: 2%;
  top: 70px;
  transform: rotate(4deg);
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-phones {
    height: 520px;
  }
  .hero-phones .phone {
    width: 230px;
  }
  .hero-phones .phone.front {
    left: calc(50% - 215px);
  }
  .hero-phones .phone.back {
    right: calc(50% - 215px);
  }
}
@media (max-width: 480px) {
  .hero {
    padding-top: 40px;
  }
  .hero-phones {
    height: 440px;
  }
  .hero-phones .phone {
    width: 190px;
  }
  .hero-phones .phone.front {
    left: calc(50% - 175px);
  }
  .hero-phones .phone.back {
    right: calc(50% - 175px);
  }
}

/* Phone frame around screenshots */
.phone {
  border: 9px solid var(--phone);
  border-radius: 46px;
  overflow: hidden;
  background: var(--phone);
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  height: auto;
}

/* Sections */
section {
  padding: 88px 0;
}
section.soft {
  background: var(--bg-soft);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.section-head p {
  color: var(--text-2);
  font-size: 18px;
  margin: 0;
}

/* Problem cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 18px;
  margin: 12px 0 6px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}
.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.icon-bubble svg {
  width: 22px;
  height: 22px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}
.step-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.step-list h3 {
  margin: 4px 0 4px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.step-list p {
  margin: 0;
  color: var(--text-2);
}
.steps .phone {
  width: 300px;
  margin: 0 auto;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 20px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery figure {
  margin: 0;
  flex: 0 0 240px;
  scroll-snap-align: center;
}
.gallery figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 14px;
}
/* Centered when everything fits, scrollable from the first item when it doesn't
   (justify-content: center would cut off the left side). */
.gallery > figure:first-child {
  margin-left: auto;
}
.gallery > figure:last-child {
  margin-right: auto;
}
@media (min-width: 1100px) {
  .gallery figure {
    flex-basis: 210px;
  }
}

/* Privacy promise */
.promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 820px) {
  .promise {
    grid-template-columns: 1fr 1fr;
  }
}
.promise div {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.promise div span {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--text-3);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--text-2);
  margin: 10px 0 0;
}

/* CTA */
.cta {
  text-align: center;
}
.cta .card {
  padding: 56px 24px;
  background: var(--bg-tint);
  border-color: transparent;
}
.cta .store-buttons {
  justify-content: center;
  margin-top: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-2);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer a {
  color: var(--text-2);
}

/* Legal pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 46px);
}
.doc .meta {
  color: var(--text-3);
  margin: -8px 0 32px;
  font-size: 15px;
}
.doc h2 {
  font-size: 24px;
  margin: 40px 0 10px;
}
.doc h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}
.doc p,
.doc li {
  color: var(--text-2);
}
.doc strong {
  color: var(--text);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}
.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc th {
  color: var(--text);
  font-weight: 600;
}
.doc td {
  color: var(--text-2);
}
.table-scroll {
  overflow-x: auto;
}
.note {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.note p {
  margin: 0;
  color: var(--text);
}
ol.big-steps {
  padding-left: 22px;
}
ol.big-steps li {
  margin: 8px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
