/* Hallmark · genre: modern-minimal · macrostructure: Split Studio · theme: custom "Activera Light"
 * nav: N5 floating pill (width: content · backdrop: blur · anchor: top-centred)
 * footer: Ft1 mast-headed (wordmark plate · tagline roman · links inline)
 * H2 split-diptych hero (ratio 6/6 · right: screenshot figure · divider: negative space)
 * F3 tabular spec sheet for plans (3 columns · rules every row · proportional numerals)
 * designed-as-app — all pages share this system. See assets/tokens.css for tokens.
 */

/* ─── Base ──────────────────────────────────────────────────────── */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

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

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

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

main { display: block; }

/* ─── Brand plate — white wordmark on navy ──────────────────────────
   The wordmark asset is white art on a transparent square canvas; the
   word sits in the vertical centre. object-fit: cover on a wide, short
   plate trims only transparent padding — the artwork itself is never
   cropped, stretched, or recoloured. */

.brand-plate {
  display: inline-flex;
  background: var(--color-navy-plate);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-plate--nav    { width: 8.25rem; height: 2.25rem; }
.brand-plate--footer { width: 11.5rem; height: 3.125rem; }

/* Black transparent logo — no background box needed */
.brand-logo {
  display: block;
  height: 1.4rem;
  width: auto;
}

.brand-logo--footer {
  height: 1.5rem;
  width: auto;
}

/* ─── Header — floating pill nav ────────────────────────────────── */

.site-header {
  position: sticky;
  top: var(--space-sm);
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: clamp(0.75rem, 3vw, 1.5rem);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 56rem;
  padding: 0.5rem 0.625rem 0.5rem 0.625rem;
  background: var(--color-nav-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.brand { display: inline-flex; align-items: center; border-radius: var(--radius-sm); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
  margin-right: 0.375rem;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}

.nav-links a:hover { color: var(--color-ink); }

/* ─── Sections ──────────────────────────────────────────────────── */

.section { padding-block: var(--space-3xl); }

.section--tint { background: var(--color-tint); }

.section-head { max-width: 38rem; margin-inline: auto; margin-bottom: var(--space-2xl); text-align: center; }

.section-head h2 { font-size: var(--text-display-s); font-weight: 650; }

.section-head p { margin-top: var(--space-sm); font-size: var(--text-md); }

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1rem, 4vw, 1.5rem);
  min-height: clamp(32rem, 76vh, 52rem);
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__heading {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.25rem, 4.5vw + 0.5rem, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0b0b0b;
  margin: 0;
}

.hero__sub {
  margin-top: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: #3c3c43;
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.875rem;
  padding: 0 1.5rem;
  border-radius: 980px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: #0b0b0b;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.hero__btn:hover { opacity: 0.78; color: #fff; }

.hero__btn--outline {
  background: transparent;
  color: #0b0b0b;
  box-shadow: inset 0 0 0 1.5px #0b0b0b;
}

.hero__btn--outline:hover { background: rgba(0, 0, 0, 0.06); opacity: 1; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual img {
  width: 100%;
  height: auto;
}

/* ─── Screenshot figures — real captures, hairline frame only ────── */

.shot {
  margin: 0;
  width: 100%;
  max-width: 18rem;
}

.shot__media {
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule-strong);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.shot__media img { width: 100%; height: 100%; object-fit: cover; }

.shot__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background:
    repeating-linear-gradient(-45deg,
      var(--color-tint) 0, var(--color-tint) 10px,
      var(--color-card) 10px, var(--color-card) 20px);
}

.shot__placeholder span {
  font-size: var(--text-xs);
  color: var(--color-faint);
  text-align: center;
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  padding: var(--space-2xs) var(--space-xs);
  overflow-wrap: anywhere;
}

.shot__caption {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
}

/* ─── Store badges ──────────────────────────────────────────────── */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.store-badges a {
  display: inline-flex;
  border-radius: var(--radius-sm);
  transition: opacity var(--dur-short) var(--ease-out);
}

.store-badges a:hover { opacity: 0.85; }

.store-badges img { height: 2.875rem; width: auto; }
.store-badges img[alt*="Google Play"] { height: 4.25rem; }

/* ─── Problem statement ─────────────────────────────────────────── */

.problem { text-align: center; }

.problem h2 {
  font-size: var(--text-display-s);
  font-weight: 650;
  max-width: 22ch;
  margin-inline: auto;
}

.problem p {
  margin: var(--space-md) auto 0;
  max-width: 52ch;
  font-size: var(--text-md);
}

/* ─── Feature cards ─────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--color-rule-strong);
  box-shadow: var(--shadow-soft);
}

.feature-card svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3xs);
}

.feature-card p { font-size: var(--text-sm); }

/* ─── Plans table (F3 tabular spec sheet) ───────────────────────── */

.plans-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.plans-table th, .plans-table td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-rule);
  vertical-align: top;
}

.plans-table thead th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-faint);
  background: var(--color-tint);
}

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

