/* ==========================================================================
   TheAifaLabs — Global Stylesheet
   Mobile-first. Dark navy + gold. No external deps except Google Fonts.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --navy-950: #050C18;
  --navy-900: #0A1628;
  --navy-800: #0F2036;
  --navy-700: #16304F;
  --navy-600: #1E4370;
  --gold-500: #FFB020;
  --gold-400: #FFC451;
  --gold-600: #D98E0B;

  /* Neutrals */
  --paper: #F5F8FC;
  --paper-2: #E9EFF7;
  --white: #FFFFFF;
  --text-on-dark: #E9F0FA;
  --muted-on-dark: #A8BBD3;
  --text-on-light: #0F2036;
  --muted-on-light: #4A6180;
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-light: #D6E0EC;

  /* Semantic */
  --edu: #4FC3F7;      /* education product family */
  --edu-soft: rgba(79, 195, 247, 0.12);
  --soft: #7CE0B4;     /* software services family */
  --soft-soft: rgba(124, 224, 180, 0.12);
  --danger: #FF6B6B;
  --ok: #3DD68C;

  /* Type */
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Space & shape */
  --wrap: 1180px;
  --gutter: 1.25rem;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(3, 10, 22, 0.35);
  --shadow-sm: 0 6px 18px rgba(3, 10, 22, 0.18);
  --t: 200ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--line-light); margin: 2.5rem 0; }

/* ---------- 3. Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold-500); color: var(--navy-900);
  padding: .75rem 1.25rem; font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--dark { background: var(--navy-900); color: var(--text-on-dark); }
.section--darker { background: var(--navy-950); color: var(--text-on-dark); }
.section--paper { background: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--darker h1, .section--darker h2, .section--darker h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted-on-light); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-head p, .section--darker .section-head p { color: var(--muted-on-dark); }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .75rem;
}
.section--dark .eyebrow, .section--darker .eyebrow, .hero .eyebrow { color: var(--gold-400); }

/* min-width:0 stops a wide child (table, long token, image) blowing out a grid
   or flex column — the usual cause of accidental horizontal scroll on phones. */
.grid > *, .legal > *, .hero__grid > *, .product-hero__grid > *, .footer-grid > * { min-width: 0; }
.legal-body table { table-layout: auto; }
.legal-body td, .legal-body th { overflow-wrap: anywhere; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background var(--t), color var(--t),
    border-color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 10px 26px rgba(255, 176, 32, .28); }
.btn--primary:hover { background: var(--gold-400); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--navy-600); }
.btn--outline:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1.15rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand__text span { color: var(--gold-500); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: transparent;
  border: 1px solid var(--line-dark); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); border-bottom: 1px solid var(--line-dark);
  padding: .5rem var(--gutter) 1.5rem;
  display: none;
}
.nav-menu.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line-dark); }
.nav-list > li:last-child { border-bottom: 0; }
.nav-list a {
  display: block; padding: .85rem .25rem; color: var(--text-on-dark);
  text-decoration: none; font-weight: 500; font-size: .98rem; transition: color var(--t);
}
.nav-list a:hover { color: var(--gold-400); }
.nav-list a[aria-current="page"] { color: var(--gold-500); font-weight: 600; }

.has-drop > .drop-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  width: 100%; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .98rem; font-weight: 500; color: var(--text-on-dark);
  padding: .85rem .25rem; text-align: left;
}
.drop-toggle svg { flex: none; transition: transform var(--t); }
.drop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop-menu { list-style: none; margin: 0 0 .6rem; padding: 0 0 0 .9rem; display: none; border-left: 2px solid var(--gold-600); }
.drop-menu.is-open { display: block; }
.drop-menu a { padding: .55rem .25rem; font-size: .92rem; color: var(--muted-on-dark); }
.nav-cta { margin-top: 1rem; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex !important; align-items: center; gap: 1.75rem;
    padding: 0; background: none; border: 0; width: auto;
  }
  .nav-list { display: flex; align-items: center; gap: 1.6rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .has-drop > .drop-toggle { padding: .4rem 0; }
  .drop-menu {
    position: absolute; top: calc(100% + 14px); left: -1rem; min-width: 232px;
    background: var(--navy-800); border: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark);
    border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow); margin: 0;
  }
  .drop-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
  .drop-menu a { border-radius: var(--radius-sm); padding: .55rem .7rem; }
  .drop-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--gold-400); }
  .nav-cta { margin: 0; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 176, 32, .16), transparent 46%),
    radial-gradient(circle at 8% 78%, rgba(30, 67, 112, .55), transparent 52%),
    var(--navy-950);
  color: var(--text-on-dark);
  padding-block: clamp(3.25rem, 9vw, 6rem);
}
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }
.hero__lead { font-size: clamp(1.02rem, 2.1vw, 1.18rem); color: var(--muted-on-dark); max-width: 56ch; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); }
.stat__num { font-family: var(--font-head); font-size: 1.85rem; font-weight: 700; color: var(--gold-500); line-height: 1; }
.stat__label { font-size: .84rem; color: var(--muted-on-dark); margin-top: .35rem; }

