/* Promptuary — Marketing Page */

/* ===== 1. CSS Custom Properties ===== */

:root {
  /* Purple/Blue Brand Palette */
  --accent: #7C3AED;
  --accent-secondary: #3B82F6;
  --gradient-accent: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  --accent-glow: rgba(124, 58, 237, 0.2);
  --accent-soft: #ede9fe;

  /* Clean backgrounds */
  --bg: #FCFDFD;
  --bg-alt: #f8fafc;
  --bg-elevated: #ffffff;
  --hero-gradient: radial-gradient(ellipse at top, #ede9fe 0%, #FCFDFD 50%, #f1f5f9 100%);

  /* Text with excellent contrast */
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 20px rgba(124, 58, 237, 0.25);

  /* Consistent rounded corners */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
  --transition: 200ms ease;
}

/* ===== 2. Reset ===== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

/* ===== 3. Skip Link ===== */

.skiplink {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skiplink:focus {
  left: 16px;
  top: 16px;
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

/* ===== 4. Layout ===== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: 80px 0;
}

.section--soft {
  background: var(--bg-alt);
}

/* ===== 5. Header ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* ===== 6. Brand ===== */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 7. Navigation ===== */

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

.nav__link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav__cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ===== 8. Mobile Nav Toggle ===== */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 9. Typography ===== */

.h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.h1-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.fineprint {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Larger h1 on desktop */
@media (min-width: 901px) {
  .h1 {
    font-size: 64px;
  }
}

/* ===== 10. Hero ===== */

.hero {
  position: relative;
  padding: 80px 0 100px;
  background: var(--hero-gradient);
  overflow: hidden;
}

/* Decorative gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.15);
  top: -200px;
  right: -100px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.12);
  bottom: -150px;
  left: -100px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  max-width: 540px;
}

.hero__copy .lead {
  max-width: 520px;
}

.hero__copy .lead + .lead {
  margin-top: 16px;
}

.hero__media {
  display: flex;
  justify-content: center;
}

/* ===== 11. Hero Eyebrow ===== */

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* ===== 12. Hero Tagline ===== */

.hero__tagline {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 13. Hero Meta ===== */

.hero__meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== 14. Window Frame ===== */

.window-frame {
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.08);
}

.window-frame__img {
  width: 100%;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 200ms ease;
}

.window-frame:hover .window-frame__img {
  transform: scale(1.02);
}

/* ===== Lightbox ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__caption {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  visibility: hidden;
}

.lightbox.is-open .lightbox__close {
  visibility: visible;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  visibility: hidden;
}

.lightbox.is-open .lightbox__nav {
  visibility: visible;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  visibility: hidden;
}

.lightbox.is-open .lightbox__counter {
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden;
}

/* ===== 15. CTA Row ===== */

.ctaRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.ctaRow--center {
  justify-content: center;
}

/* ===== 16. Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md), 0 6px 30px rgba(124, 58, 237, 0.35);
}

.btn--secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 17. Trust Line ===== */

.trustLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
}

.trustLine li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trustLine li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* ===== 18. How It Works — Zigzag Timeline ===== */

.how {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 35%, var(--bg-alt) 65%, var(--bg) 100%);
}

.how__header {
  text-align: center;
  margin-bottom: 56px;
}

.how__header .h2 {
  margin-bottom: 8px;
}

.how__subline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* Timeline container */
.how__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Vertical connecting line */
.how__timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.15) 8%, rgba(124, 58, 237, 0.15) 92%, transparent);
  transform: translateX(-50%);
}

/* Each step row */
.how__step {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  column-gap: 32px;
  padding-bottom: 48px;
  position: relative;
}

.how__step:last-child {
  padding-bottom: 0;
}

/* Number dot — always center column */
.how__dot {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Left step (default): content in column 1 */
.how__step .how__content {
  grid-column: 1;
  grid-row: 1;
}

/* Right step: content in column 3 */
.how__step--right .how__content {
  grid-column: 3;
  grid-row: 1;
}

/* Content card */
.how__content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms ease, box-shadow 300ms ease;
  position: relative;
}

.how__content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Arrow connector pointing toward the dot */
.how__content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--bg-elevated);
  transform: rotate(45deg);
}

