/* ============================================================
   ClaraMatrix — public site, login & service desk styles
   Light, water-clean palette. Warm paper, deep-teal ink,
   a splash of sea green and sun gold.
   ============================================================ */

:root {
  --paper: #f7f5ee;
  --paper-2: #efece2;
  --card: #fffdf8;
  --ink: #0c2f2b;
  --ink-soft: #4d6a66;
  --ink-faint: #8ca39f;
  --sea: #0d9488;
  --sea-deep: #0a6d63;
  --sea-wash: #dcefeb;
  --sky: #4a9fd4;
  --sky-wash: #e3eef6;
  --sun: #e09a2f;
  --sun-wash: #f9edd4;
  --line: #e5dfd2;
  --line-strong: #d4ccb9;
  --danger: #b3402e;
  --danger-wash: #f8e3dd;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(19, 42, 38, .05), 0 4px 14px rgba(19, 42, 38, .05);
  --shadow-md: 0 2px 4px rgba(19, 42, 38, .05), 0 14px 30px rgba(19, 42, 38, .10);
  --shadow-lg: 0 4px 10px rgba(19, 42, 38, .06), 0 28px 56px rgba(19, 42, 38, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --banner-h: 0px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(90px + var(--banner-h));
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; }

.mono {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: .82em;
}

.hidden { display: none !important; }

::selection { background: var(--sea-wash); color: var(--sea-deep); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c9c3b4; border: 3px solid var(--paper); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b3ab99; }

/* ============================================================
   Reveal-on-scroll (toggled by app.js)
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--sky-wash); outline-offset: 2px; }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-primary {
  color: #fff;
  background: var(--sea);
  box-shadow: 0 6px 18px rgba(13, 148, 136, .28);
}
.btn-primary:hover { background: var(--sea-deep); box-shadow: 0 10px 26px rgba(13, 148, 136, .34); transform: translateY(-2px); }

.btn-secondary {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--sea); color: var(--sea-deep); transform: translateY(-2px); }

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--sea-deep); background: var(--sea-wash); }

.btn-danger {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 6px 18px rgba(179, 64, 46, .25);
}
.btn-danger:hover { background: #932d1d; transform: translateY(-2px); }

.btn-gold {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 6px 18px rgba(224, 154, 47, .3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(224, 154, 47, .38); }

.btn.loading { pointer-events: none; position: relative; }
.btn.loading .btn-text { opacity: 0; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ============================================================
   Announcement banner
   ============================================================ */
.site-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 46px;
  background: linear-gradient(90deg, var(--sun), #e0a63f, var(--sun));
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.site-banner .banner-close {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 47, 43, .12);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.site-banner .banner-close:hover { background: var(--ink); color: #fff; }

body.has-banner .site-header { top: var(--banner-h); }
body.has-banner .scroll-progress { top: var(--banner-h); }

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sea), var(--sky), var(--sun));
  z-index: 120;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(247, 245, 238, .92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo span { color: var(--sea-deep); }
.logo .drop {
  width: 9px; height: 9px;
  margin-left: 5px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--sea), var(--sky));
  transform: rotate(-45deg);
  animation: bob 2.6s ease-in-out infinite;
}

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover { color: var(--sea-deep); background: var(--sea-wash); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.header-phone .mono { color: var(--sea-deep); }
.header-phone:hover .mono { text-decoration: underline; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  min-height: 100svh;
  padding: 150px clamp(20px, 5vw, 64px) 90px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(77, 159, 212, .10), transparent 55%),
    radial-gradient(90% 70% at 8% 88%, rgba(13, 148, 136, .12), transparent 55%),
    var(--paper);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--sea-deep);
  font: 600 12px "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 .rot {
  display: inline-block;
  color: var(--sea-deep);
  position: relative;
  white-space: nowrap;
}
.hero h1 .rot em {
  font-style: italic;
  font-weight: 500;
  color: var(--sea);
}

