/* ============================================
   Daedalus Design — Professional Website + AI Assistant
   Dark theme with gold accents
   ============================================ */

/* --- Webfonts, self-hosted ---------------------------------------------
   The stylesheet asked for Inter and JetBrains Mono but never declared them,
   so the only thing delivering either was a Google Fonts <link> — and 13
   pages did not carry one, leaving them on the system UI font while the rest
   of the site rendered in Inter.

   Both files are variable fonts, so one face per family covers every weight
   the stylesheet uses (400 through 900) with real weights rather than the
   browser's synthetic bold. Serving them from our own domain also stops
   every visitor's IP going to Google before they have agreed to anything.

   font-display: swap so text is readable while the font is still arriving. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2-variations'),
       url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2-variations'),
       url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --dark:        #0A0E14;
  --dark-blue:   #1a365d;
  --dark-surface:#111827;
  --dark-card:   #1a2332;
  --gold:        #D4AF37;
  --gold-dim:    rgba(212,175,55,0.15);
  --gold-glow:   rgba(212,175,55,0.3);
  --white:       #f0f0f0;
  --grey:        #9ca3af;
  --grey-light:  #d1d5db;
  --green:       #10b981;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --radius:      12px;
  --radius-sm:   8px;
  --max-w:       1200px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: #e8c36a; }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Premium Utilities --- */
.bg-constellation {
  background-color: var(--dark);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(212,175,55,0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(212,175,55,0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='rgba(212,175,55,0.04)' stroke-width='1' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(212,175,55,0.2)'/%3E%3C/svg%3E");
}

.glass-panel {
  background: rgba(10,14,20,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

.section-label {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { color: var(--grey); font-size: 1.1rem; max-width: 600px; }

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto 48px; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,14,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  transition: background var(--transition);
}

/* --- Dropdown Navigation --- */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 6px;
  display: inline-block;
  transition: transform var(--transition);
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  /* Shrink-to-fit against the narrow toggle wrapped "Overview - from £299"
     onto two lines once the items got their 20px side padding back, so the
     menu sizes to its widest item instead. */
  width: max-content;
  max-width: min(340px, calc(100vw - 32px));
  background: var(--dark-surface);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  color: var(--gold);
  background: rgba(212,175,55,0.05);
}

.dropdown-menu a[aria-current="page"] {
  color: var(--gold);
}

.hero, .package-hero {
  min-height: 100vh;
  /* svh tracks the viewport as mobile browser chrome hides and shows, so the
     hero does not jump on scroll. Ignored where unsupported. */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--dark);

  /* The artwork is served as WebP: 47KB against 919KB for the PNG, with no
     visible loss on a dark graphic. The PNG stays as a first declaration so
     browsers without WebP still get a background. */
  background-image:
    radial-gradient(circle at 50% 30%, rgba(212,175,55,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(26,54,93,0.35) 0%, transparent 50%),
    url('../images/hero-bg-static.png');

  --hero-art: url('../images/hero-bg-2026.webp');
  background-image:
    radial-gradient(circle at 50% 30%, rgba(212,175,55,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(26,54,93,0.35) 0%, transparent 50%),
    var(--hero-art);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-canvas {
  display: none;
}

.hero-cinematic, .package-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (max-width: 992px) {
  .hero-cinematic {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content {
  padding: 48px;
  text-align: center;
  margin: 0 auto;
  max-width: 860px;
  position: relative;
  z-index: 2;
}

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

.hero-content .social-proof {
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .hero-content {
    padding: 32px;
    text-align: center;
  }
  .hero-content .hero-buttons,
  .hero-content .social-proof {
    justify-content: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
  /* The hero panel caps at 860px, which breaks the headline after "can" and
     leaves it dangling. Balancing evens the lines out without forcing a break,
     so narrow viewports still reflow freely. */
  text-wrap: balance;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gold), #e8c36a, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: #e8c36a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--gold-glow);
  color: var(--dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Social Proof Bar --- */
.social-proof {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: 0.85rem;
}

.proof-item .icon { font-size: 1.1rem; }

/* --- Features Section --- */
.features {
  padding: 100px 0;
  background: var(--dark-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(10,14,20,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(212,168,67,0.2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.feature-card p { color: var(--grey); font-size: 0.95rem; }

/* --- Pricing Section --- */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: rgba(10,14,20,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: rgba(212,168,67,0.2);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(212,168,67,0.1);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--dark);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.pricing-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.pricing-price .currency { font-size: 1.5rem; vertical-align: top; }
.pricing-price .period { font-size: 0.9rem; color: var(--grey); font-weight: 400; }

.pricing-subtitle {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--grey-light);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check { color: var(--green); font-weight: bold; }

.pricing-card .btn { width: 100%; justify-content: center; }

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
  background: var(--dark-surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px;
  margin-top: 48px;
}

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

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0 auto 16px;
}

.step h4 { margin-bottom: 8px; font-size: 1rem; }
.step p { color: var(--grey); font-size: 0.9rem; }

.step.step-highlighted {
  grid-column: 1 / -1;
  /* The 1.15 scale renders the card 15% wider than its box, so a plain
     max-width:400px overflowed once the card filled a narrow container.
     1 / 1.15 = 0.87, so capping at 87% leaves room for the transform. */
  max-width: min(400px, 87%);
  margin-left: auto;
  margin-right: auto;
  transform: scale(1.15);
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 24px 16px;
  margin-top: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.step-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* --- Comparison Table --- */
.comparison {
  padding: 100px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comparison-table th {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.comparison-table td { color: var(--grey-light); }
.comparison-table tr:hover td { color: var(--white); }
.comparison-table .check-col { text-align: center; }

/* --- About Section --- */
.about-section {
  padding: 100px 0;
  background: var(--dark-surface);
}

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

.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--grey); margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.value-item {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.value-item .icon { font-size: 1.5rem; margin-bottom: 8px; }
.value-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.value-item p { font-size: 0.85rem; color: var(--grey); margin: 0; }

/* --- Tech Stack --- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-tag {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--grey-light);
  font-family: var(--font-mono);
}

/* --- Contact Section --- */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: var(--grey); margin-bottom: 24px; }

.contact-methods { list-style: none; }

.contact-methods li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-methods .method-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-methods .method-label {
  font-size: 0.8rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-methods .method-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option {
  background: var(--dark);
  color: var(--white);
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--dark-surface);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--grey); max-width: 500px; margin: 0 auto 32px; }

/* --- Footer --- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  /* The Hosting column made this six wide on some pages and four on others,
     so the link columns are auto-fit and empty tracks collapse rather than
     leaving a gap on the shorter footers. The brand track has to be a fixed
     size: auto-fit is only legal when every track outside the repeat() is,
     and an `fr` there invalidates the whole declaration. */
  grid-template-columns: minmax(240px, 300px) repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--grey); font-size: 0.9rem; margin-top: 12px; }

.footer-col h3,
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--grey); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--grey);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--dark-card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: all var(--transition);
}

/* A four-letter wordmark needs to be smaller than a one-character glyph
   to sit in the same 36px square. */
.footer-social a.wordmark {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.footer-social a:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--dark-surface);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(26,54,93,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 { margin-bottom: 16px; }
.page-header p { color: var(--grey); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* --- Package Detail Page --- */
.package-hero {
  padding: 140px 0 60px;
  background: var(--dark-surface);
  position: relative;
  text-align: center;
}

.package-hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.package-hero .section-label { margin-bottom: 12px; }
.package-hero h1 { margin-bottom: 16px; }
.package-hero p { color: var(--grey); font-size: 1.1rem; margin-bottom: 24px; margin-left: auto; margin-right: auto; }

.package-price-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.package-hero .hero-buttons {
  justify-content: center;
}

.package-price-bar .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
}

.package-price-bar .period {
  color: var(--grey);
  font-size: 1rem;
}

.package-includes {
  padding: 80px 0;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.include-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
}

.include-card .icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.include-card h4 { margin-bottom: 8px; }
.include-card p { color: var(--grey); font-size: 0.9rem; }

/* --- FAQ --- */
.faq {
  padding: 80px 0;
  background: var(--dark-surface);
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
  }

  .dropdown-menu a {
    padding: 10px 20px;
  }

  .hero, .package-hero { min-height: auto; padding: 120px 24px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

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

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }

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

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .social-proof { gap: 20px; }
}

@media (max-width: 380px) {
  .hero-content {
    padding: 24px 16px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .social-proof {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    margin-bottom: 20px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }

/* --- Scroll animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Blog & Insights Components
   ============================================ */
.blog-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 36px 0;
}

.filter-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  color: var(--grey-light);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background: rgba(10,14,20,0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius);
  margin-bottom: 60px;
  align-items: center;
}

.featured-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 12px 0 16px;
  line-height: 1.3;
}

.featured-content p {
  color: var(--grey);
  margin-bottom: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.blog-card {
  background: rgba(10,14,20,0.5);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(212,175,55,0.15);
}

.blog-tag {
  display: inline-block;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  width: fit-content;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--grey);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

.newsletter-box {
  background: linear-gradient(135deg, rgba(26,54,93,0.4), rgba(10,14,20,0.8));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  margin-bottom: 80px;
  box-shadow: 0 0 40px rgba(212,175,55,0.1);
}

.newsletter-box h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 24px auto 0;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--dark);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-sm);
  color: var(--white);
}

/* ============================================
   Knowledge Base Components
   ============================================ */
.kb-hero {
  padding: 140px 0 70px;
  text-align: center;
  position: relative;
}

.kb-hero .section-subtitle {
  margin: 0 auto;
  text-align: center;
}

.kb-search-container {
  max-width: 680px;
  margin: 36px auto 0;
  position: relative;
}

.kb-search-input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  background: rgba(17,24,39,0.9);
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  color: var(--white);
  font-size: 1.05rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: all var(--transition);
}

.kb-search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
}

.kb-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gold);
  pointer-events: none;
}

.kb-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
  margin: 60px 0;
}