.plans-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-ink);
  white-space: nowrap;
}

.plans-table td { font-size: var(--text-sm); color: var(--color-muted); }

.plans-table .sched { white-space: nowrap; color: var(--color-ink-2); font-weight: 500; }

.plans-note {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-faint);
}

@media (max-width: 40rem) {
  .plans-table thead { display: none; }
  .plans-table, .plans-table tbody, .plans-table tr, .plans-table th, .plans-table td { display: block; }
  .plans-table tr { border-bottom: 1px solid var(--color-rule); padding: var(--space-sm) 0; }
  .plans-table tr:last-child { border-bottom: 0; }
  .plans-table th, .plans-table td { border-bottom: 0; padding: var(--space-3xs) var(--space-md); }
  .plans-table tbody th { white-space: normal; }
  .plans-table .sched { white-space: normal; }
}

/* ─── Screenshot showcase (large single-feature) ─────────────────── */

.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.showcase__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
}

.showcase__frame {
  width: clamp(22rem, 34vw, 30rem);
  flex-shrink: 0;
}

.showcase__frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(1.75rem, 2.5vw, 2.75rem);
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.1);
  transition: opacity 0.18s ease;
}

.showcase__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--color-rule-strong);
  background: var(--color-card);
  color: var(--color-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--dur-short) var(--ease-out),
              background  var(--dur-short) var(--ease-out);
}

.showcase__arrow:hover:not(:disabled) {
  border-color: var(--color-ink);
  background: var(--color-tint);
}

.showcase__arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.showcase__thumbs {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
}

.showcase__thumb {
  flex-shrink: 0;
  width: clamp(3.25rem, 5.5vw, 4.5rem);
  aspect-ratio: 9 / 16;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}

.showcase__thumb.is-active {
  border-color: var(--color-ink);
  opacity: 1;
}

.showcase__thumb:hover:not(.is-active) { opacity: 0.75; }

.showcase__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.showcase__dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.showcase__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-rule-strong);
  cursor: pointer;
  transition: width 0.25s var(--ease-out), background 0.25s var(--ease-out), border-radius 0.25s var(--ease-out);
  flex-shrink: 0;
}

.showcase__dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-ink);
}

@media (max-width: 44rem) {
  .showcase__frame  { width: clamp(16rem, 86vw, 24rem); }
  .showcase__arrow  { width: 2.375rem; height: 2.375rem; }
  .showcase__thumbs { display: none; }
  .showcase__dots   { display: flex; }
}

/* ─── Split rows (Premium · Accountability) ─────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.split h2 { font-size: var(--text-display-s); font-weight: 650; max-width: 16ch; }

.split .lede { margin-top: var(--space-sm); font-size: var(--text-md); max-width: 44ch; }

.split p + p { margin-top: var(--space-sm); }

.split__visual { display: flex; justify-content: center; }

.fineprint { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-faint); }
.fineprint a { color: var(--color-muted); }

/* ─── Premium checklist card ────────────────────────────────────── */

.premium-card {
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  width: 100%;
  max-width: 26rem;
}

.premium-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-faint);
  margin-bottom: var(--space-sm);
}

.premium-card ul { list-style: none; margin: 0; padding: 0; }

.premium-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.premium-card li:last-child { border-bottom: 0; }

.premium-card li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--color-accent);
}

/* ─── FAQ accordion ─────────────────────────────────────────────── */

.faq-list { max-width: 46rem; margin-inline: auto; }

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-faint);
  border-bottom: 2px solid var(--color-faint);
  transform: rotate(45deg);
  transition: transform var(--dur-med) var(--ease-out);
  margin-right: 4px;
}

.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq-item p {
  padding: 0 var(--space-md) var(--space-sm);
  font-size: var(--text-sm);
  max-width: 60ch;
}

/* ─── Download CTA ──────────────────────────────────────────────── */

.download { text-align: center; }

.download h2 { font-size: var(--text-display-s); font-weight: 650; }

.download p { margin: var(--space-sm) auto 0; max-width: 44ch; font-size: var(--text-md); }

.download .store-badges { justify-content: center; margin-top: var(--space-xl); }

.download .hero__note { margin-top: var(--space-sm); }