/* Left card → arrow points right */
.how__step:not(.how__step--right) .how__content::before {
  right: -8px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Right card → arrow points left */
.how__step--right .how__content::before {
  left: -8px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

/* Heading row: icon + title inline */
.how__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.how__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-radius: 8px;
  color: var(--accent);
}

.how__icon svg {
  width: 18px;
  height: 18px;
}

.how__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.how__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Tablet breakpoint for timeline */
@media (min-width: 769px) and (max-width: 900px) {
  .how__step {
    grid-template-columns: 1fr 48px 1fr;
    column-gap: 20px;
  }

  .how__dot {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .how__content {
    padding: 16px;
  }

  .how__title {
    font-size: 16px;
  }

  .how__desc {
    font-size: 14px;
  }
}

/* ===== 19. Showcase Sections ===== */

.showcase {
  padding: 80px 0;
}

.showcase--alt {
  background: var(--bg-alt);
}

.showcase__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: center;
}

.showcase__grid--reverse {
  direction: rtl;
}

.showcase__grid--reverse > * {
  direction: ltr;
}

.showcase__media {
  display: flex;
  justify-content: center;
}

.showcase__copy {
  max-width: 480px;
}

.showcase__copy .h2 {
  margin-bottom: 16px;
}

.showcase__copy p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.showcase__fineprint {
  margin-top: 16px;
}

/* ===== 20. Feature Grid ===== */

.features-grid {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.features-grid__heading {
  text-align: center;
  margin-bottom: 40px;
}

.features-grid__subline {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin: -24px auto 40px;
  max-width: 520px;
}

.features-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features-grid__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.features-grid__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.features-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-radius: 10px;
  color: var(--accent);
}

.features-grid__icon svg {
  width: 22px;
  height: 22px;
}

.features-grid__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.features-grid__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== 21. Privacy Highlight ===== */

.privacy-highlight {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.privacy-highlight__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.privacy-highlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 50%;
  color: var(--accent);
}

.privacy-highlight__inner .h2 {
  margin-bottom: 16px;
}

.privacy-highlight__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.privacy-highlight__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.privacy-highlight__link:hover {
  color: var(--accent-secondary);
}

/* ===== 22. Final CTA ===== */

.final-cta {
  padding: 80px 0;
  text-align: center;
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta__sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.final-cta__link {
  margin-top: 24px;
  font-size: 15px;
}

.final-cta__link a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta__link a:hover {
  color: var(--accent-secondary);
}

/* ===== 23. Footer ===== */

.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  transition: color var(--transition);
}

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

.footer__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
}

