/* EVERFORT — direction B1 "Engineering": light paper, fine grid, thin callout
   lines, mono micro-labels. One accent: teal. No glow, no gradients for show. */

@font-face {
  font-family: Outfit;
  src: url(/assets/fonts/outfit-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f6f6f3;
  --ink: #141416;
  --teal: #14A096;       /* accents and large text only */
  --teal-ink: #0B6F67;   /* small teal text: 5.6:1 on paper */
  --line: #dcdcd6;
  --mute: #6a6c71;
  --body: #4c4e53;
  --card: #ffffff;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 Outfit, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: rgba(20, 160, 150, .22); }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.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;
}
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 246, 243, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { width: 118px; height: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: #3c3e42; padding: 6px 0; }
.nav a:hover { color: var(--ink); }
@media (max-width: 599px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 20, 22, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 22, .055) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 68% 50%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 75% at 68% 50%, #000 30%, transparent 78%);
}
.hero-in { position: relative; display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 1200px) { .hero-in { grid-template-columns: 1fr 1.05fr; } }

.kicker { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); }
h1 {
  font-size: clamp(3.1rem, 8.2vw, 6.4rem);
  line-height: .96; letter-spacing: -0.04em;
  margin: 18px 0 22px;
}
.lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--body); max-width: 34ch; line-height: 1.5; }

.signup { display: flex; gap: 8px; margin-top: 32px; max-width: 460px; }
.signup input[type=email] {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid #cfcfc9; border-radius: 999px;
  padding: 14px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.signup input[type=email]::placeholder { color: #8b8d92; }
.signup input[type=email]:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(20, 160, 150, .18); }
.signup input[aria-invalid=true] { border-color: #b3261e; }
.signup button {
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  color: #fff; background: var(--ink); border: 0; border-radius: 999px;
  padding: 14px 22px; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.signup button:hover { background: #2b2b30; }
.signup button:active { transform: scale(.98); }
.signup button:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; margin-top: 12px; font-size: 15px; color: var(--teal-ink); font-weight: 500; }
.form-msg.error { color: #b3261e; }
.form-note { font-size: 13.5px; color: var(--mute); }
.form-note a { color: var(--mute); text-underline-offset: 3px; }
@media (max-width: 479px) {
  .signup { flex-direction: column; }
  .signup button { padding: 15px 22px; }
}

/* 3D stage with engineering frame */
.stage { position: relative; margin: 0; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: center; }
.stage::before, .stage::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: #b9bbbf; border-style: solid;
}
.stage::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.stage::after { right: 0; bottom: 28px; border-width: 0 1px 1px 0; }
.stage-label { position: absolute; left: 26px; top: 6px; z-index: 2; font-size: 11px; letter-spacing: .18em; color: var(--mute); }
.stage figcaption { position: absolute; right: 26px; bottom: 0; font-size: 11px; letter-spacing: .16em; color: var(--mute); }
/* wider than the frame so callout labels are not clipped by the canvas */
#hero-3d { position: absolute; top: 0; left: -16%; width: 132%; height: calc(100% - 28px); }
/* the poster is a real <img> in the HTML, so the first paint does not wait
   for the 3D library; model-viewer swaps it for the model once loaded */
.hero-still, .card-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
model-viewer:not(:defined) > :not([slot=poster]) { display: none; }
/* 1px larger before model-viewer takes over, so the handover is never a bigger
   paint of the same image (which would be counted as a late LCP) */
model-viewer:not(:defined) > .hero-still { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }

model-viewer {
  --poster-color: transparent;
  --progress-bar-color: var(--teal);
  --progress-bar-height: 2px;
  background: transparent;
}
model-viewer::part(default-progress-bar) { background-color: var(--teal); height: 2px; }

/* callouts: dot + hairline + mono label; hidden when the face turns away */
.hotspot {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--teal-ink);
  box-shadow: 0 0 0 3px rgba(246, 246, 243, .7);
  transition: opacity .35s;
  pointer-events: none;
}
.hotspot:not([data-visible]) { opacity: 0; }
.hs-label {
  position: absolute; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 11.5px; letter-spacing: .04em; color: #2b2d31;
  background: rgba(246, 246, 243, .92); padding: 3px 7px; border-radius: 4px;
}
.hs-label b { color: var(--teal-ink); font-weight: 500; margin-right: 4px; }
.hs-label::before { content: ""; position: absolute; top: 50%; width: 36px; height: 1px; background: #8f9297; }
.hs-right .hs-label { left: 46px; }
.hs-right .hs-label::before { right: 100%; }
.hs-left .hs-label { right: 46px; }
.hs-left .hs-label::before { left: 100%; }
@media (max-width: 639px) { .hotspot, .stage-label { display: none; } }

/* ---------- sections ---------- */
.band { padding: clamp(72px, 10vw, 128px) 0; }
.band-rule { border-top: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; margin: 14px 0 16px; }
h2.kicker { font-size: 12px; line-height: 1.55; letter-spacing: .18em; margin: 0; }
.sub { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--body); max-width: 52ch; }

/* products */
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .products { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(5, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 14px 16px 18px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: #c4c5c0; transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20, 20, 22, .35); }
.card .idx { font-size: 11px; color: var(--mute); letter-spacing: .12em; }
.card model-viewer { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; height: auto; margin: 4px 0 10px; }
.card h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.soon { margin-top: 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.soon::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 7px; vertical-align: 1px; }
.disclaimer { margin-top: 18px; font-size: 12px; letter-spacing: .06em; color: var(--mute); }

/* standard */
.steps { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .steps li { border-bottom: 0; border-right: 1px solid var(--line); }
  .steps li:last-child { border-right: 0; }
}
.steps .n { display: block; font-size: 12px; letter-spacing: .14em; color: var(--teal-ink); }
.steps h3 { font-size: 20px; font-weight: 500; margin: 16px 0 8px; }
.steps p { color: var(--body); font-size: 15.5px; }

/* warranty + support */
.pair { display: grid; gap: 16px; }
@media (min-width: 800px) { .pair { grid-template-columns: 1fr 1fr; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3.4vw, 36px); }
.box h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.box p { color: var(--body); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--teal-ink);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--body); max-width: 56ch; }
.contact { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.contact .mail { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; word-break: break-word; }
.contact .mail:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 12.5px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* legal pages */
.legal { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 12px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--body); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal .meta { font-size: 13px; color: var(--mute); }

/* scroll reveal: site.js only hides elements that start below the fold */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal.pre { opacity: 1; transform: none; }
}
