/* =====================================================================
   MyOnlineClassHelp — Design System v2
   "Trust & Authority" — Oxford navy, antique gold, warm paper.
   Editorial serif display (Fraunces) + Inter UI. WCAG AA throughout.
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
  /* Brand — Oxford navy */
  --ink:        #0B1B30;
  --ink-2:      #12263F;
  --ink-3:      #1D3A5C;
  --ink-4:      #2E5480;

  /* Primary action — deep authoritative blue */
  --teal:       #14477E;
  --teal-deep:  #0E3562;
  --teal-soft:  #EDF3FA;

  /* Accent — antique gold */
  --brass:      #916621;
  --brass-2:    #C89B3F;
  --brass-soft: #FBF3E2;

  /* Neutrals — warm paper */
  --paper:      #FCFBF9;
  --paper-2:    #F4F2EE;
  --paper-3:    #EDEAE4;
  --card:       #FFFFFF;
  --text:       #16202D;
  --text-2:     #55606E;
  --text-3:     #656F7D;
  --border:     #E0DDD6;
  --border-2:   #EEEBE5;

  /* Status */
  --success:    #1B6B48;
  --success-soft:#E6F1EB;
  --warn:       #8A5A12;
  --danger:     #9A3434;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-sm: 9px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Elevation — navy-tinted, layered */
  --shadow-sm: 0 1px 2px rgba(11,27,48,.05), 0 1px 3px rgba(11,27,48,.04);
  --shadow-md: 0 2px 4px rgba(11,27,48,.04), 0 12px 28px -14px rgba(11,27,48,.22);
  --shadow-lg: 0 4px 10px rgba(11,27,48,.05), 0 36px 68px -30px rgba(11,27,48,.34);
  --shadow-gold: 0 8px 24px -10px rgba(168,119,38,.34);

  /* Layout */
  --shell: 1200px;
  --measure: 720px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Spacing scale (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
}
/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }
ul, ol { padding-left: 1.2em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------- Typography ---------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 620; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.12rem; font-family: var(--font-ui); font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
p { color: var(--text); }
strong { color: var(--ink-2); font-weight: 650; }
.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brass); display: inline-block; }
.lead { font-size: 1.22rem; color: var(--text-2); line-height: 1.66; }

/* ---------------------------- Layout ------------------------------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--s5); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #D9E2EC; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.center { text-align: center; }
.measure { max-width: var(--measure); }
.measure-wide { max-width: 860px; }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-head { max-width: 680px; margin-bottom: var(--s7); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: var(--s3); }
.section-head p { margin-top: var(--s4); font-size: 1.12rem; color: var(--text-2); }

/* ---------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #9a7430; color: #fff; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-link { color: var(--teal-deep); font-weight: 650; display: inline-flex; align-items: center; gap: .4em; }
.btn-link svg { width: 16px; height: 16px; transition: transform .18s; }
.btn-link:hover svg { transform: translateX(3px); }

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,251,252,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-2);
}
.nav { display: flex; align-items: center; gap: var(--s6); height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 640; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; display: block; flex: none; }
.brand .mark img { width: 38px; height: 38px; display: block; border-radius: 11px; }

.brand em { color: var(--teal-deep); font-style: normal; }
.nav-menu { display: flex; align-items: center; gap: var(--s2); margin-left: auto; list-style: none; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35em;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 550; font-size: .97rem; color: var(--ink-2);
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link svg { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.nav-actions { display: flex; align-items: center; gap: var(--s3); }
.nav-phone { font-weight: 650; color: var(--ink); font-size: .95rem; display: inline-flex; align-items: center; gap: .45em; }
.nav-phone svg { width: 16px; height: 16px; color: var(--teal); }

/* Mega menu */
.has-mega > .nav-link svg { }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 620px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: var(--s5);
  opacity: 0; visibility: hidden; transition: .2s ease; z-index: 120;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.mega-col h5 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: var(--s3); font-weight: 700; }
