/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --text: #e8e0d6;
  --text-secondary: #9a9088;
  --text-muted: #7a7068;
  --text-subtle: #5a5450;
  --border: #2a2522;
  --border-hover: #5a5450;
  --card-hover-bg: rgba(255,255,255,0.02);
  --radius: 8px;
  --max-width: 840px;
  --narrow: 640px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 48px);
}

.container--narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 48px);
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem clamp(24px, 6vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-subtle);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

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

/* ===== Divider ===== */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* ===== Section Title ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.site-footer a {
  color: var(--text-subtle);
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--text-subtle);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem clamp(24px, 6vw, 48px) 4rem;
}

.hero-badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  max-width: 700px;
}

.hero .subtitle {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  font-style: italic;
  max-width: 520px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.cta-primary:hover {
  background: #fff;
  color: var(--bg);
}

.cta-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* App icon in hero */
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* App Store badge */
.app-store-badge {
  height: 48px;
  transition: opacity 0.3s;
  border-radius: 8px;
}

.app-store-badge:hover {
  opacity: 0.85;
}

/* ===== Features Grid ===== */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover-bg);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== How It Works ===== */
.how-it-works {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
}

.steps {
  max-width: 520px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.15rem;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== Use Cases ===== */
.use-cases-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.use-case {
  text-align: center;
  padding: 1.5rem 1rem;
}

.use-case-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.use-case h3 {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.use-case p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ===== Privacy Highlights ===== */
.privacy-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border: 1px solid #1a1815;
  border-radius: 6px;
}

.highlight-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* ===== Pricing ===== */
.pricing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover-bg);
}

.pricing-card.featured {
  border-color: var(--text-secondary);
  position: relative;
}

.pricing-card.featured::before {
  content: "Split the cost with your group";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
}

.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  margin: 0.75rem 0;
}

.pricing-card .price small {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card .billing-note {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 2;
}

.pricing-card ul li::before {
  content: "— ";
  color: var(--text-subtle);
}

/* ===== Split the App ===== */
.split-app-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
}

.split-app-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.split-app-desc {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.split-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.split-example {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s;
}

.split-example:hover {
  border-color: var(--border-hover);
  background: var(--card-hover-bg);
}

.split-example-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.split-example h3 {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.split-example-price {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.split-example-price small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.split-app-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 5rem clamp(24px, 6vw, 48px);
  max-width: var(--narrow);
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
}

.cta-note {
  font-size: 0.7rem;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1rem;
  font-style: normal !important;
}

/* ===== Content Pages (support, privacy, terms) ===== */
.page-content {
  padding: 8rem 0 4rem;
}

.page-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.page-content .subtitle {
  color: var(--text-secondary);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 2.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover-bg);
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.7;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul, .card ol {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.9;
  padding-left: 20px;
  margin-bottom: 0.75rem;
}

.card li {
  list-style: none;
}

.card li::before {
  content: "— ";
  color: var(--text-subtle);
}

.card a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.contact-card {
  text-align: center;
  margin-top: 2rem;
}

.contact-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ===== Phone Screenshots ===== */
.phone-frame {
  position: relative;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border: 2px solid #1a1815;
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* Hero screenshot showcase */
.hero-screens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin-top: 3rem;
  padding: 0 24px;
}

.hero-screens .phone-frame {
  flex-shrink: 0;
}

.hero-screens .phone-frame.hero-main {
  max-width: 260px;
  z-index: 2;
}

.hero-screens .phone-frame.hero-side {
  max-width: 200px;
  opacity: 0.6;
  transform: scale(0.9);
}

/* Screenshot showcase row */
.screenshot-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
  overflow: hidden;
}

.screenshot-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 24px;
}

.screenshot-row::-webkit-scrollbar {
  display: none;
}

.screenshot-row .phone-frame {
  flex-shrink: 0;
  max-width: 180px;
}

.screenshot-row .phone-frame:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* Screenshot labels */
.screenshot-item {
  flex-shrink: 0;
  text-align: center;
}

.screenshot-item .phone-frame {
  max-width: 180px;
  margin: 0 auto;
}

.screenshot-label {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* How it works with screenshots */
.how-it-works-visual {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem clamp(24px, 6vw, 48px);
}

.step-visual {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.step-visual:nth-child(even) {
  flex-direction: row-reverse;
}

.step-visual:last-child {
  margin-bottom: 0;
}

.step-visual .step-text {
  flex: 1;
}

.step-visual .step-text .step-number {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.step-visual .step-text h3 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.step-visual .step-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.step-visual .phone-frame {
  max-width: 200px;
  flex-shrink: 0;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero {
    padding-top: 5rem;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-screens .phone-frame.hero-side {
    display: none;
  }

  .hero-screens .phone-frame.hero-main {
    max-width: 220px;
  }

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

  .use-cases {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
  }

  .step {
    gap: 1rem;
  }

  .step-visual {
    flex-direction: column !important;
    gap: 1.5rem;
    text-align: center;
  }

  .step-visual .phone-frame {
    max-width: 180px;
  }

  .screenshot-row .phone-frame {
    max-width: 160px;
  }

  .split-examples {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 601px) and (max-width: 840px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
