/* ============================================================
   Taskadoodles · marketing site · dark-mode redesign
   Mirrors the in-app dark navy + multi-colour gradient palette
   so the site reads as a teaser of the app, not a brochure.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0B1024;
  --bg-elev-1: #161D38;
  --bg-elev-2: #1F2748;
  --bg-elev-3: #2A3358;
  --surface-glass: rgba(255, 255, 255, 0.045);
  --surface-glass-hover: rgba(255, 255, 255, 0.07);

  /* Text */
  --text: #F4F6FB;
  --text-soft: #B9C0D8;
  --text-muted: #7F89AA;

  /* Brand palette — lifted from the app */
  --brand-coral: #FF6B6B;
  --brand-coral-hot: #FF4E3B;
  --brand-orange: #F97316;
  --brand-peach: #FB923C;
  --brand-yellow: #FBBF24;
  --brand-mint: #14B8A6;
  --brand-cyan: #06B6D4;
  --brand-purple: #8B5CF6;
  --brand-pink: #EC4899;

  /* Borders + glow */
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --ring-purple: 0 0 0 1px rgba(139, 92, 246, 0.4);
  --ring-coral: 0 0 0 1px rgba(255, 107, 107, 0.4);

  /* Geometry */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-coral: 0 18px 48px rgba(255, 107, 107, 0.4);

  /* Gradients */
  --grad-hero: linear-gradient(120deg, #FF6B6B 0%, #FBBF24 30%, #14B8A6 65%, #8B5CF6 100%);
  --grad-coral: linear-gradient(135deg, #FF6B6B, #F97316);
  --grad-mint: linear-gradient(135deg, #14B8A6, #06B6D4);
  --grad-purple: linear-gradient(135deg, #8B5CF6, #EC4899);
  --grad-warm: linear-gradient(135deg, #FB923C, #FBBF24);
  --grad-deep: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.25), transparent 55%),
               radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.2), transparent 50%),
               linear-gradient(180deg, #0B1024 0%, #131A36 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: var(--grad-deep);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle film grain overlay across the whole site for atmospheric texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 100;
  mix-blend-mode: overlay;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

p { margin: 0; color: var(--text-soft); }

a { color: var(--brand-coral); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-yellow); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 36, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
/* Oversized logo sits in the nav and spills slightly below it into the
   hero, like a badge. Absolute so it doesn't stretch the bar's height. */
.nav-brand {
  position: absolute;
  left: 1.25rem;
  top: 0;
  z-index: 51;
  display: flex;
  align-items: center;
  /* Rounded panel in the nav's own colour, so the bar appears to bulge
     down around the logo and the transparent logo blends in rather than
     floating across the divider. Top flush with the bar, bottom rounded. */
  padding: 2px 18px 10px;
  background: rgba(11, 16, 36, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55);
}
.nav-brand img { height: 100px; width: auto; display: block; transition: height 0.3s ease; }

/* On desktop, the logo lands oversized (170px) and shrinks to 100px once
   the user scrolls (nav-scroll.js toggles .scrolled). Mobile stays 100px. */
@media (min-width: 1024px) {
  .nav:not(.scrolled) .nav-brand img { height: 170px; }
}
.nav-cta {
  background: var(--grad-coral);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(255, 107, 107, 0.45);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--grad-coral);
  color: white !important;
  box-shadow: var(--shadow-coral);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(255, 107, 107, 0.55);
}
.btn-primary:active { transform: translateY(0); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
/* Hero shares the nav's navy, with one restrained spotlight behind the
   phones for depth — far subtler than the old rainbow, just enough to
   stop the dark feeling flat and to draw the eye to the screenshots. */
.hero::after {
  content: '';
  position: absolute;
  top: 8%;
  right: -8%;
  width: 62%;
  height: 85%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.18), rgba(20, 184, 166, 0.06) 45%, transparent 72%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
@keyframes heroBlobDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 600px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.6s 0.05s both ease-out;
}
.hero-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-mint);
  box-shadow: 0 0 12px var(--brand-mint);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s 0.1s both ease-out;
}
.hero h1 .grad {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 4px 24px rgba(255, 107, 107, 0.25));
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.2s both ease-out;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.3s both ease-out;
}
.hero-link-secondary {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-link-secondary:hover {
  color: var(--brand-yellow);
  border-bottom-color: var(--brand-yellow);
  text-decoration: none;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 0.7s 0.4s both ease-out;
}
.hero-meta-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-mint);
}

