/* OrthoOps AI — black / silver / platinum, purple only as an accent. */
:root {
  --bg: #000;
  --bg-2: #08080a;
  --line: rgba(222, 224, 232, 0.14);
  --line-2: rgba(222, 224, 232, 0.26);
  --text: #e9e9ee;
  --muted: #a2a2ad;
  --dim: #74747f;
  --platinum: linear-gradient(180deg, #ffffff 0%, #d9dae0 45%, #9fa1aa 100%);
  --accent: #9b7bff;
  --radius: 14px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Header */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.82); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn-primary { background: var(--platinum); color: #0a0a0c; border-color: transparent; }
.btn-primary:hover { background: #fff; }
.nav .btn { color: var(--text); }
.nav .btn-primary { color: #0a0a0c; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Sections */
section { padding: 112px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding: 56px 0 104px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.metal { background: var(--platinum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 20px auto 0; max-width: 680px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.accent { color: var(--accent); }

/* Hero */
.hero-mark { position: relative; margin: 0 auto; width: min(78vw, 460px); aspect-ratio: 1220 / 1289; }
.hero-mark canvas, .hero-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-mark img { object-fit: contain; }
.js .hero-mark img { display: none; }
.hero h1 { margin-top: 36px; }
.hero .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.film { position: relative; margin: 64px auto 0; max-width: 1040px; border-radius: var(--radius); overflow: hidden; background: #050506;
  border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.film video, .film .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film .play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0;
  width: 100%; border: 0; padding: 0 0 7%; margin: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%);
  color: var(--text); cursor: pointer; font: inherit; }
.film .play .disc { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); transition: transform 0.2s; }
.film .play:hover .disc { transform: scale(1.06); }
.film .play .disc svg { width: 26px; height: 26px; margin-left: 4px; }
.film .play .label { margin-top: 14px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.film .play .len { color: var(--muted); font-weight: 500; }
.film .play[hidden] { display: none; }
@media (max-width: 560px) { .film .play .disc { width: 60px; height: 60px; } .film .play .label { font-size: 14px; } }

/* Trilogy */
.tri { display: block; margin: 56px auto 0; max-width: 760px; width: 100%; }
@media (max-width: 640px) { .tri { margin: 36px -4px 0; width: calc(100% + 8px); max-width: none; } }
.tri text { font-family: var(--font); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.three > div { padding: 28px 28px 0; text-align: center; }
.three > div + div { border-left: 1px solid var(--line); }
.three .num { display: block; margin-bottom: 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; }
.three p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 800px) {
  .three { grid-template-columns: 1fr; }
  .three > div { padding: 28px 8px; }
  .three > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* What it runs (tabs) */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 44px auto 0; padding: 0; list-style: none; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 500 15px/1 var(--font); cursor: pointer; }
.tabs button:hover { color: var(--text); border-color: var(--line-2); }
.tabs button[aria-selected="true"] { color: #0a0a0c; background: var(--platinum); border-color: transparent; font-weight: 600; }
.no-js .tabs { display: none; }
.panel { margin: 28px auto 0; max-width: 1040px; }
.js .panel[hidden] { display: none; }
.no-js .panel[hidden] { display: block; }
.no-js .panel + .panel { margin-top: 72px; }
.panel .say { margin: 0 auto 24px; max-width: 700px; text-align: center; color: var(--muted); font-size: 18px; }
.panel .say strong { color: var(--text); font-weight: 600; }
.no-js .panel h3 { text-align: center; margin-bottom: 8px; }
.js .panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.frame { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #0b0b0e; }
.frame .chrome { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.frame .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c33; }
.frame .chrome span { flex: 1; text-align: center; margin-right: 44px; color: var(--dim); font-size: 12px; }
.frame img { width: 100%; height: auto; }
.phones { display: flex; justify-content: center; gap: 28px; }
.phone { width: min(250px, 42vw); border: 1px solid var(--line-2); border-radius: 36px; padding: 8px; background: #0b0b0e; }
.phone img { border-radius: 29px; width: 100%; height: auto; }
@media (max-width: 560px) { .phones { gap: 14px; } .phone { border-radius: 26px; padding: 5px; } .phone img { border-radius: 22px; } }

/* Proof */
.proof { display: grid; grid-template-columns: 1fr 1fr; margin: 56px auto 0; max-width: 860px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 40px 16px; text-align: center; }
.proof > div + div { border-left: 1px solid var(--line); }
.proof .big { display: block; font-size: clamp(42px, 6vw, 64px); font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.proof .what { display: block; margin-top: 12px; color: var(--text); font-size: 17px; }
.proof .how { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .proof { grid-template-columns: 1fr; } .proof > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Corporate systems */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; margin: 56px auto 0; max-width: 860px; }
.flow ul { margin: 0; padding: 0; list-style: none; }
.flow li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
.flow li:first-child { border-top: 1px solid var(--line); }
.flow .arrow { color: var(--dim); }
.flow .yours { text-align: center; }
.flow .yours img { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 22px; }
.flow .yours strong { display: block; font-size: 19px; }
.flow .yours span { color: var(--muted); font-size: 15px; }
.fine { margin: 40px auto 0; max-width: 680px; color: var(--dim); font-size: 13px; text-align: center; }
@media (max-width: 700px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); margin: 0 auto; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier { display: flex; flex-direction: column; padding: 32px 26px; text-align: center; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier.best { background: linear-gradient(180deg, rgba(155, 123, 255, 0.07) 0%, rgba(155, 123, 255, 0) 70%); box-shadow: inset 0 2px 0 var(--accent); }
.tier .tag { min-height: 20px; margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tier .price { display: block; margin-top: 14px; font-size: 40px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.tier .term { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.tier ul { margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; text-align: left; }
.tier li { padding: 9px 0; border-top: 1px solid var(--line); }
.addons-title { margin: 40px 0 0; color: var(--muted); font-size: 15px; text-align: center; }
.addons-note { margin: 14px 0 0; font-size: 15px; text-align: center; }
.addons { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.addons > div { padding: 22px 26px; text-align: center; }
.addons > div + div { border-left: 1px solid var(--line); }
.addons strong { display: block; font-size: 17px; }
.addons span { color: var(--muted); font-size: 15px; }
.ongoing { margin: 28px auto 0; max-width: 760px; color: var(--muted); text-align: center; font-size: 16px; }
.ongoing strong { color: var(--text); font-weight: 600; }
@media (max-width: 1000px) {
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(3) { border-left: 0; }
  .tier:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .tiers, .addons { grid-template-columns: 1fr; }
  .tier + .tier, .tier:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .addons > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* FAQ */
.faq { margin: 48px auto 0; max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 24px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; padding: 0 4px; color: var(--muted); }

/* Contact */
.contact .phone-big { display: inline-block; margin-top: 22px; font-size: clamp(34px, 5vw, 52px); font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.contact .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.ask { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 56px auto 0; max-width: 680px; text-align: left; }
.ask label { display: block; color: var(--muted); font-size: 14px; }
.ask input, .ask textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0b0b0e;
  color: var(--text); font: 16px/1.4 var(--font); }
.ask textarea { min-height: 110px; resize: vertical; }
.ask .full { grid-column: 1 / -1; }
.ask .send { grid-column: 1 / -1; display: flex; justify-content: center; }
.ask .note { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 13px; text-align: center; }
@media (max-width: 560px) { .ask { grid-template-columns: 1fr; } }

/* Footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Reveal (only when JS is on; nothing hides without it) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Guide pages */
.guide { padding: 72px 0 96px; border-top: 0; }
.guide .wrap { max-width: 760px; }
.guide h1 { font-size: clamp(32px, 4.6vw, 48px); text-align: center; }
.guide .lede { text-align: center; }
.guide h2 { font-size: 24px; margin-top: 48px; }
.guide p, .guide li { color: var(--muted); }
.guide ul { padding-left: 20px; }
.guide .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 48px; }

/* No single word alone on a last line (Brian 2026-10-18); the deploy also ties the last two words with &nbsp;. */
p, li, dd, dt, summary, figcaption, blockquote, small, h1, h2, h3, h4 { text-wrap: pretty; }
