/* ── Custom Properties ─────────────────────────────────── */
:root {
  --primary: #00695C;
  --primary-dark: #142B27;
  --accent: #C6533C;
  --accent-light: #E8A070;
  --gold: #E8AA3C;
  --cream: #F0F5F4;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Utilities ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
}

/* Honeycomb pattern — real hexagonal grid matching the app icon */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60'%3E%3Cpath d='M17.32 0L34.64 10L34.64 30L17.32 40L0 30L0 10Z M17.32 40L17.32 60' fill='none' stroke='%2380D8C9' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 34.64px 60px;
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* ── Screenshots ──────────────────────────────────────── */
.screenshots {
  background: var(--cream);
}

.screenshots-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 2rem;
}

.persona-shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  max-width: 240px;
}

.persona-shot-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.phone-frame {
  flex: 0 0 auto;
  width: 220px;
  height: 476px;
  border-radius: 28px;
  border: 4px solid var(--primary);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  border-radius: 10px;
  background: var(--primary);
  opacity: 0.15;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
}

/* ── Spotlight ────────────────────────────────────────── */
.spotlight {
  background: var(--white);
}

.spotlight-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.spotlight-video {
  flex: 0 0 auto;
}

.phone-frame-lg {
  width: 280px;
  height: 608px;
}

.spotlight-text {
  flex: 1;
}

.spotlight-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.spotlight-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.spotlight-alt {
  background: var(--cream);
}

.spotlight-reverse {
  flex-direction: row-reverse;
}

/* ── Features ─────────────────────────────────────────── */
.features {
  background: var(--white);
}

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

.feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 105, 92, 0.12);
}

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

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.feature-card .learn-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── How It Works ─────────────────────────────────────── */
.how-it-works {
  background: var(--cream);
}

.steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.step-arrow {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 2rem;
  margin-top: 1rem;
  align-self: center;
}

/* ── CTA ──────────────────────────────────────────────── */
.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta p {
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--accent-light);
  transition: color 0.2s ease;
}

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

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-credit a {
  color: var(--accent-light);
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--accent);
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq {
  background: var(--cream);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s ease;
}

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

.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(0, 105, 92, 0.04);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

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

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Screens Index ────────────────────────────────────── */
.screens {
  background: var(--white);
}

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

.screen-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}

.screen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 105, 92, 0.1);
}

.screen-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.screen-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Screen Detail Pages ──────────────────────────────── */
.screen-layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.screen-shot {
  position: sticky;
  top: 2rem;
}

.screen-shot .phone-frame {
  width: 280px;
  height: 608px;
  margin: 0 auto;
}

.screen-shot .phone-screenshot {
  object-fit: contain;
  background: var(--white);
}

.screen-shot-caption {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.screen-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
}

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

.screen-content p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.gesture-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.gesture-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 105, 92, 0.1);
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  font-size: 0.98rem;
  line-height: 1.55;
}

.gesture-list li:last-child {
  border-bottom: none;
}

.gesture-list .gesture-tag {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  min-width: 92px;
  text-align: center;
}

.gesture-list .gesture-tag.swipe-left {
  background: var(--accent);
}

.gesture-list .gesture-tag.swipe-right {
  background: var(--primary);
}

.gesture-list .gesture-tag.long-press {
  background: var(--gold);
  color: var(--primary-dark);
}

.gesture-list .gesture-tag.pinch {
  background: var(--accent-light);
  color: var(--primary-dark);
}

.gesture-list .gesture-tag.tap {
  background: var(--primary);
}

.gesture-list .gesture-tag.drag {
  background: var(--primary-dark);
}

/* ── Feature Detail Pages ─────────────────────────────── */
.feature-nav {
  background: var(--primary);
  padding: 1rem 1.5rem;
}

.feature-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.feature-nav a:hover {
  opacity: 1;
}

.feature-hero {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
}

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