.hero__panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.panel-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px dashed var(--line-dark); }
.panel-row:last-child { border-bottom: 0; }
.panel-row__icon {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center; background: rgba(255, 176, 32, .14); color: var(--gold-400);
}
.panel-row__title { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--white); }
.panel-row__meta { font-size: .82rem; color: var(--muted-on-dark); }
.panel-row__val { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--ok); font-size: .95rem; }
.panel-row__val--down { color: var(--danger); }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--navy-600); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted-on-light); font-size: .95rem; }
.card--dark { background: var(--navy-800); border-color: var(--line-dark); color: var(--text-on-dark); }
.card--dark p { color: var(--muted-on-dark); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-500); margin-bottom: 1.1rem;
}
.card__link {
  margin-top: auto; padding-top: 1rem; font-family: var(--font-head); font-weight: 600;
  font-size: .9rem; color: var(--navy-700); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center;
}
.card__link:hover { color: var(--gold-600); }
.card__link::after { content: "→"; transition: transform var(--t); }
.card__link:hover::after { transform: translateX(4px); }
.card ul { padding-left: 1.1rem; font-size: .92rem; color: var(--muted-on-light); }
.card--dark ul { color: var(--muted-on-dark); }

/* ---------- 9. Family bands (education vs software separation) ---------- */
.family {
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; margin-bottom: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  border: 1px solid var(--line-light);
}
.family__tag {
  font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px;
}
.family h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.family p { margin: 0; color: var(--muted-on-light); font-size: .95rem; flex: 1 1 340px; }

.family--edu { background: var(--edu-soft); border-color: rgba(79, 195, 247, .35); }
.family--edu .family__tag { background: var(--edu); color: var(--navy-950); }
.family--soft { background: var(--soft-soft); border-color: rgba(124, 224, 180, .35); }
.family--soft .family__tag { background: var(--soft); color: var(--navy-950); }

/* ---------- 10. Product cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--navy-700); border: 1px solid var(--line-light);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.chip:hover { border-color: var(--navy-600); }
.chip[aria-pressed="true"] { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

.product {
  position: relative; background: var(--white); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column;
  border-top: 4px solid var(--line-light);
  transition: transform var(--t), box-shadow var(--t);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.product[data-family="education"] { border-top-color: var(--edu); }
.product[data-family="software"] { border-top-color: var(--soft); }
.product__badge {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .65rem; border-radius: 6px; margin-bottom: .9rem;
  background: var(--paper-2); color: var(--muted-on-light); font-family: var(--font-head);
}
.product[data-family="education"] .product__badge { background: var(--edu-soft); color: #10618A; }
.product[data-family="software"] .product__badge { background: var(--soft-soft); color: #157A52; }
.product h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.product p { font-size: .92rem; color: var(--muted-on-light); }
.product__meta { list-style: none; padding: 0; margin: 0 0 1.1rem; font-size: .86rem; color: var(--muted-on-light); }
.product__meta li { padding-left: 1.15rem; position: relative; margin-bottom: .3rem; }
.product__meta li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-600); font-weight: 700; }
.product__foot { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-light); }
.price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.price small { font-size: .78rem; font-weight: 500; color: var(--muted-on-light); }
.price__note { font-size: .78rem; color: var(--muted-on-light); margin: .3rem 0 1rem; }
.is-hidden { display: none !important; }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--muted-on-light); }

/* ---------- 11. Testimonials & logos ---------- */
.quote {
  background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 1.75rem; color: var(--text-on-dark); display: flex; flex-direction: column;
}
.quote blockquote { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.7; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-head); font-size: 2.75rem; color: var(--gold-500); line-height: .6; margin-bottom: .5rem; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-600); color: var(--gold-400); font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.quote cite { font-style: normal; font-weight: 600; font-size: .92rem; color: var(--white); display: block; }
.quote .role { font-size: .8rem; color: var(--muted-on-dark); }

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; align-items: center; }
.logo-strip span {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--muted-on-dark); opacity: .75; letter-spacing: .02em;
}

