/* =========================================================================
   Open Dental Cloud — landing page styles (production)
   Classic variant · fully responsive via media queries
   ========================================================================= */

@import url("assets/colors_and_type.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--fg1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--lh-loose);
}

/* =========================================================================
   OPTION COLOR CODES  (slate / orange / sand)
   ========================================================================= */
.opt-office {
  --opt: #4F555A;
  --opt-deep: #2E3236;
  --opt-tint: #EEF0F1;
  --opt-edge: #C7CCD0;
  --opt-fg: #FFFFFF;
}
.opt-cloud {
  --opt: #FF6700;
  --opt-deep: #C24F00;
  --opt-tint: #FFF1E6;
  --opt-edge: #FFC7A0;
  --opt-fg: #FFFFFF;
}
.opt-od {
  --opt: #B07A3F;
  --opt-deep: #7C5226;
  --opt-tint: #F6EDE1;
  --opt-edge: #D9B98A;
  --opt-fg: #FFFFFF;
}

.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.swatch::before {
  content: "";
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--opt);
}

/* =========================================================================
   CHROME: header + footer
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 254, 252, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.site-header .logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.site-header .logo .mark {
  width: 56px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.site-header .logo .mark img { width: 100%; height: 100%; object-fit: contain; }
.site-header .logo .word {
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1;
}
.site-header .logo .word b {
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  color: var(--fg1);
}
.site-header .logo .word .sub {
  font-family: var(--font-utility);
  font-weight: 600; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg3);
}
.site-header nav {
  flex: 1;
  display: flex; gap: 24px; justify-content: center;
}
.site-header nav a {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg2);
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--accent); }
.site-header .phone {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.site-header .phone .ic {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--sc-ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.site-header .phone .num {
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  color: var(--fg1);
  line-height: 1;
  white-space: nowrap;
}
.site-header .phone .sub {
  font-family: var(--font-utility);
  font-size: 10px; color: var(--fg3);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Menu button hidden on desktop, shown via media query on mobile */
.menu-btn { display: none; }

/* footer */
.site-footer {
  background: var(--sc-ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.site-footer .row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h5 {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .brand .blurb {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
  margin-top: 12px;
}
.site-footer .brand .disclaimer {
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.42);
  max-width: 360px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}
.site-footer .brand .disclaimer sup { font-size: 0.85em; vertical-align: 0.3em; }
.site-footer .big-phone {
  display: block;
  font-weight: 900; font-size: 24px; letter-spacing: -0.02em;
  color: #fff;
  margin-top: 18px;
  text-decoration: none;
}
.site-footer .big-phone:hover { color: var(--accent); }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.site-footer .legal a { color: inherit; text-decoration: none; }

/* =========================================================================
   GENERIC LAYOUT HELPERS
   ========================================================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.eyebrow {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: currentColor;
}

/* =========================================================================
   HERO + TREE
   ========================================================================= */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero .layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.hero .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg2);
  max-width: 540px;
}
.hero .scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg3);
}
.hero .scroll-hint .arr {
  width: 36px; height: 1px; background: var(--fg3); display: inline-block;
}

/* ---- the tree ---- */
.tree {
  position: relative;
}
.tree svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.tree .branch {
  cursor: pointer;
  transition: opacity 200ms;
}
.tree .branch .line {
  stroke: #C5BFB9;
  stroke-width: 2;
  fill: none;
  transition: stroke 200ms, stroke-width 200ms;
}
.tree .branch .pill {
  fill: #fff;
  stroke: #D9D3CE;
  stroke-width: 1.5;
  transition: fill 200ms, stroke 200ms;
}
.tree .branch text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  fill: var(--fg1);
  pointer-events: none;
}
.tree .branch .sub-label {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--fg3);
}
.tree .root-node {
  fill: var(--sc-ink);
  stroke: var(--sc-ink);
}
.tree .root-node-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  fill: #fff;
  pointer-events: none;
  text-anchor: middle;
}
.tree .branch.active .line { stroke: var(--opt); stroke-width: 3; }
.tree .branch.active .pill { fill: var(--opt); stroke: var(--opt); }
.tree .branch.active text { fill: var(--opt-fg); }
.tree .branch.active .sub-label { fill: rgba(255,255,255,0.7); }
.tree .branch:hover .pill { stroke: var(--opt); }
.tree.has-active .branch:not(.active) { opacity: 0.45; }

.tree-legend {
  display: flex; gap: 24px;
  margin-top: 20px;
  font-family: var(--font-utility);
  font-size: 12px;
  color: var(--fg3);
}
.tree-legend .key {
  display: inline-flex; align-items: center; gap: 8px;
}
.tree-legend .dot {
  width: 8px; height: 8px; border-radius: 2px;
}

