/* ============================================================
   CURIOSITY CLINIC — Exact replica of React/Tailwind design
   ============================================================ */

/* ---- TOKENS (direct from React source) ---- */
:root {
  --cyan:        #29C6C6;   /* primary — buttons, logo */
  --cyan-dk:     #24b5b5;   /* hover */
  --cyan-lt:     rgba(41,198,198,.1);
  --blue:        #137FEC;   /* labels, icons, links */
  --blue-dk:     #0f6fd4;
  --blue-900:    #1e3a8a;   /* stat numbers */
  --teal-grad:   #14B8A6;   /* hero heading gradient end */
  --cta-end:     #2DD4BF;   /* CTA gradient end */
  --dark:        #0F172A;   /* headings */
  --text:        #374151;   /* body */
  --muted:       #6B7280;   /* secondary text */
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --f6:          #F6F7F8;   /* section/footer alt bg */
  --blue-50:     #EFF6FF;
  --green-50:    #F0FDF4;
  --green-600:   #16A34A;
  --white:       #FFFFFF;
  --border:      #E5E7EB;

  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-px: 70px;
  --nav-h:       80px;
  --r-sm:        8px;
  --r-md:        12px;
  --r-lg:        16px;
  --r-xl:        24px;
  --r-2xl:       40px;   /* cta card border-radius: 2.5rem */
  --sh-sm:       0 1px 3px rgba(0,0,0,.08);
  --sh-md:       0 4px 16px rgba(0,0,0,.08);
  --sh-lg:       0 10px 40px rgba(0,0,0,.12);
  --sh-xl:       0 20px 60px rgba(0,0,0,.15);
  --sh-cyan:     0 8px 24px rgba(41,198,198,.3);
  --sh-blue:     0 8px 24px rgba(19,127,236,.25);
  --tr:          .2s ease;
}

/* ---- RESET ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-size:16px;color:var(--text);background:var(--white);line-height:1.6;overflow-x:hidden}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit;transition:color var(--tr)}
ul{list-style:none}
button{font-family:var(--font);cursor:pointer;border:none;background:none}

/* ---- UTILITIES ---- */
.hidden{display:none !important}

.container{
  width:100%;
  margin:0 auto;
  padding:0 var(--container-px);
  /* matches mx-auto w-full px-[70px] */
}

/* ---- SCROLL ANIMATIONS ---- */
.animate-on-scroll{
  opacity:0;transform:translateY(22px);
  transition:opacity .55s ease,transform .55s ease;
}
.animate-on-scroll.is-visible{opacity:1;transform:none}

/* ================================================================
   BUTTONS
   ================================================================ */
/* Log In button — teal text, teal/10 bg */
.btn-login{
  padding:8px 16px;
  font-size:.875rem;font-weight:600;
  color:var(--cyan);background:var(--cyan-lt);
  border-radius:var(--r-sm);
  transition:background var(--tr);
  white-space:nowrap;
}
.btn-login:hover{background:rgba(41,198,198,.18)}

/* Sign Up button — white text, cyan bg, cyan shadow */
.btn-signup{
  padding:8px 20px;
  font-size:.875rem;font-weight:600;
  color:var(--white);background:var(--cyan);
  border-radius:var(--r-sm);
  box-shadow:var(--sh-cyan);
  transition:background var(--tr),transform var(--tr),box-shadow var(--tr);
  white-space:nowrap;
}
.btn-signup:hover{background:var(--cyan-dk);transform:translateY(-1px)}
.btn-signup:active{transform:none}
.btn-signup:disabled{opacity:.6;cursor:not-allowed;transform:none}

/* Large hero CTA */
.btn-lg{
  padding:16px 32px !important;
  font-size:1.125rem !important;
  font-weight:700 !important;
  border-radius:12px !important;
}

/* Hero-specific CTA — auto width, not stretched */
.btn-hero-cta{
  padding:14px 32px;
  font-size:1.0625rem;
  font-weight:700;
  border-radius:12px;
  width:auto;
  flex-shrink:0;
}

/* Full-width */
.btn-full{width:100%}

/* White button for CTA card */
.btn-cta-white{
  display:inline-block;
  padding:18px 40px;
  font-size:1.125rem;font-weight:700;
  color:var(--blue);background:var(--white);
  border-radius:12px;
  transition:background var(--tr),transform var(--tr),box-shadow var(--tr);
  white-space:nowrap;
}
.btn-cta-white:hover{background:var(--gray-50);transform:translateY(-2px);box-shadow:var(--sh-xl)}

/* ================================================================
   NAVBAR — sticky, bg-white/80 backdrop-blur, border-b
   ================================================================ */