.kb-cat-card {
  background: rgba(10,14,20,0.5);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition);
}

.kb-cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.15);
}

.kb-cat-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  color: var(--gold);
}

.kb-cat-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.kb-cat-card p {
  color: var(--grey);
  font-size: 0.85rem;
}

.kb-articles-section {
  padding: 60px 0;
}

.kb-articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.kb-article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kb-article-item {
  background: rgba(17,24,39,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
}

.kb-article-item:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
  transform: translateX(6px);
}

.kb-article-title {
  font-weight: 600;
  color: var(--white);
}

.kb-article-meta {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 4px;
}

.kb-sidebar-card {
  background: rgba(10,14,20,0.6);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius);
  padding: 28px;
}

.kb-sidebar-card h4 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.kb-sidebar-card ul {
  list-style: none;
}

.kb-sidebar-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .featured-article { grid-template-columns: 1fr; }
  .kb-articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Portfolio Teaser --- */
.portfolio-teaser {
  padding: 100px 0;
  background: var(--dark-surface);
}

.portfolio-teaser .section-title {
  max-width: 600px;
  margin: 0 auto 16px;
}

.portfolio-teaser .section-subtitle {
  max-width: 600px;
  margin: 0 auto 48px;
}

.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.portfolio-preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(10,14,20,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: all var(--transition);
}

.portfolio-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,67,0.2);
}

