/* ---------------------------------------------------------------------------
   All colours and fonts are defined once, here. To match the marketing site
   later, change the values in this block and nothing else.
   --------------------------------------------------------------------------- */
:root {
  --ink:        #0f172a;   /* main text            */
  --ink-soft:   #64748b;   /* secondary text       */
  --line:       #e2e8f0;   /* borders              */
  --bg:         #f8fafc;   /* page background      */
  --panel:      #ffffff;   /* cards, header, footer*/
  --brand:      #2563eb;   /* buttons, links       */
  --brand-dark: #1d4ed8;   /* hover                */
  --ok:         #059669;
  --ok-bg:      #ecfdf5;
  --warn:       #b45309;
  --warn-bg:    #fffbeb;
  --busy:       #4338ca;
  --busy-bg:    #eef2ff;
  --radius:     10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- header / footer ------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--brand); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover,
.site-header nav a.on { color: var(--brand); }
.who { color: var(--ink-soft); }

main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.site-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

/* --- text ----------------------------------------------------------------- */

h1 { font-size: 26px; letter-spacing: -0.5px; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 12px; }
a  { color: var(--brand); }

.lead   { color: var(--ink-soft); margin: 0 0 24px; }
.muted  { color: var(--ink-soft); }
.small  { font-size: 13px; }
.narrow { max-width: 420px; margin: 40px auto; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.row-between h1 { margin: 0; }

/* --- banners -------------------------------------------------------------- */

.banner {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 15px;
}
.banner.ok   { border-left-color: var(--ok);   background: var(--ok-bg);   color: var(--ok); }
.banner.warn { border-left-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.banner.busy { border-left-color: var(--busy); background: var(--busy-bg); color: var(--busy); }
.banner strong { color: inherit; }
.banner .btn { margin-left: 8px; }

.alert {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
}

/* --- cards ---------------------------------------------------------------- */

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
dt { color: var(--ink-soft); font-size: 14px; }
dd { margin: 0; font-size: 14px; text-align: right; }

.pill {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.pill-ok   { background: var(--ok-bg);   color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }

/* --- the two big links ---------------------------------------------------- */

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.action {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
}
.action:hover { border-color: var(--brand); }
.action-title { display: block; font-weight: 600; margin-bottom: 4px; }
.action-note  { display: block; color: var(--ink-soft); font-size: 13px; }
.action.disabled { opacity: 0.5; pointer-events: none; }

/* --- forms and buttons ---------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: 6px; }
.stack label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 10px; }

input, textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
textarea { resize: vertical; }

button, .btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
button:hover, .btn:hover { border-color: var(--brand); color: var(--brand); }

.primary, button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  margin-top: 18px;
  padding: 12px 16px;
}
.primary:hover, button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn.small, button.small { padding: 6px 12px; font-size: 13px; }

.linkish {
  border: none;
  background: none;
  padding: 0;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 14px;
}
.linkish:hover { color: var(--brand); }

/* --- operator table ------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
tbody tr:last-child td { border-bottom: none; }
tr.needs-setup td { background: var(--busy-bg); }

/* --- plan chooser --------------------------------------------------------- */

.family { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
          color: var(--ink-soft); margin: 28px 0 12px; }
.family:first-of-type { margin-top: 4px; }

.plans .plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 17px; margin-bottom: 2px; }
.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 14px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }

.plan-popular { border-color: var(--brand); }
.plan-tag {
  position: absolute; top: -10px; left: 20px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}

.plan-features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.plan-features li { font-size: 14px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}
.plan .btn { margin-top: auto; text-align: center; }

.centered { text-align: center; margin-top: 24px; }
