:root {
  --ink: #131316;
  --ink-soft: #272836;
  --muted: #5a5e6d;
  --accent: #1f5f5a;
  --accent-strong: #113f3b;
  --accent-soft: #d8f0e7;
  --surface: #ffffff;
  --surface-alt: #f6f7fb;
  --border: rgba(19, 19, 22, 0.08);
  --divider: rgba(19, 19, 22, 0.06);

  --glass-blur: 18px;
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow-glass: 0 18px 34px rgba(18, 20, 30, 0.12);

  --radius: 6px;
  --radius-small: 4px;
  --hero-focus-x: 52%;
  --hero-focus-y: 38%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.52;
  background:
    radial-gradient(
      ellipse at 8% 0%,
      rgba(246, 210, 185, 0.58) 0,
      rgba(246, 210, 185, 0) 30%
    ),
    radial-gradient(
      ellipse at 92% 5%,
      rgba(195, 222, 205, 0.52) 0,
      rgba(195, 222, 205, 0) 34%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(212, 208, 238, 0.38) 0,
      rgba(212, 208, 238, 0) 40%
    ),
    linear-gradient(180deg, #f8f8fb 0%, #f1f4f8 50%, #f6f9fd 100%);
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

/* ── Utilities ─────────────────────────────── */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.mobile-only {
  display: none;
}

/* ── Cards ─────────────────────────────────── */

.card-glass {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-glass);
}

.card-solid {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(18, 20, 30, 0.08);
}

.label-caps {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ── Page shell ────────────────────────────── */

.page-shell,
.policy-shell {
  width: min(1120px, calc(100vw - 48px));
  margin: 32px auto 52px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
  animation: rise-in 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(18, 20, 30, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
}

.hero-copy h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(40px, 5.5vw, 66px);
  line-height: 0.97;
  letter-spacing: -0.03em;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
}

.hero-lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
}

.hero-body {
  margin: 10px 0 0;
  max-width: 400px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ── Buttons ───────────────────────────────── */

.btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Steps ─────────────────────────────────── */

.steps {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  display: flex;
}

.step {
  flex: 1;
  padding-right: 16px;
}

.step + .step {
  padding-left: 16px;
  border-left: 1px solid var(--divider);
}

.step-num {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.step-label {
  margin: 6px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.step-detail {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

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

.download-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-primary {
  display: flex;
  align-items: center;
}

.download-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.btn-app-store {
  flex-shrink: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-store-badge {
  width: 186px;
  height: auto;
  display: block;
}

.qr-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.qr-link:hover,
.qr-link:focus-visible {
  color: var(--ink-soft);
}

.qr-image {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 3px;
  opacity: 0.8;
}

.qr-link:hover .qr-image {
  opacity: 1;
}

.qr-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 961px) {
  .download-row {
    display: inline-flex;
    align-items: center;
    gap: 22px;
  }

  .app-store-badge {
    width: 192px;
  }

  .download-note {
    margin-top: 12px;
    padding-left: 2px;
    font-size: 14px;
  }

  .qr-link {
    gap: 0;
    padding-left: 22px;
    border-left: 1px solid var(--divider);
    transition:
      transform 160ms ease,
      color 160ms ease;
  }

  .qr-link:hover,
  .qr-link:focus-visible {
    transform: translateY(-1px);
  }

  .qr-image {
    width: 84px;
    height: 84px;
    padding: 7px;
    border: 1px solid rgba(19, 19, 22, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 18px rgba(18, 20, 30, 0.08);
    opacity: 1;
  }

  .qr-label {
    display: none;
  }
}

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

.hero-media {
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.hero-media.card-solid {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(18, 20, 30, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-photo {
  flex: 1;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-small);
  border: 1px solid rgba(19, 19, 22, 0.1);
  background-image: url("/assets/editorial1.jpg");
  background-size: cover;
  background-position: var(--hero-focus-x) var(--hero-focus-y);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 16, 0) 50%,
    rgba(8, 10, 16, 0.56) 100%
  );
  pointer-events: none;
}

.hero-photo-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 11px 14px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(16, 19, 27, 0.28);
  backdrop-filter: blur(10px);
}

.hero-photo-overlay .label-caps {
  color: rgba(244, 248, 255, 0.88);
  letter-spacing: 0.16em;
  font-size: 10.5px;
}


/* ── Legal footer ───────────────────────────── */

.legal-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.legal-links a {
  font-size: 13px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.legal-meta a {
  font-weight: 600;
}

.legal-links-footer {
  margin-top: 20px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--divider);
}

/* ── Policy pages (shared) ──────────────────── */

.topbar {
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.top-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-links a {
  font-size: 13px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.policy-card {
  margin-top: 16px;
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
  animation: rise-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.policy-header {
  margin-bottom: 16px;
}

.policy-card h1 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.stamp {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.policy-card section + section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}

.policy-card h2 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.policy-card p,
.policy-card li {
  color: #2f303d;
  font-size: 16px;
}

.policy-card p {
  margin: 8px 0 0;
}

.policy-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.policy-card li + li {
  margin-top: 7px;
}

/* ── Animations ─────────────────────────────── */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive: tablet ─────────────────────── */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  :root {
    --hero-focus-y: 30%;
  }

  .hero-media {
    order: -1;
  }

  .hero-photo {
    min-height: 340px;
  }

  .steps {
    padding-top: 20px;
  }

  .download-cta {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .qr-link {
    display: none;
  }
}

/* ── Responsive: mobile ─────────────────────── */

@media (max-width: 640px) {
  :root {
    --hero-focus-y: 28%;
  }

  .page-shell,
  .policy-shell {
    width: calc(100vw - 20px);
    margin-top: 12px;
    margin-bottom: 32px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    gap: 10px;
  }

  .hero-copy {
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    box-shadow:
      0 4px 20px rgba(18, 20, 30, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .hero-copy .mobile-condense {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero-copy h1 {
    margin: 8px 0 0;
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.05;
  }

  .hero-lead {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-soft);
  }

  .desktop-only {
    display: none;
  }

  .hero-body {
    margin: 6px 0 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.45;
  }

  .steps {
    padding-top: 16px;
  }

  .step {
    text-align: center;
    padding-right: 8px;
  }

  .step + .step {
    padding-left: 8px;
  }

  .step-num {
    font-size: 9px;
  }

  .step-label {
    margin: 4px 0 0;
    font-size: 13px;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
  }

  .step-detail {
    display: none;
  }

  .download-cta {
    margin-top: 14px;
    padding-top: 14px;
    align-items: center;
  }

  .download-row {
    justify-content: center;
  }

  .download-primary {
    justify-content: center;
  }

  .app-store-badge {
    width: 156px;
  }

  .download-note {
    text-align: center;
    padding-left: 0;
  }

  .hero-media {
    padding: 8px;
  }

  .hero-media.card-solid {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
      0 4px 20px rgba(18, 20, 30, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .hero-photo {
    min-height: 300px;
  }

  .hero-photo-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
  }

  .hero-photo-overlay .label-caps {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .legal-links {
    gap: 6px 10px;
  }

  .legal-links a,
  .legal-meta {
    font-size: 12px;
  }

  .legal-links-footer {
    margin-top: 10px;
    padding: 10px 2px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