.portfolio-thumb {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.portfolio-label {
  font-size: 0.8rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 32px;
  margin-top: 40px;
}

.portfolio-card {
  background: rgba(10,14,20,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: all var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,67,0.2);
}

.portfolio-preview {
  position: relative;
  height: 200px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-dim);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-content {
  padding: 28px;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.portfolio-category {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.portfolio-description {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.portfolio-type {
  color: var(--grey);
  font-size: 0.8rem;
}

.portfolio-link a {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .portfolio-preview-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Legal & Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10,14,20,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212,175,55,0.2);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  color: var(--grey-light);
  font-size: 0.9rem;
  margin: 0;
  max-width: 800px;
}
.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}

.cookie-banner-actions .btn {
  flex: 1;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.cookie-banner-actions .btn-primary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.cookie-banner-actions .btn-primary:hover {
  background: var(--gold);
  color: var(--dark);
}

.cookie-banner-actions .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.cookie-banner-actions .btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  body.cookie-banner-visible { padding-bottom: 180px; }
}
.copyright-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.copyright-link:hover {
  color: var(--gold);
}

/* Portfolio teaser screenshots — added with the SingularityAI.uk launch.
   Fixed aspect ratio keeps the three cards aligned regardless of the source
   screenshot dimensions; top-left origin keeps each site's masthead visible
   rather than centring on empty hero space. */
.portfolio-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

/* Portfolio teaser screenshots. All sources are 1280x800, so a 16:10 box shows
   them whole; contain rather than cover so an odd-sized future screenshot
   letterboxes instead of losing its edges. */
.portfolio-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: contain;
  background: #0A0E14;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* Portfolio card thumbnails.
   .portfolio-preview was locked to height:200px with overflow:visible, so a
   16:10 screenshot rendered ~396px tall, spilled out of the card and pushed the
   page into horizontal scroll. The box now carries the aspect ratio itself and
   the image fills it exactly, so nothing overflows and nothing is cropped. */
.portfolio-preview {
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  position: relative;
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0A0E14;
  display: block;
}

/* Keep the category chip above the screenshot. */
.portfolio-preview .portfolio-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* A .container nested inside another .container applied the 24px gutter
   twice, leaving the inner content 48px from each edge on a phone. */
.container .container { padding-left: 0; padding-right: 0; }

/* --- Hero artwork on narrow screens -------------------------------------
   The gold detail sits at the far left and right of the source; the middle is
   deliberately empty. `cover` on a tall, narrow screen scales to fill the
   height and crops roughly 77% of the width, so all that survives is the
   empty centre. Fitting the width keeps both halves of the artwork visible,
   with the background colour filling above and below. Smaller files go with
   the smaller canvas. */
/* The hero art is 1024x571, so from about 1200px up it was being stretched --
   1.4x at 1440, 1.9x at 1920 -- and the fine circuit traces showed it. These
   larger renders are Lanczos upscales of the same master with a mild unsharp;
   there is no extra detail to recover, but the browser no longer has to blow
   up a small bitmap, and the traces stay defined.

   Deliberately min-width only: phones and tablets keep the xs/sm files below
   and download nothing extra. +18KB at 1200px, +35KB at 1800px or on a
   high-density display, and only for screens wide enough to need it. */
@media (min-width: 1200px) {
  .hero, .package-hero {
    --hero-art: url('../images/hero-bg-2026-lg.webp');
  }
}

@media (min-width: 1800px) {
  .hero, .package-hero {
    --hero-art: url('../images/hero-bg-2026-xl.webp');
  }
}

@media (max-width: 768px) {
  .hero, .package-hero {
    --hero-art: url('../images/hero-bg-2026-sm.webp');
    /* 170% of the viewport width shows the middle ~59% of the artwork, which
       catches the inner part of both gold clusters instead of the empty
       centre. Because it is a percentage of the viewport, the framing stays
       the same from 320px up to 768px; only the band height changes. */
    background-size: cover, cover, 170% auto;
  }
}

@media (max-width: 480px) {
  .hero, .package-hero {
    --hero-art: url('../images/hero-bg-2026-xs.webp');
  }
}

/* --- Mobile horizontal overflow -----------------------------------------
   The decorative radial glows on these two sections are fixed-size boxes
   (600px and 800px) centred with translateX(-50%). Below roughly 600px they
   extend past the right edge of the viewport and make the whole document
   scroll sideways: page content sits to the left while the fixed navbar
   toggle and chat button stay pinned to the right of the screen.

   Clipping the section removes only the transparent tail of the gradient,
   so the effect is unchanged where there is room for it.

   Note: body { overflow-x: hidden } does NOT fix this. The overflow is on
   the html element, which is why that common workaround measured no change. */
.cta-section,
.page-header { overflow: hidden; }

/* A table cannot shrink below its minimum content width, so the comparison
   table in the guides and the pricing table in the posts both overflowed on
   phones. Tighter cells let them fit, and overflow-x is a safety net for any
   table that still cannot. .comparison-table is left alone: it already has
   its own mobile sizing and does not overflow. */
@media (max-width: 640px) {
  .post-body table,
  table.pricing-table,
  table.compare-table { display: block; overflow-x: auto; }
  .post-body table th, .post-body table td,
  table.pricing-table th, table.pricing-table td { padding: 8px 6px; font-size: 0.85rem; }

  /* Grid items default to min-width:auto, so a track will not shrink below its
     content and the item spills past the screen edge. The footer showed this
     first; the card grids do the same on the narrowest phones. */
  .footer-grid > *,
  .pricing-grid > *,
  .features-grid > *,
  .includes-grid > *,
  .values-grid > *,
  .blog-grid > * { min-width: 0; }

  /* Long unbroken strings (URLs, long feature names) set a min-content width
     that no amount of shrinking can beat. */
  .pricing-card,
  .glass-panel { overflow-wrap: break-word; }

  /* The footer email is a single ~195px token. min-width:0 lets the track
     shrink, but the token itself still sets a min-content floor -- and
     `break-word` does not lower that floor, only `anywhere` does. Without
     this the second footer column pushes past the edge on 360-390px phones. */
  .footer-grid a,
  .footer-brand a { overflow-wrap: anywhere; }

  /* The newsletter sign-up is a nowrap flex row. The button will not compress
     below its text width, so it was pushed past the right edge. Let the row
     wrap and give each control its own line. */
  .newsletter-form { flex-wrap: wrap; }
  .newsletter-form input,
  .newsletter-form .btn { flex: 1 1 100%; }
}

/* Two columns still fit at 320px now that the items can shrink, but the
   tracks are only ~124px there, which wraps the link text badly. One column
   below 360px; 375px and up keep the original two. */
@media (max-width: 359px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Under Construction Banner */
.construction-banner{background:linear-gradient(90deg,#D4AF37,#e8c36a);color:#0A0E14;padding:12px 24px;text-align:center;font-weight:700;font-size:0.9rem;position:relative;z-index:1001}
.construction-banner a{color:#0A0E14;text-decoration:underline}


/* === Touch Target Fix — WCAG 2.1 AA (44×44px minimum) === */
/* Applied 2026-08-31 by DaedalusDev for task t_e1117981 */

/* Footer social icons — were 36×36, now 44×44 */
.footer-social a {
  width: 44px;
  height: 44px;
}

/* Dropdown menu links */
.dropdown-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Filter pills (blog page) */
.filter-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* FAQ summary elements */
.faq-item summary {
  min-height: 44px;
  padding: 12px 0;
}

/* Newsletter form controls */
.newsletter-form input {
  min-height: 44px;
}
.newsletter-form .btn {
  min-height: 44px;
}

/* Portfolio link */
.portfolio-link a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

/* Blog meta links */
.blog-meta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Knowledge base article items */
.kb-article-item {
  min-height: 44px;
}

/* Comparison table — mobile sizing */
@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
    min-height: 44px;
  }
}

/* Guide/post body links */
.post-body a,
.guide-content a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

/* Sitemap links */
.sitemap-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

/* Package page CTA buttons */
.package-hero .btn {
  min-height: 44px;
}

/* Pricing card links (non-button) */
.pricing-card a:not(.btn) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Cookie banner links */
.cookie-banner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

/* Contact method email link */
.contact-methods .method-value a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Skip link */
.skip-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Copyright link */
.copyright-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* All form inputs — catch any that slipped through */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="color"] {
  min-height: 44px;
}

/* ---------------------------------------------------------------------------
   Absorbed subdomains
   The hosting, ai-hosting and blog pages moved onto this domain from their own
   subdomains, each of which carried a forked copy of this stylesheet. These are
   the only rules those forks had that this one did not.
   --------------------------------------------------------------------------- */

/* Hosting plans quote pence as a raised decimal: £9.99 */
.pricing-price .decimal { font-size: 1.2rem; vertical-align: top; }

/* Group labels inside the Hosting nav dropdown, which lists two product lines.
   Scoped through .dropdown-menu so this outranks `.dropdown-menu li {padding:0}`,
   which was zeroing the padding and pinning the labels to the menu's left edge. */
.dropdown-menu .dropdown-heading {
  padding: 10px 20px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--grey);
}

/* Every heading but the first opens a new group, so it gets a divider. */
.dropdown-menu .dropdown-heading:not(:first-child) {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(212,175,55,0.12);
}

/* Blog index cards carry a cover image */
.blog-card { display: flex; flex-direction: column; }

/* Covers are 1200x630. Size the frame to that ratio so the whole image shows
   at every card width; a fixed 180px height cropped the sides of every cover. */
.blog-card-img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 20px;
  background: var(--dark-card);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.02); }

