/* ============================================================================
   Help Desk Horizon — public marketing page.

   Loaded only by _MarketingLayout, so none of this reaches the console or the
   portal. Every colour here comes from the tokens in helpdeskhorizon.css, which is
   what makes the page follow the light/dark toggle without defining a second
   palette that would drift from the first.
   ============================================================================ */

.sp-marketing { background: var(--sp-bg); }

.sp-mk-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-space-5);
}

/* Visible only once focused — the first tab stop on a long page of sections. */
.sp-skip {
  position: absolute;
  left: -9999px;
  top: var(--sp-space-3);
  background: var(--sp-surface-raised);
  border: 1px solid var(--sp-border-strong);
  border-radius: var(--sp-radius-sm);
  padding: var(--sp-space-2) var(--sp-space-4);
  z-index: 20;
}
.sp-skip:focus { left: var(--sp-space-5); }

/* ---- Header ------------------------------------------------------------- */

.sp-mk-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--sp-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sp-border);
}
.sp-mk-header__inner {
  display: flex; align-items: center; gap: var(--sp-space-5);
  height: 60px;
}
.sp-mk-header__actions { display: flex; align-items: center; gap: var(--sp-space-3); margin-left: auto; }

.sp-mk-nav { display: flex; align-items: center; gap: var(--sp-space-5); }
.sp-mk-nav a { color: var(--sp-text-muted); font-weight: 500; font-size: 13px; }
.sp-mk-nav a:hover { color: var(--sp-text); text-decoration: none; }

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

.sp-mk-hero { padding: var(--sp-space-7) 0 var(--sp-space-6); }
.sp-mk-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sp-accent-text);
  margin-bottom: var(--sp-space-3);
}
.sp-mk-hero__title {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: var(--sp-space-4);
}
.sp-mk-hero__lede {
  font-size: 17px; line-height: 1.6; color: var(--sp-text-muted);
  max-width: 60ch; margin-bottom: var(--sp-space-5);
}
.sp-mk-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-space-3); margin-bottom: var(--sp-space-5); }
.sp-mk-hero__note {
  font-size: 13px; color: var(--sp-text-faint); max-width: 62ch;
  border-left: 2px solid var(--sp-border-strong);
  padding-left: var(--sp-space-3);
}

/* ---- Screenshot slots --------------------------------------------------- */

