/* ============================================
   FISH TALES™ — WEBSITE STYLE SHEET
   All site styles live here. Never add styles
   inside individual HTML files.
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

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

/* --- Root Variables --- */
:root {
  --bg:            #001B2E;
  --bg-card:       rgba(255,255,255,0.07);
  --bg-alt:        rgba(255,255,255,0.02);
  --accent:        #00E5FF;
  --accent-dim:    rgba(0,229,255,0.08);
  --accent-border: rgba(0,229,255,0.2);
  --white:         #ffffff;
  --text:          rgba(255,255,255,0.85);
  --text-muted:    rgba(255,255,255,0.6);
  --border:        rgba(255,255,255,0.08);
  --radius-sm:     12px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --font:          'Montserrat', sans-serif;
  --max-width:     1100px;
  --nav-height:    72px;
  --pad:           90px;
  --pad-sm:        60px;
  /* Focus ring color for keyboard navigation */
  --focus-ring:    rgba(0,229,255,0.6);
}

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

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

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

/* Skip navigation — hidden until focused by keyboard */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s;
}

.skip-nav:focus {
  top: 16px;
  text-decoration: none;
}

/* Keyboard focus styles — accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

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

sup {
  font-size: 0.4em;
  font-weight: 400;
  vertical-align: super;
  opacity: 0.65;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--pad) 0; }

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

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.section-title span { color: var(--accent); }

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(0,12,24,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.9; text-decoration: none !important; }

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

/* Hamburger → X animation when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay — dims the page behind the open menu */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ============================================
   STORE BUTTONS
   ============================================ */
.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-buttons-centered { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.store-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

.store-btn-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.store-btn-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: var(--pad);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title span { color: var(--accent); }

.hero-tagline {
  font-size: 16px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 14px;
  max-width: 480px;
  line-height: 1.65;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.75;
}

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

.hero-image-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-image img {
  width: 300px;
  border-radius: 36px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
  background: var(--bg-alt);
  padding: var(--pad-sm) 0;
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.problem-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

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

.problem-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s;
}

.problem-stat:hover { border-color: var(--accent-border); }

.problem-stat-number {
  font-size: 30px;
  margin-bottom: 10px;
  line-height: 1;
}

.problem-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.5;
}

/* ============================================
   FEATURES — 4 cards
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--accent-border); }

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.share-icon-wrap { font-size: unset; }

.share-svg {
  width: 36px;
  height: 36px;
}

.feature-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   SCREENSHOTS CAROUSEL
   ============================================ */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 20px 8px 28px;
  flex: 1;
  /* Smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Scroll snapping for polished mobile feel */
  scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar { display: none; }

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  width: 240px;
  padding: 0 4px;
  scroll-snap-align: start;
}

.screenshot-item img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4),
              0 0 0 1px rgba(255,255,255,0.08);
}

.screenshot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.screenshot-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
  width: 100%;
  padding: 0 4px;
}

.carousel-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   REEL STATS
   ============================================ */
.stats-section { background: var(--bg-alt); }

.stats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.stats-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.stats-body strong { color: var(--accent); font-weight: 700; }
.stats-body em     { color: var(--white);  font-style: normal; font-weight: 600; }

.stats-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.stats-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stats-feature-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 28px;
  text-align: center;
}

.stats-feature strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.stats-feature p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.stats-image {
  display: flex;
  justify-content: center;
}

.stats-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 36px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.08);
}

/* ============================================
   LIFETIME
   ============================================ */
.lifetime-section {
  text-align: center;
  padding: var(--pad-sm) 0;
}

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

.lifetime-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.lifetime-title span { color: var(--accent); }

.lifetime-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}

/* ============================================
   PRIVACY
   ============================================ */
.privacy-section { background: var(--bg-alt); }

.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.privacy-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.privacy-footer-line {
  color: var(--accent);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.6;
}

.privacy-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s;
}

.privacy-pillar:hover { border-color: var(--accent-border); }
.privacy-pillar-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

.privacy-pillar-text strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.privacy-pillar-text p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.pricing-card.pro {
  border-color: var(--accent);
  background: rgba(0,229,255,0.04);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-plan {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 44px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--accent-border); }

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

.faq-question:hover { color: var(--accent); }

/* SVG chevron sizing and animation */
.faq-chevron {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.faq-chevron svg {
  width: 20px;
  height: 20px;
  display: block;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 1200px; }

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================
   CTA
   ============================================ */
.cta-section { text-align: center; }

.cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-title span { color: var(--accent); }

.cta-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-brand-tales { color: var(--accent); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

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

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

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .stats-inner  { gap: 40px; }
  .pricing-grid { max-width: 100%; }
}

@media (max-width: 768px) {
  :root {
    --pad:    64px;
    --pad-sm: 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title    { font-size: clamp(48px, 12vw, 72px); }
  .hero-image    { order: -1; }
  .hero-image img { width: 260px; }
  .hero-image-glow { width: 260px; height: 260px; }
  .hero-tagline  { margin-left: auto; margin-right: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }

  .problem-inner { grid-template-columns: 1fr; gap: 40px; }
  .problem-stats { grid-template-columns: 1fr 1fr; }

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

  .screenshot-item { width: 220px; }

  .stats-inner  { grid-template-columns: 1fr; }
  .stats-image  { order: -1; }
  .stats-image img { max-width: 240px; }

  .privacy-inner { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }

  /* Hide nav links on mobile — show hamburger instead */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0,12,24,0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    z-index: 100;
    list-style: none;
  }

  .nav-links.open { display: flex; }
  .nav-mobile-overlay.open { display: block; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 28px;
    font-size: 15px;
  }

  .nav-links .nav-cta {
    margin: 12px 24px 0;
    text-align: center;
    display: block;
    padding: 14px 20px;
  }

  .nav-hamburger { display: flex; }

  /* Reduce backdrop blur on mobile for GPU performance */
  nav { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-copy   { text-align: center; }
  .footer-links  { justify-content: center; }
}

@media (max-width: 480px) {
  .features-grid   { grid-template-columns: 1fr; }
  .hero-image img  { width: 220px; }
  .pricing-card    { padding: 32px 24px; }
  .screenshot-item { width: 200px; }
}

/* ============================================
   REDUCED MOTION — accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
