/* ============================================
   ScribbleCam - Website Styles
   Aesthetic: Kid's Art Studio / Crayon Box
   ============================================ */

/* --- Custom Properties --- */
:root {
  --teal: #0D9B8A;
  --teal-dark: #087A6C;
  --teal-deeper: #056458;
  --teal-light: #4ECDC4;
  --yellow: #FFD93D;
  --yellow-dark: #E6C235;
  --red: #FF6B6B;
  --blue: #5BA3D9;
  --orange: #FF8C42;
  --green: #6BCB77;
  --purple: #B39DDB;
  --pink: #FF9EC6;
  --paper: #FFF9F0;
  --paper-dark: #F5EDE0;
  --paper-lines: #D4E5F7;
  --pencil: #2C3E50;
  --pencil-light: #546E7A;
  --crayon-brown: #8B6F47;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.15);

  --font-display: 'Freckle Face', cursive;
  --font-heading: 'Fredoka', sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --font-body: 'Nunito', sans-serif;

  --nav-height: 72px;
  --section-pad: clamp(60px, 10vw, 120px);
  --container: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--pencil);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* --- Paper Texture Background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255, 217, 61, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(78, 205, 196, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 107, 107, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  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: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* --- Utility --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 249, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px var(--shadow);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo .l-s { color: #E85D3A; }
.nav-logo .l-c { color: #4A90D9; }
.nav-logo .l-r { color: #6BCB77; }
.nav-logo .l-i { color: #FFD93D; }
.nav-logo .l-b1 { color: #E85D3A; }
.nav-logo .l-b2 { color: #FF8C42; }
.nav-logo .l-l { color: #4A90D9; }
.nav-logo .l-e { color: #6BCB77; }
.nav-logo .l-C { color: #FFD93D; }
.nav-logo .l-a { color: #E85D3A; }
.nav-logo .l-m { color: #4A90D9; }

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--pencil-light);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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

.nav-cta {
  font-family: var(--font-heading);
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--pencil) !important;
  background: var(--yellow);
  padding: 10px 22px;
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  box-shadow: 0 3px 0 var(--yellow-dark);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 0 var(--yellow-dark) !important;
}

.nav-cta:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 0 var(--yellow-dark) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-hamburger span {
  width: 26px;
  height: 3px;
  background: var(--pencil);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 249, 240, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

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

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--pencil);
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--teal);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Teal blob behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(13, 155, 138, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-handwriting);
  font-size: 22px;
  color: var(--teal);
  margin-bottom: 16px;
  animation: wiggle 3s ease-in-out infinite;
}

.hero-badge svg {
  width: 24px;
  height: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.05;
  margin-bottom: 8px;
  position: relative;
}

.hero-title .word-photo { color: var(--teal); }
.hero-title .word-into { color: var(--pencil); font-size: 0.6em; }
.hero-title .word-kid {
  color: var(--red);
  position: relative;
  display: inline-block;
}

/* Crayon underline */
.hero-title .word-kid::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: var(--yellow);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--pencil-light);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--pencil);
  background: var(--yellow);
  padding: 16px 36px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 0 var(--yellow-dark), 0 8px 24px rgba(255, 217, 61, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--yellow-dark), 0 12px 32px rgba(255, 217, 61, 0.35);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--yellow-dark), 0 4px 12px rgba(255, 217, 61, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--teal);
  padding: 14px 28px;
  border-radius: 60px;
  border: 2.5px solid var(--teal);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-2px);
}

/* Hero phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 4px #1a1a1a,
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  z-index: 2;
}

.phone-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-mockup img {
  width: 100%;
  display: block;
}

/* Floating doodle stickers around the phone */
.hero-doodle {
  position: absolute;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

.hero-doodle-1 {
  top: -20px;
  left: -60px;
  animation-delay: 0s;
}

.hero-doodle-2 {
  bottom: 20px;
  right: -50px;
  animation-delay: 1.2s;
}

.hero-doodle-3 {
  top: 40%;
  left: -80px;
  animation-delay: 0.6s;
}

.doodle-star {
  width: 48px;
  height: 48px;
}

.doodle-heart {
  width: 40px;
  height: 40px;
}

.doodle-squiggle {
  width: 60px;
  height: 30px;
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */
.screenshots {
  padding: var(--section-pad) 0;
  position: relative;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px, var(--red) 20px,
    var(--yellow) 20px, var(--yellow) 40px,
    var(--blue) 40px, var(--blue) 60px,
    var(--green) 60px, var(--green) 80px,
    var(--orange) 80px, var(--orange) 100px
  );
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-handwriting);
  font-size: 24px;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--pencil);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--pencil-light);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
}

.screenshot-card {
  position: relative;
  transition: transform 0.4s ease;
}

.screenshot-card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
}

.screenshot-card:nth-child(1) {
  transform: rotate(-3deg);
}

.screenshot-card:nth-child(2) {
  transform: translateY(-20px);
}

.screenshot-card:nth-child(3) {
  transform: rotate(3deg);
}

.screenshot-frame {
  width: 240px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 0 0 3px #222;
  background: #000;
}

.screenshot-frame img {
  width: 100%;
  display: block;
}

.screenshot-label {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-handwriting);
  font-size: 20px;
  color: var(--pencil-light);
}

/* Tape decoration */
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 70px;
  height: 24px;
  background: rgba(255, 217, 61, 0.7);
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tape::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.15) 3px,
    rgba(255, 255, 255, 0.15) 6px
  );
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--paper) 0%, #F0F7F6 100%);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 16px var(--shadow);
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-strong);
  border-color: var(--teal-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.feature-icon.crayon { background: rgba(255, 107, 107, 0.12); }
.feature-icon.cartoon { background: rgba(91, 163, 217, 0.12); }
.feature-icon.sketch { background: rgba(255, 140, 66, 0.12); }
.feature-icon.painting { background: rgba(107, 203, 119, 0.12); }
.feature-icon.outline { background: rgba(179, 157, 219, 0.12); }
.feature-icon.avatar { background: rgba(255, 217, 61, 0.12); }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--pencil);
}

