@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: #82808d;      /* 5.1:1 on --bg, 4.8:1 on --bg-panel, 4.6:1 on --bg-input */
  --bg: #0a0a0c;
  --bg-panel: #121216;
  --bg-input: #17171c;
  --line: #232228;           /* decorative rules only */
  --line-strong: #5f5c6d;    /* borders that outline a control: 3.05:1 on --bg */
  --violet: #8c7bff;
  --danger: #ff8b8b;
  --nav-h: 64px;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

html {
  /* Anchors must clear the sticky nav, not just the notch. */
  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;
  -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: 2px;
  border-radius: 2px;
}

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

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

/* nav */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* The inset lives here, not on :root — putting it on both leaves a strip of
     scrolling content visible above the bar on notched devices. */
  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: 22px; height: 22px; flex: none; }
.brand span { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 18px; }

.langsw {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
}
.langsw a {
  color: var(--ink-faint);
  padding: 7px 11px;
  text-decoration: none;
  line-height: 1;
}
.langsw a.active { background: var(--violet); color: #0a0a0c; }
.langsw a:not(.active):hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 8px 15px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.nav-cta:hover { border-color: var(--violet); background: rgba(140, 123, 255, 0.08); }

/* hero */
.hero {
  padding: 84px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.mark { width: 52px; height: 52px; margin: 0 auto 26px; display: block; }
.mark .arm {
  stroke: var(--violet);
  stroke-width: 6.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw .9s cubic-bezier(.6, 0, .2, 1) forwards;
}
.mark .arm:nth-child(2) { animation-delay: .1s; }
.mark .arm:nth-child(3) { animation-delay: .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mark .arm { animation: none; stroke-dashoffset: 0; }
  .btn:hover { transform: none; }
}

h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.1; }
p.sub {
  font-size: 16.5px;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 auto 34px;
  line-height: 1.55;
  font-weight: 500;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  background: var(--violet);
  color: #0a0a0c;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--violet);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover:not(:disabled) { background: #a597ff; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
h2.section-title {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 0 48px;
}

/* ordering process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { position: relative; padding-top: 26px; }
.step-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; color: var(--violet); display: block; margin-bottom: 12px; }
.step-line { position: absolute; top: 7px; left: 0; width: 100%; height: 1px; background: var(--line); }
.step-line::before { content: ''; position: absolute; left: 0; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.step h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.005em; }
.step p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; margin: 0; }

/* enquiry panel */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px 40px;
}
.panel h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.015em; margin: 0 0 12px; text-align: center; }
.panel-intro { color: var(--ink-dim); font-size: 15px; max-width: 52ch; margin: 0 auto 34px; line-height: 1.55; text-align: center; }

.field { margin-bottom: 22px; }
.field label, .field .label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: -0.005em;
}
.field-hint { font-size: 12.5px; color: var(--ink-faint); margin: -3px 0 9px; line-height: 1.5; }
.field-err { font-size: 12.5px; color: var(--danger); margin: 7px 0 0; line-height: 1.5; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 13px;
  line-height: 1.5;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, textarea:hover { border-color: #7a7788; }
[aria-invalid="true"] { border-color: var(--danger); }

/* The native file input is replaced by its own label, but stays focusable. */
input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.file-btn {
  display: inline-block;
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.file-btn:hover { border-color: var(--violet); background: rgba(140, 123, 255, 0.06); }
input[type="file"]:focus-visible + .file-btn { outline: 2px solid var(--violet); outline-offset: 2px; }

.file-list { list-style: none; margin: 12px 0 0; padding: 0; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 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: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-faint);
  font: inherit;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
}
.file-list button:hover { color: var(--ink); border-color: var(--violet); }

.form-status { font-size: 13.5px; color: var(--ink-dim); margin: 14px 0 0; min-height: 1.2em; line-height: 1.5; }
.form-status.error { color: var(--danger); }
.form-privacy { font-size: 12.5px; color: var(--ink-faint); margin: 20px 0 0; line-height: 1.6; }
.form-privacy a { color: var(--ink-dim); }

.form-done { text-align: center; padding: 28px 0; }
.form-done h3 { font-size: 20px; margin: 0 0 10px; }
.form-done p { color: var(--ink-dim); font-size: 15px; margin: 0; line-height: 1.55; }

.or-email {
  text-align: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.or-email a { color: var(--ink-dim); }

/* privacy statement */
.prose { padding: 64px 0 40px; }
.prose .wrap { max-width: 720px; }
.prose h1 { font-size: clamp(28px, 4.4vw, 38px); margin: 0 0 8px; }
.prose h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 15px; line-height: 1.65; 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: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--ink-faint); margin: 0 0 32px; }
.prose-back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.prose-table th, .prose-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.prose-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 500; }
.prose-table td { color: var(--ink-dim); font-weight: 500; }

/* footer */
footer { padding: 32px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--violet); }
.foot-brand svg { width: 16px; height: 16px; flex: none; }
.foot-brand span { font-weight: 700; font-size: 13px; color: var(--ink-dim); }
.foot-meta {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: flex-end;
}
.foot-meta a { color: var(--ink-dim); }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 34px; }
}
@media (max-width: 720px) {
  .panel { padding: 36px 22px; }
  .hero { padding: 60px 0 56px; }
  section { padding: 56px 0; }
  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: 12px 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; }
  nav.top .wrap { height: 60px; }
  .wrap { padding: 0 20px; }
  .brand span { display: none; }
  .nav-right { gap: 12px; }
  .btn { width: 100%; }
}

/* ------------------------------------------------------------- reviews */

.reviews { padding: 72px 0; border-bottom: 1px solid var(--line); }
.reviews-note {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  max-width: 60ch;
  margin: -32px auto 40px;
  line-height: 1.6;
}
.review-grid {
  display: grid;
  /* Capped track width keeps the line length readable when there is only one
     review, and still fills the row once there are several. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
  gap: 20px;
}
.review {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  margin: 0;
}
.stars { color: var(--violet); display: block; margin-bottom: 14px; line-height: 0; }
.review blockquote { margin: 0 0 16px; }
.review blockquote p { font-size: 15px; line-height: 1.6; color: var(--ink); font-weight: 500; margin: 0; }
.review figcaption {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.reviews-link { text-align: center; margin: 32px 0 0; font-size: 13.5px; }
.reviews-link a { color: var(--ink-dim); }

@media (max-width: 720px) {
  .reviews { padding: 56px 0; }
}
@media (max-width: 460px) {
  .nav-link { display: none; }
}

/* ----------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; }
.faq-item h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em; margin: 0 0 7px; }
.faq-item p { font-size: 14.5px; line-height: 1.6; color: var(--ink-dim); font-weight: 500; margin: 0; }
.faq-wide { grid-column: 1 / -1; }
.faq-wide .prose-table { margin-top: 12px; }
.faq-wide .prose-table td:first-child { font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--ink); white-space: nowrap; }
