/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #f8fafc;
  --paper: rgba(255, 255, 255, 0.8);
  --ink: #0f172a;
  --muted: #64748b;
  --muted-strong: #475569; /* grey text on --soft backgrounds, where --muted is too faint */
  --field-border: #8492a6;  /* form field outlines: lightest grey with 3:1 contrast on white */
  --accent: #2563eb;
  --accent-rgb: 37 99 235;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --accent-soft: #eff6ff;
  --surface-dark: #1e293b;
  --line: rgba(226, 232, 240, 0.8);
  --soft: #f1f5f9;
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --radius: 24px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-reveal: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-fade-in 0.6s ease-out;
}
@keyframes page-fade-in {
  from { opacity: 0; }
}

/* Mesh Gradient Background */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 20%, rgb(var(--accent-rgb) / 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgb(var(--accent-rgb) / 0.05) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; transition: all .2s ease; }
img { height: auto; }
.wrap { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }

h1 { font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -.05em; line-height: 1.1; margin: 24px 0 24px; font-weight: 800; }
h1 em { font-style: normal; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Vertical rhythm: ~100px per side on desktop, scaling down to 56px on phones */
section { padding: clamp(56px, 8vw, 100px) 0; }

/* Reveal-on-scroll: only hide sections once main.js has added .js,
   so content stays readable if the script never runs. */
.js section { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-reveal); }
.js section.visible { opacity: 1; transform: translateY(0); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }
.kicker { color: var(--accent); text-transform: uppercase; font-size: .75rem; letter-spacing: .2em; font-weight: 800; margin-bottom: 12px; }
h2.section-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.05em; margin: 12px 0 20px; font-weight: 800; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px var(--accent-soft); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header { padding: 24px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brand img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s var(--ease-spring), filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.brand:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgb(var(--accent-rgb) / 0.3));
}
.navlinks { display: flex; gap: 25px; align-items: center; }
.navlinks a { font-size: .9rem; color: var(--muted); text-decoration: none; font-weight: 500; }
.navlinks a:hover { color: var(--accent); }
.navlinks a[aria-current="page"] { color: var(--accent); font-weight: 700; }

/* Mobile-only pieces of the header (shown in the max-width: 600px block) */
.menu-button { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.nav-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; background: var(--accent-gradient); color: white !important;
  text-decoration: none; font-weight: 600; padding: 12px 24px; border: 1px solid transparent;
  transition: all .3s var(--ease-standard);
  box-shadow: 0 4px 12px rgb(var(--accent-rgb) / 0.2);
}
.nav-cta { padding: 8px 18px; font-size: .85rem; }
.button:hover, .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(var(--accent-rgb) / 0.4), 0 0 15px rgb(var(--accent-rgb) / 0.2);
  filter: brightness(1.1);
}
.button.secondary { color: var(--accent) !important; background: white; border-color: var(--line); box-shadow: none; }
.button.secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgb(var(--accent-rgb) / 0.1);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--paper);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-hover { transition: all .4s var(--ease-out); }
.card-hover:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgb(var(--accent-rgb) / 0.1);
}

/* ==========================================================================
   Hero (home & about)
   ========================================================================== */
.hero { padding: 120px 0 80px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; text-align: left; }
.hero-content { max-width: 850px; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin: 0 0 32px; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-start; }

