/* ==========================================================================
   Luxee Wedding Planner | Landing Page v2
   Minimal, spacious layout. One typeface (Plus Jakarta Sans), one accent.
   Radius scale: 8 / 12 / 20 / pill.  Spacing scale: 4-based.
   ========================================================================== */

/* --- 1. TOKENS --- */
:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Color */
  --text: #1c1b19;
  --text-2: #55534e;
  --text-3: #8a8780;
  --bg: #ffffff;
  --bg-soft: #f8f7f4;
  --line: #e9e7e1;
  --line-strong: #dcd9d1;
  --accent: #9c7b4a;
  --accent-hover: #86683c;
  --accent-soft: #f4eee4;
  --dark: #1c1b19;
  --positive: #1f7a4d;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  --gutter: 24px;
  --section-y: 120px;
  --nav-h: 72px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- 2. BASE --- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code {
  font-size: .9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

/* --- 3. BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 30px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: #000; }

.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }

.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--accent-soft); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; }

/* --- 4. SHARED BITS --- */
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
}

.section { padding: var(--section-y) 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-title { font-size: clamp(30px, 4vw, 42px); }
.section-lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-2);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7b4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* --- 5. NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--line); }

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.brand-name span { font-weight: 500; color: var(--text-3); }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-menu-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.mobile-toggle:hover { background: var(--bg-soft); }

/* --- 6. HERO --- */
.hero { padding: 96px 0 0; }

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(36px, 5.6vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero-lead {
  max-width: 580px;
  margin: 24px auto 0;
  font-size: 19px;
  line-height: 1.6;
}
.hero-fit {
  margin: 14px auto 0;
  max-width: 580px;
  font-size: 15px;
  color: var(--text-3);
}
.hero-fit strong { color: var(--text-2); font-weight: 600; }
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 15px;
  color: var(--text-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--accent); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Hero stage: dashboard in a browser frame with the couple portal on a phone in front */
.hero-stage {
  position: relative;
  margin-top: 72px;
  padding: 0 0 48px;
}
.hero-browser { width: 88%; }
.hero-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  max-width: 280px;
}

/* --- 6b. DEVICE MOCKUPS --- */
.phone {
  padding: 8px;
  border-radius: 44px;
  background: var(--dark);
  box-shadow: 0 24px 48px -24px rgba(28, 27, 25, .45);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  border-radius: 36px;
  background: #fff;
}
.browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 24px 48px -32px rgba(28, 27, 25, .35);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* --- 7. AUDIENCE (TWO SIDES) --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.audience-icon,
.benefit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  margin-bottom: 24px;
}
.audience-icon svg,
.benefit-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.audience-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 28px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.audience-card h3 { font-size: 24px; }
.audience-sub { margin: 8px 0 28px; font-size: 16px; }

/* --- 8. FEATURE ROWS --- */
.feature-list { display: grid; gap: 120px; }

.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 72px;
}
.feature-row.reverse { grid-template-columns: 7fr 5fr; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-media {
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.feature-browser { padding: 32px; }
.feature-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 40px 32px 0;
  overflow: hidden;
}
.feature-phones .phone { width: 42%; max-width: 260px; }
.feature-phones .phone-back { margin-bottom: -64px; }
.feature-phones .phone-front { margin-bottom: 32px; }

/* --- 8b. PHOTO BAND --- */
.photo-band-section { padding-top: 0; }
.photo-band {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 20px;
}
.photo-band figure { margin: 0; }
.photo-band img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.photo-band figcaption { margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* --- 9. BENEFITS --- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 40px;
}
.benefit h3 { font-size: 19px; margin-bottom: 8px; }
.benefit p { font-size: 16px; }

/* --- 10. MODULE TABS --- */
.tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 48px;
  padding: 4px;
  gap: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tab-count {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text-3);
}
.tab.active .tab-count { background: var(--accent-soft); color: var(--accent); }

.tab-pane[hidden] { display: none; }