.mega-col a { display: block; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.mega-col a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.mega-feature { grid-column: 1 / -1; margin-top: var(--s2); padding: var(--s4); background: var(--paper-2); border-radius: var(--r-md); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.mega-feature p { font-size: .92rem; color: var(--text-2); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
.mobile-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(14,27,42,.45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .2s ease; }
.mobile-drawer.open { opacity: 1; visibility: visible; }
.md-panel { position: absolute; top: 0; right: 0; width: min(340px, 88vw); height: 100%; background: var(--card); box-shadow: var(--shadow-lg); padding: var(--s5); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.mobile-drawer.open .md-panel { transform: none; }
.md-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s5); border-bottom: 1px solid var(--border-2); margin-bottom: var(--s4); }
.md-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.md-close { background: none; border: none; font-size: 2rem; line-height: 1; color: var(--text-2); width: 40px; height: 40px; }
.md-links h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin: var(--s4) 0 var(--s2); }
.md-links a { display: block; padding: 10px 8px; color: var(--ink-2); font-weight: 550; border-radius: var(--r-sm); }
.md-links a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.md-actions { margin-top: var(--s6); display: grid; gap: var(--s3); }

/* ----------------------------- Hero -------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.hero h1 { margin-top: var(--s4); }
.hero .lead { margin-top: var(--s5); max-width: 34ch; }
.hero-cta { display: flex; gap: var(--s3); margin-top: var(--s6); flex-wrap: wrap; }
.hero-proof { display: flex; gap: var(--s6); margin-top: var(--s7); flex-wrap: wrap; }
.hero-proof .stat { }
.stat .n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 620; color: var(--ink); line-height: 1; }
.stat .l { font-size: .85rem; color: var(--text-2); margin-top: 6px; }
.hero-badges { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s6); flex-wrap: wrap; }
.trust-chip { display: inline-flex; align-items: center; gap: .5em; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--r-pill); }
.trust-chip svg { width: 16px; height: 16px; color: var(--teal); }

/* Decorative panel behind hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-card-top { background: var(--ink); color: #fff; padding: var(--s5); display: flex; align-items: center; justify-content: space-between; }
.hero-card-top .t { font-family: var(--font-display); font-size: 1.15rem; }
.hero-card-body { padding: var(--s5); }
.hero-mini-form label { display: block; font-size: .82rem; font-weight: 650; color: var(--text-2); margin-bottom: 6px; }
.hero-mini-form .row { margin-bottom: var(--s4); }
.field { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .97rem; font-family: inherit; color: var(--text); background: #fff; }
.field:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23586573' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ----------------------------- Cards ------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s6); transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border); transform: translateY(-2px); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft);
  display: grid; place-items: center; margin-bottom: var(--s4);
}
.card .ic svg { width: 24px; height: 24px; color: var(--teal-deep); }
.card h3 { font-size: 1.28rem; margin-bottom: var(--s3); }
.card p { color: var(--text-2); font-size: .98rem; }
.card-link { margin-top: var(--s4); display: inline-flex; }

.card-service { display: flex; flex-direction: column; }
.card-service .tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); font-weight: 700; margin-bottom: var(--s2); }

/* Subject pill grid */
.pill-grid { display: flex; flex-wrap: wrap; gap: var(--s3); }
.subject-pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 11px 18px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: #fff; font-weight: 550; color: var(--ink-2); font-size: .95rem; transition: .18s;
}
.subject-pill:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-soft); }
.subject-pill svg { width: 15px; height: 15px; color: var(--brass); }

/* --------------------------- Process ------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--s5); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: start; }
.step .num {
  counter-increment: step; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--teal); color: var(--teal-deep); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; flex: none; background: var(--teal-soft);
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.3rem; margin-bottom: var(--s2); }
.step p { color: var(--text-2); }

/* Numbered step cards (horizontal) */
.step-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s4); counter-reset: sc; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s5); position: relative; }
.step-card .k { counter-increment: sc; font-family: var(--font-display); font-size: 2.2rem; color: var(--brass); line-height: 1; margin-bottom: var(--s3); }
.step-card .k::before { content: "0" counter(sc); }
.step-card h4 { margin-bottom: var(--s2); font-size: 1.05rem; }
.step-card p { font-size: .92rem; color: var(--text-2); }

/* ----------------------- Trust / feature panels -------------------- */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); }
.panel--teal { background: var(--teal-soft); border-color: #CFE6E2; }
.panel--brass { background: var(--brass-soft); border-color: #E9D9BB; }
.feature-list { list-style: none; padding: 0; display: grid; gap: var(--s4); }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.feature-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--success-soft); display: grid; place-items: center; flex: none; margin-top: 2px; }
.feature-list .tick svg { width: 15px; height: 15px; color: var(--success); }
.feature-list b { display: block; color: var(--ink-2); }
.feature-list span { color: var(--text-2); font-size: .96rem; }

