/* SpaceSift — Marketing Page */

:root {
  /* Copper Brand Palette (from app design tokens) */
  --accent: #B87040;
  --accent-secondary: #D89878;
  --gradient-accent: linear-gradient(135deg, #B87040 0%, #D89878 100%);
  --accent-glow: rgba(184, 112, 64, 0.2);
  --accent-soft: #f5ede6;

  /* Warm, clean backgrounds (from app tokens) */
  --bg: #F8F6F4;
  --bg-alt: #f0edea;
  --bg-elevated: #ffffff;
  --hero-gradient: radial-gradient(ellipse at top, #f5ede6 0%, #F8F6F4 50%, #f0edea 100%);

  /* Text with excellent contrast */
  --text: #1A1A1A;
  --text-secondary: #7A7A78;
  --text-muted: #9a9a98;

  /* Borders */
  --border: #e2e0dd;
  --border-light: #efecea;

  /* Enhanced shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 20px rgba(184, 112, 64, 0.25);

  /* Consistent rounded corners */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Skip link */
.skiplink {
  position: absolute;
  left: -9999px;
  z-index: 999;
}
.skiplink:focus {
  left: 16px;
  top: 16px;
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: 80px 0;
}

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

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 40px;
  height: 40px;
}

.brand__name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav__cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(184, 112, 64, 0.2);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 112, 64, 0.3);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Typography */
.h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.h1-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.fineprint {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: var(--hero-gradient);
  overflow: hidden;
}

/* Decorative gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  will-change: filter;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(184, 112, 64, 0.15);
  top: -200px;
  right: -100px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(184, 112, 64, 0.12);
  bottom: -150px;
  left: -100px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  max-width: 540px;
}

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

.phone {
  width: 260px;
  padding: 10px;
  background: #fff;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(184, 112, 64, 0.1);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.phone__img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Buttons */
.ctaRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md), 0 6px 30px rgba(184, 112, 64, 0.35);
}

.btn--secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Trust line */
.trustLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
}

.trustLine li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trustLine li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* Hero app logo */
.hero__logo {
  width: 140px;
  height: 140px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(184, 112, 64, 0.2));
}

/* Hero eyebrow label */
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* Hero tagline */
.hero__tagline {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero meta */
.hero__meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

/* App Store badge links */
.app-store-link {
  display: inline-block;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.app-store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.app-store-badge--sm {
  height: 44px;
}

/* How it works — zigzag timeline */
.how {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 35%, var(--bg-alt) 65%, var(--bg) 100%);
}

.how__header {
  text-align: center;
  margin-bottom: 56px;
}

.how__header .h2 {
  margin-bottom: 8px;
}

.how__subline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

.how__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.how__timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(184, 112, 64, 0.15) 8%, rgba(184, 112, 64, 0.15) 92%, transparent);
  transform: translateX(-50%);
}

.how__step {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  column-gap: 32px;
  padding-bottom: 48px;
  position: relative;
}

.how__step:last-child {
  padding-bottom: 0;
}

.how__dot {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(184, 112, 64, 0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.how__step .how__content {
  grid-column: 1;
  grid-row: 1;
}

.how__step--right .how__content {
  grid-column: 3;
  grid-row: 1;
}

.how__content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms ease, box-shadow 300ms ease;
  position: relative;
}

.how__content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.how__content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--bg-elevated);
  transform: rotate(45deg);
}

.how__step:not(.how__step--right) .how__content::before {
  right: -8px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.how__step--right .how__content::before {
  left: -8px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.how__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.how__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(184, 112, 64, 0.08) 0%, rgba(52, 196, 187, 0.08) 100%);
  border-radius: 8px;
  color: var(--accent);
}

.how__icon svg {
  width: 18px;
  height: 18px;
}

.how__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.how__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Showcase feature sections */
.showcase {
  padding: 80px 0;
}

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

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase__grid--reverse .showcase__media {
  order: 2;
}

