/* ==========================================================================
   Orbinex AI — site styles
   A product of Softvision Corp.

   Palette is a slate-teal instrument ground rather than the usual SaaS white:
   the product's subject is control and audit, so the page reads like a panel.
   Semantic colours (ok / hold / refused) are the product's own vocabulary —
   they are content, not decoration, and they are separate from the accent.
   ========================================================================== */

:root {
  --ground:        #F3F6F5;
  --surface:       #FFFFFF;
  --surface-sunk:  #EAEFEE;
  --line:          #D7DEDC;
  --line-strong:   #B9C4C2;

  --fg:            #101B22;
  --fg-muted:      #4E6068;
  --fg-subtle:     #71838A;

  --accent:        #0B6E77;
  --accent-ink:    #FFFFFF;
  --accent-wash:   #E3EFEF;

  --ok:            #2C6F50;
  --ok-wash:       #E4EFE8;
  --hold:          #9A6413;
  --hold-wash:     #F6EDDC;
  --refuse:        #9E3B2F;
  --refuse-wash:   #F7E6E3;

  --radius:        4px;
  --measure:       66ch;

  --step--1:  0.815rem;
  --step-0:   1rem;
  --step-1:   1.24rem;
  --step-2:   1.55rem;
  --step-3:   2.05rem;
  --step-4:   2.7rem;
  --step-5:   3.4rem;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:       #0B1317;
    --surface:      #121D23;
    --surface-sunk: #0E181D;
    --line:         #22333B;
    --line-strong:  #354A54;

    --fg:           #E8EEEC;
    --fg-muted:     #A2B4BA;
    --fg-subtle:    #7C9099;

    --accent:       #4FC3C6;
    --accent-ink:   #04211F;
    --accent-wash:  #102E30;

    --ok:           #6FCB9B;
    --ok-wash:      #122C22;
    --hold:         #D9A84F;
    --hold-wash:    #2E2414;
    --refuse:       #E28A7C;
    --refuse-wash:  #2F1A17;
  }
}

:root[data-theme="dark"] {
  --ground:       #0B1317;
  --surface:      #121D23;
  --surface-sunk: #0E181D;
  --line:         #22333B;
  --line-strong:  #354A54;

  --fg:           #E8EEEC;
  --fg-muted:     #A2B4BA;
  --fg-subtle:    #7C9099;

  --accent:       #4FC3C6;
  --accent-ink:   #04211F;
  --accent-wash:  #102E30;

  --ok:           #6FCB9B;
  --ok-wash:      #122C22;
  --hold:         #D9A84F;
  --hold-wash:    #2E2414;
  --refuse:       #E28A7C;
  --refuse-wash:  #2F1A17;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(var(--step-3), 5.2vw, var(--step-5));
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(var(--step-2), 3.4vw, var(--step-3));
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0;
}

.lede {
  font-size: clamp(var(--step-0), 2.1vw, var(--step-1));
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li { color: var(--fg-muted); }

/* ---- shell ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 20px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand .by {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 400;
}

.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.site-nav a {
  font-size: var(--step--1);
  color: var(--fg-muted);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; }

main { display: block; }

.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 0.7rem; max-width: var(--measure); }

.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 120ms ease, background-color 120ms ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: 0.88; }

.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--surface-sunk); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

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

.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; }

.note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--surface);
}
.note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hold);
}

/* ---- the execution readout — the page's centrepiece --------------------- */

.readout {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  font-family: var(--mono);
}

.readout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}
.readout-head b {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
}
.readout-head span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.exec { display: grid; gap: 0.3rem; padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); }
.exec:last-of-type { border-bottom: 0; }

.exec-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.exec-name { font-size: var(--step--1); color: var(--fg); font-weight: 500; }
.exec-note { font-size: 0.78rem; line-height: 1.5; color: var(--fg-muted); }
.exec-actor { font-size: 0.72rem; color: var(--fg-subtle); }

.state {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.state-ok      { color: var(--ok);     background: var(--ok-wash);     border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.state-refused { color: var(--refuse); background: var(--refuse-wash); border-color: color-mix(in srgb, var(--refuse) 35%, transparent); }
.state-hold    { color: var(--hold);   background: var(--hold-wash);   border-color: color-mix(in srgb, var(--hold) 35%, transparent); }

.readout-foot {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface-sunk);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* ---- ledger: a two-column "does / will not" list ------------------------ */

.ledger { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ledger-row {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) {
  .ledger-row { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: baseline; }
}
.ledger-row dt { font-weight: 600; font-size: var(--step-0); color: var(--fg); }
.ledger-row dd { margin: 0; color: var(--fg-muted); }

/* ---- channels / feature rows ------------------------------------------- */

.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feature { display: flex; flex-direction: column; gap: 0.5rem; }
.feature h3 { font-size: var(--step-0); }
.feature p { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.6; }
.feature .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.plans { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.plan[data-emphasis="true"] { border-color: var(--accent); box-shadow: 0 1px 0 var(--accent) inset; }

.plan-name { font-family: var(--sans); font-size: var(--step-1); font-weight: 600; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.plan-price .amount { font-family: var(--serif); font-size: var(--step-3); font-weight: 600; letter-spacing: -0.02em; }
.plan-price .per { font-size: var(--step--1); color: var(--fg-subtle); }

.plan-annual { font-family: var(--mono); font-size: 0.74rem; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }

.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.plan-list li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
  line-height: 1.5;
}
.plan-list li::before { content: "—"; color: var(--line-strong); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--step--1); }
caption { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-sunk); font-weight: 600; font-size: var(--step--1); }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-subtle); font-weight: 500; }
td.num, th.num { font-variant-numeric: tabular-nums; }
tbody th { font-weight: 600; color: var(--fg); }

/* ---- callout ----------------------------------------------------------- */

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: var(--measure);
}
.callout h3 { font-size: var(--step-0); }
.callout p { font-size: var(--step--1); color: var(--fg-muted); line-height: 1.6; }

/* ---- legal pages ------------------------------------------------------- */

.legal { max-width: var(--measure); display: flex; flex-direction: column; gap: 2rem; }
.legal section { display: flex; flex-direction: column; gap: 0.75rem; }
.legal h2 { font-size: var(--step-2); }
.legal p, .legal li { color: var(--fg-muted); }
.legal ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.legal .meta { font-family: var(--mono); font-size: var(--step--1); color: var(--fg-subtle); }

/* A value the operator must supply before this page is published.
   Deliberately loud: a placeholder that looks like copy is a placeholder
   that ships. */
.todo {
  background: var(--hold-wash);
  color: var(--hold);
  border-bottom: 2px solid var(--hold);
  padding: 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.86em;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 2.5rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
}
.footer-col a, .footer-col p { font-size: var(--step--1); color: var(--fg-muted); text-decoration: none; }
.footer-col a:hover { color: var(--fg); text-decoration: underline; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--fg-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
