/* ==========================================================================
   S3 ENTERPRISE — Digital Business Growth
   Custom layer over the Tailwind CDN build. Technical / dashboard-console
   system: cool light "docs page" ground, a near-black terminal panel, one
   magenta accent, JetBrains Mono for structure, a faint drafting grid.
   ========================================================================== */

:root {
  --ease: cubic-bezier(0.3, 0, 0.15, 1);
  --mag: #D6208C;
}

* { border-color: #E3E5E8; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F6F7F8;
  background-image:
    linear-gradient(#ECEEF0 1px, transparent 1px),
    linear-gradient(90deg, #ECEEF0 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: -1px -1px;
}

h1, h2, h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: #D6208C; color: #fff; }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #D6208C;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  padding: 10px 18px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Eyebrow with a // prefix ------------------------------------------------- */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mag);
}
.eyebrow::before { content: "// "; opacity: 0.7; }
.eyebrow--dim { color: #8A93A0; }
.eyebrow--dim::before { color: var(--mag); opacity: 1; }

.em { color: var(--mag); }

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 0.52em;
  height: 1.05em;
  margin-left: 0.06em;
  background: var(--mag);
  vertical-align: -0.14em;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Buttons — sharp, monospace
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--ink, #0E1116);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.btn__arrow { transition: transform 0.15s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--mag { background: var(--mag); color: #fff; border-color: var(--mag); }
.btn--mag:hover { background: #A81770; border-color: #A81770; }

.btn--ink { background: #0E1116; color: #F6F7F8; border-color: #0E1116; }
.btn--ink:hover { background: var(--mag); border-color: var(--mag); }

.btn--line { background: transparent; color: #0E1116; }
.btn--line:hover { border-color: var(--mag); color: var(--mag); }

.btn--page { background: #F6F7F8; color: #0E1116; border-color: #F6F7F8; }
.btn--page:hover { background: var(--mag); border-color: var(--mag); color: #fff; }

/* ==========================================================================
   Panels & widgets
   ========================================================================== */

.panel { background: #FFFFFF; border: 1px solid #E3E5E8; }

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #E3E5E8;
  padding: 9px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B7480;
}
.panel-head::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--mag);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid #D6D9DD;
  padding: 5px 10px;
  color: #4A525E;
}

.pipe { font-family: "JetBrains Mono", monospace; color: #B7BEC7; }

.rule { height: 1px; background: #E3E5E8; }

/* ==========================================================================
   Scroll reveal — quick
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   FAQ accordion — [+] / [–] toggle
   ========================================================================== */

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.faq-item[data-state="open"] .faq-body { max-height: 24rem; }

.faq-pm {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--mag);
  flex: none;
}
.faq-pm::before { content: "[+]"; }
.faq-item[data-state="open"] .faq-pm::before { content: "[–]"; }
.faq-item[data-state="open"] .faq-q { color: var(--mag); }

/* ==========================================================================
   Forms (dark console panel)
   ========================================================================== */

.console { background: #0E1116; color: #E9EBEE; }

.field {
  width: 100%;
  background: #14171D;
  border: 1px solid #2A2F38;
  color: #E9EBEE;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  caret-color: var(--mag);
  transition: border-color 0.15s var(--ease);
}
.field::placeholder { color: rgba(233, 235, 238, 0.3); }
.field:focus { border-color: var(--mag); }
.field option { color: #0E1116; }
select.field { appearance: none; }
.field-wrap { position: relative; }
.field-wrap::after {
  content: "▾";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mag);
  font-size: 12px;
  pointer-events: none;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0E1116;
  color: #E9EBEE;
  border: 1px solid var(--mag);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 14px 18px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.toast.is-shown { transform: none; opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  .btn, .btn__arrow { transition: none; }
}
