/* TorqueDesk — the apex.
 *
 * Hand-written, no build step, no JavaScript (public-site spec §3.6) and no
 * third-party requests: the font stack is the system one the Console already
 * uses (console.css line 41), so the apex makes no request off this box.
 *
 * The palette is the logo's, reconciled with the Console's: --ink is the
 * Console's --navy verbatim (#101828) so the two surfaces read as one
 * product, and --brand/--spark are the logo's blue and orange. Do not
 * introduce a third blue.
 */

:root {
  --ink: #101828;
  --brand: #1b5cff;
  --brand-deep: #1246cc;
  --spark: #f26a21;
  --paper: #ffffff;
  --ground: #f4f6fa;
  --edge: #e2e7ef;
  --body: #4a5468;
  --muted: #6a7386;
  --rule: #edf0f5;
  --good: #137a4c;
  --radius: 12px;
  --wide: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--brand-deep); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--body); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover { color: var(--ink); }
.nav a.signin {
  color: var(--brand-deep);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 8px 16px;
}
.nav a.signin:hover { border-color: var(--brand); background: #f5f8ff; }

/* --- hero -------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, #f7f9fd 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 64px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--spark);
}
h1 .line2 { color: var(--brand); }
h1 .dot { color: var(--spark); }
.lede { font-size: 1.12rem; max-width: 30em; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}
.pills li {
  font-size: .92rem;
  font-weight: 550;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pills li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.btn {
  display: inline-block;
  border-radius: 9px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary { background: var(--paper); color: var(--brand-deep); border-color: var(--edge); }
.btn-secondary:hover { border-color: var(--brand); background: #f5f8ff; }

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
  padding: 0;
  list-style: none;
}
.reassure li { display: flex; align-items: center; gap: 7px; }
.reassure li::before { content: "\2713"; color: var(--good); font-weight: 700; }

/* --- the console illustration ------------------------------------------ */

.mock {
  background: var(--ink);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
}
.mock-inner {
  background: var(--ground);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  overflow: hidden;
  min-height: 300px;
}
.mock-side { background: var(--ink); padding: 14px 10px; }
.mock-brand {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: 2px 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-brand::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--spark);
  flex: none;
}
.mock-side ul { list-style: none; margin: 0; padding: 0; }
.mock-side li {
  color: #98a2b8;
  font-size: .72rem;
  padding: 6px 8px;
  border-radius: 5px;
}
.mock-side li.on { background: var(--brand); color: #fff; font-weight: 600; }
.mock-main { padding: 14px; }
.mock-title { color: var(--ink); font-size: .82rem; font-weight: 700; margin-bottom: 10px; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tile { background: var(--paper); border: 1px solid var(--edge); border-radius: 7px; padding: 9px; }
.tile .k { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tile .v { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mock-panel { background: var(--paper); border: 1px solid var(--edge); border-radius: 7px; padding: 10px; }
.mock-panel .k { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 7px; }
.mock-row { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-top: 1px solid var(--rule); }
.mock-row:first-of-type { border-top: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--brand); flex: none; }
.bar.b2 { background: #7ea2ff; }
.bar.b3 { background: var(--spark); }
/* The mock's bar lengths. These are CLASSES, not `style="width:..."`
   attributes, and that is the whole point: the apex carries a near-total
   CSP (issue 05) whose `style-src 'self'` blocks inline style attributes
   outright. Written inline, these four bars would render collapsed on the
   live site and look fine in a local `file://` preview. Any new mock row
   adds a class here rather than an attribute there. */
.bar.w20 { width: 20px; }
.bar.w26 { width: 26px; }
.bar.w34 { width: 34px; }
.bar.w44 { width: 44px; }
.mock-row .lbl { font-size: .66rem; color: var(--body); flex: 1; }
.mock-row .num { font-size: .66rem; color: var(--muted); }
.mock-caption {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
  font-style: italic;
}

/* --- generic sections -------------------------------------------------- */

section { padding: 72px 0; }
section.tinted { background: var(--ground); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 34em; margin-bottom: 40px; }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 14px;
}
.step p { margin-bottom: 0; font-size: .96rem; }

/* --- the example call --------------------------------------------------- */

.call-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.call-card {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}
.call-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}
.call-head .t { font-weight: 700; color: var(--ink); font-size: .95rem; }
.call-head .tag {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 3px 10px;
  background: var(--paper);
}
.turns { padding: 8px 18px 18px; margin: 0; }
.turns dt {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--muted);
  margin-top: 15px;
}
.turns dt.bot { color: var(--brand); }
.turns dd { margin: 4px 0 0; color: var(--ink); font-size: .95rem; }
.call-foot {
  border-top: 1px solid var(--rule);
  padding: 14px 18px;
  background: var(--ground);
  font-size: .86rem;
}
.call-foot .k { text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; color: var(--muted); font-weight: 700; }
.call-foot ul { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 3px; }
.call-foot li { color: var(--ink); }
.call-foot li span { color: var(--muted); display: inline-block; min-width: 92px; }

/* --- pricing ------------------------------------------------------------ */

.price-card {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}
.price-name {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--spark);
  margin-bottom: 14px;
}
/* NOT `.was`, and the rename is the point. The struck figure is the LIST
   price, which `choose_plan` really does charge once the founding ten are
   gone — it is not a former price, because nobody has ever paid it. Under
   the Australian Consumer Law a struck-through "was" price must be one the
   product actually sold at, so was/now framing here would be a false
   comparison. The visible words already say "List price"; these class
   names used to say `was`/`now` and quietly invited the opposite. */
.list-price {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2px;
}
.list-price s { text-decoration-color: var(--spark); text-decoration-thickness: 2px; }
.founding { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.founding .amount { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.founding .per { color: var(--body); font-weight: 550; }
.gst { font-size: .9rem; color: var(--muted); margin: 8px 0 20px; }
.price-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.price-list li { display: flex; gap: 9px; font-size: .95rem; color: var(--ink); }
.price-list li::before { content: "\2713"; color: var(--good); font-weight: 700; flex: none; }

/* --- setup / what we connect -------------------------------------------- */

.connect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.connect div {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
}
.connect h3 { margin-bottom: 6px; }
.connect p { margin: 0; font-size: .93rem; }

/* --- value strip / footer ------------------------------------------------ */

.strip { background: var(--ink); color: #c3cbdb; padding: 40px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.strip h3 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.strip p { margin: 0; font-size: .88rem; color: #98a2b8; }

.site-footer { background: var(--ink); border-top: 1px solid #1e2a40; padding: 30px 0 44px; color: #98a2b8; font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer a { color: #c3cbdb; }
.site-footer .spacer { margin-left: auto; }

/* --- long-form pages ----------------------------------------------------- */

.doc { max-width: 760px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .3em; }
.doc h2 { font-size: 1.28rem; margin-top: 2.1em; }
.doc h3 { font-size: 1.02rem; margin-top: 1.6em; }
.doc .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.4em; }
.doc ul { padding-left: 1.15em; }
.doc li { margin-bottom: .5em; }
.doc table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 650; }
.doc .callout {
  background: var(--ground);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.4em 0;
}
.doc .callout p:last-child { margin-bottom: 0; }

/* --- narrow screens ------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-grid, .call-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps, .connect, .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .site-header .wrap { min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .nav { margin-left: 0; width: 100%; gap: 18px; }
  section { padding: 52px 0; }
  .hero { padding: 44px 0 52px; }
}

@media (max-width: 560px) {
  .mock-inner { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .spacer { margin-left: 0; }
}
