/* Brand tokens: change colors here to update the whole site. */
:root {
  --background: #fff;
  --foreground: hsl(220 20% 10%);
  --muted: hsl(220 10% 46%);
  --primary: hsl(217 91% 50%);
  --accent: hsl(217 91% 95%);
  --border: hsl(220 13% 91%);
  --hero-gradient: linear-gradient(160deg, hsl(220 30% 8%), hsl(217 60% 15%));
  --brand-shadow: 0 8px 32px -8px hsl(217 91% 50% / 25%);
  --brand-shadow-large: 0 24px 64px -16px hsl(217 91% 50% / 30%);
}

/* Foundations and keyboard accessibility. */
* { box-sizing: border-box; }
body { margin: 0; color: var(--foreground); background: var(--background); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: 3rem; line-height: 1.1; font-weight: 700; }
h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .9; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Shared header and footer. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--border); background: rgb(255 255 255 / 80%); backdrop-filter: blur(16px); }
.navigation { display: flex; justify-content: space-between; align-items: center; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; font-size: 1.125rem; font-weight: 700; }
.brand img { border-radius: .5rem; }
.nav-links { display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; padding: 1rem 1.75rem; border-radius: 1rem; background: var(--primary); color: white; font-weight: 600; box-shadow: var(--brand-shadow); }
.button-small { padding: .5rem 1.25rem; border-radius: 999px; font-size: .875rem; box-shadow: none; }
.button-outline { border: 1px solid rgb(255 255 255 / 20%); background: transparent; color: rgb(255 255 255 / 80%); box-shadow: none; }
.button-outline:hover { background: rgb(255 255 255 / 5%); }
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }
.footer-content nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }

/* Hero and the three original app screenshots. */
.hero { position: relative; overflow: hidden; padding-block: 8rem 5rem; background: var(--hero-gradient); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, hsl(217 91% 50% / 8%), transparent 70%); pointer-events: none; }
.hero-layout { position: relative; display: grid; align-items: center; gap: 3rem; }
.hero-copy { text-align: center; }
.store-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem 1rem; margin-bottom: 1.5rem; border: 1px solid hsl(217 91% 50% / 30%); border-radius: 999px; background: hsl(217 91% 50% / 10%); color: rgb(255 255 255 / 80%); font-size: .875rem; }
.store-badge img { border-radius: .25rem; }
.brand-text { background: linear-gradient(135deg, hsl(217 91% 50%), hsl(217 91% 60%)); background-clip: text; color: transparent; }
.hero-description { max-width: 32rem; margin: 1.5rem auto 0; color: rgb(255 255 255 / 60%); font-size: 1.25rem; line-height: 1.5; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.hero-phones { display: flex; justify-content: center; align-items: flex-end; gap: .75rem; }
.phone { min-width: 0; border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%); }
.phone-side { width: 140px; transform: translateY(2rem); opacity: .9; }
.phone-center { width: 160px; box-shadow: var(--brand-shadow-large); }

/* Features, steps, screenshots and privacy cards. */
.section { padding-block: 5rem; }
.section-tinted { background: linear-gradient(180deg, hsl(220 20% 98%), white); }
.section-heading { margin: 0 auto 3.5rem; text-align: center; }
.section-heading p { max-width: 42rem; margin: 1rem auto 0; color: var(--muted); font-size: 1.125rem; }
.features-grid, .privacy-grid, .steps-grid { display: grid; gap: 1.25rem; }
.feature-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: white; box-shadow: 0 2px 8px rgb(0 0 0 / 2%); }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p, .step p { color: var(--muted); font-size: .875rem; line-height: 1.625; }
.icon-box { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: .75rem; background: var(--accent); color: hsl(217 91% 40%); }
.icon-box svg { width: 1.25rem; height: 1.25rem; }
.steps-grid { max-width: 56rem; margin-inline: auto; gap: 2rem; }
.step { text-align: center; }
.step-number { display: flex; justify-content: center; align-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--primary); color: white; font-size: 1.25rem; font-weight: 700; }
.step h3 { margin-bottom: .5rem; }
.screenshot-gallery { display: flex; align-items: flex-start; gap: 1rem; overflow-x: auto; padding-block: .25rem 1rem; scroll-snap-type: x mandatory; }
.screenshot-gallery img { flex-shrink: 0; width: 220px; border-radius: 1.5rem; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%); scroll-snap-align: center; }
.widgets-preview { max-width: 28rem; margin: 4rem auto 0; }
.widgets-preview figcaption { margin-top: 1rem; text-align: center; color: var(--muted); font-size: .875rem; }
.privacy-grid { max-width: 48rem; margin-inline: auto; }
.privacy-grid .feature-card { display: flex; gap: 1rem; }
.privacy-grid .icon-box { width: 2.5rem; height: 2.5rem; flex-shrink: 0; margin: 0; }
.privacy-grid h3 { font-size: 1rem; margin-bottom: .25rem; }

/* Native, accessible FAQ accordion. */
.faq { max-width: 42rem; }
.faq details { margin-block: .5rem; padding-inline: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: white; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; align-self: center; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding-bottom: 1rem; color: var(--muted); font-size: .875rem; line-height: 1.625; }
.call-to-action { padding: 3.5rem 1.5rem; border-radius: 1.5rem; background: var(--hero-gradient); color: white; text-align: center; }
.call-to-action > img { margin: 0 auto 1.5rem; border-radius: 1rem; }
.call-to-action p { max-width: 28rem; margin: 1rem auto 2rem; color: rgb(255 255 255 / 60%); font-size: 1.125rem; }

/* Privacy and not-found pages. */
.policy { max-width: 48rem; padding-block: 7rem 5rem; }
.policy-article > a { display: inline-block; margin-bottom: 2rem; color: var(--muted); font-size: .875rem; }
.policy h1 { font-size: 3rem; margin-bottom: .5rem; }
.policy-article > p { color: var(--muted); margin-bottom: 2.5rem; }
.policy section { margin-bottom: 2.5rem; font-size: .9375rem; line-height: 1.625; }
.policy h2 { font-size: 1.875rem; margin-bottom: 1rem; }
.policy p + p, .policy ul { margin-top: .75rem; }
.policy li + li { margin-top: .5rem; }
.policy section a, .not-found a { color: var(--primary); text-decoration: underline; }
.not-found { min-height: 80vh; display: grid; place-content: center; gap: 1rem; text-align: center; }

/* Responsive layout. Keep small screens usable without hiding content. */
@media (min-width: 640px) {
  .features-grid, .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-content { flex-direction: row; }
}
@media (min-width: 768px) {
  h1 { font-size: 4rem; }
  h2, .call-to-action h2 { font-size: 3rem; }
  .hero { padding-block: 10rem 8rem; }
  .section { padding-block: 7rem; }
  .hero-phones { gap: 1rem; }
  .phone-side { width: 180px; }
  .phone-center { width: 210px; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screenshot-gallery { justify-content: center; gap: 1.5rem; }
  .screenshot-gallery img { width: 260px; }
}
@media (min-width: 1024px) {
  .hero-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { text-align: left; }
  .hero-description { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
