/* TurnTraceCAD site. Colours match the TurnTrace logo. */
:root {
  --navy: #12304D;
  --navy-2: #0D2439;
  --navy-3: #1B4167;
  --teal: #2BB3A3;
  --teal-dark: #1E8F83;
  --amber: #F5A623;
  --amber-text: #D98A0B;
  --ink: #16212C;
  --slate: #5B6B7B;
  --line: #DCE3EA;
  --paper: #F4F7FA;
  --white: #FFFFFF;
  --radius: 14px;
  --max: 1160px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 46em; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }

/* Placeholder marker: anything the owner still has to fill in. */
.ph { background: rgba(245,166,35,.16); outline: 1.5px dashed var(--amber); outline-offset: 1px; border-radius: 4px; padding: 0 .25em; color: inherit; white-space: nowrap; }
.ph-note { display: flex; gap: 10px; align-items: flex-start; background: #FFF7E8; border: 1px dashed var(--amber); border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: #6B4A08; margin: 0 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.nav .btn { margin-left: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--font); text-decoration: none; padding: 14px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--navy-2); }
.btn-amber:hover { background: #FFB53D; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); }
.nav .btn { padding: 10px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.hero h1 .accent { color: var(--amber); }
.hero .lead { color: #C9D6E2; }
.hero .meta { margin-top: 20px; font-size: .9rem; color: #9FB3C6; }
.hero-art { width: 100%; max-width: 540px; justify-self: end; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.page-hero .wrap { position: relative; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lead { color: #C9D6E2; }
.page-hero .eyebrow { color: var(--teal); }

/* Swept band divider, echoes the logo */
.band { height: 8px; background: linear-gradient(90deg, var(--amber) 0 18%, var(--teal) 18% 100%); }

/* Sections */
section { padding: 88px 0; }
.alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.alt .card { border-color: #E3E9EF; }
.icon { width: 44px; height: 44px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.card p:last-child { margin-bottom: 0; }

/* Facts strip */
.facts { background: var(--navy-2); color: var(--white); padding: 28px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--amber); line-height: 1.1; }
.fact span { color: #AFC1D2; font-size: .92rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
kbd { font: 600 .82em/1 Consolas, "SFMono-Regular", monospace; background: var(--white); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; color: var(--navy); }
code { font: .88em Consolas, "SFMono-Regular", monospace; background: var(--paper); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

/* Split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 40px rgba(18,48,77,.12); overflow: hidden; }
.shot figcaption { font-size: .85rem; color: var(--slate); padding: 10px 16px; border-top: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* Vehicles */
.veh-group h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; }
.chip b { color: var(--navy); margin-right: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; font-weight: 600; color: var(--navy); }
thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: .82rem; }
thead th:first-child { color: var(--white); }
tbody tr:nth-child(even) { background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }

/* Pricing */
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--teal); box-shadow: 0 18px 40px rgba(43,179,163,.15); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--teal); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 6px 0 2px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--slate); }
.plan .ticks { flex: 1; margin-top: 16px; }
.plan .btn { width: 100%; margin-top: 8px; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 0 20px; margin-bottom: 12px; }
details[open] { padding-bottom: 16px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--teal-dark); font-weight: 400; }
details[open] summary::after { content: "–"; }

/* CTA */
.cta { background: var(--navy); color: var(--white); border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: var(--white); }
.cta p { color: #C9D6E2; margin: 0; }
.cta::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid var(--amber); opacity: .18; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--navy-2); color: #AFC1D2; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #DCE6EF; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: var(--white); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-logo { height: 40px; width: auto; margin-bottom: 14px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #8299AE; }
.site-footer .ph { color: #F8D9A0; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-art { justify-self: center; max-width: 440px; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 8px 6px; font-size: .88rem; }
  .nav .btn { margin-left: 0; padding: 8px 12px; }
  .brand img { height: 34px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 48px; }
  .foot-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .ph { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* OSNAP Labs parent bar */
.parent-bar { background: var(--navy-2); color: #B9C7D4; font-size: .82rem; }
.parent-bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.parent-bar a { color: var(--white); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.parent-bar a:hover { color: var(--amber); }
.parent-bar a:first-child::before { content: "←"; color: var(--teal); margin-right: 2px; }
.parent-bar img { border-radius: 4px; }
.parent-bar .pb-tools { margin-left: auto; font-weight: 500; }
a.chip { text-decoration: none; color: var(--ink); }
a.chip:hover { border-color: var(--teal); }

/* Vehicle library */
.vf { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.vf label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); flex: 1 1 150px; }
.vf .vf-search { flex: 2 1 240px; }
.vf .vf-range { flex: 1 1 190px; }
.vf .vf-range b { color: var(--navy); text-transform: none; letter-spacing: 0; }
.vf input[type=search], .vf select { font: 500 .95rem var(--font); color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); width: 100%; min-width: 0; }
.vf input[type=range] { accent-color: var(--teal); width: 100%; height: 38px; }
.vf-reset { padding: 10px 16px; flex: 0 0 auto; }
.vf-count { margin: 16px 0 10px; font-weight: 600; color: var(--navy); }
.vt th { cursor: pointer; user-select: none; white-space: nowrap; position: relative; padding-right: 20px; }
.vt th::after { content: "↕"; position: absolute; right: 6px; opacity: .3; font-size: .8em; }
.vt th[aria-sort=ascending]::after { content: "↑"; opacity: 1; color: var(--amber-text); }
.vt th[aria-sort=descending]::after { content: "↓"; opacity: 1; color: var(--amber-text); }
.vt th:focus-visible, .vt tr.vr:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.vt .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt tr.vr { cursor: pointer; }
.vt tr.vr:hover, .vt tr.vr.open { background: #F0F8F7; }
.vt td.grp { color: var(--slate); font-size: .85rem; }
.vt tr.vd td { background: #F7FBFB; padding: 14px 18px 6px; border-top: 0; }
.vd-grid { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 8px; }
.vt tr.vd p { margin: 0 0 8px; max-width: 70em; }
.vt td.none { text-align: center; padding: 28px; color: var(--slate); }
.linkbtn { background: none; border: 0; color: var(--teal-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.assumed { display: inline-block; background: rgba(245,166,35,.18); color: #8A5A00; border-radius: 4px; padding: 0 6px; font-size: .78rem; font-weight: 600; }
@media (max-width: 640px) {
  .parent-bar span { display: none; }
  .vt th:nth-child(3), .vt td.grp, .vt th:nth-child(5), .vt tr.vr td:nth-child(5), .vt th:nth-child(7), .vt tr.vr td:nth-child(7) { display: none; }
  .vt tr.vd td { padding: 12px; }
}
.vt { font-size: .88rem; }
.vt th, .vt td { text-align: left; padding: 9px 10px; }
.vt td:nth-child(2), .vt td.grp { white-space: normal; min-width: 140px; }
.vt td.grp { min-width: 120px; }
.vt td:first-child { white-space: nowrap; }
.vt th.num, .vt td.num { text-align: right; }
.vt tr.vd td { white-space: normal; text-align: left; font-weight: 400; color: var(--ink); }
@media (max-width: 640px) {
  .vt tr.vd td > div, .vt tr.vd td > p { position: sticky; left: 12px; max-width: calc(100vw - 72px); }
  .vt td:nth-child(2) { min-width: 120px; }
}
