/* ==============================================================================
   UBVY TECHNOLOGY — Official Skeuomorphic Design System (styles.css)
   Approved Reference: ubvy-skeuomorphic-homepage.html
   Palette: Paper #FDFDFC, Ink #171819, Muted #686B70, Line #E6E5E2, Green #247849
   Typography: Georgia Serif, Inter / Sans-Serif, Mono
   ============================================================================== */

:root {
  /* Approved Palette Tokens */
  --paper: #fdfdfc;
  --white: #ffffff;
  --ink: #171819;
  --muted: #686b70;
  --line: #e6e5e2;
  --green: #247849;
  --soft: #f3f2ef;
  --shadow: 0 18px 45px rgba(20, 20, 18, 0.12), 0 3px 8px rgba(20, 20, 18, 0.07);
  --shadow-window: 0 26px 55px rgba(20, 20, 18, 0.17), inset 0 1px 0 #ffffff;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Fonts */
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Aliases for subpage compatibility */
  --canvas-bg: var(--paper);
  --canvas-subtle: var(--soft);
  --canvas-inset: #eae8e3;
  --canvas-card: var(--white);
  --canvas-dark: #171819;
  --canvas-dark-elevated: #262827;
  --canvas-dark-border: rgba(255, 255, 255, 0.12);

  --text-main: var(--ink);
  --text-body: #343638;
  --text-muted: var(--muted);
  --text-light: #85878a;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #b5b6b2;

  --brand-primary: #171819;
  --brand-accent: #171819;
  --brand-emerald: var(--green);
  --brand-emerald-soft: #ecfdf5;
  --brand-emerald-border: #a7f3d0;
  --brand-emerald-dark: #1e5a38;

  --border-subtle: var(--line);
  --border-medium: #d2d1ce;
  --border-strong: #999793;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid #8cb9a0;
  outline-offset: 3px;
}

/* Containers */
.wrap, .container {
  width: min(1360px, calc(100% - 64px));
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
}

h1, h2, .editorial-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 em, h2 em, .editorial-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.25;
}

.font-mono { font-family: var(--mono); }
.font-sans { font-family: var(--sans); }
.font-serif { font-family: var(--serif); }

.eyebrow, .section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #777a7c;
  font-weight: 650;
  margin: 0 0 20px;
  display: block;
}