.hero-text {
  margin: 22px 0 30px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 18px);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.hero-note {
  width: 100%;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 13px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-item strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.trust-item strong .mono { color: var(--sea-deep); font-size: .55em; vertical-align: top; }
.trust-item small {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Hero visual — the machine */
.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.machine {
  position: relative;
  width: 250px;
  padding: 56px 26px 30px;
  border-radius: 34px 34px 26px 26px;
  background: linear-gradient(160deg, #ffffff 0%, #eef3ef 60%, #e2ebe6 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff, inset 0 -8px 20px rgba(19, 42, 38, .06);
  animation: float 5s ease-in-out infinite;
}

.machine-hood {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 30px;
  border-radius: 22px 22px 10px 10px;
  background: linear-gradient(180deg, var(--ink) 0%, #16423c 100%);
  box-shadow: 0 6px 14px rgba(12, 47, 43, .25);
}
.machine-hood::before {
  content: '';
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .18);
}

.machine-screen {
  position: relative;
  overflow: hidden;
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b3d38, #072a26);
  color: #d9fff8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35);
}
.machine-screen small {
  font: 600 10px "SFMono-Regular", ui-monospace, Consolas, monospace;
  letter-spacing: .28em;
  opacity: .7;
}
.machine-screen b {
  font-family: "Fraunces", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(58, 224, 200, .55);
}
.machine-screen .screen-note {
  font: 500 10px "SFMono-Regular", ui-monospace, Consolas, monospace;
  letter-spacing: .18em;
  opacity: .55;
  margin-top: 2px;
}
.machine-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13, 148, 136, .5) 90%);
  opacity: .25;
}

.machine-body {
  position: relative;
  height: 150px;
  margin-top: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef3ef, #e3ece7);
  box-shadow: inset 0 1px 0 #fff;
}
.machine-body::before {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 6px;
  border-radius: 6px;
  background: #d3dfd8;
}
.machine-body .gauge {
  position: absolute;
  top: 42px; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 64px;
  border: 2px solid #cfdbd4;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f8f5;
}
.gauge .water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(180deg, var(--sky), var(--sea));
  animation: fillUp 4.5s ease-in-out infinite;
}
.gauge .meter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 5px;
}
.gauge .meter span {
  width: 3px;
  background: rgba(255, 255, 255, .5);
  border-radius: 2px;
}
.gauge .meter span:nth-child(odd) { height: 40%; }
.gauge .meter span:nth-child(even) { height: 70%; }

.machine-base {
  height: 12px;
  margin-top: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #d7e2dc, #c7d5cd);
  box-shadow: inset 0 1px 3px rgba(12, 47, 43, .18);
}

.machine-spout {
  position: absolute;
  bottom: 36px; left: -30px;
  width: 70px; height: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #dfe8e3, #ccd9d2);
  transform: rotate(-14deg);
  box-shadow: inset 0 -2px 4px rgba(12, 47, 43, .12);
}
.machine-spout::after {
  content: '';
  position: absolute;
  left: -6px; bottom: -8px;
  width: 7px; height: 9px;
  border-radius: 0 0 4px 4px;
  background: var(--sea);
  box-shadow: 0 0 8px rgba(13, 148, 136, .5);
  animation: drip 1.8s ease-in-out infinite;
}

.machine-cup {
  position: absolute;
  bottom: -4px; left: -44px;
  width: 52px; height: 60px;
  border-radius: 0 0 10px 10px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-top: 0;
  background: rgba(220, 239, 235, .6);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(19, 42, 38, .18);
}
.cup-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, var(--sky), var(--sea));
  animation: fillCup 4.5s ease-in-out infinite;
}
.cup-fill::before {
  content: '';
  position: absolute;
  top: -5px; left: 0; right: 0;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .5);
}

/* floating info chips around the machine */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  animation: float 4.5s ease-in-out infinite;
}
.float-chip b { color: var(--sea-deep); font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.float-chip small { color: var(--ink-faint); font: 500 10px "SFMono-Regular", ui-monospace, monospace; }
.chip-a { top: 14%; right: 6%; animation-delay: .3s; }
.chip-b { bottom: 16%; left: 2%; animation-delay: 1.1s; }
.chip-c { top: 40%; left: 0; animation-delay: 1.8s; }
.chip-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 4px var(--sea-wash);
  animation: blink 2s ease-in-out infinite;
}

/* wave divider under the hero */
.wave-divider { position: relative; margin-top: -1px; overflow: hidden; }
.wave-divider svg { display: block; width: 200%; max-width: none; height: 70px; }
.wave-a { fill: var(--paper-2); animation: waveShift 9s linear infinite; }
.wave-b { fill: var(--sea-wash); animation: waveShift 14s linear infinite reverse; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--sea-deep);
  color: #eafffb;
  padding: 14px 0;
  border-top: 3px solid var(--sun);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: scrollX 26s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  font: 600 13px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.marquee span::after {
  content: '✦';
  color: var(--sun);
  font-size: 11px;
}
.marquee-track:hover { animation-play-state: paused; }

