/* ============================================================
   asklum — landing styles
   Palette and type adapted from the product design system:
   Schibsted Grotesk + JetBrains Mono, oklch neutrals, amber accent.
   ============================================================ */

:root {
  --accent: #d58f4d;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, white);
  --accent-line: color-mix(in srgb, var(--accent) 22%, white);
  --accent-deep: color-mix(in srgb, var(--accent) 70%, black);

  --bg: oklch(0.992 0.002 260);
  --surface: #ffffff;
  --ink: oklch(0.21 0.02 265);
  --ink-2: oklch(0.27 0.02 265);
  --muted: oklch(0.45 0.018 265);
  --muted-2: oklch(0.55 0.015 265);
  --line: oklch(0.93 0.005 265);
  --line-soft: oklch(0.96 0.004 265);

  --maxw: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb {
  background: oklch(0.88 0.006 265);
  border-radius: 99px;
  border: 3px solid white;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- diamond / brand motif ---------- */
.diamond {
  display: block;
  width: 11px; height: 11px;
  background: white;
  border-radius: 3px;
  transform: rotate(45deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

.btn--outline { background: #fff; border-color: oklch(0.88 0.007 265); color: var(--ink-2); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--light { background: #fff; color: var(--accent-deep); }
.btn--light:hover { background: oklch(0.95 0.01 265); }

/* ---------- shared section bits ---------- */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.section { padding: 92px 0; }
.section--tint { background: var(--accent-soft); }
.band {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 92px 0;
}
.section__title {
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 620px;
  text-wrap: balance;
}
.section__lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 48px;
  text-wrap: pretty;
}

.tick {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.tick--empty {
  background: transparent;
  border: 1.5px solid oklch(0.74 0.01 265);
  border-radius: 99px;
  transform: none;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, white 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.brand__mark--sm { width: 26px; height: 26px; border-radius: 7px; }
.brand__mark--sm .diamond { width: 10px; height: 10px; }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.nav__links a:hover { color: var(--accent); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__ghost { font-size: 14.5px; font-weight: 600; color: oklch(0.4 0.02 265); padding: 9px 4px; }
.nav__ghost:hover { color: var(--accent); }

/* ============ HERO ============ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 70px 32px 96px; }
.hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.hero__copy { flex: 1; min-width: 430px; }
.hero__title {
  font-size: 55px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 580px;
  text-wrap: balance;
}
.hero__sub {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 30px;
  text-wrap: pretty;
}

/* ---------- signup form ---------- */
.signup { max-width: 520px; }
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__input {
  flex: 1;
  min-width: 220px;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid oklch(0.88 0.007 265);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-2);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.signup__input::placeholder { color: oklch(0.66 0.012 265); }
.signup__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.signup__input.is-error {
  border-color: oklch(0.6 0.18 27);
  box-shadow: 0 0 0 3px oklch(0.6 0.18 27 / 0.12);
}
.signup__note {
  font-size: 13px;
  color: var(--muted-2);
  margin: 12px 0 0;
}
.signup__note.is-error { color: oklch(0.55 0.18 27); }
.signup__note.is-success { color: oklch(0.5 0.13 150); font-weight: 600; }

.signup--lg { max-width: 540px; margin: 0 auto; }
.signup--lg .signup__input {
  border-color: transparent;
  background: color-mix(in srgb, white 92%, transparent);
}
.signup__note--light { color: color-mix(in srgb, white 70%, transparent); }
.signup--lg .signup__note.is-success { color: #fff; }

/* ---------- trust row ---------- */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 500;
}

/* ============ HERO DEMO ============ */
.hero__demo { flex: 1; min-width: 430px; }
.demo {
  background: #fff;
  border: 1px solid oklch(0.91 0.006 265);
  border-radius: 18px;
  box-shadow: 0 30px 70px -34px oklch(0.35 0.06 265 / 0.45);
  overflow: hidden;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: oklch(0.985 0.003 260);
}
.dot { width: 9px; height: 9px; border-radius: 99px; }
.dot--r { background: oklch(0.78 0.1 27); }
.dot--y { background: oklch(0.84 0.1 85); }
.dot--g { background: oklch(0.82 0.1 150); }
.demo__title { font-size: 12.5px; color: var(--muted-2); font-weight: 500; margin-left: 6px; }
.demo__badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 99px;
}
.demo__body { padding: 18px; }
.demo__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.chip {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid oklch(0.9 0.006 265);
  background: #fff;
  color: oklch(0.42 0.018 265);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.demo__q { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.demo__q span {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 9px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 13.5px;
  font-weight: 500;
  max-width: 85%;
}

.demo__answer { display: flex; gap: 11px; }
.demo__avatar {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.demo__avatar .diamond { background: var(--accent); }
.demo__answer-body { flex: 1; min-width: 0; }
.demo__text { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* viz pieces (bars / kpis / table) */
.demo__viz:not(:empty) { margin-top: 14px; }
.viz-bars { display: flex; flex-direction: column; gap: 10px; }
.viz-bar {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 12px;
  align-items: center;
}
.viz-bar__label {
  font-size: 12.5px;
  color: oklch(0.42 0.018 265);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.viz-bar__track {
  height: 7px;
  border-radius: 99px;
  background: oklch(0.95 0.004 265);
  overflow: hidden;
}
.viz-bar__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width .5s cubic-bezier(.2,.7,.3,1);
}
.viz-bar__val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

.viz-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.viz-kpi {
  flex: 1;
  min-width: 104px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
}
.viz-kpi__label { font-size: 11px; color: var(--muted-2); margin-bottom: 5px; }
.viz-kpi__value { font-size: 18px; font-weight: 650; color: oklch(0.24 0.02 265); letter-spacing: -0.01em; }
.viz-kpi__delta { font-size: 11px; font-weight: 600; color: oklch(0.55 0.13 150); margin-top: 4px; }

.viz-table {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.viz-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.viz-table th {
  text-align: left;
  padding: 8px 13px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  background: oklch(0.985 0.003 260);
  border-bottom: 1px solid var(--line);
}
.viz-table td { padding: 8px 13px; border-bottom: 1px solid var(--line-soft); color: oklch(0.36 0.018 265); }
.viz-table tr:last-child td { border-bottom: none; }
.cell--bad { color: oklch(0.55 0.17 27); font-weight: 600; }
.cell--warn { color: oklch(0.58 0.12 70); font-weight: 600; }

.demo__query { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.demo__query-head {
  padding: 7px 12px;
  background: oklch(0.975 0.004 265);
  border-bottom: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.demo__query-code {
  margin: 0;
  padding: 12px 13px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: oklch(0.38 0.02 265);
  white-space: pre-wrap;
  background: #fff;
}

/* ============ CARDS (steps / features) ============ */
.cards { display: flex; flex-wrap: wrap; gap: 22px; }
.step, .feature {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.cards--3 .step { min-width: 290px; padding: 28px 26px; }
.cards--4 .feature { min-width: 240px; padding: 26px 24px; }

.step h3, .feature h3 {
  font-size: 18px;
  font-weight: 600;
  color: oklch(0.24 0.02 265);
  margin: 0 0 9px;
}
.feature h3 { font-size: 16.5px; }
.step p, .feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.feature p { font-size: 14px; }

.step__n {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}
.feature__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature__icon .diamond { background: var(--accent); width: 12px; height: 12px; }

/* ============ COMPARE (why native) ============ */
.compare { display: flex; flex-wrap: wrap; gap: 22px; }
.compare__card {
  flex: 1;
  min-width: 320px;
  border-radius: var(--radius);
  padding: 30px 28px;
}
.compare__card--us { border: 1.5px solid var(--accent-line); background: var(--accent-soft); }
.compare__card--them { border: 1px solid var(--line); background: #fff; }
.compare__head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.compare__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.compare__mark .diamond { width: 9px; height: 9px; border-radius: 2px; }
.compare__mark--muted { background: oklch(0.95 0.004 265); }
.dash { width: 10px; height: 2px; background: oklch(0.65 0.012 265); border-radius: 2px; }
.compare__name { font-size: 17px; font-weight: 700; color: var(--accent-deep); }
.compare__name--muted { color: var(--muted-2); }
.compare__sub {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.compare__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.compare__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  line-height: 1.45;
  color: oklch(0.3 0.02 265);
}
.compare__card--us .compare__list li { font-weight: 500; }
.compare__card--them .compare__list li { color: var(--muted); }
.compare__list .tick { margin-top: 6px; }
.compare__list .tick--empty { margin-top: 5px; }

/* ============ EXAMPLES ============ */
.examples { display: flex; flex-wrap: wrap; gap: 22px; }
.examples__group { flex: 1; min-width: 280px; }
.examples__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.examples__items { display: flex; flex-direction: column; gap: 10px; }
.qcard {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, white);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: oklch(0.32 0.02 265);
  line-height: 1.4;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.qcard .tick { margin-top: 4px; }

/* ============ PRICING ============ */
.pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: stretch;
}
.plan {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px 28px;
}
.plan--featured {
  border: 1.5px solid var(--accent-line);
  background: var(--accent-soft);
  box-shadow: 0 24px 50px -32px oklch(0.55 0.1 60 / 0.5);
  position: relative;
}
.plan__tag {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 99px;
}
.plan__name { font-size: 15px; font-weight: 700; color: var(--accent-deep); letter-spacing: 0.02em; }
.plan__price {
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.plan__price span { font-size: 14px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.plan__desc { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.plan__list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: oklch(0.34 0.018 265); line-height: 1.4; }
.plan__list .tick { margin-top: 5px; }
.pricing__foot { font-size: 14.5px; color: var(--muted); margin: 32px 0 0; text-align: center; }
.pricing__foot a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ============ CTA ============ */
.cta { background: var(--accent-deep); }
.cta__inner { padding: 88px 32px; text-align: center; }
.cta__title {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-wrap: balance;
}
.cta__sub {
  font-size: 18px;
  line-height: 1.55;
  color: color-mix(in srgb, white 80%, transparent);
  max-width: 540px;
  margin: 0 auto 32px;
}
.cta__meta {
  font-size: 13px;
  color: color-mix(in srgb, white 62%, transparent);
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace;
}

/* ============ FOOTER ============ */
.footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer__inner {
  padding: 44px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__tag { font-size: 13px; color: var(--muted-2); margin-left: 8px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; color: var(--muted); }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 13px; color: oklch(0.62 0.013 265); }

/* ============ reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.is-in { animation: fadeUp .5s ease both; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__title { font-size: 44px; }
  .section__title, .cta__title { font-size: 32px; }
}

@media (max-width: 560px) {
  .container, .hero, .nav__inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .hero__copy, .hero__demo { min-width: 100%; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 17px; }
  .section, .band { padding: 64px 0; }
  .section__title, .cta__title { font-size: 28px; }
  .nav__ghost { display: none; }
  .cta__inner { padding: 64px 20px; }
  .signup__row { flex-direction: column; }
  .signup__input, .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .viz-bar__fill { transition: none; }
}