/* ─── Footer (Ft1 mast-headed) ──────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--color-rule);
  background: var(--color-card);
  padding-block: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-3xl);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand { max-width: 22rem; }

.site-footer__tagline { margin-top: var(--space-sm); font-size: var(--text-sm); }

.site-footer__email {
  display: inline-block;
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-2xs) var(--space-lg);
}

.site-footer__heading {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-faint);
  margin-bottom: var(--space-2xs);
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  padding-block: var(--space-3xs);
}

.site-footer__links a:hover { color: var(--color-ink); text-decoration: underline; }

.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
}

.site-footer__bottom p { font-size: var(--text-xs); color: var(--color-faint); }

/* ─── Legal pages ───────────────────────────────────────────────── */

.legal-content {
  max-width: var(--wrap-tight);
  margin-inline: auto;
  padding-block: var(--space-2xl);
}

.legal-content h1 {
  font-size: var(--text-display-s);
  font-weight: 650;
  margin: var(--space-sm) 0 var(--space-md);
}

.legal-content h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-xs);
}

.legal-content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-2xs);
}

.legal-content p, .legal-content li {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

.legal-content p { margin-bottom: var(--space-sm); }

.legal-content ul { padding-left: 1.25rem; margin: 0 0 var(--space-sm); }

.legal-content li { margin-bottom: var(--space-2xs); }

.legal-content a { color: var(--color-ink-2); }

.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-faint);
  background: var(--color-tint);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  padding: var(--space-3xs) var(--space-xs);
}

.notice {
  background: var(--color-tint);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-block: var(--space-md);
}

.notice p { margin: 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-block: var(--space-md);
}

.legal-table th, .legal-table td {
  text-align: left;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule);
  color: var(--color-muted);
  vertical-align: top;
}

.legal-table th { background: var(--color-tint); color: var(--color-ink-2); font-weight: 600; }

/* ─── Auth card (reset password) ────────────────────────────────── */

.auth-wrap {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: var(--space-2xl);
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.auth-card h1 {
  font-size: var(--text-xl);
  font-weight: 650;
  margin-bottom: var(--space-2xs);
}

.auth-card .auth-sub { font-size: var(--text-sm); margin-bottom: var(--space-md); }

.auth-field { margin-bottom: var(--space-sm); }

.auth-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  margin-bottom: var(--space-2xs);
}

.auth-field input {
  width: 100%;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.875rem;
  transition: border-color var(--dur-short) var(--ease-out);
}

.auth-field input:hover { border-color: var(--color-faint); }

.auth-field input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 0;
  border-color: var(--color-focus);
}

.auth-field input[aria-invalid="true"] { border-color: var(--color-error); }

.auth-field .field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-3xs);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-accent-ink);
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}

.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.auth-status {
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.auth-status--info    { background: var(--color-tint);       color: var(--color-ink-2);  border: 1px solid var(--color-rule); }
.auth-status--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success); }
.auth-status--error   { background: var(--color-error-bg);   color: var(--color-error);   border: 1px solid var(--color-error); }

.auth-help { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-faint); }

[hidden] { display: none !important; }

/* ─── Coming-soon modal ─────────────────────────────────────────── */

.cs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-md);
}

.cs-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  max-width: 22rem;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(11, 11, 11, 0.22), 0 4px 16px rgba(11, 11, 11, 0.1);
  text-align: center;
}

.cs-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: var(--color-tint);
  color: var(--color-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--dur-short) var(--ease-out);
}

.cs-close:hover { background: var(--color-rule-strong); }

.cs-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  color: var(--color-ink);
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.02em;
}

.cs-body {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Footer social links ────────────────────────────────────────── */

.site-footer__social {
  display: flex;
  flex-direction: column;
}

.site-footer__social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  margin-top: var(--space-xs);
}

.site-footer__social-links a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  padding-block: var(--space-3xs);
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}

.site-footer__social-links a:hover { color: var(--color-ink); text-decoration: underline; }

/* ─── Responsive ────────────────────────────────────────────────── */

@media (max-width: 60rem) {
  .hero__inner, .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: var(--space-2xl); }
  .site-footer__inner { flex-direction: column; }

  /* Mobile hero: single column, centered */
  .hero__copy { text-align: center; }
  .hero__sub { max-width: none; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__br { display: none; }

  .hero__visual {
    order: 2;
    justify-content: center;
    margin-top: var(--space-xs);
  }

  .hero__visual img { max-width: min(28rem, 95vw); transform: none; }

  /* Centre the text column in any split row (Premium section) */
  .split > div:not(.split__visual) { text-align: center; }
  .split h2 { max-width: none; }
}

@media (max-width: 40rem) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .store-badges img { height: 2.625rem; }
  .store-badges img[alt*="Google Play"] { height: 3.875rem; }
}

/* ─── Reduced motion ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
