/* Self-hosted type: Source Sans 3 (body) + Merriweather (headings) */
@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("./fonts/merriweather.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("./fonts/merriweather-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("./fonts/merriweather-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* TechMiners presentation layer */
:root {
  --navy: #1A3654;
  --navy-deep: #132841;
  --navy-soft: #23456A;
  --gold: #D4A84B;
  --gold-hover: #E0B84E;
  --gold-text: #E0B84E;
  --cream: #F4F0E8;
  --cream-dark: #EAE4D8;
  --card: #FFFDF8;
  --ink: #1C1A16;
  --muted: #4A453E;
  --tag: #6B4A16;
  --chip: #E4EBF2;
  --line: rgba(26, 54, 84, 0.10);
  --shadow: 0 1px 2px rgba(26, 54, 84, 0.05), 0 10px 28px rgba(26, 54, 84, 0.07);
  --white: #fffdf9;
  --serif: "Merriweather", "Georgia", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --text: 1.125rem; /* 18px */
  --lh: 1.6;
  --h1-size: clamp(2.125rem, 1.35rem + 3.4vw, 3.5rem); /* 34–56px */
  --h2-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem); /* 28–40px */
  --h3-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); /* 22–28px */
  --radius: 20px;
  --header-h: 72px;
  --max: 1120px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--gold);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: var(--text);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 16px; top: 16px; background: #fff; color: var(--navy);
  padding: 10px 14px; z-index: 200; border-radius: 8px;
  outline: 3px solid var(--gold);
}

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; flex-shrink: 0;
  min-height: 44px;
  border-radius: 10px;
}
.brand:focus-visible { outline: none; box-shadow: var(--focus); }
.mark {
  width: 40px; height: 40px; border-radius: 0;
  background: none; color: var(--navy);
  display: grid; place-items: center;
  box-shadow: none;
  flex-shrink: 0;
}
.mark svg { width: 40px; height: 40px; display: block; }
.brand-name {
  font-family: var(--serif); font-size: 22px; line-height: 1; font-weight: 500;
}
nav.main {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 8px 14px;
  font-size: 15px;
}
nav.main a {
  text-decoration: none; color: #f3efe6;
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 8px 2px;
  border-radius: 8px;
  white-space: nowrap;
}
nav.main a:hover { color: #fff; }
nav.main a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold);
}
nav.main a:focus-visible { outline: none; box-shadow: var(--focus); }
nav.main a.email { white-space: nowrap; }
nav.main .btn { margin-left: 4px; padding: 10px 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 16px; line-height: 1.2;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-light { background: #fff; color: var(--navy); border-color: rgba(26, 54, 84,0.16); }
.btn-light:hover { background: var(--cream); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.menu-toggle {
  display: none; background: none; border: 0; color: #fff;
  width: 44px; height: 44px; cursor: pointer;
  border-radius: 10px; padding: 0;
  place-items: center;
  flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }
.menu-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.menu-toggle .bars {
  display: block; width: 20px; height: 14px; position: relative;
}
.menu-toggle .bars span,
.menu-toggle .bars span:before,
.menu-toggle .bars span:after {
  display: block; width: 20px; height: 2px; background: #fff;
  border-radius: 2px; position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle .bars span:before,
.menu-toggle .bars span:after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle .bars span:before { top: -6px; }
.menu-toggle .bars span:after { top: 6px; }
header.site.open .menu-toggle .bars span { background: transparent; }
header.site.open .menu-toggle .bars span:before { top: 0; transform: rotate(45deg); }
header.site.open .menu-toggle .bars span:after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  background: var(--navy); color: #f6f1e8;
  padding: 80px 0 96px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center;
}
.kicker {
  color: var(--gold-text); font-weight: 600; font-size: 16px;
  letter-spacing: 0.04em; text-transform: none; margin: 0 0 16px;
}
.hero h1 {
  font-size: var(--h1-size);
  line-height: 1.15; margin: 0 0 22px; color: #f7f2e9; font-weight: 500;
}
.hero h1 em { font-style: italic; color: var(--gold-text); font-weight: 500; }
.hero .lede { font-size: 1.125rem; line-height: 1.6; max-width: 36em; color: #ece6d8; margin: 0 0 16px; }
.hero .strong { font-weight: 700; color: #fff; margin: 0 0 28px; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 20px; }
.hero .fine { color: #d4cdc0; font-size: 16px; margin: 0; }
.example-card {
  background: var(--card); color: var(--ink);
  border-radius: 24px; padding: 32px 34px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.6);
}
.example-card .note {
  color: var(--tag); font-size: 16px; font-weight: 600; margin: 0 0 14px;
}
.example-card p.quote {
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3;
  margin: 0 0 18px;
}
.example-card .cap { color: var(--muted); font-size: 16px; margin: 0; }

/* Sections */
section { padding: 88px 0; }
.band-cream { background: var(--cream); }
.band-warm { background: var(--cream-dark); }
.band-navy { background: var(--navy); color: #f6f1e8; }
h2 {
  font-size: var(--h2-size);
  line-height: 1.25; margin: 0 0 18px; font-weight: 500;
}
.intro { max-width: 40em; color: var(--muted); margin: 0 0 28px; font-size: var(--text); }
.intro + .intro { margin-top: -12px; }
.band-navy .intro, .band-navy .lede { color: #e4ddd0; }
.cards-2, .cards-3 { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: 1fr 1fr 1fr; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  border: 1px solid rgba(26, 54, 84, 0.07);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(26, 54, 84,0.06), 0 16px 36px rgba(26, 54, 84,0.10); }
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
.card.outline { border-color: rgba(26, 54, 84, 0.45); background: transparent; box-shadow: none; }
.tag {
  color: var(--tag); font-size: 16px; font-weight: 600; margin: 0 0 6px;
}
.card h3 { font-size: var(--h3-size); margin: 0 0 10px; font-weight: 500; line-height: 1.3; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card ul { margin: 8px 0 0; padding: 0 0 0 1.15em; }
.card li { margin: 8px 0; }

.icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--chip);
  color: var(--navy);
  display: grid; place-items: center;
  margin: 0 0 14px;
}
.icon svg { width: 24px; height: 24px; display: block; }

.num {
  font-family: var(--serif); font-size: 32px; color: var(--tag); margin: 0 0 8px;
  line-height: 1;
}
.link {
  color: var(--navy); font-weight: 600;
  text-underline-offset: 4px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.link:hover { color: var(--navy-deep); }
.link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold); border-radius: 6px; }
.band-navy .link, .hero .link { color: #fff; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare .card.with { border: 1.5px solid var(--navy); box-shadow: var(--shadow); }
.compare h3 { font-size: 26px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.price-block h3, .price-block .price-label {
  font-family: var(--serif); font-size: 42px; margin: 8px 0 8px; font-weight: 500;
}

/* FAQ */
.faq { max-width: 860px; }
details.qa {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
details.qa:last-of-type { border-bottom: 1px solid var(--line); }
details.qa summary {
  cursor: pointer; font-weight: 650; font-size: 18px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: center;
  min-height: 52px; padding: 10px 0;
  border-radius: 8px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary:after {
  content: "";
  width: 12px; height: 12px; flex-shrink: 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.18s ease;
}
details.qa[open] summary:after { transform: rotate(225deg) translateY(-2px); }
details.qa summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold); }
details.qa p { color: var(--muted); margin: 0 0 16px; max-width: 46em; font-size: 17px; }

/* Forms */
form.book {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(26, 54, 84, 0.07);
  box-shadow: var(--shadow);
}
label { display: block; font-size: 16px; font-weight: 600; margin: 0 0 8px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(26, 54, 84,0.2); background: #fff;
  font: inherit; font-size: 16px; margin: 0 0 18px; color: var(--ink);
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(26, 54, 84,0.35); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.45);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 16px; color: var(--muted); margin: 12px 0 0; }
.req { font-weight: 500; color: var(--muted); }
form.book .btn { min-height: 48px; width: 100%; }

/* Footer */
footer.site {
  background: var(--navy-deep); color: #e8e2d6;
  padding: 64px 0 28px; font-size: 16px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer.site h2, footer.site h3 { color: #fff; }
footer .brand-title { font-family: var(--serif); font-size: 32px; margin: 0 0 12px; font-weight: 500; color: #fff; }
footer a { color: #e8e2d6; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
footer a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
footer .gold { color: var(--gold-text); font-weight: 600; margin: 0 0 12px; font-size: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0; }
footer li a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 6px 0;
}
.legal { padding-top: 22px; color: #c4bdb0; font-size: 16px; }
.addr { margin: 16px 0 8px; }

/* Page heroes */
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: var(--h1-size); line-height: 1.15; margin: 0 0 18px; color: #f7f2e9; }

.you-us { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 8px; }
.step { padding: 8px 0 40px; }
.pill-list { display: grid; gap: 12px; }
.pill {
  background: var(--card); border-radius: 16px; padding: 16px 18px;
  border: 1px solid rgba(26, 54, 84, 0.06);
  box-shadow: 0 1px 2px rgba(26, 54, 84,0.04);
  font-size: 17px;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
}

/* Hamburger only. Page grids stay on the 1100px query below. */
@media (max-width: 1279px) {
  .menu-toggle { display: grid; }
  nav.main {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy);
    flex-direction: column; align-items: stretch;
    padding: 8px 20px 28px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 32px rgba(0,0,0,0.28);
  }
  header.site.open nav.main { display: flex; }
  nav.main a {
    width: 100%;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 18px;
  }
  nav.main a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  nav.main .btn {
    width: 100%;
    margin: 12px 0 0;
    min-height: 48px;
    padding: 12px 22px;
  }
}

/* Tablet and phone */
@media (max-width: 1100px) {
  .wrap { width: min(var(--max), calc(100% - 36px)); }
  .hero-grid, .cards-2, .cards-3, .compare, .split, .you-us, .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 64px;
    --text: 1.0625rem; /* 17px */
    --h1-size: clamp(1.875rem, 5.6vw + 1rem, 2.25rem); /* 30–36px */
    --h2-size: clamp(1.5rem, 2.4vw + 1.05rem, 1.75rem); /* 24–28px */
    --h3-size: 1.3125rem; /* 21px */
  }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  body { padding-bottom: calc(76px + var(--safe-bottom)); font-size: var(--text); line-height: 1.6; }
  .hero { padding: 40px 0 52px; }
  section { padding: 56px 0; }
  .page-hero { padding: 40px 0 48px; }
  .hero h1, .page-hero h1 { line-height: 1.2; }
  h2 { line-height: 1.28; }
  .hero .lede { font-size: var(--text); }
  .brand-name { font-size: 20px; }
  .mark, .mark svg { width: 36px; height: 36px; }
  .card { padding: 24px 22px 22px; }
  .example-card { padding: 24px 22px; }
  form.book { padding: 22px 18px; }
  footer.site { padding: 48px 0 24px; }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px calc(10px + var(--safe-bottom));
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  }
  .sticky-cta .btn {
    width: 100%;
    min-height: 48px;
  }
  body.page-contact { padding-bottom: 0; }
  body.page-contact .sticky-cta { display: none; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .hero { padding: 56px 0 64px; }
  section { padding: 72px 0; }
}

.card.first {
  border: 1.5px solid var(--navy);
  box-shadow: var(--shadow);
}

/* Pricing */
.price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 16px 0 4px;
}
.price-cap { color: var(--muted); margin: 0 0 10px; }
.price-note { max-width: 40em; color: var(--muted); margin: 0 0 16px; }
.price-note strong { color: var(--ink); font-weight: 600; }

/* Legal drafts */
.draft-banner {
  background: var(--cream-dark);
  border: 1px solid rgba(26, 54, 84, 0.14);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 650;
  margin: 0 0 22px;
  max-width: 46em;
}
.legal-doc { max-width: 800px; }
.legal-doc h2 { margin-top: 2rem; }
.legal-doc h3 { font-family: var(--sans); font-size: 1.15rem; letter-spacing: 0; margin: 1.25rem 0 0.5rem; }
.legal-doc p, .legal-doc li { font-size: 1.0625rem; }
.legal-doc ul, .legal-doc ol { margin: 0 0 1rem; padding: 0 0 0 1.2em; }
.legal-doc li { margin: 0.35rem 0; }
.updated { color: var(--muted); font-size: 1rem; margin: 0 0 1.5rem; }

/* Blueprint page */
.bp-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.bp-toc a {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  box-shadow: var(--shadow);
  min-height: 44px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.bp-toc a:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 54, 84, 0.28);
}
.bp-toc a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold);
}
.story {
  counter-reset: story;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 46em;
}
.story li {
  position: relative;
  padding: 4px 0 28px 64px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.story li:last-child { border-bottom: 0; padding-bottom: 4px; }
.story li::before {
  counter-increment: story;
  content: counter(story);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--tag);
  line-height: 1;
}
.stay-list {
  max-width: 46em;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.stay-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 600;
}
.stay-list li span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 1100px) {
  .bp-toc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .bp-toc { grid-template-columns: 1fr; }
  .story li { padding-left: 52px; }
}
