/* Last Swipe landing — palette mirrors ios DesignSystem/Theme.swift */

:root {
  --accent: #fa5c54;
  --sunset: #ff9440;
  --blush: #ffdbcc;
  --grad: linear-gradient(135deg, var(--accent), var(--sunset));

  --bg: #f7f4f2;
  --surface: #ffffff;
  --text: #1c1b1a;
  --text-2: #6e6864;
  --border: rgba(28, 27, 26, 0.10);
  --shadow: 0 12px 32px rgba(250, 92, 84, 0.10);
  --chip-bg: rgba(28, 27, 26, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #211d1b;
    --text: #f4efec;
    --text-2: #a89f99;
    --border: rgba(244, 239, 236, 0.12);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --chip-bg: rgba(244, 239, 236, 0.08);
    --blush: rgba(250, 92, 84, 0.18);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main > section, .site-header, .site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 1.5em; }
a { color: var(--accent); text-decoration: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-mark { width: 32px; height: 32px; border-radius: 8px; }

.site-nav { display: flex; gap: 22px; }

.site-nav a { color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 88px;
}

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

.lede { font-size: 1.12rem; color: var(--text-2); max-width: 46ch; }

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.store-badge svg { width: 26px; height: 34px; }

.badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge-text small { font-size: 0.7rem; font-weight: 500; opacity: 0.8; }
.badge-text strong { font-size: 1.25rem; letter-spacing: -0.01em; }

.fine-print { color: var(--text-2); font-size: 0.85rem; margin-top: 14px; }

/* Phone mockup */

.hero-visual { display: flex; justify-content: center; }

/* Two phones fanned apart, mirroring the X banner. They overlap slightly so
   the pair fits the hero's narrower column. */
.phone-pair {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.phone {
  flex: none;
  width: 208px;
  padding: 10px;
  border-radius: 34px;
  background: var(--text);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.phone-a { margin-top: 34px; transform: rotate(-4deg); }

.phone-b { margin-left: -24px; transform: rotate(4deg); position: relative; z-index: 1; }

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
}

.mini-card { display: flex; flex-direction: column; }

.mini-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #ff595e, #ffca3a);
}

.mini-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
}

.mini-like {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mini-like svg { width: 15px; height: 15px; fill: var(--accent); }

.mini-info { padding: 11px 11px 15px; }

.mini-name { font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; gap: 7px; }

/* Verified seal on a card. Stroked, not filled, so it reads as a mark of
   trust rather than a second accent blob competing with the % badge. */
.mini-verified {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.mini-verified-tick { stroke-width: 2.2; stroke-linecap: round; }

.mini-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 2px 7px;
  border-radius: 999px;
}

.mini-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.chip-accent { background: var(--blush); color: var(--accent); border-color: transparent; }

.chip-heart { width: 10px; height: 10px; fill: currentColor; flex-shrink: 0; }

/* How it works */

.how { padding-bottom: 72px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* Features */

.features { padding-bottom: 72px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.feature svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}

.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--text-2); margin: 0; }

/* Pricing */

.pricing {
  text-align: center;
  background: var(--blush);
  border-radius: 24px;
  padding: 48px 32px !important;
  margin-bottom: 88px !important;
}

.pricing h2 { margin-bottom: 0.4em; }
.pricing p { color: var(--text-2); font-size: 1.05rem; max-width: 52ch; margin: 0 auto; }
.pricing strong { color: var(--accent); }

/* Legal pages (terms.html / privacy.html) */

main.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

main.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 0.2em; }

main.legal .meta { color: var(--text-2); font-size: 0.9rem; margin-top: 0; }

main.legal h2 {
  font-size: 1.25rem;
  text-align: left;
  margin: 2em 0 0.6em;
}

main.legal p, main.legal li { color: var(--text-2); font-size: 0.98rem; }

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

main.legal ul { padding-left: 1.2em; }
main.legal li { margin-bottom: 0.6em; }

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

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-2); font-weight: 600; }
.site-footer a:hover { color: var(--accent); }

/* Responsive */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 56px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  /* Column flex items size to content — cap them so the 46ch lede can't
     push the layout wider than the viewport. */
  .hero-copy > * { max-width: 100%; }
  .hero-visual { order: -1; }

  /* The fanned pair doesn't fit a phone screen, so show just the featured card
     — the script rolls which one that is, so the hero still alternates here. */
  .phone:not(.is-featured) { display: none; }
  .phone.is-featured { width: 240px; margin: 0; transform: none; }

  .steps, .feature-grid { grid-template-columns: 1fr; }
  .site-nav a:first-child { display: none; }
}