.feature-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feature-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-body {
  padding: 4rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.feature-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.release-notes-body h2 {
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 105, 92, 0.15);
}

.release-notes-body > h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.feature-body p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.screenshot-placeholder {
  background: var(--cream);
  border: 2px dashed rgba(0, 105, 92, 0.2);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 2rem 0;
}

/* ── Site Nav (homepage) ──────────────────────────────── */
.site-nav {
  background: var(--primary-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-nav-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  line-height: 0;
}

.site-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav-toggle-icon,
.site-nav-toggle-icon::before,
.site-nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle-icon {
  position: relative;
}

.site-nav-toggle-icon::before,
.site-nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.site-nav-toggle-icon::before {
  top: -7px;
}

.site-nav-toggle-icon::after {
  top: 7px;
}

.site-nav.is-open .site-nav-toggle-icon {
  background: transparent;
}

.site-nav.is-open .site-nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .site-nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.site-nav-list > li > a,
.site-nav-details > summary {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  opacity: 0.9;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.site-nav-details > summary::-webkit-details-marker {
  display: none;
}

.site-nav-details > summary::after {
  content: " \25BE";
  font-size: 0.75em;
  opacity: 0.7;
}

.site-nav-details[open] > summary::after {
  content: " \25B4";
}

.site-nav-list > li > a:hover,
.site-nav-details > summary:hover,
.site-nav-details[open] > summary {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.site-nav-has-submenu {
  position: relative;
}

.site-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
}

.site-nav-sublist li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.site-nav-sublist li a:hover {
  background: var(--cream);
  color: var(--primary);
}

.site-nav-sublist-grouped {
  min-width: 240px;
}

.site-nav-subdetails > summary {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}

.site-nav-subdetails > summary::-webkit-details-marker {
  display: none;
}

.site-nav-subdetails > summary::after {
  content: " \25B8";
  font-size: 0.75em;
  opacity: 0.6;
  margin-left: 0.25rem;
}

.site-nav-subdetails[open] > summary::after {
  content: " \25BE";
}

.site-nav-subdetails > summary:hover {
  background: var(--cream);
  color: var(--primary);
}

.site-nav-subsublist {
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem 0;
}

.site-nav-subsublist li a {
  display: block;
  padding: 0.35rem 1rem 0.35rem 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.site-nav-subsublist li a:hover {
  background: var(--cream);
  color: var(--primary);
}

/* Offset anchor targets so the sticky nav doesn't cover the heading. */
html {
  scroll-padding-top: 5rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

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

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .phone-frame {
    width: 180px;
    height: 390px;
  }

  .phone-frame-lg {
    width: 220px;
    height: 476px;
  }

  .spotlight-layout,
  .spotlight-reverse {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .feature-hero h1 {
    font-size: 2rem;
  }

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

  .screen-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .screen-shot {
    position: static;
  }

  .screen-shot .phone-frame {
    width: 220px;
    height: 476px;
  }

  .gesture-list li {
    flex-direction: column;
    gap: 0.4rem;
  }

  .gesture-list .gesture-tag {
    align-self: flex-start;
    min-width: 0;
  }

  .site-nav-inner {
    gap: 0.75rem;
    padding: 0.65rem 1rem;
  }

  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.125rem;
  }

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

  .site-nav-list > li {
    width: 100%;
  }

  .site-nav-list > li > a,
  .site-nav-details > summary {
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
  }

  .site-nav-sublist {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    min-width: 0;
    margin-top: 0.25rem;
  }

  .site-nav-sublist li a {
    color: var(--white);
  }

  .site-nav-sublist li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
  }

  .site-nav-subdetails > summary {
    color: var(--white);
  }

  .site-nav-subdetails > summary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
  }

  .site-nav-subsublist li a {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 2rem;
  }

  .site-nav-subsublist li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
  }

}

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

  .hero-title {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 1.65rem;
  }

  .feature-hero h1 {
    font-size: 1.75rem;
  }
}
