/* Animated angle for rotating gradient border (Enhancement 4) */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* =============================================================================
   GymTorch — main.css
   All site styles. No inline styles anywhere in HTML.
   To retheme the entire site, edit only the CSS custom properties below.
   ============================================================================= */


/* =============================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================================= */

:root {
  /* Colours — Apple-inspired dark palette with blue accent */
  --color-bg:             #000000;               /* Pure black — Apple product pages */
  --color-surface:        #1c1c1e;               /* Apple systemGray6 dark */
  --color-surface-raised: #2c2c2e;               /* Apple systemGray5 dark */
  --color-border:         #2c2c2e;               /* Separator */
  --color-text-primary:   #f5f5f7;               /* Apple near-white */
  --color-text-secondary: #86868b;               /* Apple secondary label */
  --color-text-tertiary:  #48484a;               /* Very muted — placeholder text */
  --color-accent:         #2997ff;               /* Apple blue on dark */
  --color-accent-soft:    rgba(41, 151, 255, 0.10);
  --color-accent-purple:  #5fb0ff;
  --color-glow-blue:      rgba(41, 151, 255, 0.20);
  --color-glow-purple:    rgba(95, 176, 255, 0.12);
  --color-glass-bg:       rgba(28, 28, 30, 0.60);
  --color-glass-border:   rgba(255, 255, 255, 0.08);

  /* Typography — SF Pro via system stack */
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-body:    'SF Pro Text',    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Layout */
  --radius:          18px;
  --radius-sm:       10px;
  --radius-pill:     980px;
  --max-width:       1120px;
  --spacing-section: 104px;

  /* Nav */
  --nav-height: 56px;
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

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

html {
  font-size: 17px;                   /* Apple's standard body size */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
}


/* =============================================================================
   3. LAYOUT UTILITIES
   ============================================================================= */

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

.section {
  padding-block: var(--spacing-section);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: 64px;
}


/* =============================================================================
   4. TYPOGRAPHY HELPERS
   ============================================================================= */

/* Apple-style hero display — very large, very tight */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--color-text-primary);
}

/* Section headline */
.text-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.08;
}

/* Gradient text — white → blue → purple */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #2997ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Supporting paragraph beneath headlines */
.text-subheadline {
  font-size: clamp(1rem, 2vw, 1.3125rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

/* Eyebrow / overline label — blue, spaced caps */
.text-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.text-accent {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-text-secondary);
}

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

.text-center .text-subheadline {
  margin-inline: auto;
}


/* =============================================================================
   5. BUTTONS — pill-shaped, Apple style
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease,
              border-color 0.2s ease;
}

/* Shine sweep overlay */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(100%);
}

/* Primary — blue fill */
.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 24px rgba(41, 151, 255, 0.45),
              0 8px 24px rgba(41, 151, 255, 0.2);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: none;
}

/* Secondary — ghost */
.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 151, 255, 0.4);
  background-color: var(--color-surface-raised);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


/* =============================================================================
   6. NAVIGATION
   ============================================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo — icon image + wordmark */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

/* Icon — white SVG shown directly on the dark nav, no tile, no filter */
.nav-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  image-rendering: crisp-edges;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Waitlist CTA — blue */
.nav-links a.nav-cta {
  color: var(--color-accent);
  font-weight: 500;
}

/* Optional nav beta button used on selected pages */
.nav-beta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-beta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.nav-beta-btn-desktop {
  margin-left: auto;
  margin-right: 8px;
}

.nav-beta-mobile-item {
  display: none;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
}


/* =============================================================================
   7. FOOTER
   ============================================================================= */

.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  letter-spacing: -0.005em;
}

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

.footer-links a {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}


/* =============================================================================
   8. PLACEHOLDER BLOCKS
   ============================================================================= */

/* Screenshot placeholder */
.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  color: var(--color-text-tertiary);
  font-size: 0.8125rem;
  text-align: center;
  padding: 24px;
  width: 100%;
  letter-spacing: 0.01em;
}

