/* Hallmark · macrostructure: Workbench · HP1 Vertical-rail · gates: pass */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Geist:wght@400;500;600;700&display=swap');

:root {
  /* Palette sampled from the SmartDISPL violet/black logo. */
  --paper: oklch(98% .008 300);
  --paper-2: oklch(95% .022 300);
  --surface: oklch(100% .002 300);
  --ink: oklch(17% .014 300);
  --muted: oklch(43% .018 300);
  --rule: oklch(87% .021 300);
  --accent: oklch(53% .20 300);
  --accent-dark: oklch(32% .13 300);
  --warm: oklch(76% .14 82);
  --on-dark: oklch(97% .008 300);
  --display: 'Fraunces', ui-serif, serif;
  --body: 'Geist', ui-sans-serif, sans-serif;
  --space: clamp(1rem, 2vw, 2rem);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(calc(100% - 2 * var(--space)), var(--max)); margin-inline: auto; }
.rail { border-left: 1px solid var(--rule); padding-left: 1rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--rule); background: color-mix(in oklch, var(--paper) 93%, transparent); backdrop-filter: blur(14px); }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 2rem; }
.wordmark { display: flex; align-items: center; width: clamp(116px, 12vw, 150px); }
.wordmark img { width: 100%; height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta { border: 1px solid var(--accent); color: var(--accent-dark); padding: .65rem 1rem; border-radius: 6px; }
.menu-button, .theme-toggle { border: 0; background: transparent; color: var(--ink); padding: .5rem; }
.menu-button { display: none; }
.theme-toggle { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; border: 1px solid var(--rule); border-radius: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }

.hero { min-height: clamp(520px, calc(100svh - 76px), 720px); padding: clamp(1.75rem, 3.5vh, 3rem) 0 clamp(2rem, 4vh, 3.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: start; }
.hero-copy-column { align-self: center; padding-top: clamp(0rem, 2vh, 1.5rem); }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
h1 { margin-top: .65rem; max-width: 16ch; }
.hero-title-main, .hero-title-sub { display: block; }
.hero-title-main { font-size: clamp(2.45rem, 3.2vw + .45rem, 4.15rem); line-height: 1; }
.hero-title-sub { max-width: 17ch; margin-top: .5rem; color: var(--accent); font-family: var(--body); font-size: clamp(1.25rem, 1.5vw + .5rem, 1.85rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.hero-copy { max-width: 52ch; margin: .85rem 0 1.15rem; color: var(--muted); font-size: .98rem; }
.actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 48px; border-radius: 6px; padding: .75rem 1.15rem; border: 1px solid var(--accent); font-weight: 700; }
.button-primary { background: var(--accent); color: var(--surface); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-quiet { border-color: var(--rule); color: var(--muted); }
.button-quiet:hover { border-color: var(--accent); color: var(--accent-dark); }
.hero-note { margin-top: .6rem; color: var(--muted); font-size: .8rem; }
.workbench { position: relative; padding: .75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); box-shadow: 16px 18px 0 oklch(88% .03 300); transform: rotate(1.2deg); }
.workbench img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.hero-media { align-self: start; }
.hero-media img { object-position: 48% 42%; }
.workbench-label { display: grid; gap: .25rem; padding: .7rem .15rem .1rem; color: var(--muted); font-size: .82rem; }
.workbench-label strong { color: var(--ink); }
.rental-cta { width: 100%; margin-top: .8rem; }
.live-dot { color: var(--accent); font-weight: 700; }
.button-spinner { width:1em; height:1em; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:button-spin .7s linear infinite; }
.button.is-loading { cursor:wait; opacity:.82; }
@keyframes button-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button-spinner { animation:none; border-right-color:currentColor; opacity:.55; } }


.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; margin-bottom: 3rem; }
.section-head h2 { max-width: 15ch; font-size: clamp(2.2rem, 3.5vw, 4rem); }
.section-intro { max-width: 60ch; margin: 1rem 0 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.feature { grid-column: span 3; min-height: 330px; appearance: none; border: 0; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; transition: background-color 180ms ease, color 180ms ease, grid-column 260ms ease; }
.feature h3 { margin: 1.5rem 0 .7rem; font-size: 1.7rem; }
.feature p { max-width: 45ch; color: var(--muted); }
.feature-index { font-family: monospace; color: var(--accent); font-size: .8rem; font-weight: 700; }
.feature-asset { display: none; width: 100%; max-height: 190px; margin-top: 1.5rem; border-radius: 5px; object-fit: cover; object-position: center; }
.feature-grid:has(.feature.is-active) .feature:not(.is-active) { grid-column: span 4; }
.feature.is-active { grid-column: 1 / -1; background: var(--accent-dark); color: var(--on-dark); }
.feature.is-active p { color: oklch(91% .03 300); }
.feature.is-active .feature-index { color: var(--warm); }
.feature.is-active .feature-asset { display: block; }
.feature[aria-pressed="true"] { cursor: default; }
.feature:active { transform: translateY(1px); }
@media (hover: hover) { .feature:not(.is-active):hover { background: var(--paper-2); } }
.footer-inner a { color: var(--warm); text-decoration: underline; text-underline-offset: .2em; }
.footer-inner a:hover { color: var(--surface); }

.workflow { border-top: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.step-number { color: var(--accent); font-family: monospace; font-size: .9rem; font-weight: 700; }
.step h3 { font-size: 1.7rem; }
.step p { max-width: 42ch; margin: 0; color: var(--muted); }

.testimonials { background: var(--paper-2); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--rule); background: var(--rule); }
.testimonial { display: flex; min-height: 255px; flex-direction: column; justify-content: space-between; margin: 0; padding: clamp(1.5rem, 3vw, 2.3rem); background: var(--surface); }
.testimonial blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.018em; line-height: 1.28; }
.testimonial figcaption { display: grid; gap: .1rem; margin-top: 2rem; color: var(--muted); font-size: .86rem; }
.testimonial figcaption strong { color: var(--ink); }
.offline { background: var(--paper-2); }
.offline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.offline h2 { max-width: 12ch; font-size: clamp(2.5rem, 5vw, 5rem); }
.offline p { max-width: 52ch; color: var(--muted); }
.offline img { width: min(100%, 430px); margin-inline: auto; }

.order-section { background: var(--accent-dark); color: var(--on-dark); }
.order-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.order-section .rail { color: oklch(81% .04 300); border-color: oklch(55% .06 300); }
.order-section h2 { margin-top: 1rem; max-width: 11ch; font-size: clamp(2.5rem, 5vw, 5rem); }
.order-section .section-intro { color: oklch(85% .035 300); }
.order-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid oklch(53% .06 300); border-radius: 8px; background: oklch(35% .08 300); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { color: oklch(88% .03 300); font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid oklch(57% .06 300); border-radius: 5px; padding: .75rem .8rem; background: oklch(27% .06 300); color: var(--on-dark); }
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(75% .03 300); }
.order-form .button-primary { background: var(--warm); border-color: var(--warm); color: var(--ink); }
.form-help { margin: 0; color: oklch(79% .04 300); font-size: .82rem; }
.form-result { border-left: 3px solid var(--warm); padding: .8rem 1rem; background: oklch(25% .06 300); color: oklch(94% .02 300); }