/* ---------- 12. Steps / process ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding-top: 2.9rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--navy-950);
}
.steps h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.steps p { font-size: .92rem; color: var(--muted-on-dark); margin: 0; }

/* ---------- 13. Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form-grid .field--half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--navy-800); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .97rem; color: var(--text-on-light);
  padding: .8rem .95rem; border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  background: var(--white); width: 100%; transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(30, 67, 112, .15); outline: none;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 107, .15);
}
.field .hint { font-size: .8rem; color: var(--muted-on-light); }
.field .error { font-size: .82rem; color: #C63030; font-weight: 500; min-height: 1.1em; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted-on-light); }
.consent input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.form-status {
  border-radius: var(--radius-sm); padding: .95rem 1.1rem; font-size: .93rem; font-weight: 500;
  border: 1px solid transparent;
}
.form-status--ok { background: rgba(61, 214, 140, .12); border-color: rgba(61, 214, 140, .5); color: #12603E; }
.form-status--err { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .5); color: #A32020; }

/* ---------- 14. Contact / info blocks ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--line-dark); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-400); }
.info-list .v { color: var(--text-on-dark); font-size: .96rem; }
.info-list a { color: var(--text-on-dark); }
.map-slot {
  border: 1px dashed var(--line-dark); border-radius: var(--radius); min-height: 240px;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  color: var(--muted-on-dark); font-size: .9rem; background: rgba(255, 255, 255, .03);
}
.map-slot iframe { width: 100%; min-height: 240px; border: 0; border-radius: var(--radius); }

/* ---------- 15. Blog ---------- */
.post { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.post__thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-500); }
.post__thumb svg { width: 64px; height: 64px; }
.post__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post__cat { font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .55rem; }
.post h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--navy-600); }
.post p { font-size: .92rem; color: var(--muted-on-light); }
.post__meta { margin-top: auto; padding-top: 1rem; font-size: .82rem; color: var(--muted-on-light); display: flex; gap: .6rem; align-items: center; }

.newsletter {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem); color: var(--text-on-dark);
}
.newsletter form { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.newsletter input[type="email"] { flex: 1 1 260px; padding: .9rem 1rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .07); color: var(--white); font-family: var(--font-body); }
.newsletter input::placeholder { color: var(--muted-on-dark); }
.newsletter .form-status { background: rgba(61, 214, 140, .12); border-color: rgba(61, 214, 140, .45); color: #A9F0CE; margin-top: 1rem; }

/* ---------- 16. Legal pages ---------- */
.page-head { background: var(--navy-900); color: var(--text-on-dark); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head p { color: var(--muted-on-dark); max-width: 62ch; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted-on-dark); margin-bottom: .9rem; }
.breadcrumb a { color: var(--gold-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.legal { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .legal { grid-template-columns: 260px 1fr; align-items: start; } }
.toc { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.25rem; }
.toc h2 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-light); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: .38rem 0; font-size: .88rem; color: var(--navy-700); text-decoration: none; }
.toc a::before { content: counter(toc) ". "; color: var(--muted-on-light); }
.toc a:hover { color: var(--gold-600); }
.legal-body { max-width: 74ch; }
.legal-body h2 { margin-top: 2.5rem; padding-top: .5rem; font-size: 1.35rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.75rem; font-size: 1.05rem; }
.legal-body li { margin-bottom: .45rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.legal-body th, .legal-body td { text-align: left; padding: .7rem .85rem; border: 1px solid var(--line-light); vertical-align: top; }
.legal-body th { background: var(--paper); font-family: var(--font-head); font-size: .85rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.updated { display: inline-block; font-size: .84rem; background: var(--paper-2); border-radius: 999px; padding: .35rem .9rem; color: var(--muted-on-light); }

/* ---------- 17. CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--navy-950) 65%);
  color: var(--text-on-dark); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem); text-align: center;
  border: 1px solid var(--line-dark);
}
.cta-band p { color: var(--muted-on-dark); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--muted-on-dark); padding-block: 3.25rem 1.5rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a { color: var(--muted-on-dark); text-decoration: none; font-size: .92rem; transition: color var(--t); }
.footer-grid a:hover { color: var(--gold-400); }
.footer-about p { font-size: .92rem; max-width: 38ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--muted-on-dark);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.socials a:hover { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: .85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- 19. Misc ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill { font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark); color: var(--muted-on-dark); }
.section--paper .pill, .section:not(.section--dark):not(.section--darker) .pill { background: var(--paper-2); border-color: var(--line-light); color: var(--muted-on-light); }
.team-slot {
  border: 1px dashed var(--line-light); border-radius: var(--radius); padding: 1.5rem;
  text-align: center; background: var(--white);
}
.team-slot .avatar { width: 72px; height: 72px; font-size: 1.35rem; margin: 0 auto 1rem; background: var(--navy-800); }
.team-slot h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.team-slot .role { font-size: .86rem; color: var(--gold-600); font-weight: 600; margin-bottom: .6rem; }
.team-slot p { font-size: .88rem; color: var(--muted-on-light); margin: 0; }
/* ---------- 20. Brand mark & product-page components ---------- */
.brand__mark { border-radius: 9px; }
.footer-logo { max-width: 210px; border-radius: 12px; margin-bottom: 1rem; }

/* Product hero */
.product-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 176, 32, .18), transparent 48%),
    var(--navy-950);
  color: var(--text-on-dark); padding-block: clamp(2.5rem, 7vw, 4.5rem);
}
.product-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .product-hero__grid { grid-template-columns: 1.15fr .85fr; } }
.product-hero__lead { color: var(--muted-on-dark); font-size: 1.06rem; max-width: 56ch; }
.buy-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.buy-card .price { color: var(--white); font-size: 2rem; }
.buy-card .price small { color: var(--muted-on-dark); }
.buy-card ul { list-style: none; padding: 0; margin: 1.25rem 0; font-size: .9rem; color: var(--muted-on-dark); }
.buy-card li { padding-left: 1.5rem; position: relative; margin-bottom: .5rem; }
.buy-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-500); font-weight: 700; }
.buy-note { font-size: .8rem; color: var(--muted-on-dark); margin-top: .9rem; text-align: center; }