/* Honest-limits / callout */
.callout { border-left: 3px solid var(--brass); background: var(--paper-2); padding: var(--s5) var(--s6); border-radius: 0 var(--r-md) var(--r-md) 0; }
.callout.info { border-color: var(--teal); }
.callout.warn { border-color: var(--warn); }
.callout h4 { margin-bottom: var(--s2); }
.callout p { color: var(--text-2); }

/* Two-column feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* ------------------------- Stats band ------------------------------ */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s5); text-align: center; }
.stat-band .n { font-family: var(--font-display); font-size: clamp(2rem,3.4vw,2.8rem); color: var(--brass); font-weight: 620; line-height: 1; }
.stat-band .l { color: #B7C4D1; font-size: .95rem; margin-top: var(--s2); }

/* -------------------------- Testimonials --------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.quote {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s6);
  display: flex; flex-direction: column; gap: var(--s4);
}
.quote .stars { color: var(--brass); letter-spacing: 2px; font-size: 1rem; }
.quote p { font-size: 1rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: var(--s3); margin-top: auto; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--ink-2); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: .95rem; }
.quote .who .nm { font-weight: 650; color: var(--ink-2); font-size: .95rem; }
.quote .who .mt { font-size: .82rem; color: var(--text-3); }

/* ----------------------------- Tables ------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
table.data th, table.data td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border-2); }
table.data thead th { background: var(--paper-2); font-weight: 700; color: var(--ink-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--paper); }

/* ------------------------------ FAQ -------------------------------- */
.faq { display: grid; gap: var(--s3); }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 650; color: var(--ink-2); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: .2s; color: var(--teal-deep); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--teal); border-color: var(--teal); color: #fff; }
.faq details[open] summary { color: var(--ink); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); }
.faq .answer p + p { margin-top: var(--s3); }

/* --------------------------- Pricing ------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); align-items: start; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); position: relative; }
.price-card.featured { border-color: var(--teal); box-shadow: var(--shadow-md); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--r-pill); }
.price-card h3 { font-family: var(--font-ui); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 700; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); margin: var(--s3) 0 var(--s1); }
.price-card .amount small { font-size: .95rem; color: var(--text-3); font-family: var(--font-ui); }
.price-card ul { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; gap: var(--s3); }
.price-card li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: .95rem; color: var(--text-2); }
.price-card li svg { width: 18px; height: 18px; color: var(--success); margin-top: 2px; }

/* ---------------------------- CTA band ----------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: var(--r-lg); padding: clamp(36px, 5vw, 68px); color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s7); align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C6D2DE; margin-top: var(--s3); font-size: 1.1rem; }
.cta-band .actions { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------- Breadcrumb --------------------------- */
.breadcrumb { padding: var(--s4) 0; font-size: .88rem; color: var(--text-3); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.breadcrumb li::after { content: "/"; margin-left: .5em; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb li:last-child { color: var(--ink-2); font-weight: 600; }

/* --------------------- Long-form article body ---------------------- */
.article { max-width: var(--measure); margin-inline: auto; }
.article > p { margin-bottom: var(--s5); font-size: 1.12rem; line-height: 1.75; color: #26333F; }
.article > h2 { margin-top: var(--s8); margin-bottom: var(--s4); }
.article > h3 { margin-top: var(--s6); margin-bottom: var(--s3); }
.article > ul, .article > ol { margin-bottom: var(--s5); color: #33404C; }
.article > ul li, .article > ol li { margin-bottom: var(--s2); line-height: 1.7; }
.article .callout, .article .table-wrap, .article .panel { margin-block: var(--s6); }
.article figure { margin-block: var(--s6); }
.toc { background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s5) var(--s6); margin-bottom: var(--s7); }
.toc h4 { margin-bottom: var(--s3); }
.toc ol { columns: 2; column-gap: var(--s6); font-size: .95rem; }
.toc a { color: var(--ink-2); }

/* Content two-col with sticky aside */
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--s8); align-items: start; }
.aside-sticky { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: var(--s5); }
.aside-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s5); }
.aside-card h4 { margin-bottom: var(--s3); }
.aside-card ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.aside-card ul a { display: block; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.aside-card ul a:hover { background: var(--teal-soft); color: var(--teal-deep); }

/* Related pages */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }
.related-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s5); transition: .18s; }
.related-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card .rk { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); font-weight: 700; }
.related-card h4 { margin: var(--s2) 0; color: var(--ink); }
.related-card p { font-size: .9rem; color: var(--text-2); }