/* mobile tree fallback: vertical accordion (hidden on desktop) */
.tree-accordion { display: none; }
.tree-accordion .row {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.tree-accordion .row .head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.tree-accordion .row .dot {
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--opt);
  flex-shrink: 0;
}
.tree-accordion .row .name {
  flex: 1; font-weight: 700; font-size: 15px;
}
.tree-accordion .row .chev {
  width: 18px; height: 18px; color: var(--fg3);
  transition: transform 200ms;
}
.tree-accordion .row.open .chev { transform: rotate(180deg); }
.tree-accordion .row .body {
  padding: 0 16px 16px 40px;
  font-size: 14px; color: var(--fg2); line-height: 1.55;
  display: none;
}
.tree-accordion .row.open .body { display: block; }
.tree-accordion .row .subs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.tree-accordion .row .subs span {
  background: var(--opt-tint);
  color: var(--opt-deep);
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* =========================================================================
   OPTION CARDS
   ========================================================================= */
.cards-section {
  padding: 72px 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cards-section .header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: end;
}
.cards-section h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.cards-section h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.cards-section .header p {
  font-size: 16px; color: var(--fg2); line-height: 1.55;
  max-width: 440px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.opt-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
  position: relative;
}
.opt-card .top-bar {
  height: 6px;
  background: var(--opt);
}
.opt-card .head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.opt-card .num {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 12px;
}
.opt-card .title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg1);
  margin-bottom: 8px;
}
.opt-card .one-liner {
  font-size: 15px; line-height: 1.5; color: var(--fg2);
}
.opt-card .body {
  padding: 16px 24px 20px;
  display: flex; flex-direction: column; gap: 16px;
  flex: 1;
}
.opt-card .field { display: flex; flex-direction: column; gap: 4px; }
.opt-card .field label {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--opt-deep);
}
.opt-card .field p {
  font-size: 14px; line-height: 1.5; color: var(--fg2);
  margin: 0;
}
.opt-card .proof {
  background: var(--opt-tint);
  border-radius: 10px;
  padding: 14px;
  margin: 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.opt-card .proof .ic {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--opt);
  color: var(--opt-fg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.opt-card .proof .txt {
  font-size: 13px; color: var(--opt-deep); line-height: 1.4;
}
.opt-card .proof .txt b { font-weight: 700; }
.opt-card .foot {
  padding: 16px 24px 24px;
}
.opt-card .cta {
  font: inherit;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 14px;
  width: 100%;
  background: var(--opt);
  color: var(--opt-fg);
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 150ms;
}
.opt-card .cta:hover { background: var(--opt-deep); }
.opt-card.highlight {
  box-shadow: 0 18px 40px rgba(17,17,17,0.14), 0 4px 10px rgba(17,17,17,0.06);
  transform: translateY(-3px);
  border-color: var(--opt);
}

/* =========================================================================
   SUB-OPTIONS (your cloud → colo / managed / aws)
   ========================================================================= */
.sub-options {
  padding: 64px 0;
}
.sub-options .header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
  align-items: end;
}
.sub-options h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sub-options h3 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.sub-options .header p {
  font-size: 15px; color: var(--fg2); line-height: 1.5;
  max-width: 440px;
}
.sub-tabs {
  display: flex; gap: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
  width: max-content;
  max-width: 100%;
}
.sub-tabs button {
  font: inherit;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--fg2);
  transition: background 150ms, color 150ms;
}
.sub-tabs button:hover { color: var(--fg1); }
.sub-tabs button.on {
  background: var(--sc-ink);
  color: #fff;
}
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms;
}
.sub-card.on { border-color: var(--sc-ink); }
.sub-card .ic {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-muted);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.sub-card h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.sub-card .desc {
  font-size: 14px; line-height: 1.5; color: var(--fg2);
}
.sub-card .pros {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.sub-card .pros .pro {
  display: flex; gap: 8px;
  font-size: 13px;
  color: var(--fg1);
}
.sub-card .pros .pro::before {
  content: "—"; color: var(--accent); font-weight: 700;
}
.sub-card .cost {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}
.sub-card .cost b { color: var(--fg1); }

/* =========================================================================
   IMPLEMENTATION-QUALITY BLOCK
   ========================================================================= */
.impl {
  padding: 96px 0;
  background: var(--sc-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.impl::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: -40px;
  width: 140px;
  background: var(--accent);
  transform: skewX(-10deg);
  opacity: 0.92;
}
.impl .container { position: relative; z-index: 1; }
.impl .head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
.impl h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 540px;
}
.impl h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.impl .head p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 440px;
}
.cases-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.case-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
  text-align: left;
  color: #fff;
  font: inherit;
}
.case-tile:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}
.case-tile.featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.case-tile.featured:hover { background: var(--accent-hover); }
.case-tile .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  align-self: flex-start;
}
.case-tile.featured .badge { color: rgba(255,255,255,0.85); }
.case-tile .badge .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--opt); }
.case-tile h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.case-tile.featured h3 { font-size: 28px; }
.case-tile p {
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,0.75);
}
.case-tile.featured p { color: rgba(255,255,255,0.9); font-size: 15px; }
.case-tile .stat {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.case-tile .stat .big {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.case-tile .stat .unit {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.case-tile .more {
  margin-top: auto;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff;
}

/* =========================================================================
   COMPARISON MATRIX
   ========================================================================= */
.matrix-section {
  padding: 96px 0;
}
.matrix-section .head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  align-items: end;
}
.matrix-section h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.matrix-section h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.matrix-section .head p {
  font-size: 16px; color: var(--fg2); line-height: 1.55;
  max-width: 460px;
}
.matrix {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.matrix thead th {
  text-align: left;
  background: var(--bg-muted);
  padding: 18px 20px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg2);
  border-bottom: 1px solid var(--border);
}
.matrix thead th .label-row {
  display: flex; align-items: center; gap: 8px;
}
.matrix thead th .dot {
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--opt);
}
.matrix tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--fg2);
}
.matrix tbody td.dim-label {
  font-weight: 700;
  color: var(--fg1);
  background: var(--bg-muted);
  width: 24%;
  font-family: var(--font-sans);
}
.matrix tbody tr:last-child td { border-bottom: none; }
.matrix .opt-col-active {
  background: var(--opt-tint) !important;
  color: var(--opt-deep) !important;
  font-weight: 700;
}
.matrix .strength { font-weight: 700; color: var(--fg1); }

