@font-face {
  font-family: "D-DIN";
  src: url("./fonts/d-din/D-DIN.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "D-DIN";
  src: url("./fonts/d-din/D-DIN-Bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

/* Same tokens as the loader and paint UI. One product, one look. */
:root {
  color-scheme: dark;

  --background: #0d0d0f;
  --surface: #16171a;
  --surface-mid: #1e2024;
  --surface-high: #26282e;
  --field-background: #101114;
  --hairline: #23252a;
  --hairline-strong: #33363d;
  --text: #e9eaee;
  --muted: #8b8f98;
  --accent: #5b6cf0;
  --accent-hover: #6d7cf5;
  --accent-text: #ffffff;
  --radius: 8px;
  --radius-large: 12px;
  --error: #ed5f5f;
  --status-ok: #4fd16a;
  --font-ui: "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font: 14px/20px var(--font-ui);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* --- Chrome -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand:hover { text-decoration: none; color: inherit; }

.mark { width: 40px; height: 40px; flex: 0 0 auto; }

.header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wordmark {
  font: 700 15px/18px "D-DIN", var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tagline { color: var(--muted); font-size: 12px; }

#nav {
  display: flex;
  gap: 4px 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#nav a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

#nav a.active, #nav a:hover { color: var(--text); text-decoration: none; }

/* The last link before sign-in state is the one action every visitor who
   is not yet a customer should take. Giving it a filled pill instead of
   plain text is what turns a link list into a nav with a job to do. */
#nav a.nav-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#nav a.nav-cta:hover { background: var(--accent-hover); color: var(--accent-text); }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.narrow { max-width: 26rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* --- Type ---------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 10px;
  font: 600 11px/14px var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 10px;
  font: 700 clamp(28px, 4vw, 40px)/1.1 "D-DIN", var(--font-ui);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 8px;
  font: 600 11px/14px var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

h2.section-title {
  margin: 0 0 8px;
  font: 700 20px/24px "D-DIN", var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

h3 {
  margin: 0 0 4px;
  font: 600 14px/18px var(--font-ui);
  letter-spacing: 0.01em;
  color: var(--text);
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 42rem;
}

.lead strong { color: var(--text); font-weight: 600; }

.muted { color: var(--muted); font-size: 12px; }
.fineprint { margin: 14px 0 0; color: var(--muted); font-size: 11px; letter-spacing: 0.02em; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.trust-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-ok);
  flex: 0 0 auto;
}
.mono { font-family: var(--font-mono); font-size: 12px; }
.wrap { overflow-wrap: anywhere; }
.spaced { margin-top: 1.5rem; }

.clamp {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section { margin-top: 3rem; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 20px 0 12px;
}

.hero-copy { min-width: 0; }

.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-shot { margin: 0; }

/* The mascot is a cut-out with no frame, so a soft accent glow behind it stops
   it floating in an empty column. */
.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mascot::before {
  content: "";
  position: absolute;
  inset: 12% 6%;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent) 26%, transparent),
    transparent 68%);
  filter: blur(6px);
}

.hero-mascot img {
  position: relative;
  width: 100%;
  max-width: 380px;
}

/* --- Screenshots --------------------------------------------------------- */

.shot {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.65);
}

.shot img { width: 100%; }

.shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

/* --- Menu preview -------------------------------------------------------- */

.preview {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.7);
}

.preview-tabs {
  margin: 0;
  padding: 12px;
  gap: 6px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-mid);
}

.preview .shot {
  border: 0;
  border-radius: 0;
  background: var(--background);
}

.preview .shot img {
  /* Reserve the frame so switching tabs cannot shift the page. */
  aspect-ratio: 960 / 640;
  object-fit: contain;
}

.preview-copy {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--hairline);
}

.preview-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 48rem;
}

