/* Opium — landing. Terminal monochrome: true black, hairline rules,
   mono display type, one solid white action. Dark only by design;
   the dashboard keeps its own theme system. */

:root {
  --black: #000;
  --raised: #0b0b0b;
  --white: #f7f7f8;
  --ash: rgba(247, 247, 248, 0.72);
  --faint: rgba(247, 247, 248, 0.44);
  --rule: rgba(247, 247, 248, 0.13);
  --rule-2: rgba(247, 247, 248, 0.07);

  --sans: "Schibsted Grotesk", "Segoe UI Variable Display", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --measure: 34rem;
  --section: clamp(112px, 15vw, 200px);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --wide: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { margin: 0; overflow-x: clip; }

h1, h2, h3, h4, p, ol, ul, pre { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; }

main > section[id], .exec-band[id] { scroll-margin-top: 84px; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--white); color: var(--black); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow strong { color: var(--white); font-weight: 500; }

/* Marketing copy is presentation, not something buyers need to copy. */
.nav,
.hero,
#pricing,
#faq,
.compare {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/*
 * Keep links tappable and any future interactive text usable. The rule above
 * only stops drag-selection; it never changes pointer or keyboard behaviour.
 */
.nav a,
.hero a,
#pricing a,
#faq a,
#faq summary { -webkit-user-select: none; user-select: none; }

/* ------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px var(--gutter);
  background: var(--black);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--out);
}
.nav.scrolled { border-bottom-color: var(--rule-2); }

.mark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  color: var(--white);
  user-select: none;
  -webkit-user-select: none;
}
.mark-name { display: none; }
.mark-img { display: block; width: 34px; height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-links a { color: var(--ash); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.nav-login { font-size: 0.88rem; color: var(--ash); transition: color 0.2s; }
.nav-login:hover { color: var(--white); }
.nav > .btn { height: 34px; padding: 0 16px; font-size: 0.86rem; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  background: var(--white);
  color: var(--black);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: #fff; }

.btn-quiet {
  height: 36px;
  padding: 0 16px;
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.btn-quiet:hover { background: rgba(247, 247, 248, 0.08); }

.btn-lg { height: 50px; padding: 0 26px; font-size: 0.98rem; }
.btn-block { width: 100%; }

.text-link {
  color: var(--ash);
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 5px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--white); }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  min-height: 100svh;
  padding: 120px var(--gutter) clamp(40px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}

/* The field fills the hero. The gradient below dissolves it into the page so
   the wave has no hard bottom edge. */
.field {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.6s var(--out);
}
.field[data-live] { opacity: 1; }
.field-fallback {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(255, 255, 255, 0.1), transparent 70%),
    radial-gradient(40% 50% at 90% 70%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--black);
}

/* Fade the field into the page. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

.hero-copy { grid-column: 1; max-width: 46rem; min-width: 0; }

.hero-title {
  font-size: clamp(2.15rem, 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--white);
}
.hero-title span { display: block; white-space: nowrap; }

.hero-sub {
  max-width: 30rem;
  margin-top: 28px;
  color: var(--ash);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.hero-meta b { color: var(--white); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ascii logo ---------------------------------------------------- */

.hero-mark {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) + 2vw);
  transform: translateY(-63%);
  z-index: 1;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(5.8px, 0.88vw, 12px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: pre;
  color: var(--white);
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ------------------------------------------------------------ executors */

.exec-band { border-bottom: 1px solid var(--rule-2); }
.exec-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.exec-row { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.exec-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--faint);
  transition: color 0.2s;
}
.exec-tile img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.1);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.exec-tile:hover { color: var(--white); }
.exec-tile:hover img { opacity: 0.9; }

/* ------------------------------------------------------------ sections */

main > section:not(.hero) {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 56px;
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.042em;
  color: var(--white);
  text-wrap: balance;
}
.section-sub {
  max-width: var(--measure);
  padding-top: calc(0.5em + 18px);
  color: var(--ash);
  font-size: 1.06rem;
}

h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.021em; color: var(--white); }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--out), transform 0.8s var(--out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
}
.feature {
  border-top: 1px solid var(--rule);
  padding: 24px 0 40px;
  transition: border-color 0.4s var(--out), transform 0.4s var(--out);
}
.feature:hover { border-top-color: rgba(247, 247, 248, 0.4); transform: translateY(-2px); }
.feature-num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition: color 0.4s var(--out);
}
.feature:hover .feature-num { color: var(--white); }
.feature h3 { margin-bottom: 10px; }
.feature p { max-width: 42ch; color: var(--ash); font-size: 0.97rem; }

