:root {
  --bg: #16181B;
  --card: #22252A;
  --line: #34383F;
  --text: #F2F2EE;
  --dim: #A9AEB6;
  --accent: #5AAEFF;
  --on-accent: #0E1114;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav a { color: var(--dim); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.lead { color: var(--dim); font-size: 19px; margin: 0 0 28px; max-width: 34em; }
.badge {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none;
}
.note { color: var(--dim); font-size: 14px; margin-top: 14px; }
.phone { max-width: 320px; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 8px solid var(--card); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; letter-spacing: -0.01em; }
.sub { color: var(--dim); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid .middle { grid-column: 2; }      /* a card alone on the last row of three sits in the middle */
.card { background: var(--card); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-bottom: 14px; }

/* Screens */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { background: var(--card); border-radius: 16px; padding: 10px; }
.shot img { border-radius: 10px; width: 100%; }
.shot p { margin: 10px 4px 2px; font-size: 14px; color: var(--dim); }
.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

.who { color: var(--dim); margin: 24px 0 0; max-width: 46em; font-size: 15px; }

/* Questions */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--dim); }

/* Pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price .card h3 { font-size: 22px; }
.price ul { margin: 12px 0 0; padding-left: 20px; color: var(--dim); }
.price li { margin: 4px 0; }
.price .pro { border: 2px solid var(--accent); }
.price .amount { margin: 2px 0 0; font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.price .amount span { font-size: 15px; font-weight: 600; color: var(--dim); }
.price .pro .amount { color: var(--accent); }
.price .fine { color: var(--dim); font-size: 13px; margin: 14px 0 0; }
.price .launch { display: inline-block; margin: 8px 0 0; padding: 4px 12px; border-radius: 999px; background: rgba(90,174,255,0.15); color: var(--accent); font-size: 14px; font-weight: 700; }
.price .get-pro { margin-top: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--dim); }

/* Policy page */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 21px; color: var(--accent); margin: 32px 0 8px; }
.doc p, .doc li { color: #D6D8DC; }
.doc .date { color: var(--dim); margin-top: -8px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid, .shots, .price, .wide { grid-template-columns: 1fr 1fr; }
  .grid .middle { grid-column: auto; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 32px; }
  .grid, .price, .wide { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  nav a { margin-left: 14px; }
}

/* Inventor Tools additions */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.badge.ghost:hover { border-color: var(--accent); }
nav a[aria-current] { color: var(--text); }
.stack { background: var(--card); border-radius: 20px; padding: 26px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.stack .label { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.chip.on { border-color: var(--accent); color: var(--accent); }
.code { margin: 0; background: var(--bg); border-radius: 12px; padding: 16px; font: 13.5px/1.6 Consolas, "Cascadia Mono", Menlo, monospace; color: #D6D8DC; overflow-x: auto; white-space: pre; }
.code .k { color: var(--accent); } .code .c { color: #7C828B; } .code .s { color: #9FD38A; }
.card a.more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 700; text-decoration: none; }
.card .tag { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: rgba(90,174,255,0.15); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--dim); font-size: 15px; }
.card li { margin: 3px 0; }
a.card { display: block; color: inherit; text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
a.card:hover { border-color: var(--accent); }
a.card .go { display: block; margin-top: 12px; color: var(--accent); font-size: 14px; font-weight: 700; }
.app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.app-head img { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); }
.app-head h3 { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline li { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline h3 { margin: 0 0 4px; font-size: 18px; }
.timeline p { margin: 0; color: var(--dim); }
.contact { display: grid; gap: 12px; max-width: 560px; }
.contact a.card h3 { font-size: 15px; color: var(--dim); font-weight: 600; margin: 0 0 4px; }
.contact a.card p { margin: 0; font-size: 20px; color: var(--text); font-weight: 700; }
.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); }
footer .more { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer .more b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.hero .wrap > * { min-width: 0; }

/* Recognition band and logos */
.band { padding: 36px 0; }
.honours { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.honour { display: flex; align-items: center; gap: 18px; background: var(--card); border-radius: 16px; padding: 18px; color: inherit; text-decoration: none; border: 1px solid transparent; }
a.honour:hover { border-color: var(--accent); }
.honour h3 { margin: 0 0 4px; font-size: 17px; }
.honour p { margin: 0; color: var(--dim); font-size: 14px; }
.honour .go-inline { color: var(--accent); font-weight: 700; white-space: nowrap; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-tile { background: #fff; border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; }
.logo-tile img { height: 40px; width: auto; max-width: 100%; }
.logo-tile.big { flex: 0 0 210px; height: 74px; }
.logo-tile.big img { height: 44px; }
.logo-tile.leader { flex-direction: column; align-items: flex-start; justify-content: center; color: #111; line-height: 1.15; }
.logo-tile.leader .mark { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.logo-tile.leader .where { font-size: 13px; color: #444; }
.article { max-width: 760px; }
.article h2 { font-size: 22px; margin: 34px 0 8px; }
.article p { color: #D6D8DC; }
.article .code { margin: 14px 0 18px; }
.article .gif { border-radius: 12px; border: 1px solid var(--line); margin: 20px 0; width: 100%; max-width: 560px; }
.article .meta { color: var(--dim); font-size: 14px; }
@media (max-width: 860px) { .honours { grid-template-columns: 1fr; } .logos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .honour { flex-direction: column; align-items: flex-start; } .logo-tile.big { flex: none; width: 100%; } .logo-tile img { height: 30px; } }
.article code { background: var(--card); padding: 1px 6px; border-radius: 6px; font-size: 15px; }
.stack .code { font-size: clamp(11px, 1.35vw, 13.5px); }
.article .gif { height: auto; }

/* Screenshot slots: the real image shows once img/shots/<file> exists; until then a labelled placeholder */
.slot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); position: relative; }
.slot img { width: 100%; height: auto; display: block; }
.slot figcaption { padding: 10px 14px 12px; color: var(--dim); font-size: 14px; }
.slot.missing img { display: none; }
.slot.missing .ph { display: flex; }
.slot .ph { display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px;
  aspect-ratio: var(--ar, 16 / 9); padding: 18px; border: 2px dashed var(--line); border-radius: 14px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.025) 14px 28px); color: var(--dim); font-size: 13px; }
.slot .ph b { color: var(--accent); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.slot .ph code { color: var(--text); font: 600 14px/1.3 Consolas, Menlo, monospace; }
.slot .ph .px { color: var(--text); font-weight: 700; }
.slot .ph i { font-style: normal; max-width: 44em; }
.slot.missing figcaption { display: none; }
.card .slot { margin: -22px -22px 16px; border-radius: 16px 16px 0 0; }
.card .slot .ph { border-radius: 16px 16px 0 0; padding: 10px; font-size: 12px; }
.card .slot .ph i { display: none; }
.shotrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.lead-shot { margin: 0 0 22px; }
@media (max-width: 860px) { .shotrow { grid-template-columns: 1fr; } }
.slot img { aspect-ratio: var(--ar, auto); object-fit: cover; }
.slot { align-self: start; }
.two > .slot { align-self: end; }

/* Product pages: product bar, spec tables, Millworker's tool grid, "needs Millworker" card */
.subnav { border-bottom: 1px solid var(--line); padding: 12px 0; }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.subnav .back { color: var(--dim); font-size: 14px; text-decoration: none; margin-right: 6px; }
.subnav .back::before { content: "\2190  "; }
.subnav .chip { text-decoration: none; }
.subnav .chip:hover { border-color: var(--accent); }
.spec { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 28%; color: var(--text); font-weight: 700; }
.spec td { color: var(--dim); }
.toolhead { margin: 30px 0 12px; font-size: 15px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tool { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; background: var(--card); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.tool:hover { border-color: var(--accent); }
.tool img { grid-row: span 2; width: 40px; height: 40px; background: #fff; border-radius: 8px; padding: 4px; }
.tool-t { font-weight: 700; font-size: 15px; color: var(--text); }
.tool-s { font-size: 14px; color: var(--dim); line-height: 1.45; }
.needs { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; border: 1px solid var(--line); }
.needs .mark { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.needs h3 { margin: 0 0 6px; }
@media (max-width: 639px) { .spec th { width: 38%; } .spec th, .spec td { padding: 10px 12px; } }

/* Inventor Add-ins (Shaw Development) */
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: .04em; margin-top: 1px; }
.brand { line-height: 1.1; }
.slot.photo img { aspect-ratio: var(--ar); object-fit: cover; height: auto; }
/* A screenshot not taken yet: the slot stays out of sight on the live site; add ?shots to a page's address to see the placeholders */
.slot.missing { display: none; }
.showshots .slot.missing { display: block; }
html:not(.showshots) section:has(> .wrap > .lead-shot:only-child .slot.missing) { display: none; }

/* Header stays at the top; the page scrolls underneath it */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(22, 24, 27, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html { scroll-padding-top: 80px; }
