/* EVERFORT — dark direction (revision A): near-black base, product in studio
   light, big type, lots of air. One accent: teal. No glow, no gradients for show,
   no engineering grid. */

@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 {
  --bg: #0a0a0b;
  --surface: #141416;      /* brand ink, used as the raised surface */
  --surface-2: #1b1b1e;
  --paper: #f6f6f3;        /* brand paper, now the text color */
  --teal: #14A096;         /* accent; 6.4:1 on --bg, fine for small text */
  --line: #26262a;
  --mute: #a3a3a8;
  --body: #c9c9cd;
  --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; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  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, .35); }
:focus-visible { outline: 2px solid var(--teal); 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(--paper); color: var(--bg); 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(10, 10, 11, .72);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  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: var(--mute); padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--paper); }
@media (max-width: 599px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.hero-in { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: 0.9fr 1.1fr; } }

.kicker { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
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(--paper);
  background: var(--surface); border: 1px solid #333338; border-radius: 999px;
  padding: 14px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.signup input[type=email]::placeholder { color: #7c7c82; }
.signup input[type=email]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 160, 150, .22); }
.signup input[aria-invalid=true] { border-color: #e5484d; }
.signup button {
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
  color: var(--bg); background: var(--paper); border: 0; border-radius: 999px;
  padding: 14px 22px; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.signup button:hover { background: #ffffff; }
.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); font-weight: 500; }
.form-msg.error { color: #ff6b70; }
.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; }
}

/* product film: the poster paints first, the video takes over silently */
.stage { position: relative; margin: 0; width: 100%; }
.hero-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--bg); border-radius: 18px; object-fit: cover;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.stage figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .16em; color: var(--mute); text-align: right; }

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; }
model-viewer:not(:defined) > :not([slot=poster]) { 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(--surface); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.card:hover { border-color: #3a3a40; background: var(--surface-2); transform: translateY(-3px); }
.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-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.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); }
.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(--surface); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.steps-3 { grid-template-columns: repeat(3, 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); }
.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(--surface); 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);
  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(--paper); 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); }
.legal a { color: var(--paper); text-underline-offset: 3px; }

/* 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; }
}