/* ------------------------------------------------------------ pricing */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px) clamp(22px, 3vw, 44px) clamp(48px, 4.5vw, 64px);
  transition: background 0.4s var(--out);
}
.plan:hover { background: rgba(247, 247, 248, 0.022); }
.plan + .plan { border-left: 1px solid var(--rule); }

.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plan-tier {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.plan-tier em { font-style: normal; color: rgba(247, 247, 248, 0.3); margin-left: 8px; }
/* The paid tier is struck in gold so it reads as the one worth buying. */
.plan + .plan .plan-tier {
  background: linear-gradient(96deg, #f7e3a8 6%, #e6bd63 40%, #b98a35 70%, #f0d494 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan + .plan .plan-price { color: #eac36d; }
.plan-price {
  font-family: var(--mono);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--white);
}
.plan-blurb { max-width: 34ch; margin-top: 16px; color: var(--ash); font-size: 0.98rem; }

.plan-list {
  list-style: none;
  margin: 28px 0 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule-2);
  display: grid;
  gap: 10px;
}
.plan-list li { position: relative; padding-left: 22px; color: var(--ash); font-size: 0.95rem; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--faint);
}
.plan-btn { margin-top: auto; }
.plan-footnote {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--faint);
}

.compare { margin-top: clamp(40px, 5vw, 72px); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; }
.compare-table thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--rule);
}
.compare-table tbody th { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.compare-table tbody td { font-size: 0.92rem; color: var(--ash); }
.compare-table tbody td:last-child { color: var(--white); }
.compare-table tbody tr + tr { border-top: 1px solid var(--rule-2); }
.compare-table tbody tr { transition: background 0.3s var(--out); }
.compare-table tbody tr:hover { background: rgba(247, 247, 248, 0.026); }
.compare-note {
  padding: 16px 18px;
  font-size: 0.82rem;
  color: var(--faint);
  border-top: 1px solid var(--rule-2);
}

/* ------------------------------------------------------------ faq */

.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 2px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--white);
  cursor: pointer;
  transition: color 0.3s var(--out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 15px; height: 15px; color: var(--faint); transition: color 0.3s var(--out); }
.faq-item summary:hover .faq-plus, .faq-item[open] .faq-plus { color: var(--white); }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  transition: transform 0.24s var(--out), opacity 0.24s var(--out);
}
.faq-plus::before { width: 15px; height: 1.5px; }
.faq-plus::after { width: 1.5px; height: 15px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); opacity: 0; }
.faq-item p { max-width: 74ch; padding: 0 2px 30px; color: var(--ash); font-size: 1.01rem; }
.faq-item[open] p { animation: faq-open 0.36s var(--out) both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ footer */

.footer { margin-top: var(--section); border-top: 1px solid var(--rule); }
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 56px var(--gutter) 44px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-left { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; font-weight: 600; color: var(--white); }
.footer-left .mark-img { width: 20px; height: 20px; }
.footer-tag { max-width: 240px; color: var(--faint); font-size: 0.86rem; }
.footer-cols { display: flex; gap: clamp(32px, 4vw, 64px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col a { font-size: 0.88rem; color: var(--ash); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-base {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid var(--rule-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: rgba(247, 247, 248, 0.34);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: end; }
  .hero-mark { position: static; transform: none; justify-self: start; margin-top: 32px; font-size: clamp(6px, 1.9vw, 11px); }
  .hero-copy { grid-column: 1; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav { grid-template-columns: auto 1fr; gap: 12px 16px; padding: 12px var(--gutter); }
  .nav-links { order: 3; grid-column: 1 / -1; justify-content: center; gap: 18px; font-size: 0.8rem; }
  .nav-login { display: none; }
  .mark-name { display: none; }
  .hero { padding-top: 158px; }
  /* The cloth runs behind the copy on narrow screens: keep it well down. */
  .field, .field[data-live] { opacity: 0.4; }
  .feature-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 0.84rem; }
  .faq-item summary { padding: 20px 2px; gap: 18px; font-size: 1.05rem; }
  .faq-item p { padding-bottom: 22px; font-size: 0.96rem; }
  .section-sub { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .field { opacity: 1; transition: none; }
  .faq-item[open] p { animation: none; }
  .feature:hover, .plan:hover { transform: none; }
}

.plan-list li.plan-no { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
