:root {
  --bg: #FFFFFF;
  --bg-alt: #EEF3F1;
  --text: #2B2622;
  --text-light: #5C5249;
  --accent: #6E635B;
  --accent-text: #6E635B;
  --accent-hover: #5C5249;
  --accent-light: #ECE6DF;
  --border: #E7E2DD;
  --card-bg: #FFFFFF;
  --shadow: 0 2px 16px rgba(43, 38, 34, 0.07);
  --radius: 16px;
  --max-width: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --bg-alt: #1A1F1D;
    --text: #E7EAE8;
    --text-light: #9AA6A1;
    --accent: #5F6B66;
    --accent-text: #AEBAB4;
    --accent-hover: #C0CCC6;
    --accent-light: #232927;
    --border: #2C322F;
    --card-bg: #1A1F1D;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent-text);
  text-decoration: none;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

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

.nav-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

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

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

/* Hero */
.hero {
  padding-top: 60px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.hero-meta {
  font-size: 0.95rem;
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 12px;
}

.hero-waitlist {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  max-width: 380px;
}

.hero-waitlist input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.2s;
}

.hero-waitlist input:focus {
  border-color: var(--accent);
}

.hero-waitlist button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

.hero-waitlist button:hover {
  background: var(--accent-hover);
}

.hero-waitlist button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-waitlist-msg {
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1.2em;
}

.hero-waitlist-msg.success {
  color: #2e7d32;
}

.hero-waitlist-msg.error {
  color: #c62828;
}

@media (max-width: 768px) {
  .hero-waitlist {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero-waitlist {
    flex-direction: column;
  }

  .hero-waitlist button {
    width: 100%;
  }
}

.hero-badges a,
.hero-badges .ios-coming {
  transition: opacity 0.2s;
}

.hero-badges a:hover {
  opacity: 0.88;
}

.ios-coming {
  position: relative;
  display: inline-block;
  opacity: 0.6;
  cursor: default;
}

.ios-coming:hover {
  opacity: 0.75;
}

.ios-banner {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #007AFF;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  white-space: nowrap;
}

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

.hero-illustration {
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  border-radius: var(--radius);
}

.hero-screenshot {
  position: absolute;
  bottom: -8px;
  right: -4%;
  width: 40%;
  max-width: 170px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(44, 35, 28, 0.18);
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
    gap: 40px;
  }

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

  .hero-illustration {
    max-width: 320px;
  }

  .hero-screenshot {
    right: 0;
    max-width: 130px;
  }
}

/* Relate */
.relate {
  text-align: center;
}

.relate .section-sub {
  margin: 0 auto 48px;
}

.relate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.relate-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.relate-spot {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  object-fit: contain;
}

.relate-card > div {
  min-width: 0;
}

.relate-card h3 {
  font-size: 1.05rem;
  color: var(--accent-text);
  margin-bottom: 8px;
}

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

.relate-bridge {
  max-width: 640px;
  margin: 48px auto 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.7;
}

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

/* How It Works */
.how-it-works {
  background: var(--bg-alt);
  text-align: center;
}

.how-it-works .section-sub {
  margin: 0 auto 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg-alt);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

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

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Features */
.features .section-sub {
  margin-bottom: 48px;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 300px;
  max-height: 540px;
  object-fit: contain;
  margin: 0 auto;
}

.feature-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-body p {
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .feature-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .feature-card.reverse {
    direction: inherit;
  }

  .feature-card img {
    max-width: 240px;
  }
}

.feature-card.reverse img {
  order: 2;
}

.feature-card.reverse .feature-body {
  order: 1;
}

/* Privacy */
.privacy {
  background: var(--bg-alt);
}

.privacy-content {
  max-width: 700px;
  margin: 0 auto;
}

.privacy-content .section-sub {
  margin-bottom: 32px;
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-list li {
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}

/* Testimonials (markup commented out until real quotes exist) */
.testimonials {
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 40px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.testimonial {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 0;
}

.testimonial p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.testimonial cite {
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
}

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

/* Pricing */
.pricing {
  text-align: center;
}

.pricing .section-sub {
  margin: 0 auto 48px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: left;
}

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

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.price-year {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 20px;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-weight: 700;
}

.pricing-card.featured li {
  color: var(--text);
}

@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* FAQ */
.faq {
  background: var(--bg-alt);
}

.faq h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-text);
  transition: transform 0.3s;
  font-weight: 700;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding: 0 24px 18px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.footer .section-inner {
  padding: 48px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-disc {
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer-copy {
  opacity: 0.6;
}

/* Language Switcher */
.lang-select {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--accent-text);
  border-color: var(--accent);
}

.lang-btn svg {
  display: block;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 180px;
  z-index: 200;
  max-height: 300px;
  overflow-y: auto;
}

.lang-menu.open {
  display: flex;
  flex-direction: column;
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-menu button:hover {
  background: var(--accent-light);
}

.lang-menu button.active {
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 768px) {
  .lang-menu {
    position: static;
    margin-top: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: auto;
    max-height: none;
  }

  .lang-menu.open {
    display: flex;
  }

  .lang-btn {
    display: none;
  }
}