/* =========================================================================
   FINAL CTA STRIP
   ========================================================================= */
.final-cta {
  padding: 80px 0 96px;
}
.final-cta .card {
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--sc-ink);
}
.final-cta .card::before {
  content: "";
  position: absolute;
  right: -40px; top: 0; bottom: 0;
  width: 130px;
  background: var(--sc-ink);
  transform: skewX(-10deg);
}
.final-cta h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
  max-width: 540px;
}
.final-cta h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--sc-ink);
}
.final-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  line-height: 1.55;
  max-width: 480px;
}
.final-cta .right {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column;
  gap: 14px;
}
.final-cta button {
  font: inherit;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 15px;
  background: var(--sc-ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 150ms;
}
.final-cta button:hover { background: #000; }
.final-cta .or {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.final-cta .phone-line {
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.01em;
}

/* =========================================================================
   SLIDE-OVER PANEL (case study → contact form)
   position: fixed so it overlays the full viewport
   ========================================================================= */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.45);
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.panel-backdrop.open { opacity: 1; pointer-events: auto; }
.panel {
  width: 640px;
  max-width: 100%;
  background: #fff;
  height: 100%;
  overflow-y: auto;
  transform: translateX(40px);
  transition: transform 280ms cubic-bezier(.2,0,0,1);
  position: relative;
}
.panel-backdrop.open .panel { transform: translateX(0); }
.panel .panel-head {
  position: sticky; top: 0;
  background: #fff;
  z-index: 2;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel .panel-head .crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}
.panel .panel-head .crumb .dot { width: 10px; height: 10px; border-radius: 2px; background: var(--opt); }
.panel .panel-head .crumb .step.on { color: var(--fg1); }
.panel .close {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fg2);
}
.panel .close:hover { background: var(--bg-muted); color: var(--fg1); }
.panel .panel-body { padding: 32px 36px 28px; }
.panel .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--opt-deep);
  background: var(--opt-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.panel h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
  text-wrap: balance;
}
.panel .summary {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg2);
  margin-bottom: 28px;
}
.panel .beats {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
}
.panel .beat {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
}
.panel .beat .lab {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--opt-deep);
  padding-top: 2px;
}
.panel .beat h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 6px;
  color: var(--fg1);
}
.panel .beat p { font-size: 15px; line-height: 1.55; color: var(--fg2); }
.panel .panel-cta {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  padding: 24px 36px 32px;
}
.panel .panel-cta h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.panel .panel-cta .sub {
  font-size: 14px; color: var(--fg2); margin-bottom: 18px;
}
.panel .form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel .form .full { grid-column: 1 / -1; }
.panel .form label {
  display: block;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg1);
  margin-bottom: 4px;
}
.panel .form input,
.panel .form select,
.panel .form textarea {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 14px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: var(--fg1);
}
.panel .form input:focus,
.panel .form select:focus,
.panel .form textarea:focus {
  outline: none;
  border-color: var(--opt);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--opt) 25%, transparent);
}
.panel .form textarea { min-height: 80px; resize: vertical; }
.panel .form .submit {
  font: inherit;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 14px;
  background: var(--opt);
  color: var(--opt-fg);
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  margin-top: 8px;
}
.panel .form .submit:hover { background: var(--opt-deep); }
.panel .form .note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.4;
  margin-top: 2px;
}

