/* =========================================================
   Tight-Tolerance CNC Machining — Scoped Styles
   Container: .ttc-page  (100% isolated, does not touch global header/nav)
   Brand tokens: --blue #0052cc | --navy #0f2747 | --accent #00a3c4
   ========================================================= */

.ttc-page {
  --blue: #0052cc;
  --navy: #0f2747;
  --accent: #00a3c4;
  --ink: #1c2b3a;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --bg-soft: #f4f8fd;
  --bg-card: #ffffff;
  --ok: #1f9d6b;
  --warn: #c9821a;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(15, 39, 71, 0.08);
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  background: #ffffff;
  padding: 0;
}

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

.ttc-page h2 {
  font-size: 30px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.ttc-page h3 {
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy);
  margin: 26px 0 10px;
  font-weight: 700;
}
.ttc-page p { margin: 0 0 14px; color: var(--ink); }
.ttc-page a { color: var(--blue); text-decoration: none; }
.ttc-page a:hover { text-decoration: underline; }

.ttc-page .ttc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ttc-page .ttc-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.ttc-page .ttc-section:last-of-type { border-bottom: 0; }
.ttc-page .ttc-soft { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.ttc-page .ttc-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #163a66 55%, #0d2348 100%);
  color: #fff;
  padding: 64px 24px 72px;
}
.ttc-page .ttc-hero-inner { max-width: 1152px; margin: 0 auto; }
.ttc-page .ttc-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.ttc-page .ttc-hero .ttc-hero-title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: #fff;
}
.ttc-page .ttc-hero .ttc-lede {
  font-size: 18px;
  color: #d6e4f5;
  max-width: 760px;
  margin: 0 0 28px;
}
.ttc-page .ttc-hero .ttc-lede strong { color: #fff; }

/* Tolerance scale motif */
.ttc-page .ttc-scale {
  display: flex;
  gap: 10px;
  margin: 30px 0 8px;
  align-items: flex-end;
}
.ttc-page .ttc-scale .ttc-tick {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px 10px 0 0;
  padding: 16px 10px 12px;
  text-align: center;
  position: relative;
}
.ttc-page .ttc-scale .ttc-tick:nth-child(1) { height: 70px; }
.ttc-page .ttc-scale .ttc-tick:nth-child(2) { height: 110px; }
.ttc-page .ttc-scale .ttc-tick:nth-child(3) { height: 150px; }
.ttc-page .ttc-scale .ttc-tick:nth-child(4) {
  height: 190px;
  background: linear-gradient(180deg, var(--accent), #0a7e98);
  border-color: var(--accent);
}
.ttc-page .ttc-scale .ttc-num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.ttc-page .ttc-scale .ttc-cap {
  display: block;
  font-size: 12px;
  color: #cfe0f3;
  margin-top: 6px;
}
.ttc-page .ttc-scale-note {
  font-size: 13px;
  color: #9fb8d6;
  margin: 0;
}

/* Capability cards row */
.ttc-page .ttc-caprow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.ttc-page .ttc-cap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.ttc-page .ttc-cap .ttc-cap-k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.ttc-page .ttc-cap .ttc-cap-v {
  font-size: 15px;
  color: #eaf2fb;
  line-height: 1.5;
}

/* ---------- Section intro ---------- */
.ttc-page .ttc-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.ttc-page .ttc-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 820px;
  margin: 0 0 26px;
}

/* ---------- Tables ---------- */
.ttc-page table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 8px 0 18px;
  font-size: 15px;
}
.ttc-page thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 13px 16px;
  font-weight: 650;
  font-size: 14px;
}
.ttc-page tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.ttc-page tbody tr:nth-child(even) { background: var(--bg-soft); }
.ttc-page td b, .ttc-page th b { color: var(--navy); }

/* ---------- Capability matrix ---------- */
.ttc-page .ttc-matrix td:first-child { font-weight: 600; }
.ttc-page .ttc-yes { color: var(--ok); font-weight: 700; }
.ttc-page .ttc-ref { color: var(--blue); font-weight: 600; font-family: var(--mono); }