/* ============================================================
   Sections — shared
   ============================================================ */
.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 64px);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-head h2 em {
  font-style: italic;
  color: var(--sea);
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 46ch;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after {
  content: '';
  width: 22px; height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

/* ============================================================
   Products
   ============================================================ */
.product-section { background: var(--paper-2); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.p-card {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.p-card-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: left;
  overflow: hidden;
  transition: box-shadow .35s ease, transform .35s var(--ease);
  transform: translateZ(0);
}
.p-card:hover .p-card-btn { box-shadow: var(--shadow-md); }

.p-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
}
.p-art.teal { background: radial-gradient(120% 120% at 50% 0%, #e6f4f0 0%, #cfe8e1 100%); }
.p-art.amber { background: radial-gradient(120% 120% at 50% 0%, #fbf0da 0%, #f3e0bb 100%); }
.p-art.blue { background: radial-gradient(120% 120% at 50% 0%, #e4f0f8 0%, #cfe3f0 100%); }

.p-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--sea-deep);
  font: 600 11px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.mini-machine {
  position: relative;
  width: 96px; height: 168px;
  border-radius: 16px 16px 20px 20px;
  background: linear-gradient(165deg, #ffffff, #e8f0eb);
  box-shadow: 0 18px 34px rgba(19, 42, 38, .22);
  transition: transform .4s var(--ease-pop);
}
.p-card:hover .mini-machine { transform: translateY(-8px) rotate(-2deg); }
.mini-machine::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 68px; height: 16px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--ink), #16423c);
}
.mini-machine::after {
  content: '';
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 46px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0b3d38, #072a26);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35);
}
.p-card:hover .mini-machine::after {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35), 0 0 16px rgba(13, 148, 136, .5);
}
.mini-machine .mini-screen {
  position: absolute;
  top: 32px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 42px;
  border-radius: 7px;
  background: radial-gradient(circle at 50% 45%, rgba(80, 230, 205, .35), transparent 70%), #0a352f;
  z-index: 1;
}

.p-view {
  position: absolute;
  right: 16px; bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
  font: 600 11px "SFMono-Regular", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.p-card:hover .p-view { opacity: 1; transform: none; }

.p-copy { padding: 22px 24px 24px; }
.p-copy small {
  color: var(--sea-deep);
  font: 600 11px "SFMono-Regular", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.p-copy h3 {
  margin: 6px 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.p-copy p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}
.p-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}
.p-feats li {
  list-style: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sea-wash);
  color: var(--sea-deep);
  font-size: 12px;
  font-weight: 600;
}
.p-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sea-deep);
  font-weight: 700;
  font-size: 14px;
}
.p-link i { font-style: normal; transition: transform .25s var(--ease); }
.p-card:hover .p-link i { transform: translateX(5px); }

/* ============================================================
   How it works
   ============================================================ */
.how-section { background: var(--paper); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.how-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .3s ease;
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--sea-wash);
  color: var(--sea-deep);
  font: 600 15px "SFMono-Regular", ui-monospace, monospace;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease-pop);
}
.how-card:hover .how-num { background: var(--sea); color: #fff; transform: rotate(-6deg) scale(1.05); }
.how-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}
.how-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ============================================================
   Quote band
   ============================================================ */
.quote-band {
  position: relative;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(13, 148, 136, .10), transparent 60%),
    var(--paper-2);
  overflow: hidden;
}
.quote-band blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.quote-band blockquote em {
  font-style: italic;
  color: var(--sea-deep);
}
.quote-band cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  color: var(--ink-faint);
  font-size: 14px;
}
.quote-band cite::before {
  content: '— ';
  color: var(--sun);
}
.quote-band .stars { color: var(--sun); font-size: 15px; letter-spacing: 4px; }

/* ============================================================
   Contact
   ============================================================ */