/* ----------------------------- Footer ------------------------------ */
.site-footer { background: var(--ink); color: #A9B7C6; padding-block: var(--s9) var(--s6); margin-top: var(--s8); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: var(--s4); font-size: .92rem; color: #8E9DAD; max-width: 32ch; }
.footer-contact { margin-top: var(--s5); display: grid; gap: var(--s3); }
.footer-contact a, .footer-contact span { color: #B7C4D1; font-size: .92rem; display: inline-flex; align-items: center; gap: .5em; }
.footer-contact svg { width: 16px; height: 16px; color: var(--teal); }
.footer-col h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s4); font-family: var(--font-ui); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.footer-col a { color: #9BAABA; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: .85rem; color: #7A8A9B; }
.footer-bottom a { color: #9BAABA; }
.footer-disclaimer { margin-top: var(--s5); padding: var(--s5); background: rgba(255,255,255,.04); border-radius: var(--r-md); font-size: .82rem; color: #8494A4; line-height: 1.6; }

/* --------------------------- Multi-step form ----------------------- */
.order-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.of-head { padding: var(--s5) var(--s6); border-bottom: 1px solid var(--border-2); display: flex; align-items: center; justify-content: space-between; }
.of-steps { display: flex; gap: var(--s2); }
.of-dot { width: 30px; height: 6px; border-radius: 3px; background: var(--border); transition: .2s; }
.of-dot.active { background: var(--teal); }
.of-body { padding: var(--s6); }
.of-step { display: none; }
.of-step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform: none;} }
.of-row { margin-bottom: var(--s4); }
.of-row label { display: block; font-size: .85rem; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.of-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.of-foot { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); }
textarea.field { min-height: 110px; resize: vertical; }

/* ------------------------------ Utility ---------------------------- */
.mt-0{margin-top:0}.mt-3{margin-top:var(--s5)}.mt-4{margin-top:var(--s6)}.mt-5{margin-top:var(--s7)}
.mb-3{margin-bottom:var(--s5)}.mb-4{margin-bottom:var(--s6)}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag { display: inline-block; padding: 5px 12px; background: var(--teal-soft); color: var(--teal-deep); border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; }
.tag.brass { background: var(--brass-soft); color: #8a6a29; }
.hide { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--s7); }

/* Chat widget button */
.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--teal); color: #fff; border: none; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: .18s; }
.chat-fab:hover { background: var(--teal-deep); transform: translateY(-2px); }
.chat-fab svg { width: 26px; height: 26px; }

/* --------------------------- Responsive ---------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s7); }
  .hero .lead { max-width: none; }
  .content-layout { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .cta-band { grid-template-columns: 1fr; gap: var(--s5); }
  .cta-band .actions { justify-content: flex-start; }
  .step-cards { grid-template-columns: repeat(2,1fr); }
  .mega { width: 520px; }
}
@media (max-width: 920px) {
  .nav-menu, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .quote-grid, .price-grid, .related-grid, .stat-band { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: var(--s6); }
  .split.reverse > :first-child { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { padding-inline: var(--s4); }
  .grid-2, .grid-3, .grid-4, .quote-grid, .price-grid, .related-grid, .step-cards, .stat-band, .of-grid2, .of-grid2 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .hero-proof { gap: var(--s5); }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band .actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Per-task price strip */
.price-strip{border:1px solid var(--border-2);border-radius:14px;overflow:hidden;max-width:640px}
.ps-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;border-bottom:1px solid var(--border-2);font-size:.96rem}
.ps-row:last-child{border-bottom:0}
.ps-row b{white-space:nowrap;font-variant-numeric:tabular-nums}

/* =====================================================================
   PREMIUM LAYER — refinements over the base system.
   Overrides are intentional and load last.
   ===================================================================== */