/* ----- Phone mockups in the hero ----- */
.hero-phones {
  position: relative;
  height: 640px;
  z-index: 1;
  perspective: 1400px;
}
.phone-frame {
  position: absolute;
  width: 280px;
  background: #0A0A0A;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: #0E1428;
}
.phone-1 {
  top: 30px;
  left: -10px;
  transform: rotate(-9deg);
  z-index: 1;
  animation: phoneIn1 1s 0.2s both cubic-bezier(0.22, 1, 0.36, 1);
}
.phone-2 {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  z-index: 3;
  animation: phoneIn2 1s 0.4s both cubic-bezier(0.22, 1, 0.36, 1);
}
.phone-3 {
  top: 50px;
  right: -10px;
  transform: rotate(11deg);
  z-index: 2;
  animation: phoneIn3 1s 0.6s both cubic-bezier(0.22, 1, 0.36, 1);
}
.phone-frame:hover {
  z-index: 10;
}
.phone-1:hover { transform: rotate(-5deg) translateY(-12px); }
.phone-2:hover { transform: translateX(-50%) rotate(0deg) translateY(-12px); }
.phone-3:hover { transform: rotate(7deg) translateY(-12px); }

@keyframes phoneIn1 {
  0% { opacity: 0; transform: rotate(-20deg) translate(-40px, 40px); }
  100% { opacity: 1; transform: rotate(-9deg) translate(0, 0); }
}
@keyframes phoneIn2 {
  0% { opacity: 0; transform: translateX(-50%) translateY(60px) scale(0.85); }
  100% { opacity: 1; transform: translateX(-50%) rotate(2deg) translateY(0) scale(1); }
}
@keyframes phoneIn3 {
  0% { opacity: 0; transform: rotate(25deg) translate(40px, 40px); }
  100% { opacity: 1; transform: rotate(11deg) translate(0, 0); }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Floating decorative dots around the phones */
.phone-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
  animation: floatBob 6s ease-in-out infinite;
}
.phone-deco-1 { top: 40px; right: 35%; width: 14px; height: 14px; background: var(--brand-yellow); box-shadow: 0 0 24px var(--brand-yellow); }
.phone-deco-2 { top: 380px; left: 8%; width: 10px; height: 10px; background: var(--brand-mint); box-shadow: 0 0 20px var(--brand-mint); animation-delay: 1.5s; }
.phone-deco-3 { top: 540px; right: 18%; width: 18px; height: 18px; background: var(--brand-pink); box-shadow: 0 0 30px var(--brand-pink); animation-delay: 3s; }
.phone-deco-4 { top: 200px; right: -20px; width: 8px; height: 8px; background: var(--brand-purple); box-shadow: 0 0 16px var(--brand-purple); animation-delay: 4.5s; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============================================================
   Generic section heading
   ============================================================ */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ============================================================
   Problem block
   ============================================================ */
.problem {
  padding: 5rem 0;
  position: relative;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .problem-grid { grid-template-columns: repeat(4, 1fr); } }
.problem-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.problem-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); }
.problem-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.problem-card p {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
}
.problem-card em { color: var(--brand-yellow); font-style: normal; font-weight: 600; }
.problem-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
}
.problem-quote .accent {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   How it works (numbered steps)
   ============================================================ */
.how {
  padding: 5rem 0;
}
.how-grid,
.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}
@media (min-width: 640px) {
  .how-grid, .how-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .how-grid, .how-steps { grid-template-columns: repeat(4, 1fr); }
}
.how-card,
.how-step {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.how-card:hover,
.how-step:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-coral);
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}
.how-card:nth-child(2) .how-num,
.how-step:nth-child(2) .how-num { background: var(--grad-mint); box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35); }
.how-card:nth-child(3) .how-num,
.how-step:nth-child(3) .how-num { background: var(--grad-purple); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35); }
.how-card:nth-child(4) .how-num,
.how-step:nth-child(4) .how-num { background: var(--grad-warm); box-shadow: 0 8px 24px rgba(251, 146, 60, 0.35); }
.how-card h3,
.how-step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.how-card p,
.how-step p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
/* The "highlighted" step keeps its rainbow star-icon as the visual
   differentiator, but the card itself looks identical to its siblings
   so the row reads as a uniform grid. */
.how-step-highlight .how-num {
  background: var(--grad-hero) !important;
  font-size: 1.5rem !important;
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.4) !important;
}
.eyebrow {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-coral);
  margin-bottom: 0.75rem;
}