.feature-card p {
  font-size: 15px;
  color: var(--pencil-light);
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: var(--section-pad) 0;
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  position: relative;
}

/* Connecting dashed line */
.steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--teal-light) 0px, var(--teal-light) 8px,
    transparent 8px, transparent 16px
  );
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 40px;
  position: relative;
}

.step:nth-child(1) .step-number {
  background: rgba(255, 107, 107, 0.1);
  color: var(--red);
  border: 3px dashed var(--red);
}

.step:nth-child(2) .step-number {
  background: rgba(91, 163, 217, 0.1);
  color: var(--blue);
  border: 3px dashed var(--blue);
}

.step:nth-child(3) .step-number {
  background: rgba(107, 203, 119, 0.1);
  color: var(--green);
  border: 3px dashed var(--green);
}

.step-icon {
  font-size: 44px;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--pencil-light);
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   STYLES SHOWCASE
   ============================================ */
.styles-showcase {
  padding: var(--section-pad) 0;
  background: var(--teal);
  position: relative;
  overflow: hidden;
}

.styles-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(255, 217, 61, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 107, 107, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Notebook lines pattern */
.styles-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 38px,
    rgba(255, 255, 255, 0.04) 38px,
    rgba(255, 255, 255, 0.04) 40px
  );
  pointer-events: none;
}

.styles-showcase .section-label {
  color: var(--yellow);
}

.styles-showcase .section-title {
  color: white;
}

.styles-showcase .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.style-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.style-pill:hover {
  transform: translateY(-4px) rotate(-1deg);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.style-pill-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.style-pill h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.style-pill p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}

.cta-card {
  background: white;
  border-radius: 32px;
  padding: 64px 40px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 40px var(--shadow);
  position: relative;
  overflow: hidden;
  border: 3px solid var(--paper-dark);
}

/* Corner doodles on CTA */
.cta-card::before,
.cta-card::after {
  font-size: 64px;
  position: absolute;
  opacity: 0.08;
}

.cta-card::before {
  content: '\2605';
  top: 16px;
  left: 24px;
  transform: rotate(-15deg);
  color: var(--yellow);
  opacity: 0.2;
}

.cta-card::after {
  content: '\2665';
  bottom: 16px;
  right: 24px;
  transform: rotate(10deg);
  color: var(--red);
  opacity: 0.15;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  margin-bottom: 16px;
  color: var(--pencil);
}

.cta-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--pencil-light);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* App Store badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.25s ease;
}

.app-store-badge:hover {
  transform: translateY(-3px);
}

.app-store-badge img {
  height: 52px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--pencil);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px, var(--red) 25%,
    var(--yellow) 25%, var(--yellow) 50%,
    var(--blue) 50%, var(--blue) 75%,
    var(--green) 75%, var(--green) 100%
  );
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: white;
}

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

.footer-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s ease;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   LEGAL / PRIVACY PAGE
   ============================================ */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 48px;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px, var(--red) 20px,
    var(--yellow) 20px, var(--yellow) 40px,
    var(--blue) 40px, var(--blue) 60px,
    var(--green) 60px, var(--green) 80px
  );
  border-radius: 2px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--pencil);
  margin-bottom: 8px;
}

.page-description {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--pencil-light);
  font-weight: 400;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px var(--section-pad);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--pencil);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}

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

.legal-content p {
  margin-bottom: 16px;
  color: var(--pencil-light);
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--pencil-light);
  line-height: 1.7;
  list-style: none;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.legal-content a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(13, 155, 138, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.legal-content a:hover {
  text-decoration-color: var(--teal);
}

.legal-date {
  font-family: var(--font-handwriting);
  font-size: 20px;
  color: var(--pencil-light);
  margin-bottom: 32px;
  display: block;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px var(--section-pad);
  text-align: center;
}

.contact-card {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 2px solid var(--paper-dark);
  margin-bottom: 40px;
  position: relative;
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}

.contact-card h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--pencil);
}

.contact-card p {
  font-size: 16px;
  color: var(--pencil-light);
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(13, 155, 138, 0.08);
  padding: 16px 32px;
  border-radius: 60px;
  transition: background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.contact-email-link:hover {
  background: rgba(13, 155, 138, 0.15);
  transform: translateY(-2px);
}

.contact-faq {
  text-align: left;
}

.contact-faq h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: var(--pencil);
}

.faq-item {
  background: white;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: var(--teal-light);
}

.faq-item h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--pencil);
}

.faq-item p {
  font-size: 15px;
  color: var(--pencil-light);
  line-height: 1.65;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

@keyframes crayon-draw {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before {
    display: none;
  }

  .screenshots-grid {
    gap: 24px;
  }

  .screenshot-frame {
    width: 200px;
  }

  .screenshot-card:nth-child(1),
  .screenshot-card:nth-child(3) {
    transform: none;
  }

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

  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 48px;
  }

  .phone-mockup {
    width: 200px;
  }

  .hero-doodle {
    display: none;
  }

  .screenshot-frame {
    width: 170px;
  }

  .screenshots-grid {
    gap: 16px;
  }

  .screenshot-card:nth-child(1) { transform: rotate(-2deg); }
  .screenshot-card:nth-child(3) { transform: rotate(2deg); }

  .cta-card {
    padding: 40px 24px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .style-pill {
    padding: 18px 14px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .legal-content h2 {
    font-size: 20px;
  }
}