.hero-image { position: relative; display: flex; justify-content: center; }
.hero-image img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--paper);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: .9rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Home: Knowledge Hub bento grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 24px;
}
.bento-item {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.bento-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgb(var(--accent-rgb) / 0.15);
}
.bento-item.large { grid-column: span 2; }
.bento-item.wide { grid-column: 1 / -1; min-height: 0; }
.bento-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--accent-gradient);
  color: white;
}
.bento-item.featured p { color: rgba(255,255,255,0.9); }
.bento-item.featured .category { color: rgba(255,255,255,0.8); }
.bento-item.featured .button {
  background: white;
  color: var(--accent) !important;
}
.bento-item .category {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.bento-item h3 { margin: 0 0 12px; font-size: 1.4rem; letter-spacing: -.02em; font-weight: 700; }
.bento-item p { color: var(--muted); font-size: .95rem; margin: 0 0 24px; }
.bento-item a:not(.button) {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Home: Contact CTA
   ========================================================================== */
.cta-panel { background: var(--surface-dark); color: white; border-radius: 32px; padding: clamp(32px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 40px; box-shadow: 0 25px 50px -12px rgba(30, 41, 59, 0.5); }
.cta-panel h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.06em; margin: 0 0 16px; max-width: 650px; font-weight: 800; }
.cta-panel p { margin: 0; color: #cbd5e1; max-width: 600px; font-size: 1.1rem; }
.cta-panel .button { background: white; color: var(--surface-dark) !important; border-color: white; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ==========================================================================
   About
   ========================================================================== */
/* Story-first opening: headline, milestone strip, stats */
.page-about .journey-hero { padding: 100px 0 80px; text-align: center; }
.journey-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 820px; margin: 20px auto; }
.journey-hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 56px; }
.journey-hero .stats-grid { max-width: 960px; margin: 0 auto; }
.journey-cta .section-head { margin-bottom: 32px; }
.journey-cta .actions { justify-content: center; }

.milestones {
  list-style: none;
  margin: 0 auto 56px;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
/* The line runs through the dots: year (20px) + gap (10px) + half the dot (8px) */
.milestones::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 37px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--line), var(--accent));
}
.milestones a {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
}
.milestone-year { font-size: .8rem; line-height: 20px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.milestone-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  transition: transform .3s var(--ease-spring);
}
.milestones a:hover .milestone-dot { transform: scale(1.3); }
.milestones .is-current .milestone-dot { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.milestone-company { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; }
.milestone-role { font-size: .8rem; color: var(--muted); line-height: 1.3; margin-top: -6px; }
.job { scroll-margin-top: 50px; }  /* added to html scroll-padding-top; covers the 30px reveal slide */

.mission-statement {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow);
}
.mission-statement h2 {
  font-size: 1.8rem;
  margin: 1em 0 16px;
  letter-spacing: -.03em;
  font-weight: 800;
}
.mission-statement p {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}
.signature {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.signature-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft);
  box-shadow: var(--shadow);
}
.signature-role { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.signature-name {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.stat-card { padding: 32px; text-align: center; }
.stat-card strong { display: block; font-size: 2.5rem; color: var(--accent); font-weight: 800; }
.stat-card span { color: var(--muted); font-size: .9rem; font-weight: 500; }

.timeline-container {
  padding: 40px;
  margin-top: 60px;
  box-shadow: var(--shadow);
}
.timeline {
  display: grid;
  gap: 0;
  border-left: 3px solid var(--accent);
  margin: 0 0 0 20px;
  padding-left: 32px;
}
.job {
  margin-bottom: 40px;
  position: relative;
}
.job::before {
  content: "";
  position: absolute;
  left: -41.5px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: white;
  border: 3px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
}
.company { color: var(--accent); margin: 4px 0 12px; font-size: .95rem; font-weight: 600; }

.testimonial-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 32px;
  justify-items: center;
}
.testimonial-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.testimonial-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  background: var(--soft);
  padding: 4px;
  box-sizing: border-box;
}
.testimonial-card p {
  margin: 0 0 24px;
  color: var(--ink);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
}
.testimonial-card strong {
  font-size: 1.2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.testimonial-card span {
  color: var(--muted);
  display: block;
  font-size: .9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1;
}
.testimonial-card span .role { color: var(--ink); font-weight: 600; }
.testimonial-card span .company { color: var(--accent); font-weight: 600; }
.testimonial-card .testimonial-date {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-style: normal;
}
/* Highlights sit inside the quote, so undo the label styling that
   .testimonial-card span applies (uppercase, small size, tight line-height) */
.testimonial-card .highlight {
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: 2px 4px;
  border-radius: 4px;
  border-bottom: 2px solid var(--accent);
  display: inline;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
}
.cert-card {
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.cert-card:hover { box-shadow: var(--shadow); }
.cert-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.cert-card img:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.cert-info {
  padding: 20px;
  text-align: center;
}
.cert-info h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.cert-info p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px); display: none; justify-content: center; align-items: center; z-index: 1000; cursor: zoom-out; padding: 20px; }
.modal.active { display: flex; }
.modal img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 2px solid var(--line); }
.modal-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; }