/* Header & Navigation */
.site-header {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  background: rgba(253, 253, 252, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 220px;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.brand-divider {
  height: 32px;
  width: 1px;
  background: var(--line);
  margin-left: 8px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: #343638;
  list-style: none;
}

.navlinks a {
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.navlinks a:hover, .navlinks a.active {
  color: var(--green);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-caret {
  font-size: 9px;
  margin-left: 3px;
  vertical-align: 1px;
  opacity: 0.6;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item:hover .nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-dropdown a:hover {
  background: #f5f4f0;
}

.nav-dropdown a strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.nav-dropdown a span {
  display: block;
  font-size: 11px;
  color: #707276;
  margin-top: 2px;
}

.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  border: none;
}

.nav-cta, .btn-dark, .btn-primary {
  background: #171819;
  color: white !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn-light, .btn-outline {
  border: 1px solid #d2d1ce;
  background: linear-gradient(#ffffff, #f8f7f5);
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-emerald, .btn-accent {
  background: var(--green);
  color: white !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn:hover, .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 21px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 76px 0 62px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 52px;
  align-items: center;
  min-height: 555px;
}

.hero h1 {
  font-size: clamp(44px, 4.8vw, 72px);
  line-height: 0.99;
  letter-spacing: -2.7px;
  margin-bottom: 25px;
  max-width: 650px;
}

.hero-copy {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.48;
  color: #62656a;
  max-width: 560px;
  margin-bottom: 29px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trustline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  color: #66696c;
  font-family: var(--serif);
  font-size: 14px;
}

.trustline span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-sep {
  color: #d2d1ce;
}

.dot {
  height: 8px;
  width: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(36, 120, 73, 0.12);
  display: inline-block;
}

/* Tactile Skeuomorphic Application Window */
.app-shell {
  background: linear-gradient(145deg, #f7f6f3, #e5e3de);
  border: 1px solid #c9c7c2;
  border-radius: 16px;
  padding: 9px;
  box-shadow: var(--shadow-window);
  transform: perspective(1200px) rotateY(-1.3deg);
  transition: transform 0.3s ease;
}

.app-shell:hover {
  transform: perspective(1200px) rotateY(0deg);
}

.app-window {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d5d4d0;
  box-shadow: inset 0 1px 0 #ffffff;
}

.window-bar {
  height: 48px;
  background: linear-gradient(#ffffff, #f0efec);
  border-bottom: 1px solid #d9d8d4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  font-size: 12px;
  user-select: none;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b7b5b0;
  display: inline-block;
}

.window-dots i:first-child { background: #c86d63; }
.window-dots i:nth-child(2) { background: #d9b35f; }
.window-dots i:nth-child(3) { background: #65a77a; }

.window-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.2px;
}

.window-status {
  margin-left: auto;
  color: #4d6d55;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.app-body {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 330px;
}

.app-side {
  background: linear-gradient(90deg, #f5f4f1, #eeede9);
  border-right: 1px solid #deddd8;
  padding: 17px 10px;
}

.side-label {
  font-size: 10px;
  color: #8a8b8b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 7px 10px;
}

.side-link {
  font-size: 11px;
  padding: 8px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  color: #505356;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.side-link.active {
  background: linear-gradient(#282b2c, #17191a);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 3px rgba(0, 0, 0, 0.15);
}

.side-icon {
  width: 14px;
  text-align: center;
  font-size: 11px;
}

.app-main {
  padding: 20px 20px 16px;
  min-width: 0;
  background: #ffffff;
}

.app-main h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
}

.app-sub {
  font-size: 11px;
  color: #777;
  margin-bottom: 14px;
}

.patient-strip {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.8fr 1fr;
  gap: 8px;
  background: #faf9f7;
  border: 1px solid #e5e3de;
  border-radius: 7px;
  padding: 10px;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 9px;
  color: #777;
  margin-bottom: 2px;
}

.field b {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.results th {
  text-align: left;
  font-weight: 600;
  color: #5e6060;
  background: #f0efec;
  padding: 7px 8px;
  border-bottom: 1px solid #d9d8d4;
}

.results td {
  padding: 7px 8px;
  border-bottom: 1px solid #eceae6;
  white-space: nowrap;
  color: #414446;
}

.status {
  color: var(--green);
  font-weight: 600;
}

.status.warn {
  color: #a86a11;
}

.app-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.mini-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  border-radius: 5px;
  padding: 7px 11px;
  border: 1px solid #d6d4cf;
  background: linear-gradient(#ffffff, #f4f3f0);
  box-shadow: inset 0 1px #ffffff;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s ease;
}

.mini-btn:hover {
  background: #eae8e4;
}

.mini-btn.primary {
  background: linear-gradient(#303536, #17191a);
  color: white;
  border-color: #17191a;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
}

/* Product Showcase Grid (Skeuomorphic 2x2 Presentation) */
.section-rule {
  border-top: 1px solid var(--line);
}

.products {
  padding: 32px 0 74px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.product {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 36px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* 2-column crosshair dividers */
.product:nth-child(2n) {
  border-right: 0;
  padding-right: 0;
  padding-left: 36px;
}

.product:nth-child(2n+1) {
  padding-left: 0;
  padding-right: 36px;
}

.product:nth-child(-n+2) {
  padding-top: 0;
}

.product:nth-last-child(-n+2) {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-visual-img {
  max-width: 100%;
  max-height: 225px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.product:hover .product-visual-img {
  transform: translateY(-3px) scale(1.02);
}

.custom-categories-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 14px;
}

.custom-categories-tags span {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: #4a4d52;
  background: #f4f3ef;
  border: 1px solid #dedbd4;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

.product-number {
  font-size: 11px;
  color: #85878a;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-family: var(--mono);
}

.product h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 13px;
}

.product p {
  font-size: 13px;
  color: #707276;
  line-height: 1.55;
  margin-bottom: 17px;
}

.learn {
  font-size: 13px;
  font-weight: 650;
  border-bottom: 1px solid #999;
  padding-bottom: 3px;
  color: var(--ink);
  display: inline-block;
}

.learn:hover {
  color: var(--green);
  border-color: var(--green);
}

.visual {
  min-height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Skeuomorphic Paper Report Mockup */
.paper-report {
  width: 100%;
  max-width: 215px;
  min-height: 250px;
  background: linear-gradient(115deg, #ffffff, #f7f6f2);
  border: 1px solid #dedbd4;
  padding: 15px 12px;
  box-shadow: 4px 5px 0 #ebe9e3, 8px 10px 0 #f3f1ed, 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: rotate(-2deg);
  font-size: 8px;
  color: #333;
}

.report-logo {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.4px;
}

.report-title {
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  border-block: 1px solid #d9d6cf;
  padding: 6px 0;
  margin: 6px 0;
  letter-spacing: 0.5px;
}

.report-line {
  height: 4px;
  background: #e7e5df;
  margin: 6px 0;
  border-radius: 2px;
}

.report-line.short {
  width: 55%;
}

.report-table {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 4px;
  margin-top: 10px;
}

.report-table span {
  height: 6px;
  background: #e4e2dc;
  border-radius: 2px;
}

/* Skeuomorphic LensNew POS Window */
.pos-window {
  width: 100%;
  max-width: 260px;
  background: linear-gradient(#ffffff, #f4f3f0);
  border: 1px solid #cfcdc7;
  border-radius: 9px;
  padding: 11px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.pos-top {
  font-size: 10px;
  font-weight: 750;
  padding: 3px 4px 8px;
  border-bottom: 1px solid #e4e2dd;
}

.pos-nav {
  display: flex;
  gap: 5px;
  margin: 8px 0;
}

.pos-nav span {
  background: #eeede9;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 7.5px;
  font-weight: 600;
}

.rx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 8px 0;
}

.rx-grid span {
  background: #e8e6e0;
  padding: 6px 2px;
  text-align: center;
  font-size: 7.5px;
  border-radius: 3px;
}

.pos-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dedbd5;
  padding-top: 8px;
  font-size: 9.5px;
  font-weight: 700;
}

.glasses {
  position: absolute;
  bottom: 0;
  left: 4%;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.18));
  transform: rotate(-6deg);
}

/* Skeuomorphic Local-SIM Voice AI Device */
.voice-device {
  width: 90%;
  max-width: 235px;
  height: 175px;
  position: relative;
}

.voice-screen {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  height: 130px;
  background: linear-gradient(145deg, #ffffff, #f1f0ec);
  border: 1px solid #d4d2cc;
  border-radius: 11px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.voice-top {
  font-size: 10px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wave {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 8px;
}

.wave i {
  width: 3px;
  border-radius: 4px;
  background: #267d5b;
  height: var(--h);
  box-shadow: 0 0 4px rgba(38, 125, 91, 0.25);
  display: inline-block;
}

.voice-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  border-radius: 12px 12px 17px 17px;
  background: linear-gradient(155deg, #444746, #151717 70%);
  border: 1px solid #111;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  user-select: none;
}

.voice-base::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 5px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.leds {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.leds i {
  width: 5px;
  height: 5px;
  background: #3caa6a;
  border-radius: 50%;
  box-shadow: 0 0 5px #3caa6a;
  display: inline-block;
}

/* Solutions & Process Band */
.about-band {
  background: linear-gradient(180deg, #fdfdfc, #f5f4f1);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.band-copy {
  color: #696b6f;
  max-width: 570px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  border-top: 1px solid #deddd8;
}

.benefit {
  padding: 17px 0;
  border-bottom: 1px solid #deddd8;
}

.benefit b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--ink);
}

.benefit span {
  font-size: 13px;
  color: #717378;
  line-height: 1.5;
}

/* Pricing Section */
.pricing {
  padding: 76px 0 88px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 5px;
  font-size: 14.5px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card {
  border: 1px solid #deddd8;
  background: linear-gradient(150deg, #ffffff, #f8f7f4);
  border-radius: 15px;
  padding: 28px;
  box-shadow: inset 0 1px 0 #ffffff, 0 5px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  background: linear-gradient(145deg, #262827, #151716);
  color: #ffffff;
  border-color: #141615;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 15px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-8px);
}

.price-label {
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #7a7c7e;
  font-weight: 600;
}

.featured .price-label {
  color: #c4d6ca;
}

.price {
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: -1px;
  margin: 12px 0 4px;
  line-height: 1;
}

.price small {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
}

.featured .price small {
  color: #d0d0cc;
}

.price-card p {
  font-size: 13px;
  color: #707276;
  min-height: 42px;
  line-height: 1.5;
}

.featured p {
  color: #d2d3cf;
}

.price-card ul {
  padding-left: 18px;
  margin: 20px 0 24px;
  font-size: 13px;
  color: #53565a;
}

.featured ul {
  color: #e3e3df;
}

.price-card li {
  margin: 8px 0;
}

.price-card .btn {
  width: 100%;
}

.featured .btn {
  background: #ffffff;
  color: #171819 !important;
}

/* Subpage Utilities: Cards, Forms, Tables */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a4d52;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d2d1ce;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 24, 25, 0.08);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--soft);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #55585c;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
  color: #4a4d52;
  border: 1px solid #dcd9d4;
}

.badge-emerald {
  background: #ecfdf5;
  color: var(--green);
  border-color: #a7f3d0;
}

.badge-slate {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #171819;
  color: #f6f5f1;
  padding: 40px 0;
  border-top: 1px solid #282a2c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  font-size: 12px;
  color: #b5b6b2;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #d7d7d2;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Documentation, Subpages & Utility Classes */
.tab-container {
  width: 100%;
}
.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn.active {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
  border-bottom: 1px solid #ffffff;
  margin-bottom: -1px;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.doc-step-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
}
.step-counter {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 8px;
}
.code-terminal {
  background: #171819;
  color: #f8fafc;
  font-family: var(--mono);
  font-size: 13px;
  padding: 14px 18px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid #282a2c;
}

/* Contact Grid & Channel Cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
}
.form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow-subtle);
}
.contact-channel-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
}
.contact-channel-title {
  font-size: 18px;
  font-family: var(--serif);
  margin-bottom: 6px;
}
.contact-channel-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Alerts & Hashes */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.alert-info {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.hash-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.hash-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--soft);
}

/* Pricing & ROI Calculator */
.step-card-glow {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}
.pricing-card-popular {
  position: relative;
  border-color: #171819;
  box-shadow: 0 12px 32px rgba(20, 20, 18, 0.1);
}
.popular-ribbon {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.roi-calculator-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  margin-top: 36px;
  box-shadow: var(--shadow-subtle);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.slider-group {
  margin-top: 20px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.custom-range-slider {
  width: 100%;
  accent-color: var(--green);
  height: 6px;
  cursor: pointer;
}
.calc-results-box {
  background: #171819;
  color: white;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.calc-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94A3B8;
  margin-bottom: 4px;
}
.calc-stat-val {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

/* Responsive Breakpoints (from prototype) */
@media (max-width: 1050px) {
  .wrap, .container {
    width: min(100% - 40px, 900px);
  }
  .nav {
    gap: 18px;
  }
  .brand {
    min-width: 175px;
  }
  .navlinks {
    gap: 18px;
  }
  .hero {
    gap: 28px;
    grid-template-columns: 0.9fr 1.1fr;
  }
  .app-body {
    grid-template-columns: 115px 1fr;
  }
  .app-side {
    padding-inline: 7px;
  }
  .app-main {
    padding: 15px 12px;
  }
  .product {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .visual {
    min-height: 205px;
  }
  .product h2 {
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  .wrap, .container {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 70px;
  }
  .brand {
    min-width: 0;
  }
  .brand-divider {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav {
    position: relative;
  }
  .navlinks {
    display: none;
    position: absolute;
    z-index: 100;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    align-items: stretch;
    gap: 0;
    flex-direction: column;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    padding: 12px 8px;
    border-bottom: 1px solid #efeeeb;
  }
  .navlinks a:last-child {
    border-bottom: 0;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-caret {
    display: none;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f7f6f2;
    border-radius: 8px;
    margin: 4px 0 10px 8px;
    padding: 6px 10px;
    min-width: 0;
  }
  .nav-dropdown a {
    padding: 8px 6px;
    border-bottom: 1px solid #e8e6e1;
  }
  .nav-dropdown a:last-child {
    border-bottom: none;
  }
  .nav-cta {
    padding: 11px 15px;
    font-size: 12px;
  }
  .hero {
    padding: 48px 0 40px;
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }
  .hero-copy {
    font-size: 19px;
  }
  h1, .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
    letter-spacing: -1.8px;
  }
  .app-shell {
    transform: none;
  }
  .app-shell:hover {
    transform: none;
  }
  .app-body {
    grid-template-columns: 95px 1fr;
    min-height: 0;
  }
  .app-side {
    padding: 12px 5px;
  }
  .side-link {
    font-size: 9px;
    padding: 8px 5px;
  }
  .app-main {
    padding: 13px 9px;
  }
  .app-main h3 {
    font-size: 17px;
  }
  .patient-strip {
    grid-template-columns: 1fr 1fr;
  }
  .patient-strip .field:nth-child(3),
  .patient-strip .field:nth-child(4) {
    display: none;
  }
  .results {
    font-size: 9px;
  }
  .results th, .results td {
    padding: 6px 4px;
  }
  .window-status {
    display: none;
  }
  .products {
    padding: 24px 0 48px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 24px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .product:nth-child(2n+1) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .product:nth-child(2n) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .product:last-child {
    border-bottom: 0 !important;
  }
  .product h2 {
    font-size: 26px;
  }
  .visual {
    min-height: 210px;
  }
  .about-band {
    padding: 54px 0;
  }
  .band-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 12px;
  }
  .pricing {
    padding: 55px 0;
  }
  .price-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .price-card.featured {
    transform: none;
  }
  .price-card p {
    min-height: 0;
  }
  .custom-solutions-grid {
    grid-template-columns: 1fr !important;
  }
  .enquiry-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .wrap, .container {
    width: calc(100% - 28px);
  }
  .nav {
    gap: 10px;
  }
  .nav-cta {
    font-size: 11px;
    padding: 10px 12px;
  }
  .hero {
    padding-top: 36px;
  }
  .app-shell {
    padding: 5px;
    border-radius: 12px;
  }
  .window-bar {
    padding: 0 9px;
    gap: 7px;
  }
  .window-title {
    font-size: 10px;
  }
  .app-body {
    grid-template-columns: 78px 1fr;
  }
  .side-link {
    font-size: 8px;
    gap: 4px;
  }
  .side-label {
    font-size: 8px;
    margin-inline: 3px;
  }
  .app-main {
    padding: 10px 6px;
  }
  .app-main h3 {
    font-size: 15px;
  }
  .app-sub {
    font-size: 9px;
  }
  .patient-strip {
    padding: 7px;
    gap: 5px;
  }
  .field b {
    font-size: 9px;
  }
  .results th, .results td {
    font-size: 8px;
    padding: 5px 3px;
  }
  .results th:nth-child(3), .results td:nth-child(3) {
    display: none;
  }
  .mini-btn {
    font-size: 8.5px;
    padding: 6px 8px;
  }
  .product {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8px;
  }
  .product h2 {
    font-size: 22px;
  }
  .product p {
    font-size: 12px;
  }
  .visual {
    min-height: 190px;
  }
  .paper-report {
    min-height: 220px;
    padding: 11px 8px;
  }
  .glasses {
    width: 75px;
  }
  .voice-device {
    width: 100%;
  }
  .trustline {
    gap: 10px;
    font-size: 13px;
  }
  .trustline span {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
