/* Phase 3 demo pages — styled to match finemachineworks.com (Inter, navy headings, steel-blue eyebrows) */
:root {
  --navy: #05173D;
  --indigo: #2B3180;
  --footer-navy: #1C244B;
  --steel: #88AAB8;
  --body: #261F1F;
  --muted: #5B6470;
  --band: #ECF1F3;
  --line: #D9E1E5;
  --red: #E0262C;
  --hero: #0B1340;
  --note: #FFF3B0;
  --note-line: #E3B505;
  --new: #1E7A4C;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; color: var(--body); font-size: 16px; line-height: 1.6; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Demo banner */
.demo-bar { position: sticky; top: 0; z-index: 50; background: #111013; color: #fff; font-size: 13px; padding: 9px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.demo-bar b { color: #FFD84D; letter-spacing: 0.06em; }
.demo-bar a { color: #C9D6DD; text-decoration: none; border-bottom: 1px solid #4A5560; }
.demo-bar a.on { color: #fff; border-bottom-color: #FFD84D; }
.demo-bar .key { margin-left: auto; display: flex; gap: 14px; align-items: center; color: #C9D6DD; }
.demo-bar .key i { font-style: normal; padding: 1px 6px; border-radius: 3px; }
.demo-bar .key .k1 { background: var(--note); color: #3A2F00; }
.demo-bar .key .k2 { background: var(--new); color: #fff; }
.demo-bar { gap: 6px 14px; min-height: 38px; }
.demo-bar .grp { display: flex; gap: 11px; align-items: center; padding-left: 14px; border-left: 1px solid #3A3D44; }
.demo-bar .grp em { font-style: normal; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #8A949C; }

/* Previous / next pager */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 22px 7vw; background: #F6F8F9; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.pager a span { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); font-weight: 500; margin-bottom: 2px; }
.pager a.mid { text-align: center; color: var(--navy); font-weight: 500; }
.pager a.nx { text-align: right; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--indigo); }

/* Header (overlays hero, as on the live site) */
.site-head { position: absolute; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px 7vw; }
.site-head img { width: 190px; }
.site-head nav { display: flex; align-items: center; }
.site-head nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 13.5px; letter-spacing: 1.1px; text-transform: uppercase; padding: 0 14px; border-left: 1px solid rgba(255,255,255,0.45); }
.site-head nav a:first-child { border-left: 0; }
.site-head nav a.active { color: var(--red); }

/* Hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: var(--hero) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,58,0.92) 0%, rgba(8,14,58,0.55) 55%, rgba(8,14,58,0.75) 100%); }
.hero .in { position: relative; max-width: 900px; padding: 120px 24px 80px; }
.hero .eyebrow { font-weight: 300; font-size: 15px; letter-spacing: 8.5px; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 600; margin: 0 0 18px; color: #FBFBFB; }
.hero p { font-size: 17px; color: #D6DEEA; max-width: 720px; margin: 0 auto; }
.hero .btns { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 13px 26px; border-radius: 3px; }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.7); }

/* Sections */
.sec { padding: 72px 7vw; }
.sec.band { background: var(--band); }
.wrap { max-width: 1160px; margin: 0 auto; }
.eyebrow-s { font-size: 14px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
h2.h { font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -0.5px; color: var(--navy); margin: 0 0 18px; }
h3.h3 { font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--indigo); margin: 0 0 8px; }
p { margin: 0 0 14px; }
.split { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 48px; align-items: start; }
.split > :first-child { border-right: 1px solid var(--line); padding-right: 40px; }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.two img { border-radius: 10px; box-shadow: 3px 3px 10px rgba(0,0,0,0.35); }
.lead-s { font-size: 18px; color: #3B3540; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: 8px; padding: 24px 22px; box-shadow: 3px 3px 10px rgba(0,0,0,0.12); display: flex; flex-direction: column; }
.card p { font-size: 15px; color: #3B3540; }
.card .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--indigo); text-decoration: none; }
.card .num { font-size: 13px; font-weight: 700; color: var(--steel); letter-spacing: 2px; margin-bottom: 10px; }

/* Lists */
ul.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
ul.ticks li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border: solid var(--indigo); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; counter-reset: s; }
.step { padding: 0 22px 0 0; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 30px; font-weight: 300; color: var(--steel); margin-bottom: 8px; }
.step::after { content: ""; position: absolute; top: 22px; left: 52px; right: 18px; border-top: 1px dashed var(--steel); }
.step:last-child::after { display: none; }
.step p { font-size: 15px; }

/* Spec table */
table.spec { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
table.spec th { text-align: left; width: 34%; font-weight: 600; color: var(--navy); padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec td { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* FAQ */
.faq details { background: #fff; border-radius: 6px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 600; color: var(--navy); font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 24px; font-weight: 300; color: var(--steel); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: #3B3540; font-size: 15.5px; }

/* Case study */
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--navy); color: #fff; border-radius: 8px; overflow: hidden; margin-top: -48px; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(5,23,61,0.25); }
.cs-facts > div { padding: 22px 24px; border-left: 1px solid rgba(255,255,255,0.15); }
.cs-facts > div:first-child { border-left: 0; }
.cs-facts .k { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.cs-facts .v { font-size: 17px; font-weight: 600; }
.cs-teaser { display: grid; grid-template-columns: 1fr 1.2fr; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 3px 3px 10px rgba(0,0,0,0.12); }
.cs-teaser img { height: 100%; object-fit: cover; }
.cs-teaser .tx { padding: 32px 34px; }

/* CTA band */
.cta { background: var(--navy) url('hero-aerospace.jpg') center/cover; position: relative; color: #fff; text-align: center; padding: 70px 7vw; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(5,23,61,0.88); }
.cta .in { position: relative; max-width: 760px; margin: 0 auto; }
.cta h2 { font-size: 30px; font-weight: 500; margin: 0 0 12px; }
.cta p { color: #C9D6DD; }

/* Footer (matches live: Get In Touch / Sectors) */
.site-foot { background: #fff; padding: 56px 7vw 30px; border-top: 1px solid var(--line); }
.site-foot .cols { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-foot h3 { font-size: 26px; font-weight: 500; color: var(--footer-navy); margin: 0 0 12px; }
.site-foot p, .site-foot li { font-size: 15.5px; color: #261F1F; }
.site-foot ul { list-style: none; padding: 0; margin: 0; line-height: 1.95; }
.site-foot .legal { max-width: 1160px; margin: 34px auto 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* Review markers */
.todo { background: var(--note); border-bottom: 2px solid var(--note-line); padding: 0 3px; border-radius: 2px; color: #3A2F00; }
.newtag { display: inline-block; background: var(--new); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; margin-bottom: 10px; }
.annot { border-left: 3px solid var(--new); background: #EAF5EF; padding: 10px 14px; font-size: 13.5px; color: #1F3B2C; margin: 0 0 18px; border-radius: 0 4px 4px 0; }

@media (max-width: 900px) {
  .site-head nav { display: none; }
  .split, .two, .cs-teaser { grid-template-columns: 1fr; }
  .split > :first-child { border-right: 0; padding-right: 0; }
  .cards, .cards.three, .steps, .cs-facts { grid-template-columns: 1fr 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .demo-bar { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .demo-bar .key { display: none; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a.mid { display: none; }
}