#navbar{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--gray-100);
  transition:box-shadow var(--tr);
}
#navbar.scrolled{box-shadow:0 4px 20px rgba(0,0,0,.07)}

.nav-inner{
  height:var(--nav-h);
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;
}

.logo{
  display:flex;align-items:center;gap:8px; /* gap-2 for sm */
  font-size:18px; /* text-[18px] for sm size */
  font-weight:700;color:var(--dark);
  letter-spacing:-.025em; /* tracking-tight */
  white-space:nowrap;
  flex-shrink:0;
}
/* Footer logo uses md size — gap-3, text-2xl */
.footer-brand .logo{
  gap:12px;
  font-size:1.5rem;
}

/* Logo icon box — matches React: bg-[#29C6C6] rounded-lg p-1.5 */
.logo-icon{
  background:#29C6C6;
  border-radius:8px; /* rounded-lg */
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  padding:6px; /* p-1.5 */
}
.logo-icon img{
  width:100%;height:100%;object-fit:contain;display:block;
}
/* sm: w-8 h-8 = 32px */
.logo-icon-sm{width:32px;height:32px}
/* md: w-10 h-10 = 40px */
.logo-icon-md{width:40px;height:40px}

/* Center nav links */
.nav-links{
  display:flex;align-items:center;gap:32px;
  font-size:.875rem;font-weight:500;color:#4B5563;
  margin:0 auto; /* pushes to center */
}
.nav-links a:hover{color:var(--cyan)}

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

