/* Colours mirror mobile/src/constants/theme.ts so the site looks like the app. */
:root {
  --primary: #4f46e5;
  --primary-pressed: #4338ca;
  --primary-soft: #eef2ff;
  --on-primary: #ffffff;
  --accent: #4f46e5;
  --route: #d946ef;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #64748b;
  --success: #16a34a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #a5b4fc;
    --primary-soft: #312e81;
    --bg: #0b1020;
    --surface: #111827;
    --surface-alt: #1e293b;
    --border: #334155;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --success: #6ee7b7;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.wordmark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.wordmark span {
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .wordmark span {
    color: var(--accent);
  }
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.site-header nav a:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.site-header nav .lang {
  border: 1px solid var(--border);
  margin-left: 4px;
}

@media (max-width: 720px) {
  .nav-optional {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 24px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
}

.hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--primary), var(--route));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 20px 0 28px;
  max-width: 36rem;
}

.phone {
  margin: 0;
  border-radius: 44px;
  padding: 10px;
  background: #0f172a;
  box-shadow: var(--shadow), inset 0 0 0 2px #334155;
}

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

.hero-phone {
  width: min(330px, 100%);
  justify-self: center;
  transform: rotate(2deg);
}

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-phone {
    width: min(280px, 80%);
    transform: none;
  }
}

/* Store buttons */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.15;
}

.store:hover {
  opacity: 0.9;
}

.store small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
}

.store-soon {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: default;
}

.store-icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
}

.section-lead {
  color: var(--text-secondary);
  margin: 10px 0 0;
}

.steps,
.features {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.features {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
}

.step,
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.section-alt .feature {
  background: var(--bg);
}

.step h3,
.feature h3 {
  font-size: 1.12rem;
  margin: 14px 0 6px;
}

.step p,
.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.97rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--accent);
}

.icon {
  width: 24px;
  height: 24px;
}

.shots {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  justify-items: center;
}

.phone-small {
  width: min(270px, 100%);
  border-radius: 38px;
  padding: 8px;
}

.phone-small img {
  border-radius: 30px;
}

@media (max-width: 720px) {
  .shots {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 0 20px 12px;
    justify-items: stretch;
  }

  .shots .phone {
    scroll-snap-align: center;
    width: 100%;
  }
}

.privacy-band {
  text-align: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px auto 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  max-width: 720px;
  text-align: left;
}

@media (max-width: 720px) {
  .checks {
    grid-template-columns: 1fr;
  }
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}

.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--success);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta h2 {
  max-width: 22ch;
}

.stores {
  justify-content: inherit;
}

.cta .stores {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
}

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

.site-footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 28px;
  font-size: 0.85rem;
}

/* Documents (legal, support) */
.doc {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
}

.doc h2 {
  font-size: 1.25rem;
  margin: 36px 0 8px;
}

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

.doc strong {
  color: var(--text);
}

.doc .lead {
  margin-bottom: 8px;
}

.doc ol {
  padding-left: 1.3rem;
}

.meta {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact {
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-pressed);
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);
}

.button-secondary:hover {
  background: var(--surface-alt);
}

.not-found {
  text-align: center;
}

.not-found .big {
  font-size: 5rem;
  font-weight: 800;
  margin: 0;
  color: var(--accent);
}

.muted {
  color: var(--text-secondary);
}

[hidden] {
  display: none !important;
}

/* Share page */
.share {
  max-width: 640px;
  padding-top: 36px;
  padding-bottom: 64px;
}

.share-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(22px, 5vw, 36px);
  box-shadow: var(--shadow);
}

.share-card h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.share-card > p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.share-items {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
}

.share-items li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.share-items li.sub {
  padding-left: 26px;
}

.share-items .marker {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.share-items .name {
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.share-items a.name {
  text-decoration: none;
}

.share-items a.name:hover {
  text-decoration: underline;
}

.share-items .area {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--text);
}

.share-install {
  margin-top: 32px;
  text-align: center;
}

.share-install .stores {
  justify-content: center;
  margin-top: 14px;
}

.share-privacy {
  font-size: 0.85rem;
  margin-top: 20px;
}

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