@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

:root {
  --ink: #f2f2f0;
  --ink-dim: #a5a3ac;
  --ink-faint: #83818e;      /* 4.6:1 on --bg */
  --bg: #1a191f;             /* charcoal, not black */
  --line: #2e2d35;           /* hairlines that only separate */
  --line-strong: #686577;    /* anything that outlines a control: 3.1:1 on --bg */
  --violet: #8c7bff;
  --danger: #ff8b8b;

  /* Six sizes, no more. Everything on the page picks one of these. */
  --t-xs: 12.5px;
  --t-sm: 14px;
  --t-base: 16px;
  --t-lg: 19px;
  --t-h2: clamp(24px, 3vw, 30px);
  --t-h1: clamp(30px, 5vw, 44px);

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --nav-h: 64px;
  --gap: 96px;               /* the one vertical rhythm between sections */
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

html { scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html, body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body { padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -150%);
  z-index: 100;
  background: var(--violet);
  color: var(--bg);
  padding: 10px 18px;
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); }

/* nav — the one remaining rule on the page, because it has a job:
   marking where the sticky bar ends and the content begins. */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 25, 31, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--violet); }
.brand svg { width: 20px; height: 20px; flex: none; }
.brand span { font-weight: 700; font-size: var(--t-base); letter-spacing: -0.01em; color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link, .nav-cta {
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-link:hover, .nav-cta:hover { color: var(--ink); }
.nav-cta { color: var(--ink); }

.langsw { display: flex; gap: 10px; font-family: var(--mono); font-size: var(--t-xs); }
.langsw a { color: var(--ink-faint); text-decoration: none; }
.langsw a.active { color: var(--violet); }
.langsw a:not(.active):hover { color: var(--ink); }

/* hero */
.hero { padding: 104px 0 var(--gap); text-align: center; }
.mark { width: 44px; height: 44px; margin: 0 auto 30px; display: block; }
.mark .arm { stroke: var(--violet); stroke-width: 6.5; stroke-linecap: round; fill: none; }

h1 {
  font-size: var(--t-h1);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
}
p.sub {
  font-size: var(--t-base);
  color: var(--ink-dim);
  max-width: 44ch;
  margin: 0 auto 36px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--violet);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--t-sm);
  font-family: inherit;
  border: 1px solid var(--violet);
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover:not(:disabled) { background: #a597ff; }
.btn:disabled { opacity: .5; cursor: progress; }

section { padding: 0 0 var(--gap); }
h2.section-title {
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 56px;
}
.section-intro {
  font-size: var(--t-sm);
  color: var(--ink-dim);
  max-width: 52ch;
  margin: -40px auto 48px;
  text-align: center;
}

/* ordering process — numbers carry it now, no connector lines or dots.
   Four abreast needs more room than the reading measure allows. */
#process .wrap { max-width: 920px; }
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step-num { font-family: var(--mono); font-size: var(--t-xs); color: var(--violet); display: block; margin-bottom: 14px; }
.step h3 { font-size: var(--t-sm); font-weight: 700; margin: 0 0 8px; }
.step p { font-size: var(--t-sm); color: var(--ink-dim); margin: 0; }

/* enquiry — no panel, the form is just the form */
.panel { max-width: 520px; margin: 0 auto; }
.panel h2 { font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; text-align: center; }
.panel-intro { color: var(--ink-dim); font-size: var(--t-sm); margin: 0 auto 44px; text-align: center; }
.panel-cta { margin: 28px 0 0; text-align: center; }

.field { margin-bottom: 32px; }
.field label, .field .label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 500;
  font-family: var(--mono);
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.field-hint { font-size: var(--t-xs); color: var(--ink-faint); margin: -4px 0 12px; }
.field-err { font-size: var(--t-xs); color: var(--danger); margin: 8px 0 0; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--t-base);
  font-weight: 500;
  padding: 6px 0 9px;
  line-height: 1.5;
}
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, textarea:hover, input:focus, textarea:focus { border-bottom-color: var(--violet); }
[aria-invalid="true"] { border-bottom-color: var(--danger); }

input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.file-btn {
  display: inline-block;
  border-bottom: 1px solid var(--line-strong);
  padding: 6px 0 9px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.file-btn:hover { color: var(--ink); border-bottom-color: var(--violet); }
input[type="file"]:focus-visible + .file-btn { outline: 2px solid var(--violet); outline-offset: 3px; }

.file-list { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--mono); font-size: var(--t-xs); }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: var(--ink-dim); }
.file-list .file-none { color: var(--ink-faint); }
.file-list .file-size { color: var(--ink-faint); margin-left: auto; }
.file-list button {
  background: none; border: none; padding: 0;
  color: var(--ink-faint);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.file-list button:hover { color: var(--ink); }

.form-status { font-size: var(--t-sm); color: var(--ink-dim); margin: 16px 0 0; min-height: 1.4em; }
.form-status.error { color: var(--danger); }
.form-privacy { font-size: var(--t-xs); color: var(--ink-faint); margin: 28px 0 0; }
.form-privacy a { color: var(--ink-dim); }

.form-done { text-align: center; padding: 32px 0; }
.form-done h3 { font-size: var(--t-lg); margin: 0 0 12px; }
.form-done p { color: var(--ink-dim); font-size: var(--t-sm); margin: 0; }

.or-email {
  text-align: center;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-faint);
  margin: 48px 0 0;
}
.or-email a { color: var(--ink-dim); }

/* faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 48px; }
.faq-item h3 { font-size: var(--t-sm); font-weight: 700; margin: 0 0 8px; }
.faq-item p { font-size: var(--t-sm); color: var(--ink-dim); margin: 0; }
.faq-wide { grid-column: 1 / -1; }
.faq-wide .prose-table { margin-top: 16px; }
.faq-wide .prose-table td:first-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; }

/* reviews */
.reviews-note {
  font-size: var(--t-xs);
  color: var(--ink-faint);
  text-align: center;
  max-width: 56ch;
  margin: -40px auto 48px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
  gap: 40px;
}
.review { margin: 0; }
.stars { color: var(--violet); display: block; margin-bottom: 16px; line-height: 0; }
.review blockquote { margin: 0 0 14px; }
.review blockquote p { font-size: var(--t-base); color: var(--ink); font-weight: 500; margin: 0; }
.review figcaption {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.reviews-link { text-align: center; margin: 48px 0 0; font-size: var(--t-sm); }
.reviews-link a { color: var(--ink-dim); }

/* privacy statement */
.prose { padding: 72px 0 var(--gap); }
.prose h1 { font-size: var(--t-h2); margin: 0 0 10px; }
.prose h2 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.015em; margin: 48px 0 14px; }
.prose p, .prose li { font-size: var(--t-sm); color: var(--ink-dim); font-weight: 500; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose-meta { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-faint); margin: 0 0 40px; }
.prose-back { margin-top: 56px; }

.prose-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: var(--t-sm); }
.prose-table th, .prose-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.prose-table th { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-faint); font-weight: 500; }
.prose-table td { color: var(--ink-dim); font-weight: 500; }

/* footer */
footer { padding: 0 0 56px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--violet); }
.foot-brand svg { width: 14px; height: 14px; flex: none; }
.foot-brand span { font-weight: 700; font-size: var(--t-xs); color: var(--ink-dim); }
.foot-meta {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  justify-content: flex-end;
}
.foot-meta a { color: var(--ink-dim); }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gap: 72px; }
  .hero { padding: 72px 0 var(--gap); }
  footer .wrap { justify-content: center; }
  .foot-meta { justify-content: center; text-align: center; }
  .prose-table, .prose-table tbody, .prose-table tr, .prose-table td { display: block; width: 100%; }
  .prose-table thead { display: none; }
  .prose-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .prose-table td { border: none; padding: 2px 0; }
  .prose-table td:first-child { color: var(--ink); font-weight: 700; }
}
@media (max-width: 460px) {
  .process { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .brand span, .nav-link { display: none; }
  .nav-right { gap: 16px; }
  .btn { width: 100%; }
}
.prose-note { font-size: var(--t-xs); color: var(--ink-faint); margin: -28px 0 36px; }