/* Hamburger */
.hamburger{
  display:none;flex-direction:column;gap:5px;
  padding:6px;border-radius:4px;
}
.hamburger span{
  display:block;height:2px;width:22px;
  background:var(--dark);border-radius:2px;
  transition:transform var(--tr),opacity var(--tr);
}
.hamburger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.is-open span:nth-child(2){opacity:0}
.hamburger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ================================================================
   HERO — bg-gradient-to-r from-[#EFF6FF] to-[#F0FDFA]
   ================================================================ */
#hero{
  background:linear-gradient(to right, #EFF6FF, #F0FDFA);
  padding:48px 0 80px;
  position:relative;
  overflow:hidden;
}

/* Layer-blur blobs — Figma: blur 120, corner-radius 9999 (circle) */
.hero-blob{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  z-index:0;
}

/* Top-left: #137FEC at 15% opacity */
.hero-blob-tl{
  width:500px;
  height:500px;
  background:rgba(19,127,236,0.15);
  filter:blur(120px);
  top:-180px;
  left:-180px;
}

/* Bottom-right: #2DD4BF at 14% opacity */
.hero-blob-br{
  width:500px;
  height:500px;
  background:rgba(45,212,191,0.14);
  filter:blur(120px);
  bottom:-180px;
  right:-180px;
}

/* Ensure hero content sits above the blobs */
.hero-grid{position:relative;z-index:1}

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

/* Hero Left */
.hero-left{display:flex;flex-direction:column;gap:32px}

.hero-heading{
  /* gradient text: from-[#137FEC] to-[#14B8A6] */
  font-size:clamp(2.25rem,4.5vw,4.25rem);
  font-weight:900;
  line-height:1.1;
  letter-spacing:-1.8px;
  background:linear-gradient(to right, #137FEC, #14B8A6);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-sub{
  font-size:1.125rem;color:var(--muted);max-width:32rem;line-height:1.7;
}

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

.social-proof{
  display:flex;align-items:center;gap:12px;
  font-size:.875rem;font-weight:500;color:var(--muted);
}
.social-proof strong{color:var(--dark);font-weight:700}

.avatars{display:flex}
.av{
  width:40px;height:40px;border-radius:50%;
  border:2px solid var(--white);
  overflow:hidden;
  box-shadow:var(--sh-sm);
  flex-shrink:0;
}
.av img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.av+.av{margin-left:-12px}
.av1{background:var(--cyan)}
.av2{background:var(--blue)}
.av3{background:#8B5CF6}

/* Hero Right — circle + Dr Wilson card */
.hero-right{display:flex;justify-content:center;position:relative}

.hero-circle-wrap{
  position:relative;
  width:100%;max-width:480px;
  aspect-ratio:1/1;
}

.hero-circle{
  width:100%;height:100%;
  border-radius:50%;
  background:rgba(255,255,255,0.85);
  box-shadow:0 20px 56px rgba(19,127,236,.10), 0 4px 16px rgba(0,0,0,.06);
  overflow:hidden;
  position:relative;
}

.hero-circle-inner{
  width:100%;height:100%;
  border-radius:50%;
  overflow:hidden;
  background:#ffffff;
  position:relative;
}

.hero-app-img{
  position:absolute;
  width:100%;
  height:auto;
  top:14%;
  left:14%;
  display:block;
  border-radius:12px;
  transform:scale(1.5);
  transform-origin:top left;
}

/* Dr Wilson card — Image #7: label top, name + PGY II badge bottom */
.dr-wilson-card{
  position:absolute;
  bottom:15%;left:-5%;
  background:var(--white);
  padding:14px 20px 16px;
  border-radius:14px;
  box-shadow:0 10px 40px rgba(0,0,0,.1);
  border:1px solid var(--gray-50);
  min-width:220px;
}

.dw-label{
  font-size:.6875rem;font-weight:600;
  color:#9CA3AF;text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:6px;
  display:block;
}

.dw-name-row{
  display:flex;align-items:center;gap:10px;
}

.dw-name{
  font-size:1.375rem;font-weight:800;
  color:var(--dark);line-height:1;
  white-space:nowrap;
}

/* PGY II badge — teal/cyan pill */
.dw-badge{
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(41,198,198,.15);
  color:var(--cyan);
  font-size:.6875rem;font-weight:700;
  letter-spacing:.04em;
  padding:3px 8px;
  border-radius:6px;
  white-space:nowrap;
  flex-shrink:0;
}

/* ================================================================
   STATS — bg-white border-y border-gray-50
   ================================================================ */
.stats-section{
  background:var(--white);
  border-top:1px solid var(--gray-50);
  border-bottom:1px solid var(--gray-50);
  padding:48px 0;
}

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

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

.stat-num{
  font-size:clamp(2rem,4vw,3rem);
  font-weight:800;color:#0F172A;
}

.stat-lbl{
  font-size:1rem;font-weight:700;color:#0F172A;
}

/* Green badge — text-green-600 bg-green-50 rounded-full border border-green-100 */
.stat-badge{
  display:inline-block;
  padding:4px 12px;
  font-size:.75rem;font-weight:700;
  color:var(--green-600);
  background:var(--green-50);
  border:1px solid #BBF7D0;
  border-radius:9999px;
}

/* ================================================================
   DISCOVER — bg-[#F6F7F8]
   ================================================================ */
.discover-section{
  background:var(--f6);
  padding:48px 0 64px;
}

.section-heading{
  font-size:clamp(1.625rem,2.5vw,2.25rem);
  font-weight:700;line-height:1.1;letter-spacing:-.9px;
  color:var(--dark);text-align:center;
  margin-bottom:64px;
}

.discover-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:48px;align-items:start;
}

/* Accordion */
.accordion{display:flex;flex-direction:column;gap:8px}

.acc-item{
  border:2px solid transparent;
  border-radius:16px;
  transition:background var(--tr),border-color var(--tr),box-shadow var(--tr);
}
.acc-item.is-open{
  background:var(--white);
  border-color:#DBEAFE; /* blue-100 */
  box-shadow:0 20px 60px rgba(59,130,246,.08); /* shadow-xl shadow-blue-50/50 */
}

.acc-btn{
  width:100%;display:flex;align-items:center;gap:12px;
  padding:24px;background:none;
  font-size:1.125rem;font-weight:700;color:var(--dark);letter-spacing:0;
  text-align:left;border-radius:14px;
}
.acc-btn:hover{color:var(--blue)}

.acc-icon{
  width:32px;height:32px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  color:var(--blue);
}

.acc-chevron{
  margin-left:auto;flex-shrink:0;
  transition:transform var(--tr);
}
.acc-item.is-open .acc-chevron{transform:rotate(180deg)}

.acc-body{
  max-height:0;overflow:hidden;
  transition:max-height .35s ease,padding .35s ease;
}
.acc-item.is-open .acc-body{max-height:180px}
.acc-body p{
  font-size:.875rem;line-height:1.7;color:var(--muted);
  padding:0 24px 24px 72px; /* ml-13 equivalent */
}

/* Discover visual */
.discover-visual{
  display:flex;align-items:center;justify-content:center;
  min-height:400px;
}

/* Outer wrapper — light blue tint + subtle blue border */
.discover-mockup{
  width:100%;
  max-width:480px;
  background:rgba(19,127,236,0.05);
  border-radius:16px;
  border:1px solid rgba(19,127,236,0.10);
  padding:24px;
  box-shadow:0 8px 32px rgba(19,127,236,.08), 0 2px 8px rgba(0,0,0,.06);
}

/* Inner card — white bg + teal border */
.discover-mockup-inner{
  background:#ffffff;
  border-radius:10px;
  overflow:hidden;
}

.mockup-titlebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  background:#ffffff;
  border-bottom:1px solid rgba(41,198,198,.15);
}

.mockup-dots{
  display:flex;
  align-items:center;
  gap:7px;
}

.dot{
  width:12px;height:12px;
  border-radius:50%;
  display:inline-block;
}
.dot-red{background:#FF5F57;}
.dot-yellow{background:#FEBC2E;}
.dot-green{background:#28C840;}

.mockup-label{
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.12em;
  color:#6B7280;
}

.mockup-body{
  overflow:hidden;
  border-radius:0 0 16px 16px;
}

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

/* Generic placeholder card */
.placeholder-card{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;
  background:var(--white);
  border:1.5px solid var(--border);
  border-radius:var(--r-xl);
  padding:48px;
  box-shadow:var(--sh-md);
  width:100%;
  min-height:300px;
}
.placeholder-card p{
  font-size:.9375rem;font-weight:600;
  color:#9CA3AF;text-align:center;
}
.discover-placeholder{min-height:400px}
.feature-placeholder{min-height:280px}

/* Blue border frame for feature section images */
.feat-img-frame{
  width:100%;
  background:#F1F5F9;
  border-radius:16px;
  padding:22px;
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.05);
}

.feat-img-inner{
  background:#ffffff;
  border-radius:10px;
  overflow:hidden;
}

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

.feat-img-inner--crop{
  overflow:hidden;
  aspect-ratio:4/2.5;
}

.feat-img-inner--crop .feat-img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  object-position:top;
}

.feat-img-inner--crop-34{
  overflow:hidden;
  aspect-ratio:4/2.5;
}

.feat-img-inner--crop-34 .feat-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top left;
}

/* ================================================================
   FEATURE SECTIONS
   ================================================================ */
.feature-section{padding:48px 0 64px}
.feat-alt{background:var(--f6)}

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

/* Reverse: text goes to order 2 on desktop */
.feature-grid-reverse .feature-text{order:2}
.feature-grid-reverse .feature-visual{order:1}

.feat-label{
  display:block;
  font-size:.875rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--blue);
  margin-bottom:12px;
}

