/* Meridian Core Tech website styles */
:root {
  --navy: #0F1E36;
  --navy-deep: #0A1528;
  --navy-line: #22344F;
  --gold: #C9A66B;
  --gold-dark: #8A6A36;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --ink: #1B2433;
  --muted: #4A5568;
  --mist: #D7DCE5;
  --rule: #E2DDD2;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--navy); }
a:hover { color: var(--gold-dark); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: Archivo, "Arial Narrow", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 16px;
}
h1 { font-weight: 800; font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 14px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 6px;
  border: 0;
  font-size: 17px;
  font-family: inherit;
  cursor: pointer;
}
.btn:hover { background: #D8B97F; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-ghost:hover { background: rgba(201,166,107,.15); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header { background: var(--navy); color: var(--paper); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand span { font-family: Archivo, Arial, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--paper); text-decoration: none; font-size: 15px; }
.main-nav a:hover, .main-nav .current a { color: var(--gold); }
.main-nav .nav-cta a { background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 16px; border-radius: 6px; }
.main-nav .nav-cta a:hover { color: var(--navy); background: #D8B97F; }
.nav-toggle { display: none; background: none; border: 2px solid var(--gold); color: var(--paper); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 15px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; }
  .main-nav li a { display: block; padding: 12px 0; border-top: 1px solid var(--navy-line); }
  .main-nav .nav-cta a { text-align: center; margin-top: 10px; border-top: 0; padding: 14px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--paper); padding: 80px 0 88px; position: relative; overflow: hidden; }
.hero h1 { color: var(--paper); max-width: 900px; }
.hero .lede { font-size: 20px; color: var(--mist); max-width: 700px; }
.hero-page { padding: 64px 0 68px; }

/* The meridian: a single gold line that marks the promise on the home page */
.meridian { position: absolute; top: 0; bottom: 0; right: 12%; width: 2px; background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: .55; }
.meridian::before { content: ""; position: absolute; top: 46%; left: -7px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); background: var(--navy); }
@media (max-width: 900px) { .meridian { display: none; } }

/* Sections */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--paper); }
.section-navy h2, .section-navy h3 { color: var(--paper); }
.section-navy p { color: var(--mist); }
.section-intro { max-width: 720px; margin-bottom: 40px; color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }

.item p { color: var(--muted); margin: 0; }
.section-navy .item p { color: var(--mist); }
.item { border-top: 2px solid var(--gold); padding-top: 18px; }

.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 32px; }
.panel p { color: var(--muted); }

/* Comparison: the old way vs MCT */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--white); }
.compare > div { padding: 32px; }
.compare .old { background: #EFECE4; }
.compare h3 { margin-bottom: 14px; }
.compare ul { margin: 0; padding-left: 20px; }
.compare li { margin-bottom: 10px; }
.compare .old li { color: var(--muted); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* Steps (real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-dark); font-family: Archivo, Arial, sans-serif; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.section-navy .steps li::before { color: var(--gold); }
.steps p { color: var(--muted); margin: 0; }
.section-navy .steps p { color: var(--mist); }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--gold-dark); border-bottom: 3px solid var(--gold-dark); transform: rotate(-45deg); }

/* Fee callout */
.callout { border-left: 4px solid var(--gold); background: var(--white); padding: 24px 28px; border-radius: 0 10px 10px 0; margin: 32px 0; }
.callout p:last-child { margin: 0; }

/* Team */
.person .initials { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: Archivo, Arial, sans-serif; font-weight: 800; font-size: 32px; margin-bottom: 18px; }
.person .role { font-weight: 600; color: var(--gold-dark); margin-bottom: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--navy); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--paper); text-align: center; padding: 72px 0; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--mist); font-size: 18px; }