.contact-section { background: var(--sea-deep); color: #eafffb; }
.contact-section .eyebrow { color: var(--sun); }
.contact-section .section-head h2 { color: #fff; }
.contact-section .section-head h2 em { color: var(--sun); }
.contact-section .section-head p { color: rgba(234, 255, 251, .75); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .3s ease, transform .3s var(--ease);
}
.contact-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.contact-card .cc-label {
  display: block;
  font: 600 11px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 10px;
}
.contact-card .cc-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.contact-card .cc-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(234, 255, 251, .65);
}
.contact-card a.cc-value:hover { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 40px clamp(20px, 5vw, 64px);
  background: #08231f;
  color: rgba(234, 255, 251, .65);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #58dccb; }
.site-footer p { font-size: 13px; }
.site-footer a:hover { color: #fff; }

/* ============================================================
   Product detail dialog (public)
   ============================================================ */
dialog {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  padding: 0;
  margin: auto;
  width: min(720px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
dialog::backdrop {
  background: rgba(12, 35, 31, .55);
  backdrop-filter: blur(4px);
}
dialog[open] { animation: dialogIn .32s var(--ease); }

.product-detail { text-align: center; }
.product-detail .detail-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 26px 6px;
}
.product-detail .detail-copy { position: relative; padding: 18px 34px 34px; }
.product-detail .detail-copy .eyebrow { justify-content: center; }
.product-detail .detail-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  margin: 4px 0 12px;
}
.product-detail .detail-copy > p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.product-detail .detail-copy h3 {
  margin: 22px 0 10px;
  font-size: 13px;
  color: var(--sea-deep);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.product-detail .detail-copy ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.product-detail .detail-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 14px;
}
.product-detail .detail-copy li::before {
  content: '✓';
  color: var(--sea);
  font-weight: 800;
}

.close-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 18px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.close-modal:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }
.detail-copy .close-modal { position: absolute; top: 14px; right: 14px; }

.detail-visual.teal { background: linear-gradient(160deg, #e0f3ee, #cbe7e0); }
.detail-visual.amber { background: linear-gradient(160deg, #faeeda, #f1dbb4); }
.detail-visual.blue { background: linear-gradient(160deg, #e1eef7, #cbe0ee); }
.detail-visual .big-machine {
  width: 140px; height: 220px;
  border-radius: 20px 20px 26px 26px;
  background: linear-gradient(165deg, #ffffff, #e4ede8);
  box-shadow: 0 22px 40px rgba(19, 42, 38, .25);
  position: relative;
}
.detail-visual .big-machine::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 20px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, var(--ink), #16423c);
}
.detail-visual .big-machine::after {
  content: '';
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 62px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(80, 230, 205, .4), transparent 75%), #0a352f;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35);
}

.gallery-stage { position: relative; width: 100%; }
.gallery-main {
  width: 100%;
  height: min(50vh, 380px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav:hover { background: var(--sea); color: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gallery-thumb {
  width: 54px; height: 54px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
  transition: border-color .2s ease, transform .2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-wash); }

/* ============================================================
   Login page
   ============================================================ */
.login-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  background:
    radial-gradient(100% 70% at 15% 10%, rgba(13, 148, 136, .12), transparent 55%),
    radial-gradient(80% 60% at 90% 90%, rgba(74, 159, 212, .12), transparent 55%),
    var(--paper);
  overflow: hidden;
}
.login-logo {
  position: fixed;
  top: 28px; left: 40px;
  z-index: 5;
}
.login-card {
  position: relative;
  width: min(460px, 100%);
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: cardIn .5s var(--ease);
}
.login-card h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.login-card > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 28px;
}
.login-card form { display: grid; gap: 18px; }

.login-card label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
  font: 600 11px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-card input,
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.login-card input::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder { color: var(--ink-faint); }
.login-card input:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 4px var(--sea-wash);
  background: var(--card);
}
.login-card input:hover,
.form-grid input:hover,
.form-grid textarea:hover,
.form-grid select:hover { border-color: var(--line-strong); }

.login-card .btn-primary { width: 100%; margin-top: 6px; padding: 15px; font-size: 15px; }
.login-card small {
  display: block;
  margin-top: 26px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.login-card small code {
  background: var(--sea-wash);
  color: var(--sea-deep);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
}
.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-error::before {
  content: '!';
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--danger-wash);
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
}

/* ============================================================
   Service desk — dashboard
   ============================================================ */
.dashboard {
  min-height: 100vh;
  padding: 40px clamp(20px, 5vw, 64px) 80px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(74, 159, 212, .07), transparent 55%),
    var(--paper);
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 0 24px;
  border-bottom: 1px solid var(--line);
}
.dash-top .btn-ghost { margin-left: -14px; }
.dash-brand {
  color: var(--ink-faint);
  font: 600 12px "SFMono-Regular", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dash-brand b { color: var(--sea-deep); }
.dash-top .btn-group { display: flex; gap: 10px; }
.dash-intro { margin: 48px 0 36px; }
.dash-intro h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 50px);
  letter-spacing: -0.02em;
}
.dash-intro em { font-style: italic; color: var(--sea); }
.dash-intro > p:last-child { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.stat {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sea), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.stat:hover::before { transform: scaleX(1); }
.stat small {
  display: block;
  color: var(--ink-faint);
  font: 600 10px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span { color: var(--ink-soft); font-size: 12.5px; }
.stat.warning::before { background: linear-gradient(90deg, var(--danger), var(--sun)); }
.stat.warning strong { color: var(--danger); }
.stat.active { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-wash), var(--shadow-sm); }
.stat.active::before { transform: scaleX(1); }
.stat.revenue::before { background: linear-gradient(90deg, var(--sun), var(--sea)); }
.stat.revenue strong { color: var(--sea-deep); }

.client-panel,
.product-admin {
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 20px; }
.panel-head p { margin: 4px 0 0; color: var(--ink-faint); font-size: 13px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-faint);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within { border-color: var(--sea); box-shadow: 0 0 0 4px var(--sea-wash); }
.search input {
  width: 230px;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder { color: var(--ink-faint); }
.filters select {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.filters select:hover { border-color: var(--line-strong); }
.filters select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px var(--sea-wash); }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 840px; border-collapse: collapse; }
th {
  padding: 14px 20px;
  color: var(--ink-faint);
  background: var(--paper-2);
  text-align: left;
  font: 600 10px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
  transition: background .2s ease;
}
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: var(--sea-wash); }
tbody tr:hover td { background: transparent; }
.client-name { color: var(--ink); font-weight: 700; }
.client-name small { display: block; margin-top: 3px; color: var(--ink-faint); font-weight: 500; font-size: 11.5px; }
.address-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-link { color: var(--sea-deep); text-decoration: none; font-weight: 600; }
.phone-link:hover { text-decoration: underline; }
.map-link { color: var(--sea-deep); cursor: pointer; }
.map-link:hover { text-decoration: underline; }
.product-cell { color: var(--sea-deep); font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 600 10px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.status:not(.late) { color: var(--sea-deep); background: var(--sea-wash); }
.status:not(.late)::before { background: var(--sea); box-shadow: 0 0 0 3px rgba(13, 148, 136, .2); }
.status.late { color: var(--danger); background: var(--danger-wash); }
.status.late::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(179, 64, 46, .15); }

.service-btn,
.danger-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sea-deep);
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.service-btn:hover {
  border-color: var(--sea);
  background: var(--sea);
  color: #fff;
  transform: translateY(-1px);
}
.danger-btn { margin-left: 8px; color: var(--danger); border-color: var(--danger); background: var(--danger-wash); }
.danger-btn:hover { background: var(--danger); color: #fff; border-color: var(--danger); transform: translateY(-1px); }

.admin-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 22px 24px;
}
.admin-products > div {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .2s ease;
}
.admin-products > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.admin-products b { font-size: 15px; color: var(--ink); }
.admin-products span { display: block; margin-top: 6px; color: var(--ink-faint); font-size: 12.5px; }
.admin-products .service-btn { margin-top: 16px; width: 100%; justify-content: center; }
.product-admin-actions { display: flex; gap: 8px; margin-top: 16px; }
.product-admin-actions .service-btn { margin: 0; flex: 1; justify-content: center; }

#engineerList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 22px 24px;
}.engineer-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.engineer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.engineer-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.engineer-info b { color: var(--ink); font-size: 15px; }
.engineer-info > span { color: var(--ink-faint); font-size: 12.5px; }
.engineer-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.engineer-stats span { color: var(--ink-faint); font: 600 10px "SFMono-Regular", ui-monospace, monospace; }
.engineer-stats b { font-size: 12px; color: var(--ink); }
.engineer-actions { display: flex; gap: 8px; }
.engineer-actions .service-btn { flex: 1; justify-content: center; margin: 0; padding: 10px 8px; font-size: 11.5px; white-space: nowrap; }
.edit-btn { margin-left: 8px; color: #9a6a12; border-color: var(--sun); background: var(--sun-wash); }
.edit-btn:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }

/* website content settings form */
.settings-form {
  padding: 26px 24px 22px;
  display: grid;
  gap: 20px;
  max-width: 1100px;
}
.settings-form fieldset {
  padding: 18px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.settings-form legend {
  padding: 0 10px;
  color: var(--sea-deep);
  font: 700 11px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.settings-form .form-grid { margin: 16px 0 0; }
.settings-form input[name="pageTitle"] { font-weight: 600; }
.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 2px;
}
.settings-save-bar .btn { padding: 14px 26px; }
#settingsStatus {
  margin-right: auto;
  color: var(--sea-deep);
  font-size: 13px;
  font-weight: 600;
}
#settingsStatus::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--sun);
}

dialog form { padding: 30px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.modal-heading h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.form-grid textarea { min-height: 84px; resize: vertical; }
.form-grid small { display: block; margin-top: 6px; color: var(--ink-faint); font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-grid label > span > small { display: inline; margin: 0; }
.wide { grid-column: span 2; }
.location-field { position: relative; }
.location-field button {
  padding: 8px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--sea-deep);
  background: var(--sea-wash);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.location-field button:hover { background: var(--sea); color: #fff; border-style: solid; }

.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.photo-preview-item {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-item button {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 35, 31, .75);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.photo-preview-item button:hover { background: var(--danger); }

.form-submit { width: 100%; margin-top: 6px; padding: 15px; font-size: 15px; }

/* client detail */
.client-detail { margin: 22px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-grid div { padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.detail-grid .wide-detail { grid-column: span 2; }
.detail-grid small {
  display: block;
  color: var(--ink-faint);
  font: 600 10px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.detail-grid b { color: var(--ink); font-size: 14px; font-weight: 600; word-break: break-word; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-actions .service-btn { padding: 11px 18px; font-size: 12.5px; white-space: nowrap; }

/* service history */
.history-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.history-section h3 {
  margin: 0 0 14px;
  color: var(--ink-faint);
  font: 700 11px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.history-list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.history-item { padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.history-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.history-type {
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 10px "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.history-type.service { color: var(--sea-deep); background: var(--sea-wash); }
.history-type.filter { color: #9a6a12; background: var(--sun-wash); }
.history-head b { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.history-amount { margin-left: auto; color: var(--sea-deep); font-size: 14px; font-weight: 800; }
.history-item p { margin: 9px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.6; }
.history-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid var(--sea-wash);
  border-radius: var(--radius);
  background: var(--sea-wash);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}
.history-total b { color: var(--sea-deep); font-size: 16px; }
.empty-history {
  margin: 0;
  padding: 18px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-size: 12.5px;
  text-align: center;
}

/* product dialog in dashboard */
#productDialog .detail-visual,
#productFormDialog .detail-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: rotate(-45deg) translateY(0); } 50% { transform: rotate(-45deg) translateY(-3px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes drip {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  80% { opacity: 1; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(20px); }
}
@keyframes fillUp { 0% { height: 22%; } 50% { height: 78%; } 100% { height: 22%; } }
@keyframes fillCup { 0% { height: 18%; } 50% { height: 82%; } 100% { height: 18%; } }
@keyframes waveShift { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollX { to { transform: translateX(-50%); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 130px; }
  .hero-copy { max-width: 640px; margin: 0 auto; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .trust-row, .section-head.center .eyebrow { justify-content: center; }
  .eyebrow { justify-content: center; }
  .hero-visual { min-height: 480px; margin-top: 20px; }
  .product-detail .detail-copy { padding: 16px 24px 28px; }
}

@media (max-width: 760px) {
  .site-header { padding: 14px 20px; }
  .site-header.scrolled { padding: 10px 20px; }
  .site-nav { display: none; }
  .header-phone { display: none; }
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: clamp(38px, 10vw, 56px); }
  .trust-row { gap: 22px; }
  .hero-visual { min-height: 400px; }
  .chip-c { display: none; }
  .section { padding: 60px 20px; }
  .marquee span { font-size: 11px; gap: 28px; }
  .dashboard { padding: 24px 16px 60px; }
  .dash-brand { display: none; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: span 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .wide-detail { grid-column: span 1; }
  .login-logo { position: static; margin-bottom: 28px; }
  .login-card { padding: 32px 24px; }
  dialog form { padding: 22px; }
  dialog { width: calc(100vw - 24px); max-width: 100vw; }
  .product-detail .detail-copy { padding: 26px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