.sp-mk-shots { padding-bottom: var(--sp-space-6); }
.sp-mk-shots__grid {
  display: grid; gap: var(--sp-space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.sp-mk-shot { margin: 0; }

/* No fixed aspect ratio: these are screenshots of an interface, and cropping one to fit a box takes
   the toolbar or the sidebar off the top. The frame follows the image instead. */
.sp-mk-shot__frame {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  line-height: 0;
}
.sp-mk-shot__frame img { width: 100%; height: auto; display: block; }
.sp-mk-shot figcaption { font-size: 13px; color: var(--sp-text-muted); margin-top: var(--sp-space-3); }

/* ---- Sections ----------------------------------------------------------- */

.sp-mk-section { padding: var(--sp-space-7) 0; }
.sp-mk-section--alt { background: var(--sp-surface); border-block: 1px solid var(--sp-border); }
.sp-mk-section__title { font-size: 26px; letter-spacing: -0.01em; margin-bottom: var(--sp-space-5); }
.sp-mk-lede { font-size: 15px; color: var(--sp-text-muted); max-width: 55ch; }
.sp-mk-fineprint { font-size: 13px; color: var(--sp-text-faint); max-width: 55ch; }

.sp-mk-grid {
  display: grid; gap: var(--sp-space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.sp-mk-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: var(--sp-space-5);
}
.sp-mk-section--alt .sp-mk-card { background: var(--sp-surface-raised); }
.sp-mk-card h3 { font-size: 15px; margin-bottom: var(--sp-space-2); }
.sp-mk-card p { color: var(--sp-text-muted); margin: 0; }

.sp-mk-split {
  display: grid; gap: var(--sp-space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}

.sp-mk-layers { list-style: none; counter-reset: layer; margin: 0; padding: 0; display: grid; gap: var(--sp-space-4); }
.sp-mk-layers li {
  counter-increment: layer;
  position: relative;
  padding-left: var(--sp-space-6);
  color: var(--sp-text-muted);
}
.sp-mk-layers li::before {
  content: counter(layer);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sp-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--sp-accent) 40%, transparent);
  color: var(--sp-accent-text);
  font-size: 12px; font-weight: 700;
}
.sp-mk-layers strong { color: var(--sp-text); display: block; }

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

/* Loud on purpose: the figures below it are not real, and this is what stops
   the page shipping as though they were. */
.sp-mk-notice {
  border: 1px solid color-mix(in srgb, var(--sp-waiting) 45%, transparent);
  background: color-mix(in srgb, var(--sp-waiting) 8%, transparent);
  color: var(--sp-waiting);
  border-radius: var(--sp-radius-sm);
  padding: var(--sp-space-3) var(--sp-space-4);
  font-size: 13px;
  margin-bottom: var(--sp-space-5);
}
.sp-mk-notice code { color: inherit; }

.sp-mk-grid--pricing { align-items: start; }
.sp-mk-price {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: var(--sp-space-5);
  display: flex; flex-direction: column; gap: var(--sp-space-4);
}
.sp-mk-price--featured { border-color: var(--sp-accent); }
.sp-mk-price h3 { margin: 0; font-size: 15px; }
.sp-mk-price__amount {
  margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-space-2);
}
.sp-mk-price__amount span:last-child { font-size: 12px; font-weight: 400; color: var(--sp-text-muted); }
.sp-mk-price__todo {
  color: var(--sp-waiting);
  border-bottom: 2px dashed currentColor;
}
.sp-mk-price ul { margin: 0; padding-left: var(--sp-space-4); color: var(--sp-text-muted); font-size: 13px; }
.sp-mk-price li { margin-bottom: var(--sp-space-2); }
.sp-mk-price .sp-btn { margin-top: auto; justify-content: center; }

/* ---- Demo form ---------------------------------------------------------- */

.sp-mk-demo {
  display: grid; gap: var(--sp-space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.sp-mk-formwrap {
  background: var(--sp-surface-raised);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: var(--sp-space-5);
}
.sp-mk-form .sp-btn { width: 100%; }

/* Honeypot: out of view for people, still in the DOM for anything that fills
   in every field it finds. Not display:none — some bots skip hidden inputs. */
.sp-mk-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---- Footer ------------------------------------------------------------- */

.sp-mk-footer { border-top: 1px solid var(--sp-border); padding: var(--sp-space-5) 0; }
.sp-mk-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-space-4);
  font-size: 13px; color: var(--sp-text-faint);
}
.sp-mk-footer__links { margin-left: auto; display: flex; gap: var(--sp-space-4); }

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

@media (max-width: 720px) {
  /* The anchor nav is the first thing to go: the header still has sign-in and
     the theme toggle, and the sections are a short scroll away. */
  .sp-mk-nav { display: none; }
  .sp-mk-section, .sp-mk-hero { padding: var(--sp-space-6) 0; }
}

/* ---- Registration ------------------------------------------------------- */

.sp-reg {
  display: grid; gap: var(--sp-space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.sp-reg__intro { position: sticky; top: 84px; }
.sp-reg__done { max-width: 60ch; }

.sp-reg__group {
  border: 0; padding: 0;
  margin: 0 0 var(--sp-space-5);
}
.sp-reg__group legend {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sp-text-faint);
  padding: 0; margin-bottom: var(--sp-space-3);
}

/* The suffix is part of the address, so it sits inside the field rather than beside it. */
.sp-reg__host { display: flex; align-items: stretch; }
.sp-reg__host .sp-input {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
  border-right: 0;
}
.sp-reg__suffix {
  display: flex; align-items: center;
  padding: 0 var(--sp-space-3);
  background: var(--sp-surface);
  border: 1px solid var(--sp-border-strong);
  border-left: 0;
  border-radius: 0 var(--sp-radius-sm) var(--sp-radius-sm) 0;
  color: var(--sp-text-muted);
  font-size: 13px; white-space: nowrap;
}

.sp-reg__total {
  font-size: 15px; font-weight: 600;
  margin: 0;
  color: var(--sp-text);
}

/* The processor's iframe lives here. Sized so the layout does not jump when it loads. */
.sp-reg__payment {
  min-height: 92px;
  border: 1px solid var(--sp-border-strong);
  border-radius: var(--sp-radius-sm);
  padding: var(--sp-space-3);
  background: var(--sp-bg);
}

/* ---- Simulated payment (Development only) ------------------------------- */

.sp-sim-pay { display: flex; flex-direction: column; gap: var(--sp-space-2); }
.sp-sim-pay__title {
  font-size: 12px; font-weight: 600; color: var(--sp-text-muted); margin: 0 0 var(--sp-space-1);
}
.sp-sim-pay__option {
  display: flex; align-items: flex-start; gap: var(--sp-space-3);
  padding: var(--sp-space-2) var(--sp-space-3);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  font-size: 13px;
}
.sp-sim-pay__option:hover { background: var(--sp-surface-hover); }
.sp-sim-pay__option input { accent-color: var(--sp-accent); margin-top: 3px; }
.sp-sim-pay__option small { color: var(--sp-text-faint); }

@media (max-width: 720px) {
  .sp-reg__intro { position: static; }
}

/* Not an inline style attribute: the CSP has no unsafe-inline, so a style="" here
   would be dropped by the browser and the spacing silently lost. */
.sp-mk-pricing-note { margin-top: var(--sp-space-4); }
