/* IQ Demo Clinic shared stylesheet */
:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --navy: #012166;
  --sky: #009ae5;
  --accent: #00a0ed;
  --text: #08111f;
  --muted: #35445e;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-dark: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.75);
  --line-dark: rgba(255, 255, 255, 0.28);
  --shadow: 0 10px 34px rgba(1, 33, 102, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1160px;
  --head: "Syne", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(0, 160, 237, 0.14), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(1, 33, 102, 0.07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: #0068a8; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
ul { padding-left: 1.2em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.tight { padding-top: 0; }
.eyebrow {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #006ea6; margin-bottom: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.7rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 0.9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center; line-height: 1.25;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(1, 33, 102, 0.28); }
.btn-primary:hover { background: #02308f; color: #fff; }
.btn-secondary { background: rgba(255, 255, 255, 0.7); color: var(--navy); border-color: rgba(1, 33, 102, 0.25); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: #fff; color: var(--navy); }
.on-dark .btn-primary { background: #fff; color: var(--navy); }
.on-dark .btn-primary:hover { background: #e6f4ff; color: var(--navy); }
.on-dark .btn-secondary { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.on-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.center .btn-row, .btn-row.center { justify-content: center; }
.text-link { font-weight: 700; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: #0068a8; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 244, 251, 0.78);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(1, 33, 102, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-text { font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #3c5378; }

.nav-desktop { display: none; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 1.4rem; align-items: center; }
.nav-desktop a, .nav-mobile a { text-decoration: none; font-weight: 600; color: var(--text); }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { display: none; }

.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid rgba(1, 33, 102, 0.2);
  background: rgba(255, 255, 255, 0.75); font-weight: 700; color: var(--navy);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-mobile .panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem); width: min(86vw, 320px);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(1, 33, 102, 0.18);
  padding: 1rem;
}
.nav-mobile .panel li a { display: block; padding: 0.75rem 0.8rem; border-radius: 12px; }
.nav-mobile .panel li a:hover, .nav-mobile .panel li a[aria-current="page"] { background: var(--bg); color: var(--navy); }
.nav-mobile .panel .btn { width: 100%; margin-top: 0.6rem; }

@media (min-width: 1000px) {
  .nav-desktop, .header-cta { display: block; }
  .header-cta { display: inline-flex; padding: 0.7rem 1.2rem; font-size: 0.95rem; }
  .nav-mobile { display: none; }
}

/* Glass */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.on-dark .glass { background: var(--glass-dark); border-color: var(--line-dark); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(0, 160, 237, 0.55), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(0, 154, 229, 0.35), transparent 60%),
    linear-gradient(140deg, #011a52 0%, #012166 45%, #0a4f9c 100%);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -45% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%); pointer-events: none;
}
.hero h1, .hero h2, .hero h3, .on-dark h2, .on-dark h3 { color: #fff; }
.hero .lead, .on-dark .lead { color: #dbe9fb; }
.hero .eyebrow, .on-dark .eyebrow { color: #9fdcff; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero.simple .hero-grid { grid-template-columns: 1fr; max-width: 820px; }

/* Visual placeholder panels in place of photography */
.visual {
  position: relative; border-radius: 28px; min-height: 360px; overflow: hidden;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(260px 260px at 72% 22%, rgba(255, 236, 205, 0.55), transparent 70%),
    radial-gradient(420px 320px at 20% 90%, rgba(0, 160, 237, 0.45), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  display: flex; align-items: flex-end;
}
.visual svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual .caption {
  position: relative; margin: 1.1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-dark); color: #fff; font-weight: 600; font-size: 0.98rem;
}
.visual.light {
  border-color: var(--line);
  background:
    radial-gradient(240px 240px at 75% 20%, rgba(255, 228, 190, 0.7), transparent 70%),
    radial-gradient(380px 300px at 15% 95%, rgba(0, 160, 237, 0.3), transparent 70%),
    linear-gradient(160deg, #dfeaf8, #c8dbf2);
  box-shadow: var(--shadow);
}
.visual.light .caption { background: rgba(255, 255, 255, 0.7); color: var(--navy); border-color: var(--line); }

/* Grids and cards */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { text-align: center; }

.quote-card { position: relative; padding-top: 2.6rem; }
.quote-card::before {
  content: "\201C"; position: absolute; top: 0.4rem; left: 1.4rem; font-family: var(--head);
  font-size: 3.4rem; line-height: 1; color: var(--accent);
}
.quote-card p { font-family: var(--head); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 0; line-height: 1.4; }
.closing-line { margin-top: 2rem; font-size: 1.15rem; font-weight: 600; color: var(--navy); text-align: center; }

.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(140deg, var(--navy), var(--sky)); color: #fff;
  box-shadow: 0 8px 20px rgba(0, 120, 200, 0.25);
}
.icon svg { width: 26px; height: 26px; }
.card p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.2fr 0.8fr; } }

.fix-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.7rem; }
.fix-list li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.fix-list strong { color: var(--navy); }
.dot { flex: none; width: 10px; height: 10px; margin-top: 0.55em; border-radius: 50%; background: var(--accent); }

.bridge { border-left: 4px solid var(--accent); }
.bridge p { font-family: var(--head); font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--navy); line-height: 1.35; }

/* Transformations */
.shift { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.shift .from, .shift .to { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.shift .from { background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(255, 255, 255, 0.4); color: #dbe9fb; }
.shift .to { background: rgba(255, 255, 255, 0.95); color: var(--navy); }
.shift .arrow { text-align: center; color: #9fdcff; font-weight: 700; }
.shift small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

.band {
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(0, 160, 237, 0.45), transparent 60%),
    linear-gradient(135deg, #012166 0%, #06408a 60%, #0a63b0 100%);
}

/* Portrait block */
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(220px 220px at 70% 18%, rgba(255, 226, 186, 0.75), transparent 70%),
    linear-gradient(170deg, #d7e5f6 0%, #a9c6ea 55%, #012166 140%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait .tag {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); color: var(--navy); font-weight: 700;
}
.portrait .tag span { display: block; font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.hero .portrait { border-color: var(--line-dark); }

/* Testimonial */
.testimonial { text-align: center; max-width: 820px; margin-inline: auto; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-family: var(--head); font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; color: var(--navy); line-height: 1.35; }
.testimonial figcaption { font-weight: 700; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0.9rem; max-width: 820px; margin-inline: auto; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 3.4rem 1.25rem 1.5rem; position: relative;
  font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--body); font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 1.5rem 1.4rem; color: var(--muted); }
.faq .answer p { margin: 0; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--navy), var(--accent)); }
.timeline > li { position: relative; padding-left: 76px; }
.phase-num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--sky)); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.pillars { display: grid; gap: 0.7rem; margin-top: 1rem; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillars div { padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); font-size: 0.98rem; }
.pillars strong { display: block; color: var(--navy); font-family: var(--head); }

/* Steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 3.6rem; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 1.2rem; left: 1.6rem;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700;
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 0.15em; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.on-dark .check-list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23012166' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* Offer cards */
.offer { display: flex; flex-direction: column; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #006ea6; margin-bottom: 0.4rem; }
.offer.featured { background: linear-gradient(150deg, rgba(1, 33, 102, 0.96), rgba(0, 110, 180, 0.94)); color: #fff; border-color: var(--line-dark); }
.offer.featured h3 { color: #fff; }
.offer.featured .label { color: #9fdcff; }
.offer.featured .btn-primary { background: #fff; color: var(--navy); }

/* Note */
.note {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm);
  background: rgba(0, 160, 237, 0.08); border: 1px solid rgba(0, 160, 237, 0.3); color: var(--text);
}
.note svg { flex: none; width: 24px; height: 24px; color: #006ea6; margin-top: 0.15em; }
.note p { margin: 0; }

/* Masterclass layout with sticky card */
.with-aside { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) {
  .with-aside { grid-template-columns: 1fr 400px; gap: 3rem; }
  .sticky { position: sticky; top: 100px; }
}
.signup h2 { font-size: 1.6rem; }
.field-preview { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; gap: 0.55rem; }
.field-preview li {
  padding: 0.75rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(1, 33, 102, 0.12); font-size: 0.95rem; color: var(--muted);
}
.field-preview li strong { color: var(--navy); display: block; font-size: 0.9rem; }
.small { font-size: 0.88rem; color: var(--muted); }
.signup .btn { width: 100%; }

/* Calendar placeholder */
.calendar {
  min-height: 380px; display: grid; place-items: center; text-align: center;
  border: 2px dashed rgba(1, 33, 102, 0.25); border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(1, 33, 102, 0.05) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(1, 33, 102, 0.05) 59px 60px),
    rgba(255, 255, 255, 0.55);
  padding: 2rem;
}
.calendar .inner { max-width: 440px; }

/* Contact details */
.detail-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.9rem; }
.detail-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.detail-list svg { flex: none; width: 22px; height: 22px; color: var(--sky); margin-top: 0.2em; }

/* Thank you */
.ty-panel { display: none; }
.ty-panel:target { display: block; }
.ty-default { display: block; }
.ty-wrap:has(.ty-panel:target) .ty-default { display: none; }

/* Footer */
.site-footer { background: #011845; color: #c9d8ef; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9fdcff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .logo { color: #fff; }
.site-footer .logo-text small { color: #9fb6d9; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fdcff; font-family: var(--body); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-note { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9rem; display: grid; gap: 0.5rem; }
@media (min-width: 800px) { .footer-note { grid-template-columns: 1fr auto; } }
