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

/* ── Tokens ── */
:root {
  --bg:        #F7F4FA;
  --text:      #2A1F30;
  --accent:    #D4673A;
  --primary:   #B9AABF;
  --muted:     #8C8F91;
  --divider:   #E8E3EE;
  --card:      #FFFFFF;
  --input-bg:  #EDE9F2;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 44px;
}

.hero-sub .star {
  color: var(--accent);
}

/* ── CTA ── */
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-store:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-store--play {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--divider);
  cursor: pointer;
}
.btn-store--play:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Android modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 26, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-card {
  background: #1e1428;
  border-radius: 24px;
  padding: 40px 36px 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: rgba(255,255,255,0.8); }

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.modal-body {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.1);
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  outline: none;
  margin-bottom: 12px;
  transition: background 0.2s;
  box-sizing: border-box;
}
.modal-input:focus { background: rgba(255,255,255,0.15); }
.modal-input::placeholder { color: rgba(255,255,255,0.35); }

.modal-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.modal-btn:hover { opacity: 0.9; }

.modal-success {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  padding: 8px 0;
}

.modal-error {
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 8px;
  text-align: center;
}

/* ── Screenshots carousel ── */
.screenshots {
  padding: 0 0 80px;
}

.carousel {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.carousel-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  flex: 1;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 48px 8px;
  box-sizing: border-box;
}

.phone-frame {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 34px;
  overflow: hidden;
  border: 3px solid #1C1C1E;
  background: #1C1C1E;
}

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

.carousel-desc {
  flex: 1;
  min-width: 0;
}

.carousel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.carousel-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}

.carousel-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--divider);
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(42,31,48,0.08);
}
.carousel-arrow:hover {
  border-color: var(--primary);
  background: var(--input-bg);
  box-shadow: 0 4px 16px rgba(42,31,48,0.12);
}

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--divider);
  cursor: pointer;
  padding: 0;
  /* large tap target */
  position: relative;
  transition: background 0.2s, transform 0.2s;
}
.dot::before {
  content: '';
  position: absolute;
  inset: -8px;
}
.dot--active {
  background: var(--text);
  transform: scale(1.3);
}

/* ── Features ── */
.features {
  padding: 0 24px 96px;
  max-width: 960px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 36px 32px;
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(42,31,48,0.08);
}

.feature-icon {
  color: var(--primary);
  margin-bottom: 20px;
}

.star-icon {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--divider);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

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

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

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── Privacy page ── */
.prose-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.prose-wrap h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.prose-wrap .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}

.prose-wrap h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin: 40px 0 10px;
}

.prose-wrap p,
.prose-wrap li {
  font-size: 15px;
  color: #3d2f45;
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose-wrap ul {
  padding-left: 20px;
}

.prose-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Support page ── */
.support-hero {
  text-align: center;
  padding: 72px 24px 80px;
  max-width: 600px;
  margin: 0 auto;
}

.support-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.support-hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
}

.support-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  transition: opacity 0.2s, transform 0.15s;
}
.support-email-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.support-email-btn--light {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--divider);
}
.support-email-btn--light:hover { border-color: var(--primary); }

/* FAQ */
.support-faq {
  padding: 0 24px 80px;
}

.faq-inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.faq-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--divider);
}

.faq-item {
  border-bottom: 1px solid var(--divider);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-item--open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item--open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 20px;
  margin: 0;
}

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

/* Contact band */
.support-contact {
  background: var(--text);
  padding: 72px 24px;
  text-align: center;
}

.support-contact-inner {
  max-width: 480px;
  margin: 0 auto;
}

.support-contact-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.support-contact-body {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav { padding: 18px 20px; }
  .hero { padding: 56px 20px 64px; }
  .features { padding-bottom: 64px; }
  .feature-card { padding: 28px 24px; }

  .carousel { padding: 0 16px; }

  /* Hide arrows on mobile — swipe handles navigation */
  .carousel-arrow { display: none; }

  .carousel-slide {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 32px 8px;
  }

  .carousel-desc { text-align: center; }

  .carousel-dots { margin-top: 16px; }
  .dot { width: 10px; height: 10px; }

  .support-hero { padding: 56px 20px 60px; }
  .support-contact { padding: 56px 24px; }
}