/* success state */
.panel .form-success {
  text-align: center;
  padding: 32px 16px 8px;
}
.panel .form-success .check {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--opt);
  color: var(--opt-fg);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.panel .form-success h4 { font-size: 22px; margin-bottom: 8px; }
.panel .form-success p { font-size: 15px; color: var(--fg2); line-height: 1.55; max-width: 380px; margin: 0 auto; }

/* =========================================================================
   MOBILE RESPONSIVE — real media queries (replaces prototype .frame.mobile)
   ========================================================================= */
@media (max-width: 767px) {
  body { font-size: 15px; }

  .site-header .row { padding: 0 16px; height: 60px; gap: 12px; }
  .site-header nav { display: none; }
  .site-header .logo .word .sub { display: none; }
  .site-header .logo .mark { width: 32px; height: 32px; }
  .site-header .phone .sub { display: none; }
  .site-header .phone .num { font-size: 14px; }
  .site-header .phone .ic { width: 28px; height: 28px; }
  .menu-btn {
    display: inline-flex;
    width: 36px; height: 36px;
    background: var(--sc-ink); color: #fff;
    border: none; border-radius: 8px;
    align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .container { padding: 0 16px; }
  .section { padding: 56px 0; }

  .hero { padding: 40px 0 32px; }
  .hero .layout { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 38px; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 16px; }
  .hero .lede { font-size: 16px; }
  .hero .scroll-hint { margin-top: 24px; }
  .tree svg { display: none; }
  .tree-accordion { display: block; }
  .tree-legend { display: none; }
  .tree { background: none; border: none; box-shadow: none; padding: 0; }

  .cards-section { padding: 48px 0; }
  .cards-section .header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .cards-section h2 { font-size: 30px; }
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .opt-card .head { padding: 18px 18px 14px; }
  .opt-card .body { padding: 14px 18px 16px; gap: 12px; }
  .opt-card .title { font-size: 22px; }
  .opt-card .proof { margin: 0 18px; padding: 12px; }
  .opt-card .foot { padding: 14px 18px 18px; }

  .sub-options { padding: 40px 0; }
  .sub-options .header { grid-template-columns: 1fr; gap: 12px; }
  .sub-options h3 { font-size: 22px; }
  .sub-grid { grid-template-columns: 1fr; gap: 12px; }
  .sub-tabs { flex-wrap: wrap; }

  .impl { padding: 56px 0; }
  .impl::before { display: none; }
  .impl .head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .impl h2 { font-size: 32px; }
  .impl .head p { font-size: 15px; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-tile.featured h3 { font-size: 22px; }

  .matrix-section { padding: 56px 0; }
  .matrix-section .head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .matrix-section h2 { font-size: 30px; }
  .matrix table { font-size: 13px; }
  .matrix thead th { padding: 12px; font-size: 10px; letter-spacing: 0.08em; }
  .matrix tbody td { padding: 12px; }
  .matrix tbody td.dim-label { width: auto; }

  .final-cta { padding: 48px 0 56px; }
  .final-cta .card { padding: 32px 24px; grid-template-columns: 1fr; gap: 24px; box-shadow: 8px 8px 0 var(--sc-ink); }
  .final-cta .card::before { display: none; }
  .final-cta h2 { font-size: 30px; }

  .site-footer { padding: 40px 0 24px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
  .site-footer .brand { grid-column: 1 / -1; }
  .site-footer .legal { flex-direction: column; gap: 8px; }
  .site-footer .big-phone { font-size: 20px; }

  .panel { width: 100%; }
  .panel .panel-body { padding: 24px 20px 20px; }
  .panel .panel-cta { padding: 24px 20px 28px; }
  .panel h2 { font-size: 26px; }
  .panel .form { grid-template-columns: 1fr; }
  .panel .beat { grid-template-columns: 1fr; gap: 4px; }
}