/* With a cover image, stack the card from the top and pin the date row to the
   bottom, instead of spreading the spare height between image and text. */
.blog-card:has(.blog-card-img) { justify-content: flex-start; }
.blog-card:has(.blog-card-img) .blog-meta { margin-top: auto; padding-top: 16px; }

/* In-article figures (diagrams and screenshots inside blog posts) */
.post-figure {
  margin: 36px 0;
  max-width: 100%;
}
.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(212,175,55,0.15);
}
.post-figure figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--grey);
}

/* ============================================
   Knowledge Base search filter (js/kb-search.js)
   ============================================ */

/* Author-origin display rules on the filtered items (.blog-card is flex,
   .kb-cat-grid is grid, .kb-article-item is flex) outrank the user agent's
   [hidden] rule, so hiding needs its own declaration. */
.kb-hidden { display: none !important; }

.kb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Room for the clear button, and no doubling it up with WebKit's own. */
.kb-search-input { padding-right: 56px; }

.kb-search-input::-webkit-search-cancel-button,
.kb-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.kb-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--grey);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.kb-search-clear:hover {
  color: var(--gold);
  background: rgba(212,175,55,0.12);
}

.kb-search-clear:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* min-height reserves the line so results do not jump as the count changes. */
.kb-search-message {
  max-width: 680px;
  min-height: 1.5em;
  margin: 14px auto 0;
  color: var(--grey);
  font-size: 0.95rem;
}

.kb-search-message.kb-search-none { color: var(--gold); }

/* --- Legal pages ----------------------------------------------------------
   Privacy, terms, cookies, cancellation and copyright now share one wrapper.
   They previously carried three different ones between them — .wrap on the
   privacy/cookie/terms trio, .legal-page on cancellation, and an inline-styled
   .container on copyright — and only the inline one had any styling at all.
   The other two rendered as an unstyled run of text.

   Even the inline one set nothing for paragraphs. The global reset zeroes
   margin on every element and no rule here put it back, so copyright only read
   correctly because it happens to have a single paragraph under each heading
   and the heading's own margin did the spacing. Anywhere two paragraphs sat
   together they closed up against each other.                              */