/* --- Typography refinement --- */
body { font-size: 17px; letter-spacing: -.002em; }
h1, h2, h3 { font-optical-sizing: auto; }
h1 { letter-spacing: -.025em; line-height: 1.06; }
h2 { letter-spacing: -.018em; line-height: 1.14; }
h3 { letter-spacing: -.012em; }
.lead { color: var(--text-2); font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.62; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-ui); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--brass);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--brass); opacity: .55;
}
.section-head.center .eyebrow::before { display: none; }
.stat .n, .price-card .amount, .ps-row b { font-variant-numeric: tabular-nums; }

/* --- Page background: warm paper with a whisper of navy light --- */
body {
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(20,71,126,.055), transparent 62%),
    radial-gradient(820px 520px at 6% 4%, rgba(168,119,38,.045), transparent 58%),
    var(--paper);
  background-attachment: fixed;
}

/* --- Links --- */
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
.article a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(20,71,126,.32); text-decoration-thickness: 1px; }
.article a:not(.btn):hover { text-decoration-color: currentColor; }

/* --- Focus: visible, on-brand --- */
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 3px; border-radius: 5px; }

/* --- Buttons: depth, gradient sweep, tactile press --- */
.btn {
  position: relative; overflow: hidden; font-weight: 600;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.22) 50%, transparent 68%);
  transform: translateX(-120%); transition: transform .62s var(--ease-out); pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: linear-gradient(175deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff; box-shadow: 0 1px 2px rgba(11,27,48,.16), 0 10px 22px -12px rgba(20,71,126,.55);
}
.btn-primary:hover {
  background: linear-gradient(175deg, #17518f 0%, var(--teal-deep) 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(11,27,48,.18), 0 18px 34px -14px rgba(20,71,126,.6);
}
.btn-brass {
  background: linear-gradient(175deg, var(--brass-2) 0%, var(--brass) 100%);
  color: #fff; box-shadow: 0 1px 2px rgba(11,27,48,.14), var(--shadow-gold);
}
.btn-brass:hover { background: linear-gradient(175deg, #d0a54a 0%, #96691f 100%); transform: translateY(-2px); }
.btn-dark { background: linear-gradient(175deg, var(--ink-2) 0%, var(--ink) 100%); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--border); color: var(--ink-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink-4); background: #fff; color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* --- Header: refined glass --- */
.site-header {
  background: rgba(252,251,249,.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(224,221,214,.7);
}
.brand em { color: var(--brass); }
.nav-link { transition: background-color .18s var(--ease), color .18s var(--ease); }
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-phone svg { color: var(--brass); }
.mega { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.mega-col a:hover { background: var(--teal-soft); color: var(--teal-deep); }

/* --- Hero --- */
.hero { background: transparent; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,27,48,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,27,48,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 500px at 72% 26%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(900px 500px at 72% 26%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; }
.accent {
  background-image: linear-gradient(transparent 62%, rgba(200,155,63,.34) 62%);
  background-repeat: no-repeat; background-size: 100% 100%;
}
.hero-card {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11,27,48,.04);
  border-color: var(--border-2);
}
.hero-card-top { background: linear-gradient(140deg, var(--ink-3) 0%, var(--ink) 92%); }
.trust-chip {
  background: rgba(255,255,255,.82); backdrop-filter: blur(6px);
  border-color: var(--border-2); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.trust-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.trust-chip svg { color: var(--success); }

/* --- Cards: lift with gold hairline --- */
.card {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
  transition: transform .24s var(--ease-out), box-shadow .24s var(--ease), border-color .24s var(--ease);
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-2));
  opacity: 0; transition: opacity .24s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.card:hover::before { opacity: 1; }
.card .ic {
  background: linear-gradient(150deg, var(--teal-soft), #fff);
  box-shadow: inset 0 0 0 1px rgba(20,71,126,.1);
  border-radius: 13px;
}
.card .ic svg { color: var(--teal); }
.card-service .tag { color: var(--brass); }

.subject-pill { background: rgba(255,255,255,.78); transition: all .18s var(--ease); }
.subject-pill:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.subject-pill svg { color: var(--brass); }

/* --- Process steps --- */
.step .num {
  background: linear-gradient(150deg, #fff, var(--teal-soft));
  border-color: rgba(20,71,126,.3); color: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}
.step-card { transition: transform .24s var(--ease-out), box-shadow .24s var(--ease); }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* --- Panels --- */
.panel { border-radius: var(--r-lg); }
.panel--teal { background: linear-gradient(155deg, var(--teal-soft) 0%, #fff 100%); border: 1px solid rgba(20,71,126,.14); }
.panel--brass { background: linear-gradient(155deg, var(--brass-soft) 0%, #fff 100%); border: 1px solid rgba(168,119,38,.2); }
.section--ink {
  background: linear-gradient(158deg, var(--ink-2) 0%, var(--ink) 74%);
  color: #C9D6E6; position: relative; overflow: hidden;
}
.section--ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 420px at 84% 8%, rgba(200,155,63,.14), transparent 66%);
}
.section--ink > * { position: relative; z-index: 1; }
.section--alt { background: var(--paper-2); }

/* --- Stats --- */
.stat .n { color: var(--ink); letter-spacing: -.02em; }
.stat-band .stat .n { background: linear-gradient(160deg, var(--ink-3), var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- Quotes --- */
.quote {
  background: var(--card); border: 1px solid var(--border-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .24s var(--ease-out), box-shadow .24s var(--ease);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quote::before {
  content: "\201C"; position: absolute; top: 6px; left: 16px;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: var(--brass); opacity: .17;
}
.quote p { position: relative; z-index: 1; }
.quote .who .mt { color: var(--brass); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; }

/* --- Pricing --- */
.price-card { border-color: var(--border-2); box-shadow: var(--shadow-sm); transition: transform .24s var(--ease-out), box-shadow .24s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: rgba(20,71,126,.34);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20,71,126,.1);
  background: linear-gradient(178deg, #fff 0%, var(--teal-soft) 100%);
}
.price-card .amount { font-family: var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.price-card .badge { background: linear-gradient(160deg, var(--brass-2), var(--brass)); color: #fff; box-shadow: var(--shadow-gold); }
.price-strip { border-color: var(--border-2); background: var(--card); box-shadow: var(--shadow-sm); }
.ps-row { border-color: var(--border-2); }
.ps-row b { color: var(--ink); }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(152deg, var(--ink-2) 0%, var(--ink) 76%);
  border-radius: var(--r-lg); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 340px at 88% 0%, rgba(200,155,63,.2), transparent 64%);
}
.cta-band > * { position: relative; z-index: 1; }

/* --- Callouts --- */
.callout { border-radius: var(--r-md); border-left-width: 3px; }

/* --- Forms --- */
.field { border-color: var(--border); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.field:focus { border-color: var(--teal); box-shadow: 0 0 0 3.5px rgba(20,71,126,.13); }

/* --- Footer --- */
.site-footer { background: linear-gradient(178deg, var(--ink-2) 0%, var(--ink) 100%); }
.footer-disclaimer { color: rgba(201,214,230,.62); font-size: .84rem; }

/* --- Breadcrumb --- */
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--teal); }

/* --- Tables --- */
.table-wrap { border-radius: var(--r-md); border: 1px solid var(--border-2); overflow: hidden; box-shadow: var(--shadow-sm); }

/* --- Section rhythm --- */
.section { padding-block: clamp(64px, 8.5vw, 116px); }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .btn::after { display: none; }
}

/* --- Logo --- */
.brand .mark img { transition: transform .22s var(--ease); }
.brand:hover .mark img { transform: scale(1.04); }
.site-footer .brand .mark img { border-radius: 11px; box-shadow: 0 0 0 1px rgba(200,155,63,.28); }

/* --- Heading rank corrected for a11y; visual size preserved --- */
.footer-col h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s4); font-family: var(--font-ui); font-weight: 700; line-height: 1.4; }
.callout h2, .callout h3 { font-size: 1.12rem; font-family: var(--font-ui); font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-bottom: var(--s2); line-height: 1.4; }
.aside-card h3 { font-size: 1.12rem; font-family: var(--font-ui); font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-bottom: var(--s3); line-height: 1.4; }
.related-card h3 { font-size: 1.05rem; font-family: var(--font-ui); font-weight: 700; color: var(--ink); letter-spacing: 0; margin: var(--s2) 0; line-height: 1.4; }
.step-card h3 { font-size: 1.05rem; font-family: var(--font-ui); font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-bottom: var(--s2); line-height: 1.4; }