/* ============================================================
   Founder
   ============================================================ */
.founder {
  padding: 5rem 0;
}
.founder-inner {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.founder-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--brand-coral), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}
.founder-art img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.founder-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.founder-copy p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.founder-copy strong { color: var(--text); }

/* ============================================================
   Features
   ============================================================ */
.features {
  padding: 5rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-glass-hover);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  padding: 5rem 0;
}
.testimonials-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}
.testimonials-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0 0 3rem;
}
/* Masonry-style column flow: cards take natural height, no empty stretch */
.testimonials-masonry {
  column-count: 1;
  column-gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .testimonials-masonry { column-count: 2; }
}
@media (min-width: 1080px) {
  .testimonials-masonry { column-count: 3; }
}

.testimonial-card {
  break-inside: avoid;
  page-break-inside: avoid;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
  margin: 0 0 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--brand-coral));
  opacity: 0.85;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft, rgba(255, 107, 107, 0.35));
}

.testimonial-card--coral  { --accent: #ff6b6b; --accent-soft: rgba(255, 107, 107, 0.35); }
.testimonial-card--mint   { --accent: #34d399; --accent-soft: rgba(52, 211, 153, 0.35); }
.testimonial-card--purple { --accent: #8b5cf6; --accent-soft: rgba(139, 92, 246, 0.4); }
.testimonial-card--yellow { --accent: #fbbf24; --accent-soft: rgba(251, 191, 36, 0.4); }
.testimonial-card--blue   { --accent: #38bdf8; --accent-soft: rgba(56, 189, 248, 0.4); }

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: white;
  background: linear-gradient(135deg, var(--accent, var(--brand-coral)), color-mix(in srgb, var(--accent, var(--brand-coral)) 60%, #1e1b4b));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent, var(--brand-coral)) 40%, transparent);
}
.testimonial-avatar--anon {
  background: linear-gradient(135deg, #1877f2, #0d52a8);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}
.testimonial-avatar--anon svg {
  width: 24px;
  height: 24px;
  color: white;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.testimonial-meta strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.2;
}
.testimonial-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1;
}
.testimonial-stars {
  color: var(--brand-yellow);
  font-size: 0.85rem;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.testimonial-card blockquote { margin: 0; }
.testimonial-card blockquote p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.testimonial-source {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.testimonial-source .icon-fb {
  width: 14px;
  height: 14px;
  color: #1877f2;
  flex-shrink: 0;
}
.testimonial-source .source-badge {
  font-weight: 600;
  color: var(--text-muted);
}

/* ============================================================
   Waitlist
   ============================================================ */
.waitlist {
  padding: 5rem 0;
}
.waitlist-inner { max-width: 720px; margin: 0 auto; }
.waitlist-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: var(--grad-hero);
  opacity: 0.08;
  filter: blur(80px);
  pointer-events: none;
}
.waitlist-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.85rem;
  position: relative;
}
.waitlist-card > p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1.75rem;
  position: relative;
}
.waitlist-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.waitlist-form input {
  flex: 1;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-form input::placeholder { color: var(--text-muted); }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}
.waitlist-form button {
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  border: none;
  background: var(--grad-coral);
  color: white;
  font: inherit;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.waitlist-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(255, 107, 107, 0.55);
}
.waitlist-form button:disabled { opacity: 0.55; cursor: wait; }
.waitlist-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
}
.waitlist-status.success { color: var(--brand-mint); }
.waitlist-status.error { color: var(--brand-coral); }
.waitlist-fineprint {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.83rem;
  position: relative;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 5rem 0;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.16); }
.faq-item[open] {
  background: var(--surface-glass-hover);
  border-color: rgba(255, 107, 107, 0.2);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-coral);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img { width: 100px; height: 100px; object-fit: contain; }
.footer-brand span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
  background: var(--grad-coral);
  color: white;
  transform: translateY(-2px);
  border-color: transparent;
}

/* ============================================================
   Legal pages (privacy / terms / delete-account / feedback)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 3rem auto 5rem;
  padding: 2.5rem;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}
.legal h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.legal h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.legal a { color: var(--brand-coral); }
.legal a:hover { color: var(--brand-yellow); }
.legal strong { color: var(--text); }
.legal hr { border: 0; border-top: 1px solid var(--border-soft); margin: 1.5rem 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
  }
  .hero-phones {
    height: 480px;
    margin-top: 1rem;
  }
  .phone-frame { width: 220px; }
  .phone-1 { left: 0; }
  .phone-3 { right: 0; }
  .founder-inner { grid-template-columns: 1fr; padding: 2rem; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-phones {
    height: 420px;
  }
  .phone-frame { width: 190px; padding: 8px; border-radius: 36px; }
  .phone-frame img { border-radius: 28px; }
  .phone-1 { left: -20px; }
  .phone-3 { right: -20px; }
  .waitlist-form { flex-direction: column; }
  .legal { padding: 1.75rem 1.25rem; margin: 1.5rem 1rem 3rem; }
}

/* ============================================================
   Theme toggle button (sits in the nav)
   ============================================================ */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  margin-right: 0.5rem;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-glass-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .theme-icon-moon { display: none; }
.theme-toggle .theme-icon-sun { display: block; }
[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }
.nav-inner-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Logo is absolutely positioned (out of flow), so pin this group to the
     right edge ourselves instead of relying on space-between. */
  margin-left: auto;
}

/* ============================================================
   Light theme overrides
   ============================================================ */
[data-theme="light"] {
  --bg: #FFF8F1;
  --bg-elev-1: #FFFFFF;
  --bg-elev-2: #FFF1E3;
  --bg-elev-3: #FCE7D5;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --surface-glass-hover: rgba(255, 255, 255, 0.95);

  --text: #0F1A3D;
  --text-soft: #455369;
  --text-muted: #7A85A0;

  --border: rgba(15, 26, 61, 0.1);
  --border-soft: rgba(15, 26, 61, 0.05);

  --shadow-sm: 0 2px 10px rgba(15, 26, 61, 0.06);
  --shadow: 0 16px 48px rgba(15, 26, 61, 0.1);
  --shadow-lg: 0 30px 80px rgba(15, 26, 61, 0.15);
  --shadow-coral: 0 18px 48px rgba(255, 107, 107, 0.35);

  --grad-deep:
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.1), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.1), transparent 50%),
    linear-gradient(180deg, #FFF8F1 0%, #FFEDDD 100%);
}