.showcase__media {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.showcase__media .phone {
  animation: none;
}

.showcase__media--dual .phone {
  width: 200px;
}

.showcase__copy {
  max-width: 480px;
}

.showcase__copy .h2 {
  margin-bottom: 16px;
}

.showcase__copy p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.showcase__copy p + p {
  margin-top: 12px;
}

/* Compact feature grid */
.features-grid {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.features-grid__heading {
  text-align: center;
  margin-bottom: 40px;
}

.features-grid__subline {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin: -24px auto 40px;
  max-width: 520px;
}

.features-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features-grid__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.features-grid__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.features-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(184, 112, 64, 0.08) 0%, rgba(52, 196, 187, 0.08) 100%);
  border-radius: 10px;
  color: var(--accent);
}

.features-grid__icon svg {
  width: 22px;
  height: 22px;
}

.features-grid__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.features-grid__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Privacy highlight section */
.privacy-highlight {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.privacy-highlight__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.privacy-highlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(184, 112, 64, 0.1) 0%, rgba(52, 196, 187, 0.1) 100%);
  border-radius: 50%;
  color: var(--accent);
}

.privacy-highlight__inner .h2 {
  margin-bottom: 16px;
}

.privacy-highlight__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.privacy-highlight__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.privacy-highlight__link:hover {
  color: var(--accent-secondary);
}

/* Final CTA */
.final-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-alt);
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ctaRow--center {
  justify-content: center;
}

.final-cta__sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--text);
}

.footer__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
}

.footer__icon {
  width: 32px;
  height: 32px;
}

.footer__badge {
  margin-top: 8px;
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* Page content (Support, Privacy, Terms) */
.page-hero {
  padding-bottom: 48px;
}

.page-content {
  max-width: 720px;
}

.page-content h2 {
  margin-top: 48px;
}

.page-list {
  padding-left: 24px;
  margin: 16px 0;
  color: var(--text-secondary);
}

.page-list li {
  margin: 8px 0;
}

.page-content p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.page-content h2:first-child {
  margin-top: 0;
}

/* Support hero */
.support-hero {
  position: relative;
  padding: 80px 0 56px;
  background: var(--hero-gradient);
  overflow: hidden;
  text-align: center;
}

.support-hero__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(184, 112, 64, 0.12);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  top: -200px;
  right: -100px;
}