/* Icon placeholder — blue tinted, 52×52 */
.icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent-soft);
  border: 1px solid rgba(41, 151, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: var(--color-accent);
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* App Store badge placeholder */
.badge-placeholder {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  background-color: var(--color-surface);
}


/* =============================================================================
   9. FORMS
   ============================================================================= */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: -0.005em;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--color-text-tertiary);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-accent);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
  letter-spacing: -0.005em;
}


/* =============================================================================
   10. HOME — HERO
   ============================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-height));
  padding-block: clamp(44px, 9vh, 104px);
  display: flex;
  align-items: center;
}

.hero-shell {
  width: min(1320px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-watermark img {
  width: min(720px, 78vw);
  opacity: 0.07;
  transform: translateX(14%);
}

.hero-eyebrow {
  margin-bottom: 16px;
}

.hero-headline {
  margin-bottom: 18px;
}

.hero-subheadline {
  margin-bottom: 32px;
  max-width: 36ch;
}

.hero-ctas {
  margin-bottom: 20px;
  justify-content: flex-start;
}

.hero-badge {
  width: fit-content;
  margin-top: 2px;
}

.hero-badge .badge-placeholder {
  border: none;
  padding: 0;
  font-size: 0.875rem;
  letter-spacing: -0.004em;
  color: var(--color-text-secondary);
  background: transparent;
  min-height: auto;
}

.hero-badge .badge-placeholder:hover {
  color: var(--color-text-primary);
}

.hero-stage {
  position: relative;
  min-height: clamp(360px, 60vh, 620px);
  z-index: 2;
}

.hero-stage .phone-mockup {
  max-width: none;
  margin: 0;
  opacity: 1;
  animation: none;
}

.hero-device {
  position: absolute;
  will-change: transform;
}

.hero-device--main {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: clamp(205px, 22vw, 286px);
  z-index: 2;
}

.hero-device--left {
  left: 10%;
  top: 53%;
  transform: translateY(-48%) rotate(-9deg);
  width: clamp(150px, 16vw, 218px);
  z-index: 1;
}

.hero-device--right {
  right: 10%;
  top: 48%;
  transform: translateY(-44%) rotate(8deg);
  width: clamp(150px, 16vw, 218px);
  z-index: 3;
}

.hero-device .phone-mockup::before {
  opacity: 0.6;
}

.screenshot-caption {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-top: 20px;
  letter-spacing: -0.005em;
}


/* =============================================================================
   11. HOME — FEATURE HIGHLIGHT CARDS
   ============================================================================= */

.section-label {
  margin-bottom: 56px;
}

.section-label .text-label {
  display: block;
  margin-bottom: 12px;
}

.section-label h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  position: relative;
  overflow: visible;
  transition: border-color 0.25s ease;
}

.feature-card::before {
  display: none;
}

.feature-card:hover {
  border-color: rgba(41, 151, 255, 0.35);
}

.feature-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card-body {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.68;
  max-width: 43ch;
}

.feature-card-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card-mockup {
  position: relative;
  width: 116px;
  margin: 0;
  flex-shrink: 0;
}

.feature-card-mockup .phone-mockup-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.feature-card-mockup .phone-mockup-screen {
  position: absolute;
  top: 1.75%;
  left: 3.5%;
  right: 3.5%;
  bottom: 1.75%;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.feature-card-mockup .phone-mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}


/* =============================================================================
   12. HOME — EMAIL CAPTURE
   ============================================================================= */