/* ==========================================================================
   Products
   ========================================================================== */
.hero-products { padding: 100px 0 60px; text-align: center; }
.hero-products .eyebrow { margin-bottom: 20px; }
.hero-products h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0 0 24px; }
.hero-products p { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin: 0 auto; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all .4s var(--ease-standard);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgb(var(--accent-rgb) / 0.15);
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  transition: transform 0.4s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.product-card:hover .product-img { transform: scale(1.03); }
.product-card h2 { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 700; margin: 0 0 12px; }
.product-card p { color: var(--muted); font-size: .95rem; margin: 0 0 24px; flex-grow: 1; }
.product-card .price { font-size: 1.25rem; font-weight: 800; margin-bottom: 24px; color: var(--ink); }
.product-card .price span { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.product-note { margin-bottom: 20px; font-size: .85rem; color: var(--muted); text-align: center; line-height: 1.4; }

/* ==========================================================================
   Product landing page (Java Mastery)
   ========================================================================== */
.page-product .eyebrow { margin-bottom: 24px; }
.page-product h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0 0 24px; max-width: 900px; }
.page-product .kicker { letter-spacing: .15em; margin-bottom: 8px; }
.page-product h2.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -.04em; margin: 12px 0 16px; }

.page-product .hero-product { padding: 120px 0 80px; text-align: left; }
.hero-product .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.hero-product-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-product p { font-size: 1.25rem; color: var(--muted); max-width: 700px; margin: 0 0 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.hero-product-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-product-image img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.4s ease;
}
.hero-product-image img:hover { transform: scale(1.02); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 40px; transition: all .3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card .icon { width: 48px; height: 48px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; border-radius: 12px; font-weight: 800; margin-bottom: 24px; }
.feature-card h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.matters-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.matters-content { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.matters-text h3 { font-size: 2rem; margin-bottom: 16px; font-weight: 800; letter-spacing: -.03em; }
.matters-text p { color: var(--muted-strong); margin-bottom: 24px; }
.highlight-box { padding: 24px; }
.highlight-box strong { color: var(--accent); }

.target-section { background: var(--bg); }
.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.target-item { display: flex; gap: 20px; align-items: flex-start; }
.target-item .check { color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.target-item h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.target-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pricing-wrap { display: flex; justify-content: center; }
.pricing-card {
  max-width: 480px; width: 100%;
  background: var(--paper); border: 2px solid var(--accent);
  border-radius: 32px; padding: 48px;
  text-align: center; position: relative;
  box-shadow: var(--shadow);
}
.pricing-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent-gradient); color: white;
  padding: 4px 16px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
}
.pricing-card .price { font-size: 4rem; font-weight: 800; letter-spacing: -0.05em; margin: 24px 0; }
.pricing-card .price span { font-size: 1.5rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.benefits-list { list-style: none; padding: 0; margin: 0 0 32px; text-align: left; }
.benefits-list li { margin-bottom: 12px; display: flex; gap: 12px; font-size: 0.95rem; color: var(--muted); }
.benefits-list li:before { content: "✓"; color: var(--accent); font-weight: 800; }

.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.faq-trigger {
  width: 100%; padding: 20px 24px; text-align: left; background: none; border: none;
  color: var(--ink); font-weight: 600; font-size: 1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; transition: background 0.2s;
}
.faq-trigger:hover { background: var(--accent-soft); border-color: var(--accent); }
.faq-content { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s ease-out; color: var(--muted); font-size: 0.95rem; }
.faq-item.open .faq-content { padding: 0 24px 20px; max-height: 200px; }
.faq-trigger:after { content: "+"; font-size: 1.2rem; transition: transform 0.3s; }
.faq-item.open .faq-trigger:after { transform: rotate(45deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-modern { padding: 60px 0 30px; color: var(--muted); font-size: .85rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.footer-brand .footer-name { margin: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.7; color: var(--ink); letter-spacing: -.03em; }
.footer-name span { color: var(--accent); }
.footer-brand p { margin: 0; font-size: .95rem; line-height: 1.6; }
.footer-column { display: flex; flex-direction: column; gap: 16px; }
.footer-label { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.footer-links-grid { display: flex; gap: 24px; }
.footer-links-grid a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links-grid a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.footer-links-grid a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   404 page
   ========================================================================== */
.not-found { padding: 120px 0 140px; text-align: center; }
.not-found p { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 32px; }
.not-found .actions { justify-content: center; }

/* ==========================================================================
   Legal pages (privacy)
   ========================================================================== */
.legal { max-width: 760px; padding: 80px 0 100px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); margin: 16px 0 8px; }
.legal-updated { margin: 0 0 32px; color: var(--muted); font-size: .9rem; }
.legal-summary { padding: 20px 24px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 12px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 48px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); font-weight: 600; }
.footer-bottom a { color: inherit; font-weight: 600; }
.form-note a { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Forms (download + enquiry)
   ========================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Honeypot field: off-screen for people, still visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-form { display: grid; gap: 14px; text-align: left; }
.site-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.site-form input:not([type="checkbox"]),
.site-form select,
.site-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: white;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-form textarea { resize: vertical; min-height: 110px; }
.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.15);
}
.site-form .checkbox {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--muted); cursor: pointer;
}
.site-form .checkbox input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.site-form .button { width: 100%; cursor: pointer; font: inherit; font-weight: 600; }
.site-form .button:disabled { opacity: .7; cursor: wait; transform: none; }
.form-note { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form-status { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form-status:empty { display: none; }
.form-status.is-error { color: #dc2626; }
.form-status.is-success { color: #15803d; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lead-form .form-status { text-align: center; }
.download-ready { display: grid; gap: 12px; text-align: center; }
.download-ready p { margin: 0; font-weight: 600; color: var(--ink); }

/* Enquiry form inside the dark contact panel */
.cta-panel .cta-alt { margin-top: 20px; font-size: .95rem; }
.cta-panel .cta-alt a { color: white; font-weight: 600; }
.enquiry-form { flex: 0 1 440px; width: 100%; }
.enquiry-form label { color: #cbd5e1; }
.enquiry-form input:not([type="checkbox"]),
.enquiry-form select,
.enquiry-form textarea { border-color: transparent; }
.cta-panel .enquiry-form .form-status { color: #cbd5e1; }
.cta-panel .enquiry-form .form-note { color: #94a3b8; text-align: center; }
.cta-panel .enquiry-form .form-note a { color: white; }
.cta-panel .enquiry-form .form-status.is-error { color: #fca5a5; }
.cta-panel .enquiry-form .form-status.is-success { color: #86efac; }

/* ==========================================================================
   Practice playground (/practice/*)
   ========================================================================== */
/* Test scripts need a page that holds still: no fade-in, no smooth scrolling,
   and a header that doesn't float over the element being clicked. */
.page-practice { animation: none; }
html:has(.page-practice) { scroll-behavior: auto; }
.page-practice header { position: relative; backdrop-filter: none; }

.practice-page { padding-bottom: 80px; }
.practice-hero { max-width: 760px; padding: 48px 0 32px; }
.practice-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 16px 0; }
.practice-hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.practice-back { display: block; width: fit-content; margin-bottom: 20px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.practice-back:hover { color: var(--accent); }
.practice-heading { font-size: 1.6rem; letter-spacing: -.03em; margin: 56px 0 20px; }
.practice-note { color: var(--muted); font-size: .95rem; margin-top: 40px; }
.practice-note a { color: var(--accent); font-weight: 600; }
.practice-page code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; color: var(--ink); background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.practice-page kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: white; }

.practice-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.practice-steps li { counter-increment: step; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--muted); font-size: .95rem; }
.practice-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.practice-steps strong { color: var(--ink); }

.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.practice-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; text-decoration: none; }
.practice-card h3 { margin: 12px 0 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.practice-card p { margin: 0 0 16px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.practice-card.is-soon { border-style: dashed; }
.practice-card.is-soon h3 { color: var(--muted); }
.practice-card-link { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .9rem; }
.practice-badge { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted-strong); }
.practice-badge.is-live { background: #dcfce7; color: #15803d; }

.practice-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.practice-toc a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.practice-toc a:hover { color: var(--accent); border-color: var(--accent); }

.practice-setup { margin-bottom: 32px; }
.practice-setup p { color: var(--muted); }
.practice-setup p strong { color: var(--ink); }

.practice-block { padding: clamp(20px, 4vw, 36px); margin-bottom: 32px; scroll-margin-top: 16px; }
.practice-block h2 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.03em; }
.practice-block .lede { margin: 0; color: var(--muted); }
.practice-notes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.practice-notes h3 { margin: 0 0 8px; font-size: 1rem; }
.practice-notes ol { margin: 0; padding-left: 20px; color: var(--muted); }
.practice-notes li { margin-bottom: 6px; }
.locator-tip { margin: 0; padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: 10px; background: var(--accent-soft); font-size: .92rem; }

.solution { margin-top: 20px; }
.solution summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.solution[open] summary { margin-bottom: 12px; }

pre.code { position: relative; margin: 0; padding: 44px 20px 20px; overflow-x: auto; border-radius: 14px; background: #0f172a; color: #e2e8f0; font-size: .85rem; line-height: 1.6; }
pre.code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.copy-button { position: absolute; top: 10px; right: 10px; padding: 4px 12px; border: 1px solid #334155; border-radius: 8px; background: #1e293b; color: #cbd5e1; font: inherit; font-size: .75rem; cursor: pointer; }
.copy-button:hover { color: white; border-color: #64748b; }

.practice-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }
.practice-pager a { display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: white; font-weight: 700; text-decoration: none; }
.practice-pager a span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.practice-pager a:hover { border-color: var(--accent); color: var(--accent); }
.practice-pager .next { text-align: right; margin-left: auto; }

/* The sandbox: the elements people automate. Plain, predictable styling. */
.sandbox { display: grid; gap: 16px; margin: 20px 0 24px; padding: 24px; border: 1px dashed #cbd5e1; border-radius: 16px; background: white; }
.sandbox [hidden] { display: none !important; }
.sandbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sandbox-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sandbox .field { display: grid; gap: 6px; align-content: start; }
.sandbox .field label { font-size: .9rem; font-weight: 600; }
.sandbox input:not([type="checkbox"]):not([type="radio"]),
.sandbox select,
.sandbox textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: white; border: 1px solid var(--field-border); border-radius: 10px; padding: 10px 12px;
}
.sandbox input:focus, .sandbox select:focus, .sandbox textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sandbox input:disabled, .sandbox input[readonly] { background: var(--soft); color: var(--muted); }
.sandbox fieldset { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 12px 16px 14px; border: 1px solid #cbd5e1; border-radius: 12px; }
.sandbox legend { padding: 0 6px; font-size: .9rem; font-weight: 700; }
.sandbox label.choice { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.sandbox .choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.sandbox .choice:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
.result { display: block; padding: 10px 14px; border-radius: 10px; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }

.practice-button {
  padding: 10px 20px; border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: white; font: inherit; font-weight: 600; cursor: pointer;
}
a.practice-button { display: inline-block; text-decoration: none; }
.practice-button:hover { filter: brightness(1.1); }
.practice-button.secondary { background: white; color: var(--ink); border-color: #cbd5e1; }
.practice-button.secondary:hover { border-color: var(--accent); filter: none; }
.practice-button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.practice-button:disabled { opacity: .5; cursor: not-allowed; filter: none; }

.practice-form { display: grid; gap: 14px; justify-items: start; }
.practice-form .sandbox-grid { width: 100%; }
.form-errors { margin: 0; padding-left: 20px; color: #dc2626; font-size: .9rem; font-weight: 600; }
.form-errors:empty { display: none; }

/* Custom dropdown */
.combo { position: relative; display: grid; gap: 6px; max-width: 280px; }
.combo-label { font-size: .9rem; font-weight: 600; }
.combo-button { padding: 10px 12px; border: 1px solid var(--field-border); border-radius: 10px; background: white; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.combo-button::after { content: "▾"; float: right; color: var(--muted); }
.combo-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: 4px 0 0; padding: 6px; list-style: none; border: 1px solid #cbd5e1; border-radius: 10px; background: white; box-shadow: 0 10px 24px rgba(15, 23, 42, .12); }
.combo-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }

/* Right-click menu */
.context-area { display: grid; place-items: center; min-height: 120px; border: 2px dashed #cbd5e1; border-radius: 12px; background: var(--soft); color: var(--muted-strong); font-weight: 600; user-select: none; }
.context-menu { position: fixed; z-index: 50; min-width: 160px; margin: 0; padding: 6px; list-style: none; border: 1px solid #cbd5e1; border-radius: 10px; background: white; box-shadow: 0 10px 24px rgba(15, 23, 42, .15); }
.context-menu li { padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.context-menu li:hover { background: var(--accent-soft); color: var(--accent); }

/* Hover menu and tooltip: shown with CSS only, on hover or keyboard focus */
.hover-menu, .has-tooltip { position: relative; }
.hover-submenu { display: none; position: absolute; top: 100%; left: 0; z-index: 5; min-width: 160px; margin: 0; padding: 6px; list-style: none; border: 1px solid #cbd5e1; border-radius: 10px; background: white; box-shadow: 0 10px 24px rgba(15, 23, 42, .12); }
.hover-menu:hover .hover-submenu, .hover-menu:focus-within .hover-submenu { display: block; }
.hover-submenu button { width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none; font: inherit; text-align: left; cursor: pointer; }
.hover-submenu button:hover { background: var(--accent-soft); color: var(--accent); }
.tooltip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: white; font-size: .8rem; white-space: nowrap; }
.has-tooltip:hover .tooltip, .has-tooltip:focus-within .tooltip { display: block; }

.practice-callout { margin: 0 0 32px; padding: 16px 20px; border: 1px solid #fde68a; border-radius: 14px; background: #fffbeb; color: #78350f; }
.practice-callout code { background: #fef3c7; }

/* Frames & Windows: the iframes, and the bare pages loaded into them */
.practice-iframe { display: block; width: 100%; border: 2px solid var(--accent); border-radius: 12px; background: white; }
.practice-frame { padding: 16px; background: white; }
.practice-frame::before { display: none; }
.practice-frame .sandbox { margin: 0; padding: 0; border: 0; }
.frame-heading { margin: 0 0 12px; font-size: 1.2rem; letter-spacing: -.02em; }

/* Modal dialog */
.practice-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 16px; box-shadow: 0 24px 48px rgba(15, 23, 42, .25); }
.practice-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.practice-dialog h3 { margin: 0 0 8px; font-size: 1.2rem; }
.practice-dialog p { margin: 0 0 20px; color: var(--muted); }

/* Web Tables */
.table-wrap { overflow-x: auto; }
.practice-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.practice-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.practice-table th, .practice-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.practice-table thead th { background: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-strong); }
.practice-table th button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.practice-table th button::after { content: " ↕"; opacity: .5; }
.practice-table th[aria-sort="ascending"] button::after { content: " ↑"; opacity: 1; }
.practice-table th[aria-sort="descending"] button::after { content: " ↓"; opacity: 1; }
.row-buttons { display: flex; gap: 8px; }
.row-buttons .practice-button { padding: 6px 12px; font-size: .85rem; }
.pager { display: flex; align-items: center; gap: 12px; }
.pager span { font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .hero-badge { animation: none; }
  .js section { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bento-item.large, .bento-item.featured { grid-column: span 1; grid-row: span 1; }
  .cta-panel { align-items: flex-start; flex-direction: column; text-align: center; }
  .cta-panel h2, .cta-panel p { margin-left: auto; margin-right: auto; }
  .cta-panel .button { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: 1fr; }
  .journey-hero .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .journey-hero .stat-card { padding: 18px 8px; }
  .journey-hero .stat-card strong { font-size: 1.6rem; }
  .journey-hero .stat-card span { display: block; font-size: .75rem; line-height: 1.35; }

  .page-product h1 { font-size: 2.8rem; }
  .hero-product .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-product-content { align-items: center; order: 2; }
  .hero-product-image { order: 1; margin-bottom: 40px; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .target-grid { grid-template-columns: 1fr; }
  .matters-content { grid-template-columns: 1fr; text-align: center; }
  .practice-notes { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 32px; text-align: center; align-items: center; }
  .footer-links-grid { justify-content: center; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, 1120px); }
  h1 { font-size: clamp(2.8rem, 16vw, 4rem); }
  .hero { padding: 60px 0 80px; }

  /* Mobile header: logo on the left, a "Menu" button on the right that
     opens the page links as a floating card. Without JavaScript (no .js class)
     the links simply stay visible as a row under the logo. */
  header { padding: 14px 0; }
  /* Phones: logo only. The name stays in the link for screen readers. */
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav { position: relative; flex-wrap: wrap; row-gap: 8px; }
  .nav-pill { width: 100%; justify-content: space-around; }
  .nav-pill a { min-height: 44px; display: flex; align-items: center; padding: 0 8px; font-weight: 600; }

  .js .menu-button {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 18px;
    font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
    background: white; border: 1px solid var(--line); border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); cursor: pointer;
  }
  .js .menu-button::after { content: "▾"; font-size: .8rem; color: var(--muted); transition: transform .2s ease; }
  .js .menu-button[aria-expanded="true"]::after { transform: rotate(180deg); }

  .js .nav-pill {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: min(300px, 100%);
    display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 2px; padding: 8px;
    background: white; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .js .nav-pill.open { visibility: visible; opacity: 1; transform: none; }
  .js .nav-pill a {
    justify-content: space-between;
    padding: 0 16px; border-radius: 12px;
    font-size: 1.05rem; color: var(--ink);
  }
  .js .nav-pill a::after { content: "→"; color: var(--muted); }
  .js .nav-pill a:hover,
  .js .nav-pill a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

  .products-grid { grid-template-columns: 1fr; }
  .hero-products h1 { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .page-about .journey-hero { padding: 48px 0 56px; }
  .journey-hero .lede { margin-bottom: 40px; }
  .milestone-role, .milestone-now { display: none; }
  .milestone-company { font-size: .9rem; }

  .practice-steps { grid-template-columns: 1fr; }
  .sandbox { padding: 16px; }

  .page-product .hero-actions { flex-direction: column; }
  .page-product .button { width: 100%; }
}

