/* 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-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;
  }
}

/* Invite page */
.eyebrow-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
}

.open-app {
  display: inline-block;
  margin-top: 20px;
}

/* Pricing */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.plans {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.plan-premium {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      color-mix(in srgb, var(--primary) 12%, transparent),
      transparent 60%
    ),
    var(--surface);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-head h3 {
  font-size: 1.25rem;
}

.plan-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--route));
  color: var(--on-primary);
  white-space: nowrap;
}

.plan-price {
  margin: 16px 0 4px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-price strong {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price span,
.plan-price s {
  color: var(--text-secondary);
  font-weight: 600;
}

.plan-price s {
  font-size: 1.15rem;
}

.plan-note {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
}

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

.plan-trial {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  max-width: 880px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
}

.plan-trial svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.compare-wrap {
  margin-top: 36px;
  max-width: 880px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  background: var(--surface-alt);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.compare thead .compare-premium {
  color: var(--accent);
}

.compare tbody th {
  font-weight: 600;
}

.compare td {
  width: 28%;
  color: var(--text-secondary);
}

.compare td:last-child {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  color: var(--text);
  font-weight: 600;
}

.compare svg {
  width: 22px;
  height: 22px;
  display: block;
}

.compare .yes svg {
  color: var(--success);
}

.compare .no svg {
  color: var(--text-secondary);
  opacity: 0.6;
}

.pricing-notes {
  max-width: 880px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.pricing-notes p {
  margin: 4px 0;
}

.pricing-cta {
  max-width: 880px;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pricing-cta h3 {
  font-size: 1.4rem;
}

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

  .plan {
    padding: 22px;
  }

  .compare {
    font-size: 0.88rem;
  }

  .compare th,
  .compare td {
    padding: 12px 10px;
  }

  .compare thead th {
    font-size: 0.72rem;
  }

  .compare td {
    width: 30%;
  }
}

/* Campaigns and announcements follow the site's existing colours and card rhythm. */
.campaigns-hero {
  padding: 64px 0 48px;
  background: radial-gradient(
    ellipse at 85% 0%,
    color-mix(in srgb, var(--primary) 14%, transparent),
    transparent 60%
  );
  border-bottom: 1px solid var(--border);
}
.campaigns-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 820px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.campaigns-hero .section-lead {
  max-width: 680px;
  font-size: 1.15rem;
  margin-top: 20px;
}
.campaigns-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}
.campaigns-content {
  padding-top: 36px;
  min-height: 440px;
}
.campaign-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.campaign-filters button {
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer;
}
.campaign-filters button[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.campaign-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.campaign-card,
.campaign-detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-width: 0;
  box-shadow: 0 5px 20px rgb(15 23 42 / 3%);
}
.campaign-card h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.campaign-badge {
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  background: var(--primary-soft);
  color: var(--accent);
  border-radius: 999px;
}
.campaign-creator {
  font-weight: 600;
  margin: 12px 0 0;
  color: var(--text-secondary);
}
.campaign-period {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 12px 0 20px;
}
.campaign-card-copy {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-secondary);
  white-space: pre-line;
}
.campaign-card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  text-decoration: none;
}
.announcement-body,
.campaign-terms {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.campaign-empty {
  text-align: center;
  padding: 52px 24px 36px;
  max-width: 680px;
  margin: auto;
}
.campaign-empty > .icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin: 0 auto 20px;
}
.campaign-empty h2 {
  font-size: 1.8rem;
}
.campaign-empty p {
  color: var(--text-secondary);
}
.campaign-empty[hidden],
.stores[hidden] {
  display: none;
}
.campaign-detail {
  max-width: 880px;
}
.campaign-back {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.campaign-detail-panel h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  overflow-wrap: anywhere;
}
.campaign-detail-panel .stores {
  margin-top: 32px;
}
#feed-more,
#feed-retry {
  margin-top: 28px;
}
@media (max-width: 720px) {
  .campaigns-hero {
    padding: 40px 0 32px;
  }
  .campaign-feed {
    grid-template-columns: 1fr;
  }
  .campaign-card,
  .campaign-detail-panel {
    padding: 24px;
  }
  .site-header nav a {
    padding: 8px 7px;
    font-size: 0.8rem;
  }
  .header-inner {
    gap: 8px;
  }
}
.campaigns-content [hidden],
.campaign-detail [hidden] {
  display: none !important;
}
.campaigns-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.campaigns-page .button:hover {
  background: var(--primary-pressed);
}
.campaign-card summary {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
}
.campaign-card:has(details[open]) .campaign-card-copy {
  display: none;
}
@media (max-width: 720px) {
  .campaign-filters {
    gap: 6px;
  }
  .campaign-filters button {
    font-size: 0.88rem;
    padding: 9px 14px;
  }
}
@media (max-width: 480px) {
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 6px;
  }
  .site-header .brand {
    flex-shrink: 0;
  }
  .site-header nav {
    width: 100%;
    justify-content: center;
  }
  .site-header nav a {
    font-size: 0.9rem;
    padding: 7px 9px;
  }
}
.past-campaigns {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.past-campaigns h2 {
  font-size: clamp(1.7rem, 4vw, 2.25rem);
}
.past-campaigns > .campaign-feed {
  margin-top: 28px;
}
.campaign-badge-ended {
  background: var(--surface-alt);
  color: var(--text-secondary);
}