/* Demo video per tab: 16:9 thumbnail card, plays in place */
.pane-demo { display: flex; flex-direction: column; align-items: center; margin: -8px 0 44px; }
.pane-demo-video {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 48px -28px rgba(28, 27, 25, .5);
}
.pane-demo-thumb { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.pane-demo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .2s var(--ease); }
.pane-demo-thumb:hover img { transform: scale(1.02); opacity: .9; }
.pane-demo-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5322d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.pane-demo-play svg { width: 28px; height: 28px; margin-left: 4px; }
.pane-demo-thumb:hover .pane-demo-play { transform: translate(-50%, -50%) scale(1.06); }
.pane-demo-caption { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.pane-demo-video iframe,
.demo-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.demo-frame.is-playing { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .pane-demo-play { width: 56px; height: 56px; } .pane-demo-play svg { width: 22px; height: 22px; } }
.demo-frame.is-playing img,
.demo-frame.is-playing .demo-play { display: none; }
.demo-yt-link { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--accent); }
.demo-yt-link:hover { text-decoration: underline; }
.pane-intro {
  max-width: 640px;
  margin: -24px auto 32px;
  text-align: center;
  font-size: 15px;
  color: var(--text-2);
}

/* Gallery: module list on the left, screenshot on the right */
.gallery {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.gallery-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.gallery-item:hover { background: var(--bg-soft); color: var(--text); }
.gallery-item.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.gallery-num {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.gallery-item.active .gallery-num { color: var(--accent); }

.gallery-view { margin: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.gallery-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.gallery-device img { transition: opacity .25s var(--ease); }
.gallery-device img.is-loading { opacity: .35; }
/* Phone screens */
.gallery-frame[data-device="phone"] .gallery-device {
  height: 100%;
  width: auto;
  aspect-ratio: 390 / 844;
  flex: none;
  padding: 7px;
  border-radius: 40px;
  background: var(--dark);
}
.gallery-frame[data-device="phone"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  background: #fff;
}
/* Desktop screens */
.gallery-frame[data-device="browser"] .gallery-device {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.gallery-frame[data-device="browser"] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.gallery-view figcaption { padding: 24px 4px 0; }
.gallery-view h3 { font-size: 22px; margin-bottom: 6px; }
.gallery-view p { font-size: 16px; max-width: 560px; }

/* --- 11. STEPS & DEMO --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.6; }

.demo {
  display: grid;
  grid-template-columns: 4fr 8fr;
  align-items: center;
  gap: 64px;
  margin-top: 96px;
}
.demo-text h3 { font-size: 26px; margin-bottom: 12px; }
.demo-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.demo-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.demo-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.demo-play:hover { transform: translate(-50%, -50%) scale(1.06); }

/* --- 12. PRICING --- */
/* Promo countdown */
.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  max-width: 880px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid #ead9bd;
}
.promo[hidden] { display: none; }
.promo-label { font-size: 15px; font-weight: 600; color: #6b5330; }
.promo-time { display: flex; gap: 8px; }
.promo-time span {
  min-width: 62px;
  padding: 8px 6px;
  border-radius: var(--r-md);
  background: var(--bg);
  text-align: center;
  line-height: 1.1;
}
.promo-time b { display: block; font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.promo-time small { font-size: 11px; color: var(--text-3); }
.price-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-2);
  vertical-align: middle;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.price-card.featured { border: 2px solid var(--text); padding: 39px; }
.price-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.price-name { font-size: 22px; }
.price-desc { margin-top: 6px; font-size: 16px; }
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.price-cur { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.price-per { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-left: 4px; }
.price-card .check-list { margin-bottom: 36px; flex: 1; }
.price-info { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.price-info:hover { color: var(--text); }
.price-foot { margin-top: 16px; font-size: 14px; color: var(--text-3); text-align: center; }

.included {
  max-width: 880px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.included-title { font-size: 18px; text-align: center; margin-bottom: 32px; }
.included-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 48px;
}
.included-grid li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: var(--text);
}
.included-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7b4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- 13. FAQ --- */
.faq-group { max-width: 1000px; margin: 0 auto; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group-title {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-3);
}
/* Two questions per row; each card grows on its own when opened */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
}
.faq-item {
  padding: 0 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease);
}
.faq-item:hover, .faq-item.active { border-color: var(--line-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.active .faq-a { grid-template-rows: 1fr; }
.faq-a p, .faq-a ul { font-size: 15px; }
.faq-a > div > :last-child { margin-bottom: 22px; }
.faq-a p + p, .faq-a ul + p { margin-top: 10px; }
.faq-a ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq-a strong { color: var(--text); font-weight: 600; }

/* --- 14. CLOSING CTA --- */
.cta-section { padding-top: 96px; }
.cta-box {
  padding: 80px 40px;
  border-radius: var(--r-lg);
  background: var(--dark);
  text-align: center;
}
.cta-photo {
  background:
    linear-gradient(rgba(28, 27, 25, .72), rgba(28, 27, 25, .72)),
    url("../images/photos/pelaminan.webp") center / cover no-repeat,
    var(--dark);
}
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.6vw, 38px); }
.cta-box p { margin-top: 16px; color: rgba(255,255,255,.7); font-size: 18px; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* --- 15. FOOTER --- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 340px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; letter-spacing: 0; }
.footer-col a { font-size: 15px; color: var(--text-2); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}

/* --- 16. BACK TO TOP --- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* --- 17. RESPONSIVE --- */
@media (max-width: 1024px) {
  :root { --section-y: 96px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { gap: 48px; grid-template-columns: 1fr 1fr; }
  .demo { gap: 40px; grid-template-columns: 1fr 2fr; }
  .audience-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .gallery-frame { height: 520px; }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-menu-cta { display: inline-flex; margin-top: 20px; }
  .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; }

  .feature-list { gap: 80px; }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row .feature-text,
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row .feature-media,
  .feature-row.reverse .feature-media { order: 2; }

  .demo { grid-template-columns: 1fr; gap: 24px; margin-top: 72px; }

  /* Gallery: list becomes a horizontal chip row above the screenshot */
  .gallery { grid-template-columns: 1fr; gap: 20px; }
  .gallery-nav {
    flex-direction: row;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .gallery-nav::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: none;
    width: auto;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .gallery-item.active { border-color: transparent; }
  .gallery-num { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .gallery-frame { height: 480px; padding: 20px; }
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .photo-band img { height: 280px; }
  .gallery-view { position: static; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 72px; --nav-h: 64px; }
  body { font-size: 16px; }

  .hero { padding-top: 56px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; margin-top: 32px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; align-items: center; gap: 10px; }
  .hero-stage { margin-top: 48px; padding-bottom: 24px; }
  .hero-browser { width: 92%; }
  .hero-phone { width: 34%; }
  .browser-bar { padding: 7px 10px; }
  .browser-bar span { width: 7px; height: 7px; }
  .phone { padding: 5px; border-radius: 26px; }
  .phone img { border-radius: 21px; }

  .section-head { margin-bottom: 40px; }
  .section-lead { font-size: 17px; }

  .audience-grid,
  .benefit-grid,
  .steps,
  .pricing-grid,
  .included-grid { grid-template-columns: 1fr; }

  .audience-card,
  .price-card { padding: 28px; }
  .price-card.featured { padding: 27px; }
  .price-badge { top: 28px; right: 28px; }
  .price { font-size: 38px; }

  .benefit-grid { gap: 36px; }
  .feature-media { border-radius: var(--r-md); }
  .feature-browser { padding: 12px; }
  .feature-phones { gap: 12px; padding: 24px 16px 0; }
  .feature-phones .phone-back { margin-bottom: -40px; }
  .feature-phones .phone-front { margin-bottom: 20px; }

  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
  .tab-count { display: none; }
  .gallery-frame { height: 440px; padding: 16px; border-radius: var(--r-md); }
  .gallery-view figcaption { padding-top: 16px; }
  .gallery-view h3 { font-size: 19px; }

  .cta-box { padding: 56px 24px; }
  .photo-band { gap: 12px; }
  .photo-band img { height: 200px; border-radius: var(--r-md); }
  .photo-band figure:nth-child(2) img { height: 220px; }
  .photo-band figcaption { font-size: 14px; margin-top: 8px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Badge sits above the plan name so it never covers the "One-Time Payment" tag */
.price-card .price-badge { position: static; align-self: flex-start; margin-bottom: 14px; }