.email-capture {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.email-capture::before {
  display: none;
}

.email-capture-headline {
  margin-bottom: 12px;
}

.email-capture-sub {
  margin-bottom: 36px;
  margin-inline: auto;
}


/* =============================================================================
   GPT PLANNER CTA
   ============================================================================= */

.gpt-cta {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gpt-cta::before {
  display: none;
}

.gpt-cta-headline {
  margin-top: 10px;
  margin-bottom: 16px;
}

.gpt-cta-sub {
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.7;
  font-size: 1rem;
}

.gpt-cta-btn {
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-inline: auto;
}

.email-form input[type="email"] {
  flex: 1;
}

.form-inline-message {
  min-height: 1.2em;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.waitlist-form-card .form-inline-message {
  text-align: left;
  margin-top: -6px;
}

.form-inline-message.is-error {
  color: #ff9a9a;
}

.form-inline-message.is-success {
  color: #7ed9a3;
}

form.is-submitting .btn-primary {
  opacity: 0.75;
  cursor: progress;
}


/* =============================================================================
   13. HOME — PRICING
   ============================================================================= */

.pricing-intro {
  text-align: center;
  margin-bottom: 52px;
}

.pricing-intro .text-label {
  display: block;
  margin-bottom: 14px;
}

.pricing-intro .text-headline {
  margin-bottom: 12px;
}

.pricing-intro .text-subheadline {
  margin-inline: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.pricing-card:hover {
  border-color: rgba(41, 151, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.pricing-card--featured {
  background: rgba(41, 151, 255, 0.06);
  border: 1px solid rgba(41, 151, 255, 0.45);
  position: relative;
}

/* Glow beneath the featured card */
.pricing-card--featured::after {
  display: none;
}

.pricing-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.pricing-card--featured .pricing-label {
  color: var(--color-accent);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.pricing-period {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.pricing-billed {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.pricing-card--featured .pricing-features {
  border-top-color: rgba(41, 151, 255, 0.28);
}

.pricing-features li {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
}

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

.pricing-note {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: center;
  letter-spacing: -0.005em;
}


/* =============================================================================
   14. FEATURES PAGE — ALTERNATING ROWS
   ============================================================================= */

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

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

.feature-row-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-row-title {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.feature-row-body {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
}

/* Coming Soon */
.coming-soon {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.coming-soon::before {
  display: none;
}

.coming-soon-headline {
  margin-bottom: 8px;
}

.coming-soon-sub {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.coming-soon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  letter-spacing: -0.005em;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag:hover {
  border-color: rgba(41, 151, 255, 0.4);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}


/* =============================================================================
   15. SUPPORT PAGE
   ============================================================================= */

.contact-block {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  margin-top: 36px;
}

.contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.125rem;
  color: var(--color-text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-value a {
  color: var(--color-accent);
}

.contact-note {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.faq {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
}

.faq-item {
  padding: 28px 36px;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

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


/* =============================================================================
   16. LEGAL PAGES (Privacy & Terms)
   ============================================================================= */

.legal-hero {
  padding-block: 72px;
  border-bottom: 1px solid var(--color-border);
}

.legal-last-updated {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 10px;
}

.legal-content {
  padding-block: 64px;
  max-width: 680px;
}

.legal-section {
  margin-bottom: 52px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-section p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-section a {
  color: var(--color-accent);
}

.legal-note {
  display: block;
  margin-top: 52px;
  padding: 16px 20px;
  border-left: 3px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-style: normal;
  line-height: 1.6;
}


/* =============================================================================
   17. WAITLIST PAGE
   ============================================================================= */

.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.waitlist-form-card,
.feedback-form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.waitlist-form-card h2,
.feedback-form-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-note-secondary {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  text-align: center;
}

.form-success-card {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.form-success-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.form-success-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.checkbox-label-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.checkbox-hint {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  padding-left: 26px;
}


/* =============================================================================
   18. PAGE HERO (inner pages)
   ============================================================================= */

.page-hero {
  padding-block: 80px 72px;
  border-bottom: 1px solid var(--color-border);
}

.page-hero-sub {
  margin-top: 18px;
}


/* =============================================================================
   19. PHONE MOCKUP COMPONENT
   ============================================================================= */

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  opacity: 0;
  will-change: transform, opacity;
}

.phone-mockup--large {
  max-width: 300px;
}

.phone-mockup-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.phone-mockup-screen {
  position: absolute;
  top: 1.75%;
  left: 3.5%;
  right: 3.5%;
  bottom: 1.75%;
  z-index: 1;
  border-radius: 36px;
  overflow: hidden;
  background-color: #000000;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone-mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Ambient glow beneath phone */
.phone-mockup::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(41, 151, 255, 0.35) 0%, transparent 70%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.phone-mockup.is-floating::before {
  opacity: 1;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scaleX(1); }
  50%       { opacity: 1; transform: scaleX(1.1); }
}

/* Scroll-triggered entrance */
.phone-mockup.is-visible {
  animation: phoneEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Continuous float after entrance */
.phone-mockup.is-floating {
  opacity: 1;
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneEnter {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Centre phone inside feature row visual column */
.feature-row-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =============================================================================
   20. SCROLL STORY — PINNED MULTI-PHASE SHOWCASE
   ============================================================================= */

/* Tall container provides the scroll range; sticky inner stays pinned */
.scroll-story {
  height: 300vh;
  position: relative;
}

.scroll-story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Push content below the fixed nav */
  padding-top: var(--nav-height);
}

.scroll-story-content {
  width: 100%;
  max-width: var(--max-width);
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ---- Text panels ---- */
.scroll-story-text {
  position: relative;
  height: 280px;
}

.scroll-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.scroll-panel-headline {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.scroll-panel-body {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

/* ---- Phone column ---- */
.scroll-story-phones {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.scroll-phone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.55s ease;
}

/* Disable floating animation for phones inside the scroll story */
.scroll-story .phone-mockup {
  opacity: 1;
  animation: none;
  max-width: 240px;
}


/* =============================================================================
   21. RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================================================= */

/* ---- 480px+ — email form goes inline ---- */
@media (min-width: 480px) {
  .email-form {
    flex-direction: row;
  }
}

/* ---- 768px+ tablet / desktop ---- */
@media (min-width: 768px) {

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  /* Reversed row — text right, image left */
  .feature-row--reverse .feature-row-text {
    order: 2;
  }

  .feature-row--reverse .feature-row-visual {
    order: 1;
  }

  .screenshot-placeholder {
    min-height: 520px;
  }

  .waitlist-layout {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ---- Mobile max-width 767px ---- */
@media (max-width: 767px) {

  .nav-toggle {
    display: flex;
  }

  /* Hidden by default, JS adds .nav-links--open to reveal */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding-block: 8px;
  }

  .nav-links a {
    padding: 14px 24px;
    display: block;
    font-size: 1rem;
  }

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

  .nav-beta-btn-desktop {
    display: none;
  }

  .nav-beta-mobile-item {
    display: block;
    padding: 8px 0 4px;
  }

  .nav-beta-mobile-item a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: var(--color-accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
  }

  .screenshot-placeholder {
    min-height: 280px;
  }

  .hero {
    min-height: auto;
    padding-block: 34px 58px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-inline: 24px;
  }

  .hero-copy {
    text-align: center;
    max-width: 100%;
  }

  .hero-subheadline {
    margin-inline: auto;
  }

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

  .hero-badge {
    margin-inline: auto;
    margin-bottom: 16px;
  }

  .hero-stage {
    min-height: 356px;
    max-width: 372px;
    margin-inline: auto;
    margin-top: 6px;
  }

  .hero-watermark img {
    width: min(640px, 92vw);
    transform: translateX(0);
  }

  .hero-device--main {
    left: 50%;
    right: auto;
    width: 186px;
    top: 51%;
    transform: translate(-50%, -51%);
    z-index: 2;
  }

  .hero-device--left {
    right: auto;
    left: 50%;
    top: 55%;
    width: 118px;
    transform: translate(-142%, -50%) rotate(-10deg);
    z-index: 1;
  }

  .hero-device--right {
    right: auto;
    left: 50%;
    top: 48%;
    width: 148px;
    transform: translate(34%, -52%) rotate(9deg);
    z-index: 4;
  }

  /* Match mobile hero screen radius to small phone sizes (like other mockups). */
  .hero-stage .phone-mockup-screen {
    border-radius: clamp(18px, 5.2vw, 28px);
  }

  /* Tiny vertical bleed only, to remove iPhone top/bottom slivers. */
  .hero-stage .phone-mockup-screen img {
    height: calc(100% + 4px);
    margin-top: -2px;
    margin-bottom: -2px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .feature-card-mockup {
    margin-inline: auto;
    width: 124px;
  }

  .email-capture,
  .gpt-cta {
    padding: 56px 0;
  }

  .waitlist-form-card,
  .feedback-form-card {
    padding: 32px 24px;
  }

  .faq-item {
    padding: 22px 24px;
  }

  .contact-block {
    padding: 28px 24px;
  }

  .coming-soon {
    padding: 52px 0;
  }

  .feature-rows {
    gap: 64px;
  }

  .legal-hero,
  .page-hero {
    padding-block: 56px 48px;
  }

  /* Scroll story — stack phone above text on mobile */
  .scroll-story-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .scroll-story-phones {
    order: 1;
    height: 320px;
  }

  /* Phone width constrained so height ≈ 300px (fits the 320px container) */
  .scroll-story .phone-mockup {
    max-width: 148px;
  }

  .scroll-story-text {
    order: 2;
    height: 180px;
  }

  .scroll-panel-body {
    margin-inline: auto;
  }

  .scroll-story-sticky {
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + 28px);
  }
}


/* =============================================================================
   22. PREMIUM UPGRADES — Grain, Scroll Progress, Hero Gradient, Stats, Reveals
   ============================================================================= */

/* ---- Grain texture overlay ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #2997ff, #56adff);
  z-index: 200;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ---- Hero animated mesh gradient ---- */
.hero-bg-gradient {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 18% 36%, rgba(41, 151, 255, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 70% at 82% 26%, rgba(86, 173, 255, 0.13), transparent 55%),
    radial-gradient(ellipse 50% 80% at 62% 84%, rgba(41, 151, 255, 0.08), transparent 60%);
  animation: gradientDrift 12s ease-in-out infinite alternate;
  filter: blur(40px);
  transform-origin: center;
}

@keyframes gradientDrift {
  0%   { transform: translate(0%, 0%) scale(1); }
  33%  { transform: translate(3%, -4%) scale(1.04); }
  66%  { transform: translate(-4%, 3%) scale(0.97); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}

/* ---- Stats section ---- */
.stats-section {
  padding-block: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number,
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #2997ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  letter-spacing: -0.005em;
}

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

/* ---- Scroll reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered group — children animate in sequence */
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-group.is-revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-revealed > *:nth-child(2) { transition-delay: 90ms; }
.reveal-group.is-revealed > *:nth-child(3) { transition-delay: 180ms; }

.reveal-group.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion — respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg-gradient {
    animation: none;
  }

  .grain-overlay {
    display: none;
  }
}


/* =============================================================================
   23. AESTHETIC POLISH — Cursor effects, micro-animations, visual feedback
   ============================================================================= */

/* ---- 1. Page load fade-in ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: none;
}

/* ---- 2. Hero cursor-tracking glow ---- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(41, 151, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero:hover::after {
  opacity: 0.7;
}

/* ---- 4. Keep featured pricing card static (reduced motion) ---- */
.pricing-card--featured {
  animation: none;
}

/* ---- 5. Nav link hover underline slide-in ---- */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.nav-cta::after {
  background: var(--color-accent);
}

@media (max-width: 767px) {
  .nav-links a::after {
    display: none;
  }
}

/* ---- 7. FAQ accordion ---- */
.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  margin-bottom: 0;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer-wrap > * {
  overflow: hidden;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer {
  padding-top: 10px;
}

/* ---- 8. Keep primary CTA static ---- */
.hero-ctas .btn-primary {
  animation: none;
}

.hero-ctas .btn-primary:hover {
  animation-play-state: paused;
}

/* ---- 9. Glass card hover glow ---- */
.pricing-card:not(.pricing-card--featured) {
  --glow-x: -200px;
  --glow-y: -200px;
}

.pricing-card:not(.pricing-card--featured) {
  background:
    radial-gradient(360px circle at var(--glow-x) var(--glow-y), rgba(41, 151, 255, 0.06), transparent 62%),
    rgba(255, 255, 255, 0.02);
}

/* ---- 11. Focus-visible ring for keyboard navigation ---- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible {
  outline-offset: 4px;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -1px;
  border-color: var(--color-accent);
}

/* ---- Reduced motion overrides for section 23 ---- */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .hero-ctas .btn-primary {
    animation: none;
  }

  .pricing-card--featured {
    animation: none;
  }

  .faq-answer-wrap {
    transition: none;
  }
}