/* ---------- Cards grid ---------- */
.ttc-page .ttc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 10px;
}
.ttc-page .ttc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.ttc-page .ttc-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--blue);
}
.ttc-page .ttc-card p { font-size: 14px; color: var(--muted); margin: 0; }
.ttc-page .ttc-card .ttc-ico {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 12px;
}

/* ---------- Process control flow ---------- */
.ttc-page .ttc-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 16px 0 8px;
  counter-reset: step;
}
.ttc-page .ttc-flow .ttc-step {
  position: relative;
  padding: 22px 14px 14px;
  border-top: 3px solid var(--accent);
  background: var(--bg-soft);
}
.ttc-page .ttc-flow .ttc-step:not(:last-child) { border-right: 1px dashed var(--line); }
.ttc-page .ttc-flow .ttc-step .ttc-n {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}
.ttc-page .ttc-flow .ttc-step h3 { margin: 6px 0 4px; font-size: 14px; color: var(--navy); }
.ttc-page .ttc-flow .ttc-step p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Determinants (8 cards) ---------- */
.ttc-page .ttc-det {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px 0 6px;
}
.ttc-page .ttc-det .ttc-d {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 16px;
}
.ttc-page .ttc-det .ttc-d h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.ttc-page .ttc-det .ttc-d p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Process cards (link out) ---------- */
.ttc-page .ttc-proc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ttc-page .ttc-proc .ttc-p {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.ttc-page .ttc-proc .ttc-p img {
  width: 100%; height: 170px; object-fit: cover; display: block;
}
.ttc-page .ttc-proc .ttc-p .ttc-p-body { padding: 16px 18px; flex: 1; }
.ttc-page .ttc-proc .ttc-p h3 { margin: 0 0 6px; font-size: 17px; }
.ttc-page .ttc-proc .ttc-p p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.ttc-page .ttc-p a.ttc-link {
  font-weight: 600; font-size: 14px;
}

/* ---------- Material table links ---------- */
.ttc-page .ttc-mat a { font-weight: 600; }

/* ---------- Cost table ---------- */
.ttc-page .ttc-cost td:last-child { font-family: var(--mono); color: var(--warn); font-weight: 700; text-align: right; }

/* ---------- Inspection steps ---------- */
.ttc-page .ttc-insp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 6px;
}
.ttc-page .ttc-insp .ttc-i {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.ttc-page .ttc-insp .ttc-i .ttc-badge {
  display: inline-flex; width: 30px; height: 30px;
  background: var(--blue); color: #fff; border-radius: 8px;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  margin-bottom: 10px;
}
.ttc-page .ttc-insp .ttc-i h3 { margin: 0 0 6px; font-size: 16px; }
.ttc-page .ttc-insp .ttc-i p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Case studies ---------- */
.ttc-page .ttc-case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 10px 0 6px;
}
.ttc-page .ttc-case .ttc-c {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.ttc-page .ttc-case .ttc-c .ttc-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--accent); text-transform: uppercase;
  background: var(--bg-soft); padding: 4px 10px; border-radius: 20px;
  margin-bottom: 12px;
}
.ttc-page .ttc-case .ttc-c h3 { margin: 0 0 14px; font-size: 18px; }
.ttc-page .ttc-case .ttc-c ul { margin: 0; padding: 0; list-style: none; }
.ttc-page .ttc-case .ttc-c li {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--line);
}
.ttc-page .ttc-case .ttc-c li span:first-child { color: var(--muted); }
.ttc-page .ttc-case .ttc-c li span:last-child { font-weight: 600; text-align: right; }
.ttc-page .ttc-case .ttc-c .ttc-result {
  margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--blue);
  font-size: 13.5px; color: var(--navy); font-weight: 600;
}