.feature-text h2{
  font-size:clamp(1.625rem,2.5vw,2.25rem);
  font-weight:700;line-height:1.1;letter-spacing:-.9px;
  color:var(--dark);margin-bottom:12px;
}

.feature-text p{
  font-size:1.125rem;color:var(--muted);line-height:1.7;margin-bottom:24px;
}

.feat-bullets{display:flex;flex-direction:column;gap:16px}

.feat-bullets li{
  display:flex;align-items:center;gap:12px;
  font-size:1rem;font-weight:600;color:#374151;
}

.bullet-check{
  flex-shrink:0;
  width:20px;height:20px;
  border-radius:50%;
  background:var(--blue-50);
  display:flex;align-items:center;justify-content:center;
}

.bullet-dot{
  flex-shrink:0;
  width:10px;height:10px;
  border-radius:50%;
}
.bullet-dot--active{ background:#137FEC; }
.bullet-dot--inactive{ background:#CBD5E1; }

/* Team visual */
.team-visual{
  position:relative;
  display:flex;flex-direction:row;gap:24px;
  align-items:center;justify-content:center;
  min-height:300px;
}

.team-blur{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:380px;height:280px;
  background:#137FEC;opacity:.15;
  filter:blur(80px);
  border-radius:9999px;
  pointer-events:none;
}

.team-card{
  position:relative;z-index:1;
  background:var(--white);
  padding:24px;border-radius:16px;
  box-shadow:var(--sh-xl);
  border:1px solid var(--gray-50);
  display:flex;flex-direction:column;align-items:center;gap:12px;
  width:192px;
  transition:transform var(--tr);
}
.team-card:hover{transform:scale(1.03)}
.team-card-offset{margin-top:48px}

.team-avatar{
  width:64px;height:64px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.875rem;font-weight:700;color:#fff;
  flex-shrink:0;
}
.tav-blue{
  background:linear-gradient(135deg,#137FEC,#3B82F6);
  box-shadow:0 0 0 4px #EFF6FF;
}
.tav-cyan{
  background:linear-gradient(135deg,#29C6C6,#14B8A6);
  box-shadow:0 0 0 4px #F0FDFA;
}

.team-info{text-align:center}
.team-name{font-size:1rem;font-weight:700;color:var(--dark)}
.team-role{
  font-size:.625rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.12em;
  color:#9CA3AF;margin-top:2px;
}

/* Comment card images — team synergy */
.comment-card-img{
  position:relative;z-index:2;
  width:300px;
  border-radius:16px;
  transition:transform var(--tr);
}
.comment-card-img:hover{transform:scale(1.03)}
.comment-card-img--offset{margin-top:48px;z-index:0}

/* Timeline card */
.timeline-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px;
  box-shadow:var(--sh-lg);
  max-width:500px;width:100%;
}

.tl-card-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:32px;
}
.tl-card-header span{font-size:1rem;font-weight:700;color:var(--dark)}

.tl-nav{display:flex;gap:8px}
.tl-nav-btn{
  width:24px;height:24px;border-radius:4px;
  background:var(--gray-100);border:none;cursor:pointer;
  font-size:.6875rem;font-weight:700;color:var(--muted);
  display:flex;align-items:center;justify-content:center;
  transition:background var(--tr),color var(--tr);
}
.tl-nav-btn:hover{background:var(--blue-50);color:var(--blue)}

.tl-rows{display:flex;flex-direction:column;gap:24px}

.tl-row{display:flex;align-items:center;gap:16px}

.tl-period{
  font-size:.625rem;font-weight:700;
  color:#D1D5DB; /* gray-300 */
  width:80px;flex-shrink:0;white-space:nowrap;
  letter-spacing:.02em;
}

.tl-track{flex:1;height:24px;border-radius:9999px;overflow:visible;position:relative}

.tl-bar{
  height:24px;border-radius:9999px;
  display:flex;align-items:center;
  padding:0 16px;
  font-size:.5rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  white-space:nowrap;overflow:hidden;
  width:100%;
}

.tl-blue{background:#3B82F6;color:#fff}

.tl-cyan-bg{
  background:#CFFAFE; /* cyan-100 */
  color:transparent;
  position:relative;
  overflow:visible;
}
.tl-progress{
  position:absolute;left:0;top:0;
  height:100%;width:70%;
  background:var(--cyan);
  border-radius:9999px;
}
.tl-bar-label{
  position:absolute;right:16px;top:50%;transform:translateY(-50%);
  font-size:.5rem;font-weight:700;letter-spacing:.12em;
  color:#164E63;z-index:1;white-space:nowrap;
}
.tl-dot{
  position:absolute;right:-6px;top:50%;transform:translateY(-50%);
  width:12px;height:12px;border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 0 4px var(--white);
  z-index:2;
}

.tl-empty{background:var(--gray-100);color:transparent}

/* ================================================================
   CTA — full-width section with rounded gradient card
   ================================================================ */
.cta-section{padding:80px 0 128px}

.cta-card{
  /* bg-[linear-gradient(to_right,#137FEC_0%,#137FEC_50%,#2DD4BF_100%)] */
  background:linear-gradient(to bottom right, #137FEC 0%, #137FEC 50%, #2DD4BF 100%);
  border-radius:var(--r-2xl); /* 2.5rem = 40px */
  padding:80px 32px 112px;
  text-align:center;
  color:var(--white);
  position:relative;
  overflow:hidden;
  box-shadow:0 25px 60px rgba(19,127,236,.3);
}

.cta-glow{
  position:absolute;top:0;right:0;
  width:256px;height:256px;
  background:rgba(255,255,255,.1);
  filter:blur(80px);
  border-radius:50%;
  transform:translate(50%,-50%);
  pointer-events:none;
}

.cta-card h2{
  font-size:clamp(2rem,5vw,3.75rem);
  font-weight:800;line-height:1.1;
  margin-bottom:32px;
  position:relative;z-index:1;
}

.cta-card p{
  font-size:1.25rem;color:rgba(239,246,255,.9); /* blue-50 90% */
  max-width:42rem;margin:0 auto 32px;line-height:1.7;
  position:relative;z-index:1;
}

/* ================================================================
   FOOTER — bg-[#F6F7F8] (LIGHT)
   ================================================================ */
#footer{
  background:var(--f6);
  padding:96px 0 48px;
  border-top:1px solid var(--gray-100);
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr 2fr;
  gap:24px;
  margin-bottom:80px;
}

.footer-brand .logo{margin-bottom:24px}
.footer-brand p{
  font-size:.875rem;color:var(--muted);
  line-height:1.7;max-width:280px;margin-bottom:24px;
}

.footer-social{display:flex;gap:16px}
.footer-social a{
  color:#9CA3AF;
  transition:color var(--tr);
}
.footer-social a:hover{color:var(--blue)}

.footer-col h4{
  font-size:1rem;font-weight:700;
  color:var(--dark);margin-bottom:24px;
}
.footer-col ul{display:flex;flex-direction:column;gap:16px}
.footer-col ul a{
  font-size:.875rem;color:var(--muted);
  transition:color var(--tr);
}
.footer-col ul a:hover{color:var(--blue)}

.footer-subscribe h4{margin-bottom:24px}
.footer-subscribe p{
  font-size:.875rem;color:var(--muted);
  line-height:1.7;margin-bottom:16px;
}

.name-row{display:flex;gap:8px;margin-bottom:8px}
.name-row input{
  flex:1;height:40px;
  padding:0 16px;
  border:1px solid var(--border);border-radius:var(--r-sm);
  font-family:var(--font);font-size:.875rem;color:var(--dark);
  background:var(--white);
  transition:border-color var(--tr),box-shadow var(--tr);
}
.name-row input::placeholder{color:#D1D5DB}
.name-row input:focus{
  outline:none;border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}

.sub-row{display:flex;gap:8px;align-items:center}
.sub-row input{
  flex:1;height:40px;
  padding:0 16px;
  border:1px solid var(--border);border-radius:var(--r-sm);
  font-family:var(--font);font-size:.875rem;color:var(--dark);
  background:var(--white);
  transition:border-color var(--tr),box-shadow var(--tr);
}
.sub-row input::placeholder{color:#D1D5DB}
.sub-row input:focus{
  outline:none;border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.sub-btn{
  flex-shrink:0;width:40px;height:40px;
  background:var(--cyan);border-radius:var(--r-sm);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--sh-cyan);
  transition:background var(--tr);
  position:relative;
  overflow:hidden;
}
.sub-btn:hover{background:var(--cyan-dk)}

/* Spinner */
.sub-btn .btn-spinner{
  display:none;
  width:18px;height:18px;
  border:2.5px solid rgba(255,255,255,0.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* Tick */
.sub-btn .btn-tick{
  display:none;
  width:18px;height:18px;
}
.sub-btn .btn-tick svg{
  stroke-dasharray:24;
  stroke-dashoffset:24;
  animation:draw-tick .4s ease forwards;
}
@keyframes draw-tick{to{stroke-dashoffset:0}}

/* States */
.sub-btn.is-loading .btn-icon  { display:none }
.sub-btn.is-loading .btn-spinner{ display:block }
.sub-btn.is-success .btn-icon  { display:none }
.sub-btn.is-success .btn-spinner{ display:none }
.sub-btn.is-success .btn-tick  { display:flex;align-items:center;justify-content:center }
.sub-btn.is-success            { background:#22C55E;box-shadow:0 0 0 3px rgba(34,197,94,.25) }
.sub-btn.is-success:hover      { background:#16A34A }

.footer-bottom{
  border-top:1px solid var(--gray-100);
  padding-top:48px;
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;
}
.footer-bottom p{font-size:.75rem;color:#9CA3AF;font-weight:500}
.footer-bottom-links{display:flex;gap:32px}
.footer-bottom-links a{
  font-size:.75rem;font-weight:700;color:#9CA3AF;
  transition:color var(--tr);
}
.footer-bottom-links a:hover{color:var(--dark)}

/* ================================================================
   FORM MESSAGES
   ================================================================ */
.form-message{
  font-size:.8125rem;
  margin-top:6px;
  display:block;
}
.form-message--success{color:#16A34A}
.form-message--error{color:#DC2626}

/* ================================================================
   MODAL
   ================================================================ */
.modal{
  position:fixed;inset:0;z-index:200;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  animation:fadeIn .2s ease;
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

.modal-card{
  background:var(--white);
  border-radius:24px;
  padding:44px 36px 36px;
  max-width:420px;width:100%;
  position:relative;
  animation:slideUp .28s ease;
}
@keyframes slideUp{
  from{opacity:0;transform:translateY(16px) scale(.97)}
  to{opacity:1;transform:none}
}

.modal-close{
  position:absolute;top:14px;right:14px;
  width:30px;height:30px;border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);transition:background var(--tr),color var(--tr);
}
.modal-close:hover{background:var(--gray-100);color:var(--dark)}

.modal-logo{margin-bottom:20px}
.modal-card h3{font-size:1.5rem;font-weight:800;color:var(--dark);margin-bottom:8px}
.modal-card>p{font-size:.9375rem;color:var(--muted);margin-bottom:24px;line-height:1.6}

.modal-form{display:flex;flex-direction:column;gap:12px}
.modal-form input[type="email"]{
  width:100%;padding:13px 16px;
  border:1.5px solid var(--border);border-radius:var(--r-sm);
  font-family:var(--font);font-size:.9375rem;color:var(--dark);
  transition:border-color var(--tr),box-shadow var(--tr);
}
.modal-form input[type="email"]:focus{
  outline:none;border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(41,198,198,.12);
}
.modal-form input[type="email"]::placeholder{color:#D1D5DB}

.modal-note{font-size:.8125rem;text-align:center;color:var(--muted);margin-top:12px}

/* ================================================================
   RESPONSIVE  —  1280px
   ================================================================ */
@media(max-width:1280px){
  :root{--container-px:48px}
  .hero-circle-wrap{max-width:420px}
  .footer-grid{grid-template-columns:2fr 1fr 1fr 2fr;gap:32px}
}

/* ================================================================
   RESPONSIVE  —  1024px (tablet landscape)
   ================================================================ */
@media(max-width:1024px){
  :root{--container-px:32px;--nav-h:72px}
  .hero-grid{gap:32px}
  .hero-circle-wrap{max-width:360px}
  .stats-grid{gap:24px}
  .feature-grid{gap:40px}
  .cta-card{padding:64px 24px 80px}
  .footer-grid{grid-template-columns:1fr 1fr 1fr;gap:28px}
  .footer-brand{grid-column:1/-1}
  .footer-subscribe{grid-column:1/-1}
}

/* ================================================================
   RESPONSIVE  —  768px (tablet portrait)
   ================================================================ */
@media(max-width:768px){
  :root{--nav-h:64px;--container-px:20px}

  /* Navbar */
  .nav-links{
    display:none;position:absolute;
    top:var(--nav-h);left:0;right:0;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(12px);
    flex-direction:column;align-items:flex-start;
    padding:12px 20px 20px;gap:0;
    border-bottom:1px solid var(--border);
    box-shadow:0 8px 24px rgba(0,0,0,.09);
    margin:0;
  }
  .nav-links.is-open{display:flex}
  .nav-links a{padding:12px 0;width:100%;border-bottom:1px solid var(--gray-100);font-size:.9375rem}
  .nav-links a:last-child{border-bottom:none}
  .hamburger{display:flex}
  /* hide login on mobile, keep signup */
  .btn-login{display:none}

  /* Hero */
  #hero{padding:32px 0 56px}
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .hero-heading{font-size:clamp(2rem,7vw,3rem);letter-spacing:-1px}
  .hero-sub{max-width:100%}
  .hero-right{order:-1}
  .hero-circle-wrap{max-width:320px;margin:0 auto}
  .dr-wilson-card{min-width:200px;left:0}

  /* Stats */
  .stats-section{padding:36px 0}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:24px 32px}

  /* Discover */
  .discover-section{padding:36px 0 48px}
  .section-heading{margin-bottom:40px}
  .discover-grid{grid-template-columns:1fr;gap:32px}

  /* Features */
  .feature-section{padding:36px 0 48px}
  .feature-grid,.feature-grid-reverse{
    grid-template-columns:1fr;gap:32px;
  }
  .feature-grid-reverse .feature-text{order:0}
  .feature-grid-reverse .feature-visual{order:0}

  /* Team */
  .team-visual{min-height:auto;flex-wrap:wrap;justify-content:center}
  .comment-card-img--offset{margin-top:0}
  .comment-card-img{width:240px}

  /* Hero actions */
  .hero-actions{gap:16px}

  /* CTA */
  .cta-section{padding:48px 0 80px}
  .cta-card{padding:56px 24px 64px;border-radius:24px}
  .cta-card h2{font-size:2rem}

  /* Footer */
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px;margin-bottom:48px}
  .footer-brand{grid-column:1/-1}
  .footer-subscribe{grid-column:1/-1}
  .footer-bottom{flex-direction:column;gap:16px;text-align:center;padding-top:32px}
  .footer-bottom-links{flex-wrap:wrap;justify-content:center;gap:16px}
}

/* ================================================================
   RESPONSIVE — TABLET (641px – 1024px)
   ================================================================ */
@media(min-width:641px) and (max-width:1024px){
  :root{--container-px:32px;--nav-h:72px}

  /* Navbar — restore full links, hide hamburger */
  .nav-links{
    display:flex;position:static;
    flex-direction:row;align-items:center;
    background:none;border:none;box-shadow:none;
    backdrop-filter:none;-webkit-backdrop-filter:none;
    padding:0;gap:20px;margin:0 auto;
  }
  .nav-links a{padding:0;width:auto;border-bottom:none;font-size:.875rem}
  .hamburger{display:none}

  /* Hero — restore 2-column */
  #hero{padding:40px 0 64px}
  .hero-grid{grid-template-columns:1fr 1fr;gap:32px}
  .hero-right{order:0}
  .hero-circle-wrap{max-width:300px;margin:0}
  .hero-heading{font-size:clamp(1.875rem,4vw,2.75rem);letter-spacing:-1px}

  /* Stats — 4 column */
  .stats-section{padding:40px 0}
  .stats-grid{grid-template-columns:repeat(4,1fr);gap:20px}

  /* Discover — 2 column */
  .discover-section{padding:40px 0 56px}
  .discover-grid{grid-template-columns:1fr 1fr;gap:32px}
  .section-heading{margin-bottom:40px}

  /* Features — restore 2-column */
  .feature-section{padding:40px 0 56px}
  .feature-grid{grid-template-columns:1fr 1fr;gap:40px}
  .feature-grid-reverse{grid-template-columns:1fr 1fr;gap:40px}
  .feature-grid-reverse .feature-text{order:2}
  .feature-grid-reverse .feature-visual{order:1}

  /* Team — side by side, fluid width to fit column */
  .team-visual{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:16px}
  .comment-card-img{width:calc(50% - 8px);max-width:200px}
  .comment-card-img--offset{margin-top:40px}
  .team-blur{width:320px;height:240px}

  /* CTA */
  .cta-section{padding:56px 0 96px}
  .cta-card{padding:64px 32px 80px}

  /* Footer */
  .footer-grid{grid-template-columns:1fr 1fr 1fr;gap:24px;margin-bottom:48px}
  .footer-brand{grid-column:1/-1}
  .footer-subscribe{grid-column:1/-1}
  .footer-col h4{margin-bottom:16px}
  .footer-col ul{gap:12px}
  .footer-bottom{flex-direction:row;text-align:left;padding-top:32px}
  .footer-bottom-links{justify-content:flex-end}
}

/* ================================================================
   RESPONSIVE  —  480px (mobile)
   ================================================================ */
@media(max-width:480px){
  :root{--container-px:16px}
  .hero-heading{font-size:1.875rem}
  .hero-sub{font-size:1rem}
  .hero-circle-wrap{max-width:280px}
  .dr-wilson-card{min-width:auto;left:0;padding:10px 14px;gap:12px}
  .dw-name{font-size:1rem}
  .stats-grid{grid-template-columns:1fr 1fr;gap:16px}
  .stat-num{font-size:1.75rem}
  .section-heading{margin-bottom:24px}
  .accordion{gap:4px}
  .acc-btn{padding:12px}
  .acc-body p{padding:0 12px 14px 48px}
  .footer-grid{grid-template-columns:1fr 1fr 1fr;gap:16px 8px}
  .footer-brand{grid-column:1/-1}
  .footer-subscribe{grid-column:1/-1}
  .team-visual{flex-direction:column;align-items:center;gap:12px}
  .comment-card-img{width:100%;max-width:280px}
  .comment-card-img--offset{margin-top:0}
  .team-blur{width:250px;height:180px}
  .team-card{width:160px;padding:16px}
  .team-avatar{width:52px;height:52px}
  .placeholder-card{padding:32px 24px;min-height:220px}
  .btn-cta-white{padding:15px 28px;font-size:1rem}
  .cta-card h2{font-size:1.625rem}
  .modal-card{padding:32px 20px 28px;border-radius:16px}
  .name-row{flex-direction:column;gap:8px;align-items:stretch}
  .sub-row{flex-direction:row;align-items:center;gap:8px}
  #footer{padding:40px 0 20px}
  .footer-grid{margin-bottom:24px}
  .footer-bottom{padding-top:20px}
  .footer-col h4{margin-bottom:12px}
  .footer-col ul{gap:10px}
  .footer-brand p{margin-bottom:16px;max-width:100%}
}

/* ================================================================
   RESPONSIVE  —  360px (tiny)
   ================================================================ */
@media(max-width:360px){
  .hero-heading{font-size:1.625rem}
  .btn-lg{padding:13px 22px !important;font-size:1rem !important}
  .cta-card h2{font-size:1.5rem}
  .footer-bottom-links{gap:10px}
}

/* ================================================================
   MOBILE FORM — placed last so cascade always wins (phones only)
   ================================================================ */
@media(max-width:640px){
  .footer-subscribe .name-row input{
    height:44px;
    flex:none;
    width:100%;
    font-size:.9375rem;
    padding:0 16px;
    border:1.5px solid #C4C9D4;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
  }
  .footer-subscribe .sub-row input{
    height:44px;
    flex:1;
    width:auto;
    font-size:.9375rem;
    padding:0 16px;
    border:1.5px solid #C4C9D4;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
  }
  .footer-subscribe .name-row input::placeholder,
  .footer-subscribe .sub-row input::placeholder{color:#9CA3AF}
  .footer-subscribe .sub-btn{
    width:44px;
    height:44px;
    flex-shrink:0;
    border-radius:var(--r-sm);
  }
}