.legal-content {
  max-width: 800px;
  margin: 60px auto 120px;
  line-height: 1.8;
  color: var(--grey);
}

.legal-content h2 {
  color: var(--white);
  margin: 40px 0 20px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.legal-content p { margin-bottom: 20px; }

.legal-content .legal-lede {
  font-size: 1.15rem;
  color: var(--grey-light);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal-content li { margin-bottom: 10px; }

.legal-content strong { color: var(--white); font-weight: 600; }

.legal-content a { text-decoration: underline; text-underline-offset: 3px; }

/* A statutory right, or the one thing on the page a reader must not miss. */
.legal-content .callout {
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 0 0 24px;
}

/* The model cancellation form, which is text to be copied rather than read. */
.legal-content blockquote {
  border-left: 3px solid rgba(212,175,55,0.35);
  background: rgba(255,255,255,0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.legal-content blockquote p { margin-bottom: 10px; }

.legal-content .callout p:last-child,
.legal-content blockquote p:last-child { margin-bottom: 0; }

/* The lawful-basis table in the privacy notice, and the cookie inventory. */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.92rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid rgba(212,175,55,0.18);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: rgba(212,175,55,0.08);
  color: var(--white);
  font-weight: 700;
}

.legal-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--gold);
  background: rgba(212,175,55,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* A table cannot shrink below its content width, so let it scroll in place
   rather than push the page sideways. */
@media (max-width: 640px) {
  .legal-content { margin: 40px auto 80px; }
  .legal-content table { display: block; overflow-x: auto; }
  .legal-content th,
  .legal-content td { padding: 10px 12px; }
}

/* --- Screen-reader-only ---------------------------------------------------
   Labels that must exist for assistive technology but would duplicate a
   visible placeholder on screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Domain search --------------------------------------------------------
   The form is a plain GET to the order page and works with no JavaScript;
   /js/domain-search.js renders results into .domain-results in place when the
   name.com proxy is configured. Both states are styled here. */
.domain-search {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 36px auto 0;
  flex-wrap: wrap;
}

.domain-search-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212,175,55,0.25);
  background: rgba(10,14,20,0.6);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
}

.domain-search-input::placeholder { color: var(--grey); }

.domain-search-input:focus,
.domain-search-tld:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.domain-search-tld {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212,175,55,0.25);
  background: var(--dark-surface);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
}

.domain-search-note {
  margin-top: 14px;
  color: var(--grey);
  font-size: 0.85rem;
}

.domain-results { max-width: 680px; margin: 24px auto 0; text-align: left; }

.domain-result-note {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-align: center;
}

.domain-result-list { list-style: none; margin: 0; padding: 0; }

.domain-result {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,14,20,0.5);
}

.domain-result.is-free { border-color: rgba(16,185,129,0.35); }

.domain-result.is-taken { opacity: 0.55; }

.domain-result-name {
  flex: 1 1 200px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--white);
  overflow-wrap: anywhere;
}

.domain-result-price { color: var(--grey); font-size: 0.9rem; }

.domain-result.is-free .domain-result-price { color: var(--green); }

.domain-result-btn { padding: 8px 20px; font-size: 0.85rem; }

@media (max-width: 560px) {
  .domain-search { flex-direction: column; }
  .domain-search .btn { justify-content: center; }
  .domain-result-btn { width: 100%; justify-content: center; }
}

/* The latest-articles band on the homepage. Sits on the page background so it
   alternates against the portfolio teaser above it. */
.blog-section { padding: 100px 0; }

/* The footer email is one ~195px unbreakable token. There was already a fix
   for it, but scoped to max-width:768px — and the footer is six columns wide
   now, so the token pushed past the page edge at around 1050px instead. It
   cannot break a track it does not fit, at any width, so this is unconditional. */
.footer-grid a,
.footer-brand a { overflow-wrap: anywhere; }

/* The contact email is one ~195px unbreakable token — wider than a 140px
   footer column, so inside Company & Contact it ran over the Legal column.
   It sits on its own full-width line under the columns instead. */
.footer-contact {
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--grey);
}

.footer-contact span { color: var(--gold); }
.footer-contact a { color: var(--grey); }
.footer-contact a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer-contact { text-align: center; }
}

/* The stacked mobile sub-menus fill the collapsed nav, so they opt back out of
   the content sizing the desktop menus use. Appended rather than folded into
   the 768px and 960px nav blocks above, which both define this menu. */
@media (max-width: 960px) {
  .dropdown-menu {
    width: auto;
    max-width: none;
  }
}

/* ---- mobile form fix: prevent iOS auto-zoom on input focus ------------ */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: max(16px, 0.95rem) !important;
  }
}


/* ============================================
   Rotating glow — homepage hero primary button
   ============================================ */

/* The glow sits on a wrapper rather than on .btn itself. .btn-primary:hover
   applies a transform, and a transform creates a stacking context, which would
   lift a negative-z-index pseudo-element above the button's own gold fill the
   moment the pointer touched it.

   Only the gradient's angle animates, through a registered custom property.
   Rotating the pseudo-element instead would swing a wide rounded rectangle far
   outside the button on every turn. Where @property is unsupported the gradient
   simply holds still and still reads as a glow. */
@property --btn-orbit-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn-orbit {
  position: relative;
  display: inline-flex;
  border-radius: var(--radius-sm);
}

.btn-orbit::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--radius-sm) + 5px);
  background: conic-gradient(from var(--btn-orbit-angle),
    rgba(212,175,55,0) 0deg,
    rgba(212,175,55,0.85) 55deg,
    #fff3c4 80deg,
    rgba(212,175,55,0.85) 105deg,
    rgba(212,175,55,0) 165deg,
    rgba(212,175,55,0) 360deg);
  filter: blur(9px);
  animation: btn-orbit-spin 4s linear infinite;
  pointer-events: none;
}