/* ---------- Industries ---------- */
.ttc-page .ttc-ind {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ttc-page .ttc-ind .ttc-g {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.ttc-page .ttc-ind .ttc-g h3 {
  margin: 0 0 10px; font-size: 17px; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.ttc-page .ttc-ind .ttc-g h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.ttc-page .ttc-ind .ttc-g ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.ttc-page .ttc-ind .ttc-g ul li { margin: 3px 0; }

/* ---------- DFM list ---------- */
.ttc-page .ttc-dfm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin: 10px 0 6px;
}
.ttc-page .ttc-dfm .ttc-ditem {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
}
.ttc-page .ttc-dfm .ttc-ditem::before {
  content: "✓"; color: var(--ok); font-weight: 800; flex: 0 0 auto;
}

/* ---------- Why Goldcattle proof ---------- */
.ttc-page .ttc-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 10px 0 6px;
}
.ttc-page .ttc-proof .ttc-pr {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ttc-page .ttc-proof .ttc-pr .ttc-big {
  font-size: 26px; font-weight: 800; color: var(--blue);
  font-family: var(--mono); line-height: 1.1;
}
.ttc-page .ttc-proof .ttc-pr .ttc-lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- FAQ accordion ---------- */
.ttc-page details.ttc-faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  background: var(--bg-card);
  overflow: hidden;
}
.ttc-page details.ttc-faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 650;
  color: var(--navy);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.ttc-page details.ttc-faq summary::-webkit-details-marker { display: none; }
.ttc-page details.ttc-faq summary::after {
  content: "+"; color: var(--blue); font-size: 22px; font-weight: 700;
}
.ttc-page details.ttc-faq[open] summary::after { content: "−"; }
.ttc-page details.ttc-faq .ttc-a {
  padding: 0 18px 16px;
  font-size: 15px; color: var(--muted);
}

/* ---------- CTA / RFQ ---------- */
.ttc-page .ttc-cta {
  background: linear-gradient(135deg, var(--blue) 0%, #0a3f99 100%);
  color: #fff;
  border-radius: 18px;
  padding: 38px 32px;
  text-align: center;
  margin: 8px 0;
}
.ttc-page .ttc-cta h2 { color: #fff; margin: 0 0 10px; }
.ttc-page .ttc-cta p { color: #d7e3fb; max-width: 640px; margin: 0 auto 22px; }
.ttc-page .ttc-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ttc-page .ttc-btn {
  font: inherit; cursor: pointer; border: 0;
  border-radius: 10px; padding: 14px 24px; font-weight: 700; font-size: 15px;
  transition: transform .05s ease, box-shadow .2s ease;
}
.ttc-page .ttc-btn:active { transform: translateY(1px); }
.ttc-page .ttc-btn-primary { background: #fff; color: var(--blue); }
.ttc-page .ttc-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.ttc-page .ttc-btn:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }

/* ---------- Callout ---------- */
.ttc-page .ttc-callout {
  background: #fff7ec;
  border: 1px solid #f1d9b0;
  border-left: 4px solid var(--warn);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: #6a4a14;
  margin: 14px 0;
}
.ttc-page .ttc-callout.blue {
  background: #eef4ff; border-color: #c3d6f7; border-left-color: var(--blue); color: #163a66;
}
.ttc-page .ttc-callout strong { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ttc-page .ttc-caprow { grid-template-columns: repeat(2, 1fr); }
  .ttc-page .ttc-grid, .ttc-page .ttc-det, .ttc-page .ttc-proof { grid-template-columns: repeat(2, 1fr); }
  .ttc-page .ttc-flow { grid-template-columns: repeat(2, 1fr); }
  .ttc-page .ttc-flow .ttc-step:nth-child(odd) { border-right: 1px dashed var(--line); }
  .ttc-page .ttc-insp, .ttc-page .ttc-case, .ttc-page .ttc-ind, .ttc-page .ttc-proc { grid-template-columns: 1fr; }
  .ttc-page .ttc-dfm { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ttc-page .ttc-caprow, .ttc-page .ttc-grid, .ttc-page .ttc-det, .ttc-page .ttc-proof { grid-template-columns: 1fr; }
  .ttc-page .ttc-flow { grid-template-columns: 1fr; }
  .ttc-page .ttc-flow .ttc-step { border-right: 0 !important; }
  .ttc-page h2 { font-size: 25px; }
  .ttc-page .ttc-section { padding: 40px 0; }
}