/* Spec table */
.spec { list-style: none; padding: 0; margin: 0; }
.spec li { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-light); font-size: .92rem; }
.spec li:last-child { border-bottom: 0; }
.spec .k { flex: 0 0 190px; font-family: var(--font-head); font-weight: 600; color: var(--navy-800); }
.spec .v { flex: 1 1 200px; color: var(--muted-on-light); }

/* Chapter list */
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; counter-reset: ch; }
@media (min-width: 700px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
.chapters li {
  counter-increment: ch; display: flex; gap: .8rem; align-items: baseline;
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  padding: .7rem .9rem; font-size: .92rem;
}
.chapters li::before {
  content: counter(ch, decimal-leading-zero); flex: none;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--gold-600);
}

/* Coming-soon product tile */
.product--soon { opacity: .95; border-top-color: var(--muted-on-light) !important; background: var(--paper); }
.product--soon .product__badge { background: var(--paper-2); color: var(--muted-on-light); }
.btn--disabled {
  background: var(--paper-2); color: var(--muted-on-light); border-color: var(--line-light);
  cursor: not-allowed; pointer-events: none;
}
.subject-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.subject-nav a {
  font-family: var(--font-head); font-size: .88rem; font-weight: 600; text-decoration: none;
  padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid var(--line-dark);
  color: var(--text-on-dark); transition: background var(--t), color var(--t), border-color var(--t);
}
.subject-nav a:hover, .subject-nav a[aria-current="page"] { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); }
.subject-nav a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- 21. Introductory-offer pricing ---------- */
.offer-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--gold-500); color: var(--navy-950);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: .7rem;
}
.offer-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy-950); }
.price-was { font-size: 1.15rem; font-weight: 500; text-decoration: line-through; opacity: .55; margin-right: .45rem; }
.price-now { color: var(--gold-500); }
.buy-card .price-now { color: var(--gold-400); }
.offer-warn {
  display: block; font-size: .82rem; font-weight: 600; margin-top: .5rem;
  color: var(--gold-600);
}
.section--dark .offer-warn, .section--darker .offer-warn, .buy-card .offer-warn, .product-hero .offer-warn { color: var(--gold-400); }
.offer-strip {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
  color: var(--navy-950); text-align: center;
  padding: .7rem 1rem; font-family: var(--font-head); font-size: .9rem; font-weight: 600;
}
.offer-strip a { color: var(--navy-950); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 22. Product image galleries ---------- */
.shot {
  margin: 0; background: var(--navy-800); border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; display: block; background: var(--navy-950); }
.shot figcaption {
  padding: .85rem 1rem; font-size: .86rem; color: var(--muted-on-dark);
  border-top: 1px solid var(--line-dark);
}
.shot figcaption b { display: block; color: var(--white); font-family: var(--font-head); font-size: .92rem; font-weight: 600; margin-bottom: .15rem; }
.section--paper .shot, .section:not(.section--dark):not(.section--darker) .shot { background: var(--white); border-color: var(--line-light); }
.section--paper .shot figcaption, .section:not(.section--dark):not(.section--darker) .shot figcaption { color: var(--muted-on-light); border-top-color: var(--line-light); }
.section--paper .shot figcaption b, .section:not(.section--dark):not(.section--darker) .shot figcaption b { color: var(--navy-800); }

.shot--wide { grid-column: 1 / -1; }
.shot--phone { max-width: 330px; margin-inline: auto; }
.shot--phone img { background: #111; }

.hero-shot {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow); margin: 0;
}
.hero-shot img { width: 100%; height: auto; display: block; }

.banner-shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark);
  margin: 0 0 2rem;
}
.banner-shot img { width: 100%; height: auto; display: block; }

@media print { .shot, .hero-shot, .banner-shot { break-inside: avoid; } }

@media print {
  .site-header, .site-footer, .btn, .toc { display: none !important; }
  body { color: #000; background: #fff; }
}