/* Positioned, so it paints after the pseudo-element in tree order. */
.btn-orbit > .btn { position: relative; }

@keyframes btn-orbit-spin {
  to { --btn-orbit-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-orbit::before { animation: none; }
}

/* ============================================
   Homepage hero — 20% shorter band
   ============================================ */

/* `.hero` is shared by eight pages (AI hosting, web design, Epsom, hosting
   index...), so the homepage takes a modifier rather than the shared rule
   being retuned under them.

   The band was 910px on a 1440x900 screen: taller than the 100svh min-height,
   so it was content-bound and lowering min-height alone would have moved it
   about ten pixels. The height comes out of vertical spacing instead -- the
   band's own padding, the glass panel's, and the gaps between the badge,
   headline, paragraph and social proof. Horizontal padding is untouched, so
   the panel keeps its proportions, and the type sizes are unchanged. */
.hero-compact {
  min-height: 80vh;
  min-height: 80svh;
  padding: 92px 24px 52px;
}

.hero-compact .hero-content { padding: 26px 48px; }
.hero-compact .hero-badge { margin-bottom: 14px; }
.hero-compact h1 { margin-bottom: 14px; }
.hero-compact p { margin-bottom: 24px; }
.hero-compact .social-proof { margin-top: 20px; }

/* Below 768px the shared rule drops min-height to auto so the hero is sized by
   its content. That rule sits earlier in the file, so min-height above would
   otherwise win here and reimpose a floor -- on a short landscape phone that
   would make the band taller, not shorter. Restate auto and trim the spacing. */
@media (max-width: 768px) {
  .hero-compact {
    min-height: auto;
    padding: 96px 24px 44px;
  }
  .hero-compact .hero-content { padding: 24px 20px; }
}

/* ============================================
   Thin animated glowing border (button + featured card)
   ============================================ */
/* Reuses --btn-orbit-angle and @keyframes btn-orbit-spin. A thin (2px) gradient
   ring is painted with the mask-exclude technique so only the border shows, and
   the conic gradient rotates for a slow travelling glow. Radius is inherited so
   it fits both the button (radius-sm) and the card (radius). */
.glow-border { position: relative; z-index: 0; }
.glow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--btn-orbit-angle),
    rgba(212,175,55,0.15), var(--gold) 20%, #fff3c4 50%, var(--gold) 80%, rgba(212,175,55,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: btn-orbit-spin 4s linear infinite;
  pointer-events: none;
}
.glow-border { box-shadow: 0 0 14px rgba(212,175,55,0.28); }
@media (prefers-reduced-motion: reduce) { .glow-border::before { animation: none; } }

/* ============================================
   Hosting: three standard plans, AI hosting featured below
   ============================================ */
.hosting-standard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hosting-featured-wrap { display: flex; justify-content: center; margin-top: 24px; }
.hosting-featured {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 44px 40px;
  border-color: rgba(212,175,55,0.35);
}
.hosting-featured .feature-icon { margin-left: auto; margin-right: auto; }
.hosting-featured-badge {
  display: inline-block;
  background: var(--gold);
  color: #0A0E14;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hosting-featured .btn { margin-top: 8px; }
@media (max-width: 900px) { .hosting-standard-grid { grid-template-columns: 1fr; } }

/* ============================================
   Portfolio carousel
   ============================================ */
.portfolio-carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .portfolio-preview-card {
  flex: 0 0 clamp(260px, 40%, 380px);
  scroll-snap-align: center;
  margin: 0;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(10,14,20,0.85);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.carousel-arrow:hover { background: var(--gold); color: #0A0E14; }
.carousel-arrow.prev { left: -10px; }
.carousel-arrow.next { right: -10px; }
@media (max-width: 768px) { .carousel-arrow { display: none; } }

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(10,14,20,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212,175,55,0.15);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  padding: 32px 36px;
  overflow: hidden;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(212,168,67,0.2);
  border-left-color: var(--gold);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 18px;
}

.testimonial-quote {
  position: relative;
  flex: 1;
}

.testimonial-quote::before {
  content: "\201C" / "";
  position: absolute;
  top: -34px;
  right: -8px;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
}

.testimonial-quote p {
  position: relative;
  color: var(--grey-light);
  font-size: 1.02rem;
  margin: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(212,175,55,0.15);
}

.testimonial-name {
  font-weight: 700;
  color: var(--white);
}

.testimonial-role {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .testimonials { padding: 72px 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 28px; }
}

/* ============================================
   CRO Additions — Trust Badges, Urgency, WhatsApp
   ============================================ */

/* --- Trust Badges --- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.trust-badge .icon {
  font-size: 1rem;
}

/* --- Urgency Banner --- */
.urgency-banner {
  background: linear-gradient(135deg, rgba(248,113,113,0.1), rgba(248,113,113,0.05));
  border: 1px solid rgba(248,113,113,0.3);
  color: #fca5a5;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 16px auto 0;
  max-width: 700px;
  border-radius: var(--radius-sm);
}

.urgency-banner .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #f87171;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- WhatsApp Button --- */
.whatsapp-bubble {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.4);
}

@media (max-width: 768px) {
  .whatsapp-bubble {
    bottom: 88px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  .trust-badges {
    gap: 8px;
  }
  .trust-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .compact-testimonials .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .compact-testimonials .testimonial-card {
    padding: 20px;
  }
  table {
    font-size: 0.8rem;
  }
  table th, table td {
    padding: 10px 8px;
  }
}

/* ==========================================================================
   2026 REDESIGN LAYER  (appended)
   Site-wide chrome + primitives matching the homepage redesign.
   Additive / later-wins over the original rules above. The nav & footer
   markup is delivered by partials/nav.html + partials/footer.html via build.py.
   ========================================================================== */
:root {
  --line:        rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.12);
  --gold-line:   rgba(212,175,55,0.28);
  --gold-soft:   #E6C766;
  --panel:       #10151E;
  --mono:        var(--font-mono);
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -6%, rgba(212,175,55,0.09), transparent 60%),
    radial-gradient(700px 500px at 4% 2%, rgba(212,175,55,0.045), transparent 55%);
}

