:root {
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --alt: #f8fafc;
  --sunken: #f1f5f9;
  --accent: #0e6e8c;
  --deep: #0a4763;
  --ok: #059669;
  --danger: #dc2626;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--alt);
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; }
h1 { font-size: 2.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

/* ---------------------------------------------------------------- chrome */

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand strong { display: block; font-size: 15px; }
.brand em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }

.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--deep), var(--accent));
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 36px 28px 60px; }
.wrap.narrow { max-width: 640px; }

.foot { border-top: 1px solid var(--line); padding: 20px 28px; color: var(--faint); font-size: 13px; }
.foot p { margin: 0; }

.back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }

/* -------------------------------------------------------------- catalogue */

.hero { margin-bottom: 30px; }
.hero p { color: var(--muted); max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Placeholder products are visibly inert rather than looking broken. */
.card[aria-disabled] { opacity: .6; }
.card.live:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(15, 23, 42, .09); transform: translateY(-2px); }
.card.live { transition: transform .15s, box-shadow .15s, border-color .15s; }

.card .tag { color: var(--muted); font-size: 13px; margin-bottom: .7em; }
.card .desc { font-size: 13px; color: var(--muted); }
.card .cta { font-size: 13px; font-weight: 600; color: var(--accent); }

.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
         padding: 3px 8px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; }
.badge.ok { background: #ecfdf5; color: var(--ok); }
.badge.soon { background: var(--sunken); color: var(--faint); }

/* ---------------------------------------------------------------- product */

.product-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 26px;
}

.product-head .tag { color: var(--accent); font-weight: 600; }
.product-head .desc { color: var(--muted); max-width: 70ch; }
.points { columns: 2; column-gap: 30px; font-size: 14px; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 30px; }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shots img { width: 100%; display: block; background: var(--sunken); }
.shots figcaption { padding: 10px 14px; font-size: 12px; color: var(--muted); }

.activate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.activate label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.activate input {
  width: 100%; max-width: 330px; padding: 11px 13px;
  font: 600 15px/1 Consolas, monospace;
  border: 1px solid #cbd5e1; border-radius: 8px;
}
.activate input:focus { outline: none; border-color: var(--accent); }
.hint { font-size: 12px; color: var(--faint); margin: 8px 0 0; }
.error { background: #fef2f2; color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: 13px; }

/* ------------------------------------------------------------------ plans */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}

.plan.featured { border-color: var(--accent); box-shadow: 0 6px 22px rgba(14, 110, 140, .14); }
.ribbon {
  position: absolute; top: -10px; left: 20px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 20px; text-transform: uppercase;
}

.price { font-size: 2rem; font-weight: 700; margin: 0 0 .1em; }
.per { font-size: .95rem; font-weight: 500; color: var(--faint); }
.blurb { font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; font-size: 13px; color: var(--muted); flex: 1; }
.plan li { padding: 5px 0 5px 20px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

.plan button, .reference button {
  width: 100%; padding: 12px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff;
  font: 700 13px/1 inherit; cursor: pointer;
}
.plan button:hover, .reference button:hover { background: var(--deep); }

/* ----------------------------------------------------------------- thanks */

.thanks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.reference { display: flex; gap: 12px; align-items: center; margin: 20px 0; }
.reference code {
  flex: 1; background: var(--sunken); border: 1px dashed #cbd5e1; border-radius: 8px;
  padding: 14px; font: 700 17px/1 Consolas, monospace; letter-spacing: .06em; text-align: center;
}
.reference button { width: auto; padding: 12px 20px; }
.steps { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .points { columns: 1; }
  h1 { font-size: 1.6rem; }
}

/* ---------------------------------------------------------------- checkout */

.summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
}
.summary .line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.summary .line + .line { border-top: 1px solid var(--line); }
.summary .line strong { font-size: 1.25rem; }
.summary .line.muted { color: var(--muted); font-size: 13px; }
.summary code { font: 600 13px/1 Consolas, monospace; background: var(--sunken); padding: 4px 9px; border-radius: 6px; }

.pay {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px; min-height: 320px;
}

.secure { text-align: center; margin-top: 14px; }

/* ---------------------------------------------------------------- delivery */

.paid { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ok);
        border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.paid.compact { border-left-color: var(--accent); padding: 20px 26px; }
.paid .tick { display: inline-flex; align-items: center; justify-content: center;
              width: 34px; height: 34px; border-radius: 50%; background: #ecfdf5;
              color: var(--ok); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.paid code { background: var(--sunken); padding: 3px 8px; border-radius: 6px; font: 600 13px/1 Consolas, monospace; }
.warn { background: #fffbeb; color: #b45309; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 12px 0 0; }

.keybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
          padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.klabel { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.keybox code { flex: 1 1 320px; background: var(--sunken); border: 1px dashed #cbd5e1; border-radius: 8px;
               padding: 12px; font: 600 12px/1.5 Consolas, monospace; word-break: break-all; }
.copy { padding: 10px 18px; border: 1px solid var(--accent); border-radius: 8px;
        background: var(--surface); color: var(--accent); font: 700 12px/1 inherit; cursor: pointer; }
.copy:hover { background: var(--accent); color: #fff; }
.seats { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }

.choose { font-size: 1.1rem; margin: 26px 0 12px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
          padding: 22px; text-decoration: none; color: inherit; display: block;
          transition: transform .15s, box-shadow .15s, border-color .15s; }
.option:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(15,23,42,.09); transform: translateY(-2px); }
.option.muted { opacity: .6; }
.option .oicon { font-size: 24px; display: block; margin-bottom: 8px; }
.option h3 { font-size: 1rem; margin-bottom: .3em; }
.option p { font-size: 13px; color: var(--muted); margin-bottom: .8em; }
.option .octa { font-size: 13px; font-weight: 700; color: var(--accent); }

.compare { font-size: 12px; color: var(--accent); background: var(--accent-soft, #eff6ff);
           padding: 7px 10px; border-radius: 6px; margin: 0 0 .9em; line-height: 1.4; }

table.seats { width: 100%; border-collapse: collapse; font-size: 13px; }
table.seats th { text-align: left; font-size: 11px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.seats td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.seats code.k { font: 600 11px/1.4 Consolas, monospace; word-break: break-all; display: block; max-width: 380px; }
.issued { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.activate form { display: flex; gap: 10px; flex-wrap: wrap; }
.activate form button { padding: 11px 22px; border: 0; border-radius: 8px; background: var(--accent);
                        color: #fff; font: 700 13px/1 inherit; cursor: pointer; }

/* ------------------------------------------------------------ buyer flow */

ol.flow { counter-reset: paso; list-style: none; padding: 0; margin: 0 0 4px; }
ol.flow li { position: relative; padding: 0 0 14px 42px; color: var(--muted); font-size: 14px; }
ol.flow li::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
ol.flow li strong { color: var(--ink); }

/* The machine id is folded away: asking for it up front implied you had to
   install before you were allowed to pay. */
details.already { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
details.already summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent);
  list-style: none; padding: 4px 0;
}
details.already summary::-webkit-details-marker { display: none; }
details.already summary::before { content: "+ "; font-weight: 700; }
details.already[open] summary::before { content: "− "; }
details.already p { font-size: 13px; color: var(--muted); margin: 10px 0 14px; }
.opt {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: var(--sunken); color: var(--faint);
  padding: 2px 7px; border-radius: 10px; margin-left: 6px;
}