[data-theme="light"] body::before {
  opacity: 0.025;
  mix-blend-mode: multiply;
}

[data-theme="light"] .nav {
  background: rgba(255, 248, 241, 0.85);
}

[data-theme="light"] .hero::before { opacity: 0.35; }
[data-theme="light"] .hero::after { opacity: 0.3; }

[data-theme="light"] .hero h1 .grad {
  filter: drop-shadow(0 4px 16px rgba(255, 107, 107, 0.2));
}

[data-theme="light"] .feature-card,
[data-theme="light"] .how-card,
[data-theme="light"] .how-step,
[data-theme="light"] .problem-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .founder-inner,
[data-theme="light"] .waitlist-card,
[data-theme="light"] .legal,
[data-theme="light"] .reset-page,
[data-theme="light"] .hero-kicker {
  background: var(--bg-elev-1);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .feature-card:hover,
[data-theme="light"] .how-card:hover,
[data-theme="light"] .how-step:hover,
[data-theme="light"] .problem-card:hover,
[data-theme="light"] .testimonial-card:hover {
  border-color: rgba(15, 26, 61, 0.18);
  background: #FFFFFF;
}

[data-theme="light"] .faq-item[open] {
  background: var(--bg-elev-2);
  border-color: rgba(255, 107, 107, 0.3);
}


[data-theme="light"] .waitlist-form input,
[data-theme="light"] .feedback-form input,
[data-theme="light"] .feedback-form select,
[data-theme="light"] .feedback-form textarea,
[data-theme="light"] .reset-form input {
  background: #FFFFFF;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="light"] .footer-social a {
  background: var(--bg-elev-1);
  border-color: var(--border);
  color: var(--text-soft);
}

[data-theme="light"] .phone-frame {
  box-shadow:
    0 0 0 2px rgba(15, 26, 61, 0.08),
    0 30px 80px rgba(15, 26, 61, 0.2),
    0 8px 24px rgba(15, 26, 61, 0.12);
}

[data-theme="light"] .theme-toggle {
  background: var(--bg-elev-1);
  border-color: var(--border);
  color: var(--text-soft);
}
[data-theme="light"] .theme-toggle:hover {
  background: #FFFFFF;
  color: var(--text);
  border-color: rgba(15, 26, 61, 0.18);
}

/* ============================================================
   Scroll-reveal animations (added progressively by reveal.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