/* ---- shared primitives ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.eyebrow.no-dot::before { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gold-line);
  color: var(--grey-light); background: rgba(212,175,55,0.05);
}
.tag {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey);
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(16,185,129,0.7); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in, .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in, .reveal.visible { opacity: 1; transform: none; transition: none; } }

/* refresh the legacy section label into the mono eyebrow */
.section-label {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: none; padding: 0; border-radius: 0;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }

/* ---- buttons refreshed site-wide ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, var(--gold), #C29B2E); color: #0A0E14; font-weight: 700;
  box-shadow: 0 8px 26px -8px var(--gold-glow);
}
.btn-gold:hover, .btn-primary:hover { box-shadow: 0 14px 34px -8px var(--gold-glow); color: #0A0E14; }
.btn-dark, .btn-secondary {
  background: rgba(255,255,255,0.04); color: var(--white); border-color: var(--line-strong);
}
.btn-dark:hover, .btn-secondary:hover { background: rgba(255,255,255,0.07); border-color: var(--gold-line); color: var(--white); }
.btn-block { width: 100%; }

/* ==========================================================================
   NAVBAR (new markup)
   ========================================================================== */
.navbar-inner { display: flex; align-items: center; justify-content: flex-start; max-width: 1320px; margin: 0 auto; padding: 14px 28px; gap: 26px; height: 70px; min-height: 70px; }
.navbar.scrolled { background: rgba(10,14,20,0.95); border-bottom-color: var(--gold-line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(212,175,55,0.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; color: var(--white); }
.brand-name .gold-text { color: var(--gold); }
.brand-sub { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--grey-light); transition: color var(--transition), background var(--transition); }
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-links .dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,0.7); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-cta { font-size: 0.74rem; padding: 12px 18px; white-space: nowrap; flex-shrink: 0; }
.navbar .dropdown { position: relative; }
.navbar .dropdown-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px; list-style: none; box-shadow: 0 24px 50px -12px rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); }
.navbar .dropdown:hover .dropdown-menu, .navbar .dropdown:focus-within .dropdown-menu, .navbar .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.navbar .dropdown-menu li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.86rem; color: var(--grey-light); }
.navbar .dropdown-menu li a:hover { background: rgba(212,175,55,0.08); color: var(--white); }
.navbar .dropdown-heading { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); padding: 12px 12px 5px; }
.mobile-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--white); font-size: 1.2rem; width: 44px; height: 44px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; margin-left: auto; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: grid; place-items: center; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--panel); border-bottom: 1px solid var(--line-strong); padding: 16px 20px; max-height: 80vh; overflow-y: auto; }
  .nav-links.open .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 8px 12px; min-width: 0; }
  .nav-right { margin-left: auto; }

  /* Mobile menu scrolling. 80vh counted the area behind the phone's browser
     toolbars, so the last items sat off-screen; swipes inside the menu also
     scrolled the page behind it (the nav is fixed, so the menu never moved);
     and the cookie banner and sticky quote bar (z-index 9999) covered its
     bottom. Size the panel to the visible viewport, keep scrolling inside it,
     lock the page while it is open and lift the open nav above those bars. */
  .nav-links.open {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  html.nav-open, html.nav-open body { overflow: hidden; }
  html.nav-open .navbar { z-index: 10000; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
}

/* Mobile header fit. The brand block could shrink, so "DAEDALUS DESIGN"
   spilled out under the Start Project button; the button wrapped to three
   lines, overflowed the 70px bar and changed height when the web font
   swapped in (a layout shift). On phones the bar now keeps the brand at its
   natural width (name stacked on two lines) and holds the button to one
   compact line; below 360px the brand shows the logo mark only so the button
   still fits. */
@media (max-width: 960px) {
  .navbar-inner { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .navbar .brand { flex-shrink: 0; gap: 9px; }
  .navbar .brand img { width: 34px; height: 34px; }
  .navbar .nav-right { gap: 10px; min-width: 0; }
  .navbar .nav-cta { width: auto; flex-shrink: 0; white-space: nowrap; font-size: 0.68rem; letter-spacing: 0.04em; padding: 10px 11px; }
}
@media (max-width: 520px) {
  .navbar .brand-name .gold-text { display: block; }
}
@media (max-width: 359.98px) {
  .navbar .brand-text { display: none; }
}

/* ==========================================================================
   FOOTER (new markup)
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; margin-top: 20px; background: none; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--grey); font-size: 0.88rem; line-height: 1.7; max-width: 340px; }
.footer-status { margin-top: 18px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.footer-legal-line { color: var(--grey); font-size: 0.8rem; margin-top: 16px; line-height: 1.6; max-width: 360px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.footer-col a { color: var(--grey-light); font-size: 0.88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-copy { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--grey); text-transform: uppercase; }
.footer-badges { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 14px; }
.footer-badges .sep { color: var(--grey); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Footer legal links (compliance: all policy links present) */
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-legal-links a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--gold); }
.footer-legal-links + .footer-bottom { margin-top: 22px; padding-top: 0; border-top: none; }