.footer__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer__badge {
  margin-top: 8px;
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 24. App Store Badge ===== */

.app-store-link {
  display: inline-block;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.app-store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-store-badge {
  height: 60px;
  width: auto;
  display: block;
}

.app-store-badge--sm {
  height: 44px;
}

/* ===== 25. Scroll Reveal ===== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 26. Focus States ===== */

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

/* ===== 27. Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 28. Responsive Breakpoints ===== */

/* --- 900px: single-column hero, smaller headings --- */
@media (max-width: 900px) {
  .h1 {
    font-size: 44px;
  }

  .h2 {
    font-size: 30px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__copy .lead {
    max-width: 100%;
  }

  .hero__orb--1 {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -80px;
  }

  .hero__orb--2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
  }

  .hero__tagline {
    font-size: 18px;
  }

  .ctaRow {
    justify-content: center;
  }

  .trustLine {
    justify-content: center;
  }

  .window-frame {
    max-width: 670px;
  }

  .showcase__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .showcase__grid--reverse {
    direction: ltr;
  }

  .showcase__copy {
    max-width: 100%;
  }
}

/* --- 768px: collapse timeline, single-column features --- */
@media (max-width: 768px) {
  .how__timeline::before {
    left: 23px;
  }

  .how__step {
    grid-template-columns: 46px 1fr;
    column-gap: 20px;
    padding-bottom: 24px;
  }

  .how__step:last-child {
    padding-bottom: 0;
  }

  .how__dot {
    grid-column: 1;
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .how__step .how__content,
  .how__step--right .how__content {
    grid-column: 2;
  }

  .how__content {
    padding: 16px;
    border-left: 3px solid var(--accent);
  }

  .how__content::before {
    display: none;
  }

  .how__content:hover {
    transform: none;
  }

  .features-grid {
    padding: 56px 0;
  }

  .features-grid__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid__card {
    padding: 24px 20px;
  }
}

/* --- 640px: hamburger nav, compact spacing, smaller type --- */
@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .h1 {
    font-size: 36px;
  }

  .h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 17px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

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

  .nav__link,
  .nav__cta {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .window-frame {
    max-width: 450px;
  }

  .showcase {
    padding: 56px 0;
  }

  .showcase__grid {
    gap: 36px;
  }

  .how {
    padding: 56px 0;
  }

  .how__header {
    margin-bottom: 32px;
  }

  .privacy-highlight {
    padding: 56px 0;
  }

  .privacy-highlight__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .privacy-highlight__icon svg {
    width: 36px;
    height: 36px;
  }

  .privacy-highlight__text {
    font-size: 16px;
  }

  .final-cta {
    padding: 56px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer__col:first-child {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 8px; right: 8px; width: 44px; height: 44px; font-size: 28px; }
  .lightbox__content { max-width: 95vw; }
  .lightbox__img { max-height: 70vh; border-radius: 12px; }
  .lightbox__caption { font-size: 14px; padding: 0 16px; }
}

/* ===== 29. Dark Mode ===== */

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #A78BFA;
    --accent-secondary: #60A5FA;
    --gradient-accent: linear-gradient(135deg, #A78BFA 0%, #60A5FA 100%);
    --accent-glow: rgba(167, 139, 250, 0.25);
    --accent-soft: rgba(167, 139, 250, 0.12);

    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-elevated: #1e293b;
    --hero-gradient: radial-gradient(ellipse at top, #1e1340 0%, #0f172a 50%, #0f172a 100%);

    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: #334155;
    --border-light: #1e293b;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 4px 20px rgba(167, 139, 250, 0.25);
  }

  body {
    -webkit-font-smoothing: antialiased;
  }

  .topbar {
    background: rgba(15, 23, 42, 0.95);
  }

  .nav {
    background: #1e293b;
  }

  .window-frame {
    background: #1e293b;
    border-color: var(--border);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(167, 139, 250, 0.08);
  }

  .hero__orb--1 {
    background: rgba(167, 139, 250, 0.1);
  }

  .hero__orb--2 {
    background: rgba(96, 165, 250, 0.08);
  }

  .nav__cta {
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.2);
  }

  .nav__cta:hover {
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
  }

  .how__timeline::before {
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.2) 8%, rgba(167, 139, 250, 0.2) 92%, transparent);
  }

  .how__content::before {
    background: var(--bg-elevated);
  }

  .how__dot {
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
  }

  .app-store-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  img {
    opacity: 0.92;
  }

  img:hover {
    opacity: 1;
  }
}

/* ===== Page Content (Support, Privacy, Terms) ===== */

.page-hero {
  padding-bottom: 48px;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 48px;
}

.page-list {
  padding-left: 24px;
  margin: 16px 0;
  color: var(--text-secondary);
}

.page-list li {
  margin: 8px 0;
}

.page-content p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

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

/* Support hero */
.support-hero {
  position: relative;
  padding: 80px 0 56px;
  background: var(--hero-gradient);
  overflow: hidden;
  text-align: center;
}

.support-hero__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  top: -200px;
  right: -100px;
}

@media (max-width: 900px) {
  .support-hero__orb {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -80px;
  }
}

@media (max-width: 640px) {
  .support-hero {
    padding: 56px 0 40px;
  }
}

/* Section heading accent bar */
.section-heading {
  position: relative;
  padding-top: 20px;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Steps (Getting Started) */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.step:hover {
  box-shadow: var(--shadow-sm);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.step__body {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 4px;
}

.step__body strong {
  color: var(--text);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.faq__item:hover {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.faq__item[open] .faq__question::after {
  content: "\2212";
  background: var(--accent);
  color: #fff;
}

.faq__body {
  padding: 0 20px 18px;
  overflow: hidden;
}

.faq__answer {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Support contact CTA */
.support-contact {
  text-align: center;
}

.support-contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.support-contact__inner .h2 {
  margin-bottom: 0;
}

.support-contact__inner .lead {
  max-width: 480px;
}

.support-contact__inner .btn {
  margin-top: 8px;
}

/* Trust strip */
.trust-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-strip__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-strip__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-strip__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}