/* Form */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9C3B5; border-radius: 6px; background: var(--white); color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-weight: 600; }
.notice-ok { background: #E6F1E8; color: #1F5130; }
.notice-err { background: #F8E5E2; color: #7A2318; }

/* Generic page content */
.entry { padding: 64px 0; }
.entry .wrap > * { max-width: 760px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AEB8C8; font-size: 15px; padding: 52px 0 32px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer .about { flex: 1 1 300px; max-width: 380px; }
.site-footer .name { font-family: Archivo, Arial, sans-serif; font-weight: 800; font-size: 18px; color: var(--paper); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .contact a { color: var(--gold); font-weight: 600; }
.site-footer .legal { border-top: 1px solid var(--navy-line); margin-top: 32px; padding-top: 18px; font-size: 13px; }

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

@media (max-width: 480px) {
  .brand span { font-size: 15px; }
  .brand svg { width: 28px; height: 28px; }
}

/* Plans */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: 10px; padding: 30px 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 26px; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.plan .price { font-family: Archivo, Arial, sans-serif; font-weight: 800; font-size: 52px; line-height: 1; color: var(--navy); margin: 0; }
.plan .per { color: var(--muted); font-size: 15px; margin: 6px 0 20px; }
.plan .terms { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin-bottom: 20px; font-size: 15px; }
.plan .terms p { margin: 0 0 6px; }
.plan .terms p:last-child { margin: 0; }
.plan .checks { flex: 1; font-size: 16px; }
.plan .btn { text-align: center; margin-top: 20px; }
.fine { margin-top: 28px; font-size: 15px; color: var(--muted); max-width: 900px; }

table.mct-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
.mct-table th, .mct-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.mct-table thead th { background: var(--navy); color: var(--paper); font-weight: 600; }
.mct-table tbody tr:last-child td { border-bottom: 0; }
@media (min-width: 961px) { .plan .for { min-height: 3.2em; } }

/* =========================================================
   HOME: "The redlined contract"
   ========================================================= */
:root { --red: #B3261E; --red-soft: #F6E3E1; --ink-2: #33405A; }
.rl-serif { font-family: "Source Serif 4", Georgia, serif; }
.rl-mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }

.rl-hero { background: var(--paper); padding: 72px 0 88px; border-bottom: 1px solid var(--rule); }
.rl-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .rl-hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.rl-hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; line-height: .98; letter-spacing: -.02em; margin-bottom: 22px; }
.rl-hero h1 .strike { position: relative; color: var(--ink-2); white-space: nowrap; }
.rl-hero h1 .strike::after { content: ""; position: absolute; left: -3%; right: -3%; top: 52%; height: .09em; background: var(--red); transform: rotate(-3deg); }
.rl-hero h1 .ins { white-space: nowrap; color: var(--red); font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 600; }
.rl-hero .lede { font-size: 20px; color: var(--ink-2); max-width: 560px; }

/* The paper contract card */
.rl-paper { background: var(--white); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 24px 48px -24px rgba(15,30,54,.35); padding: 34px 34px 30px; position: relative; transform: rotate(.6deg); }
.rl-paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52px; width: 1px; background: #F0C9C5; }
.rl-paper .doc-title { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--muted); padding-left: 34px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; }
.rl-paper .clause { font-family: "Source Serif 4", Georgia, serif; font-size: 18px; line-height: 1.5; padding-left: 34px; margin-bottom: 16px; color: var(--ink); }
.rl-paper .clause:last-of-type { margin-bottom: 0; }
.rl-paper .num { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--muted); margin-right: 8px; }
.rl-paper del { color: #7A8395; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.rl-paper ins { text-decoration: none; color: var(--red); font-style: italic; display: block; margin-top: 2px; }
.rl-paper .initials { position: absolute; right: 26px; bottom: -18px; background: var(--navy); color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: 13px; padding: 8px 12px; transform: rotate(-2deg); }
@media (max-width: 520px) { .rl-paper { padding: 26px 20px 26px; transform: none; } .rl-paper::before { left: 34px; } .rl-paper .clause, .rl-paper .doc-title { padding-left: 26px; } .rl-paper .clause { font-size: 17px; } }

/* Redlines list */
.rl-section { padding: 96px 0; }
.rl-head { max-width: 760px; margin-bottom: 48px; }
.rl-head p { font-size: 19px; color: var(--ink-2); margin: 0; }
.rl-list { border-top: 2px solid var(--navy); }
.rl-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.rl-row .ref { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--muted); padding-top: 4px; }
.rl-row .them, .rl-row .us { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.45; }
.rl-row .them { color: #7A8395; }
.rl-row .them del { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.rl-row .us { color: var(--ink); }
.rl-row .us strong { font-family: Archivo, Arial, sans-serif; font-weight: 800; color: var(--navy); display: block; font-size: 22px; margin-bottom: 4px; }
.rl-row .label { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; text-decoration: none; }
.rl-row .us .label { color: var(--red); }
@media (max-width: 820px) { .rl-row { grid-template-columns: 1fr; gap: 12px; } .rl-row .ref { padding: 0; } }

/* Credit math */
.rl-math { background: var(--navy); color: var(--paper); padding: 96px 0; }
.rl-math h2 { color: var(--paper); }
.rl-math .grid-2 { align-items: center; }
.rl-math p { color: var(--mist); font-size: 18px; }
.rl-receipt { background: var(--white); color: var(--ink); padding: 30px 32px; font-family: "IBM Plex Mono", monospace; font-size: 15px; max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 760px) { .rl-receipt { justify-self: stretch; } }
.rl-receipt .line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed #C9C3B5; }
.rl-receipt .line.credit { color: var(--red); font-weight: 600; }
.rl-receipt .line.total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 14px; font-weight: 600; font-size: 17px; }
.rl-receipt .cap { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

/* Plans strip */
.rl-plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--navy); background: var(--white); }
.rl-plans > div { padding: 30px 28px; border-left: 1px solid var(--rule); }
.rl-plans > div:first-child { border-left: 0; }
.rl-plans h3 { margin-bottom: 2px; }
.rl-plans .p { font-family: Archivo, Arial, sans-serif; font-weight: 900; font-size: 46px; color: var(--navy); line-height: 1.1; }
.rl-plans .u { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.rl-plans .r { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 12px; }
.rl-plans .r span { color: var(--red); }
@media (max-width: 820px) { .rl-plans { grid-template-columns: 1fr; } .rl-plans > div { border-left: 0; border-top: 1px solid var(--rule); } .rl-plans > div:first-child { border-top: 0; } }

/* Sign-off */
.rl-sign { background: var(--paper); padding: 96px 0; border-top: 1px solid var(--rule); }
.rl-sign .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
@media (max-width: 860px) { .rl-sign .wrap { grid-template-columns: 1fr; } }
.rl-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rl-sig .line { border-bottom: 1px solid var(--ink); font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 30px; color: var(--navy); padding-bottom: 4px; }
.rl-sig .who { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--muted); margin-top: 8px; }

.rl-cta { background: var(--red); color: var(--white); padding: 80px 0; }
.rl-cta h2 { color: var(--white); font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; max-width: 900px; }
.rl-cta p { color: #FBE9E7; font-size: 19px; max-width: 640px; }
.rl-cta .btn { background: var(--white); color: var(--red); }
.rl-cta .btn:hover { background: var(--paper); color: var(--red); }
.rl-cta .btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.rl-cta .btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.site-footer address { font-style: normal; line-height: 1.5; }