/* ============================================================
   BLOG POST — canonical layout (2026)
   A shared baseline so every /posts/ page renders consistently,
   including pages that carry no inline <style> block. Posts that
   DO define their own inline .post-hero/.post-body rules cascade
   after this file and keep their look; this only fills the gaps
   and unifies featured-image + figure treatment site-wide.
   .article-header/.article-content are legacy aliases.
   ============================================================ */
.post-hero, .article-header { padding: 140px 0 56px; text-align: center; }
.post-hero > .container, .article-header > .container { max-width: 820px; }
.post-hero .section-label, .article-header .section-label { margin-bottom: 16px; display: inline-block; }
.post-hero h1, .article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 820px; margin: 0 auto 20px; line-height: 1.22; color: var(--white);
}
.post-hero .post-meta, .post-hero .post-meta-bar,
.article-header .post-meta, .article-header .post-meta-bar {
  display: flex; justify-content: center; gap: 12px 24px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--grey);
}
/* Featured / hero image — one consistent treatment everywhere */
.post-hero-img {
  max-width: 820px; margin: 28px auto 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.45); background: var(--panel);
}
.post-hero-img img { display: block; width: 100%; height: auto; }

.post-body, .article-content { max-width: 780px; margin: 0 auto 80px; padding: 40px 24px 0; }
.post-body h2, .article-content h2 { font-size: 1.6rem; margin: 48px 0 16px; color: var(--gold); line-height: 1.3; }
.post-body h3, .article-content h3 { font-size: 1.25rem; margin: 32px 0 12px; color: var(--white); }
.post-body p, .article-content p { color: var(--grey-light); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.post-body ul, .post-body ol, .article-content ul, .article-content ol { color: var(--grey-light); margin: 0 0 20px 24px; font-size: 1.05rem; line-height: 1.8; }
.post-body li, .article-content li { margin-bottom: 8px; }
.post-body strong, .article-content strong { color: var(--white); }
.post-body blockquote, .article-content blockquote {
  margin: 28px 0; padding: 16px 24px; border-left: 3px solid var(--gold);
  background: var(--panel); border-radius: 0 10px 10px 0; color: var(--grey-light);
}
/* Inline article images / figures — consistent, responsive, framed */
.post-body figure, .article-content figure { margin: 32px 0; }
.post-body figure img, .article-content figure img,
.post-body > img, .article-content > img,
.post-body p > img, .article-content p > img {
  display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
}
.post-body figcaption, .article-content figcaption {
  margin-top: 10px; text-align: center; font-size: 0.85rem; color: var(--grey);
}

/* ============================================================
   BLOG + KNOWLEDGEBASE — full-width articles on desktop (Sep 2026)
   Articles were capped at ~780px, leaving most of a desktop screen
   empty. From 1024px up the article column, hero and featured image
   use the site content width (--max-w). `html body` outranks the
   per-post inline <style> blocks that also set 780px.
   ============================================================ */
@media (min-width: 1024px) {
  html body .post-body,
  html body .article-content,
  html body .post-hero > .container,
  html body .article-header > .container,
  html body .post-hero h1,
  html body .article-header h1,
  html body .post-hero-img { max-width: var(--max-w); }
  html body .post-body, html body .article-content { padding-left: 24px; padding-right: 24px; }
}

/* ============================================================
   INNER-PAGE HERO — homepage 2026 style (Sep 2026)
   Mirrors .hero in home-2026.css (left-aligned headline with gold
   gradient line, pill badge, buttons, stat row, browser-chrome
   card) for pages that load style.css. First used on portfolio.html.
   ============================================================ */
.grid-bg { position: relative; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 85%);
}
.grid-bg > .container { position: relative; z-index: 1; }

.hero-2026 { padding: 150px 0 90px; text-align: left; }
.hero-2026-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-2026-badge { margin-bottom: 26px; }
.hero-2026 h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; color: var(--white); }
.hero-2026 h1 .gold-text { background: linear-gradient(100deg, var(--gold), #F0D98A 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-2026-lede { color: var(--grey-light); font-size: 1.12rem; line-height: 1.65; margin: 24px 0 34px; max-width: 560px; }
.hero-2026-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-2026-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
.hero-2026-stat .stat-num { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 7px; color: var(--white); }
.hero-2026-stat .stat-num .ic { color: var(--gold); font-size: 1.05rem; }
.hero-2026-stat .stat-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }

.hero-2026-card { padding: 20px; border-radius: 20px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(18,24,33,0.9), rgba(12,17,25,0.92)); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,175,55,0.05); }
.hero-2026-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-2026-dots { display: flex; gap: 6px; }
.hero-2026-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hero-2026-dots span:nth-child(1) { background: #EF6A5E; } .hero-2026-dots span:nth-child(2) { background: #F4C04E; } .hero-2026-dots span:nth-child(3) { background: #57C06B; }
.hero-2026-card-title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-light); }
.hero-2026-live { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 7px; }
.hero-2026-shot { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.hero-2026-shot img { display: block; width: 100%; height: auto; }
.hero-2026-shot-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: linear-gradient(0deg, rgba(10,14,20,0.92), transparent); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-2026-shot-bar .l { color: var(--white); } .hero-2026-shot-bar .r { color: var(--gold); }
.hero-2026-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.hero-2026-thumbs img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }

@media (max-width: 1080px) { .hero-2026-grid { gap: 40px; } }
@media (max-width: 900px) {
  .hero-2026-grid { grid-template-columns: 1fr; }
  .hero-2026-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) { .hero-2026 { padding: 128px 0 64px; } }

/* reCAPTCHA v3 (js/recaptcha.js). The floating badge sat over the chat widget
   and sticky quote bar, so it is hidden and the notice Google requires in its
   place is added under each protected form instead. */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-notice { margin: 12px 0 0; font-size: 0.72rem; line-height: 1.5; color: var(--grey); text-align: left; }
.recaptcha-notice a { color: inherit; text-decoration: underline; }