/* Section heading accent bar */
.section-heading {
  position: relative;
  padding-top: 20px;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Steps (Getting Started) */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.step:hover {
  box-shadow: var(--shadow-sm);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.step__body {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 4px;
}

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

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.faq__item:hover {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.faq__item[open] .faq__question::after {
  content: "\2212";
  background: var(--accent);
  color: #fff;
}

.faq__body {
  padding: 0 20px 18px;
  overflow: hidden;
}

.faq__answer {
  margin: 0;
  color: var(--text-secondary);
}

/* Support contact CTA */
.support-contact {
  text-align: center;
}

.support-contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.support-contact__inner .h2 {
  margin-bottom: 0;
}

.support-contact__inner .lead {
  max-width: 480px;
}

.support-contact__inner .btn {
  margin-top: 8px;
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .phone {
    animation: none;
  }
}

/* Scroll reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typography — constrain lead text line length */
.hero__copy .lead {
  max-width: 520px;
}

.hero__copy .lead + .lead {
  margin-top: 16px;
}

/* Typography — larger h1 on desktop */
@media (min-width: 901px) {
  .h1 {
    font-size: 64px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .h1 {
    font-size: 44px;
  }

  .h2 {
    font-size: 30px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__copy .lead {
    max-width: 100%;
  }

  .hero__logo {
    width: 120px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__tagline {
    font-size: 18px;
  }

  .hero__orb--1 {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -80px;
  }

  .hero__orb--2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
  }

  .ctaRow {
    justify-content: center;
  }

  .trustLine {
    justify-content: center;
  }

  .phone {
    width: 240px;
  }

  .showcase__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .showcase__copy {
    max-width: 100%;
  }

  .showcase__grid--reverse .showcase__media {
    order: 0;
  }

  .showcase__media--dual .phone {
    width: 180px;
  }

  .support-hero__orb {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -80px;
  }
}

/* How it works — tablet breakpoint */
@media (min-width: 769px) and (max-width: 900px) {
  .how__step {
    grid-template-columns: 1fr 48px 1fr;
    column-gap: 20px;
  }

  .how__dot {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .how__content {
    padding: 16px;
  }

  .how__title {
    font-size: 16px;
  }

  .how__desc {
    font-size: 14px;
  }

  .features-grid__cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* How it works — mobile */
@media (max-width: 768px) {
  .how__timeline::before {
    left: 23px;
  }

  .how__step {
    grid-template-columns: 46px 1fr;
    column-gap: 20px;
    padding-bottom: 24px;
  }

  .how__step:last-child {
    padding-bottom: 0;
  }

  .how__dot {
    grid-column: 1;
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .how__step .how__content,
  .how__step--right .how__content {
    grid-column: 2;
  }

  .how__content {
    padding: 16px;
    border-left: 3px solid var(--accent);
  }

  .how__content::before {
    display: none;
  }

  .how__content:hover {
    transform: none;
  }

  .features-grid {
    padding: 56px 0;
  }

  .features-grid__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid__card {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero__logo {
    width: 100px;
    height: 100px;
  }

  .h1 {
    font-size: 36px;
  }

  .h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 17px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link,
  .nav__cta {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .phone {
    width: 220px;
  }

  .showcase {
    padding: 56px 0;
  }

  .showcase__grid {
    gap: 36px;
  }

  .showcase__media--dual .phone {
    width: 150px;
  }

  .showcase__media--dual {
    gap: 12px;
  }

  .how {
    padding: 56px 0;
  }

  .how__header {
    margin-bottom: 32px;
  }

  .final-cta {
    padding: 56px 0;
  }

  .privacy-highlight {
    padding: 56px 0;
  }

  .privacy-highlight__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .privacy-highlight__icon svg {
    width: 36px;
    height: 36px;
  }

  .privacy-highlight__text {
    font-size: 16px;
  }

  .support-hero {
    padding: 56px 0 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer__col:first-child {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #D89878;
    --accent-secondary: #E8B098;
    --gradient-accent: linear-gradient(135deg, #D89878 0%, #E8B098 100%);
    --accent-glow: rgba(216, 152, 120, 0.25);
    --accent-soft: rgba(216, 152, 120, 0.12);

    --bg: #1C1C1E;
    --bg-alt: #2C2C30;
    --bg-elevated: #2C2C30;
    --hero-gradient: radial-gradient(ellipse at top, #2e1f1a 0%, #1C1C1E 50%, #1C1C1E 100%);

    --text: #EBEBF5;
    --text-secondary: #8E8E93;
    --text-muted: #636366;

    --border: #3A3A3C;
    --border-light: #2C2C30;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 4px 20px rgba(216, 152, 120, 0.25);
  }

  body {
    -webkit-font-smoothing: antialiased;
  }

  .topbar {
    background: rgba(28, 28, 30, 0.95);
  }

  .nav {
    background: #2C2C30;
  }

  .phone {
    background: #2C2C30;
    border-color: var(--border);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(216, 152, 120, 0.08);
  }

  .hero__orb--1 {
    background: rgba(216, 152, 120, 0.1);
  }

  .hero__orb--2 {
    background: rgba(216, 152, 120, 0.08);
  }

  .nav__cta {
    box-shadow: 0 2px 8px rgba(216, 152, 120, 0.2);
  }

  .nav__cta:hover {
    box-shadow: 0 4px 12px rgba(216, 152, 120, 0.3);
  }

  .how__timeline::before {
    background: linear-gradient(180deg, transparent, rgba(216, 152, 120, 0.2) 8%, rgba(216, 152, 120, 0.2) 92%, transparent);
  }

  .how__content::before {
    background: var(--bg-elevated);
  }

  .how__dot {
    box-shadow: 0 4px 20px rgba(216, 152, 120, 0.3);
  }

  .app-store-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  .phone__img {
    opacity: 0.92;
  }

  .phone__img:hover {
    opacity: 1;
  }
}
