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

:root {
  --bg: #EDEAE4;
  --bg-warm: #F3F1EC;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --sage: #7C8B6F;
  --sage-light: #E8ECE5;
  --sand: #C4A882;
  --sand-light: #E8E2D6;
  --border: #E0DDD6;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Nav ── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.logo-text {
  height: 38px;
  display: block;
}

.logo-text img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--white) !important;
  color: var(--text) !important;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
  background: var(--text) !important;
  color: var(--white) !important;
  border-color: var(--text) !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* ── Hero ── */
.hero-wrap {
  background: linear-gradient(180deg, #B8D2EC 0%, #C8DDF0 20%, #D6E6F4 40%, #DDE8E4 60%, #E4E8D4 80%, #EDEAE4 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 100px;
  margin-bottom: -100px;
}

.hero {
  padding: 140px 0 80px;
}

.hero-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(26,26,26,0.6);
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(30,30,35,0.9);
  color: var(--white);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

.btn-dark:hover { opacity: 0.85; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.btn-outline:hover { background: #f5f3ee; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(26,26,26,0.45);
  font-weight: 500;
}

.hero-note svg {
  color: var(--sage);
  flex-shrink: 0;
}

/* ── Hero phones ── */
.hero-phones {
  flex-shrink: 0;
  position: relative;
  width: 480px;
  height: 540px;
}

.phone {
  position: absolute;
  border-radius: 36px;
  overflow: hidden;
  border: 8px solid #1a1a1a;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  background: var(--white);
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-light);
  background: #f8f7f4;
}

.phone-screen.placeholder img { display: none; }
.phone-screen.placeholder .phone-placeholder { display: flex; }

.phone-left {
  width: 200px;
  height: 430px;
  left: 0;
  top: 50px;
  z-index: 1;
}

.phone-center {
  width: 230px;
  height: 490px;
  left: 120px;
  top: 10px;
  z-index: 3;
}

.phone-right {
  width: 200px;
  height: 430px;
  right: 0;
  top: 50px;
  z-index: 2;
}

/* ── Section Headers ── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8A8375;
  text-align: center;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── How it works ── */
.how-it-works {
  padding: 100px 0;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.layer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 24px;
}

.layer-badge svg {
  color: var(--text-muted);
}

.layer-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.layer-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.layer-card em {
  font-style: italic;
}

/* ── Inside the app ── */
.inside-app {
  padding: 100px 0 0;
}

.showcase-card {
  background: linear-gradient(180deg, rgba(184,210,236,0.18) 0%, rgba(184,210,236,0.06) 100%);
  border-radius: 32px;
  padding: 72px 64px;
  margin-top: 28px;
  overflow: hidden;
}

.showcase-card-half {
  padding: 48px 40px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-row-reverse {
  direction: rtl;
}

.showcase-row-reverse > * {
  direction: ltr;
}

.showcase-text {
  max-width: 480px;
}

.showcase-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7A8BA8;
  display: block;
  margin-bottom: 12px;
}

.showcase-card h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.showcase-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.showcase-card-half h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 12px;
}

.showcase-card-half p {
  margin-bottom: 32px;
}

.showcase-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.showcase-checks svg {
  color: #7A8BA8;
  flex-shrink: 0;
}

.showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-pill {
  display: inline-block;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.showcase-phone {
  display: flex;
  justify-content: center;
}

.phone-standalone {
  position: relative;
  width: 260px;
  height: 540px;
  border-radius: 36px;
  overflow: hidden;
  border: 8px solid #1a1a1a;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  background: var(--white);
}

.phone-standalone .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-phones-duo {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.phone-duo-left,
.phone-duo-right {
  position: relative;
  width: 220px;
  height: 460px;
  border-radius: 32px;
  overflow: hidden;
  border: 7px solid #1a1a1a;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
  background: var(--white);
}

.phone-duo-right {
  margin-top: 40px;
}

.phone-duo-left .phone-screen img,
.phone-duo-right .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.showcase-phone-inline {
  display: flex;
  justify-content: center;
}

.showcase-phone-inline .phone-standalone {
  width: 220px;
  height: 460px;
  border-radius: 32px;
  border-width: 7px;
}

@media (max-width: 900px) {
  .showcase-row,
  .showcase-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase-row-reverse {
    direction: ltr;
  }

  .showcase-text {
    max-width: 100%;
    text-align: center;
  }

  .showcase-checks {
    align-items: center;
  }

  .showcase-pills {
    justify-content: center;
  }

  .showcase-phones-duo {
    justify-content: center;
  }

  .showcase-card {
    padding: 48px 28px;
  }

  .showcase-card-half {
    padding: 36px 24px;
  }
}

/* ── Features ── */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-light);
  border-radius: 50%;
  color: #8A7A60;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── FAQ ── */
.faq {
  padding: 100px 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.faq-label {
  text-align: left !important;
}

.faq-title {
  text-align: left !important;
  font-size: clamp(28px, 3.5vw, 38px) !important;
}

.faq-contact {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: none;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-item summary:hover { color: #4a4a4a; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: '\2212';
}

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

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── CTA ── */
.cta {
  padding: 40px 0 100px;
}

.cta-card {
  background: linear-gradient(135deg, #B8D2EC 0%, #C5DCF0 30%, #D2E4F2 50%, #D8E4DC 75%, #E0E4C8 100%);
  border-radius: 28px;
  padding: 80px 40px;
  text-align: center;
}

.cta-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
  text-wrap: balance;
}

.cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: rgba(30,30,35,0.85);
  color: var(--white);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.85; }

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-light);
}

/* ── Legal pages ── */
.legal {
  padding: 140px 0 80px;
}

.legal h1 {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.legal p, .legal ul {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

/* Legal pages: fixed nav */
body:has(.legal) .nav {
  position: fixed;
  background: rgba(237, 234, 228, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-phones {
    display: none;
  }

  .hero-layout {
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-note {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .layers-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-label,
  .faq-title {
    text-align: center !important;
  }

  .faq-contact {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
  }

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

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

  .nav-cta {
    display: inline-block;
    text-align: center;
  }

  .nav-mobile-toggle { display: block; }

  .container {
    padding: 0 20px;
  }

  .hero { padding: 120px 0 60px; }
  .hero-layout { padding: 0 20px; }

  .hero-title {
    font-size: clamp(36px, 9vw, 52px);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-dark, .btn-outline {
    justify-content: center;
    width: 100%;
  }

  .how-it-works, .features, .faq {
    padding: 72px 0;
  }

  .cta { padding: 24px 0 72px; }

  .cta-card {
    padding: 56px 24px;
    border-radius: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-card {
    padding: 24px 20px;
  }

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

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