.lookup { padding-top: 0; background: var(--accent-dark); color: var(--on-dark); }
.lookup-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.3rem 0; border-top: 1px solid oklch(53% .06 300); }
.lookup-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.lookup-form input { min-height: 42px; border: 1px solid oklch(57% .06 300); border-radius: 5px; padding: .6rem .7rem; background: oklch(27% .06 300); color: var(--on-dark); }
.lookup-form .button { min-height: 42px; padding: .6rem .8rem; }

.site-footer { padding: 2rem 0; background: var(--ink); color: oklch(82% .025 190); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; font-size: .85rem; }
.footer-inner strong { color: var(--surface); }
.footer-inner a { color: var(--warm); text-decoration: underline; text-underline-offset: .2em; }
.footer-inner a:hover { color: var(--on-dark); }

html[data-theme="dark"] {
  --paper: oklch(18% .022 300);
  --paper-2: oklch(23% .032 300);
  --surface: oklch(25% .035 300);
  --ink: oklch(94% .01 300);
  --muted: oklch(76% .025 300);
  --rule: oklch(38% .045 300);
  --accent: oklch(70% .18 300);
  --accent-dark: oklch(42% .15 300);
  --warm: oklch(82% .14 82);
  --on-dark: oklch(97% .008 300);
}

html[data-theme="dark"] .site-header { background: color-mix(in oklch, var(--paper) 92%, transparent); }
html[data-theme="dark"] .button-primary { color: oklch(18% .02 300); }
html[data-theme="dark"] .button-quiet { color: var(--ink); }
html[data-theme="dark"] .feature.is-active,
html[data-theme="dark"] .order-section,
html[data-theme="dark"] .lookup { background: oklch(28% .11 300); }
html[data-theme="dark"] .site-footer { background: oklch(11% .018 300); }
html[data-theme="dark"] .feature.is-active p { color: oklch(91% .025 300); }
html[data-theme="dark"] .order-section h2,
html[data-theme="dark"] .lookup strong { color: var(--on-dark); }
html[data-theme="dark"] .lookup .button-quiet { border-color: var(--on-dark); color: var(--on-dark); }

@media (min-width: 801px) { .nav-links[hidden] { display: flex !important; } }
@media (max-width: 800px) {
  .nav-links { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .theme-toggle { justify-content: center; margin: .5rem .7rem; }
  .nav-links[hidden] { display: none; }
  .nav-links:not([hidden]) { position: absolute; inset: 76px var(--space) auto; display: grid; gap: 0; padding: .7rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); box-shadow: 0 15px 30px oklch(20% .02 190 / .12); }
  .nav-links a { padding: .7rem; }
  .hero { min-height: auto; padding-top: 2.5rem; }
  .hero-grid, .offline-grid, .order-grid { grid-template-columns: 1fr; }
  .hero-copy-column { padding-top: 0; }
  .hero-media { order: -1; width: min(100%, 620px); margin-inline: auto; }
  .workbench { transform: none; box-shadow: 10px 12px 0 oklch(88% .03 300); }
  .section-head, .step { grid-template-columns: 1fr; gap: 1rem; }
  .feature-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .feature, .feature-grid:has(.feature.is-active) .feature:not(.is-active) { grid-column: auto; }
  .feature.is-active { grid-column: auto; }
  .feature:first-child { grid-row: auto; }
  .step { padding: 1.5rem 0; }
  .lookup-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