/* --- Cards --------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.feature, .card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.6);
}

.feature {
  transition: border-color 150ms ease, transform 150ms ease;
}

.feature:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card.ok { border-color: color-mix(in srgb, var(--status-ok) 35%, var(--hairline)); }
.card.none { border-color: var(--hairline); }
.card > p:last-child { margin-bottom: 0; }
.card-title { margin: 4px 0 0; }

/* --- Pricing ------------------------------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.6);
}

.price.featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--hairline));
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface)),
    var(--surface));
  box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--accent) 45%, transparent);
}

.price-tag {
  position: absolute;
  top: -9px;
  left: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: 600 10px/16px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-term {
  color: var(--muted);
  font: 600 11px/14px var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-amount {
  font: 700 34px/38px "D-DIN", var(--font-ui);
  letter-spacing: 0.02em;
  color: var(--text);
}

.price-per { color: var(--muted); font-size: 12px; }
.price p { margin: 8px 0 0; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 3rem;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--hairline));
  border-radius: var(--radius-large);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 18%, var(--surface)),
    var(--surface));
  box-shadow: 0 20px 44px -24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.cta .lead { margin: 0; }
.cta .hero-actions { margin: 0; }

/* --- Stats and pills ----------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 4px 0 12px;
}

.stats > div { min-width: 0; }

.stats dt {
  color: var(--muted);
  font: 600 10px/14px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.stats dd.big { font: 700 22px/26px "D-DIN", var(--font-ui); letter-spacing: 0.02em; }
.stats.wide { margin-bottom: 0; }

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-mid);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.pill.ok {
  background: color-mix(in srgb, var(--status-ok) 18%, var(--surface-mid));
  color: var(--status-ok);
}

.pill.bad {
  background: color-mix(in srgb, var(--error) 18%, var(--surface-mid));
  color: #f0a0a0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-mid);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* --- Steps --------------------------------------------------------------- */

.steps {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 44rem;
}

.steps li { margin-bottom: 0.5rem; color: var(--muted); line-height: 1.5; }
.steps strong { color: var(--text); font-weight: 600; }

/* --- Forms --------------------------------------------------------------- */

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

.hint { color: var(--muted); font-size: 11px; }

input, textarea, select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--field-background);
  color: var(--text);
  font: 14px/20px var(--font-ui);
  transition: border-color 120ms ease;
}

select { padding: 0 8px; }

textarea {
  height: auto;
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.form-row label { flex: 1 1 10rem; margin-bottom: 0; }
.form-row button { flex: 0 0 auto; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-mid);
  color: var(--text);
  font: 600 13px/16px var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}

button:hover:not(:disabled), .btn:hover {
  background: var(--surface-high);
  text-decoration: none;
  color: var(--text);
}

button.primary, .btn.primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.15) inset,
    0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}

button.primary:hover:not(:disabled), .btn.primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.15) inset,
    0 8px 20px -8px color-mix(in srgb, var(--accent) 85%, transparent);
}

button.secondary, .btn.secondary { background: var(--surface-mid); color: var(--text); }
button.danger { background: var(--error); color: #fff; }
button.danger:hover:not(:disabled) { background: #f07272; color: #fff; }
button:disabled { opacity: 0.45; cursor: default; }

.link-btn {
  height: auto;
  padding: 0 0 0 8px;
  background: none;
  color: var(--accent);
  font-size: 11px;
}

.link-btn:hover:not(:disabled) { background: none; color: var(--accent-hover); }

/* --- Messages ------------------------------------------------------------ */

.error, .success, .notice {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid var(--hairline);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
}

.error { border-left-color: var(--error); color: #f0a0a0; }
.success { border-left-color: var(--status-ok); }
.notice { border-left-color: var(--accent); }
.notice strong { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.success .muted, .success .mono { display: block; margin-top: 8px; }
.success pre { margin: 8px 0; }
.success > .btn { margin-top: 4px; }

pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--field-background);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- Lists -------------------------------------------------------------- */

.changelog-item {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.changelog-item h3 { margin: 0 0 4px; font-size: 15px; }
.changelog-item time { color: var(--muted); font-size: 12px; }
.changelog-item pre {
  margin-top: 10px;
  padding: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.reseller-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-large);
  background: var(--surface);
}

.reseller-row p { margin: 0; }
.reseller-row .btn { margin-top: 6px; }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tabs button { background: var(--surface-mid); color: var(--muted); }
.tabs button:hover:not(.active) { background: var(--surface-high); color: var(--text); }
.tabs button.active { background: var(--accent); color: var(--accent-text); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font: 600 11px/14px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td code { overflow-wrap: anywhere; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-shot { order: -1; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  #nav { justify-content: flex-start; }
  .container { padding: 24px 16px 56px; }
  .cta { flex-direction: column; align-items: flex-start; }
}
