@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #eef2eb;
  --paper-2: #e3eadf;
  --ink: #15281c;
  --ink-2: #3c4f42;
  --muted: #5a6b5f;
  --vine: #24492f;
  --vine-2: #1b3824;
  --grape: #5d2b57;
  --grape-2: #4a2045;
  --grape-tint: #efe3ed;
  --leaf: #a9c79a;
  --leaf-tint: #dfeed6;
  --amber: #d98e2b;
  --amber-tint: #fbecd3;
  --white: #ffffff;
  --line: #d3ddcd;
  --measure: 34rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--grape); text-underline-offset: 3px; }
a:hover { color: var(--grape-2); }
:focus-visible { outline: 3px solid rgba(93, 43, 87, .45); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.center { text-align: center; }

/* Header */
.site-head { position: relative; z-index: 2; }
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; white-space: nowrap; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand small { font-weight: 500; font-size: var(--step--1); color: var(--muted); letter-spacing: 0; }
.brand-mark { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: #8a4a82; box-shadow: 7px -6px 0 -3px var(--leaf); margin-right: 6px; position: relative; top: 1px; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav .nav-cta { color: var(--white); background: var(--grape); padding: 9px 16px; border-radius: 8px; font-weight: 700; }
.site-nav .nav-cta:hover { background: var(--grape-2); color: var(--white); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 9px; padding: 14px 22px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-grape { background: var(--grape); color: var(--white); }
.btn-grape:hover { background: var(--grape-2); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--vine-2); }
.btn-light:hover { background: var(--white); color: var(--vine-2); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 40px 0 96px; }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 850; letter-spacing: -0.035em; line-height: .98; max-width: 11ch; }
.hero .lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); margin-top: 26px; max-width: var(--measure); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 16px; color: var(--muted); font-size: var(--step--1); }

/* The feed: the one memorable element */
.feed { background: var(--vine-2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(27, 56, 36, .55); color: var(--paper); }
.feed-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 14px; font-size: var(--step--1); color: #b9cbb4; }
.feed-head b { color: var(--white); font-weight: 700; }
.feed-live { display: inline-flex; align-items: center; gap: 7px; }
.feed-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(169, 199, 154, .2); }
.feed ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alert { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; background: var(--white); color: var(--ink); border-radius: 12px; padding: 14px 16px; }
.alert .mono { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; color: var(--white); }
.alert .who { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.alert .meta { font-size: 0.82rem; color: var(--muted); margin-top: 1px; }
.alert .did { font-size: 0.92rem; color: var(--ink-2); margin-top: 6px; }
.alert .when { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.chip { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 8px; }
.chip-hot { background: var(--amber-tint); color: #8a5208; }
.chip-src { background: var(--paper); color: var(--ink-2); }
.feed-note { font-size: 0.78rem; color: #9fb39a; margin: 12px 6px 0; }

@media (prefers-reduced-motion: no-preference) {
  .feed li { opacity: 0; transform: translateY(14px) scale(.98); animation: arrive .55s cubic-bezier(.2, .8, .2, 1) forwards; }
  .feed li:nth-child(1) { animation-delay: 1.5s; }
  .feed li:nth-child(2) { animation-delay: 1.0s; }
  .feed li:nth-child(3) { animation-delay: .55s; }
  .feed li:nth-child(4) { animation-delay: .15s; }
  .feed li:nth-child(1) .alert { animation: ping 1.4s ease-out 2.1s 1; }
}
@keyframes arrive { to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217, 142, 43, .55); } 100% { box-shadow: 0 0 0 14px rgba(217, 142, 43, 0); } }

/* Sections */
.band { padding: 96px 0; }
.band-white { background: var(--white); }
.band-vine { background: var(--vine); color: var(--paper); }
.band h2 { font-size: var(--step-3); max-width: 20ch; }
.band .intro { font-size: var(--step-1); color: var(--ink-2); margin-top: 18px; max-width: var(--measure); line-height: 1.45; }

/* How it works: a real sequence, so numbered */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 22px; }
.steps li::before { content: counter(s); display: block; font-size: var(--step-3); font-weight: 850; line-height: 1; color: var(--grape); margin-bottom: 18px; }
.steps h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.steps p { margin-top: 10px; color: var(--ink-2); max-width: 30ch; }
.steps code { display: block; margin-top: 16px; font-size: 0.8rem; line-height: 1.5; background: var(--vine-2); color: var(--leaf-tint); padding: 12px 14px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hero .shell > *, .steps > li, .anatomy > *, .statement > *, .pricing > *, .extras > *, .auth-grid > * { min-width: 0; }

/* Alert anatomy: colour-matched parts and explanations */
.anatomy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; margin-top: 56px; align-items: start; }
.slack { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.slack-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.slack-top .app { width: 38px; height: 38px; border-radius: 9px; background: var(--vine); display: grid; place-items: center; }
.slack-top .app span { width: 12px; height: 12px; border-radius: 50%; background: #b077a8; box-shadow: 7px -6px 0 -3px var(--leaf); }
.slack-top b { font-size: 0.98rem; }
.slack-top em { font-style: normal; color: var(--muted); font-size: 0.82rem; margin-left: 6px; }
.part { border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.part-company { background: var(--leaf-tint); }
.part-pages { background: var(--white); border: 1.5px solid #c9d3c4; }
.part-source { background: var(--grape-tint); }
.part-signal { background: var(--amber-tint); }
.part h4 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.part p, .part li { font-size: 0.93rem; color: var(--ink-2); }
.part ul { margin: 4px 0 0; padding-left: 18px; }
.part .row { display: flex; gap: 24px; flex-wrap: wrap; }
.part .row div span { display: block; font-size: 0.78rem; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.legend li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; }
.legend .sw { width: 18px; height: 18px; border-radius: 5px; margin-top: 5px; border: 2px solid; }
.legend .sw-company { background: var(--leaf-tint); border-color: #7fa96f; }
.legend .sw-pages { background: var(--white); border-color: #9fb099; }
.legend .sw-source { background: var(--grape-tint); border-color: #b07aa8; }
.legend .sw-signal { background: var(--amber-tint); border-color: var(--amber); }
.legend h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.legend p { margin-top: 6px; color: var(--ink-2); }
.extras { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 36px; }
.extras h3 { font-size: 1.05rem; letter-spacing: -0.005em; }
.extras p { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }

/* Companies, not people */
.statement { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: end; }
.statement h2 { font-size: var(--step-4); max-width: 13ch; letter-spacing: -0.035em; line-height: 1; color: var(--paper); }
.statement p { color: #c7d6c2; font-size: var(--step-1); line-height: 1.5; }
.statement p + p { margin-top: 16px; font-size: var(--step-0); }
.promises { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; list-style: none; padding: 0; }
.promises li { border-top: 2px solid rgba(169, 199, 154, .45); padding-top: 18px; }
.promises h3 { font-size: var(--step-1); color: var(--white); letter-spacing: -0.01em; }
.promises p { margin-top: 8px; color: #c7d6c2; max-width: 40ch; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.plan { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 34px; }
.plan .price { display: flex; align-items: baseline; gap: 10px; }
.plan .price strong { font-size: var(--step-4); font-weight: 850; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--muted); }
.plan .name { font-weight: 800; font-size: var(--step-1); margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 6px; border-left: 2.5px solid var(--vine); border-bottom: 2.5px solid var(--vine); transform: rotate(-45deg); }
.pricing .more { margin-top: 22px; color: var(--ink-2); max-width: var(--measure); }

/* FAQ */
.faq { margin-top: 44px; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--grape); border-bottom: 2.5px solid var(--grape); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 44rem; }

/* Closing band */
.closing { background: var(--grape); color: var(--white); padding: 88px 0; }
.closing .shell { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.closing h2 { font-size: var(--step-3); max-width: 18ch; }

/* Footer */
.site-foot { padding: 40px 0 48px; font-size: var(--step--1); color: var(--muted); }
.site-foot .shell { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); }
.site-foot .fine { width: 100%; }

/* Auth pages */
.auth { padding: 32px 0 96px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 30rem); justify-content: center; gap: 56px; align-items: start; }
.auth.with-aside .auth-grid { grid-template-columns: minmax(0, 30rem) minmax(0, 20rem); }
.auth-card { background: var(--white); border-radius: 18px; padding: 36px; border: 1px solid var(--line); }
.auth-card h1 { font-size: var(--step-2); margin-bottom: 22px; }
.auth-card .lede { color: var(--ink-2); margin-bottom: 20px; }
.auth-aside { padding-top: 12px; }
.auth-aside h2 { font-size: var(--step-1); }
.auth-aside .ticks { margin: 18px 0; }
.stack { display: grid; gap: 16px; }
.stack label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.stack label small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.stack .opt { font-weight: 400; color: var(--muted); }
.stack input { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #c3cfbd; border-radius: 9px; background: var(--white); color: var(--ink); width: 100%; }
.stack input:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 3px rgba(93, 43, 87, .18); }
.stack label.check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; font-weight: 400; font-size: 0.92rem; color: var(--ink-2); }
.stack label.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--grape); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 0.95rem; }
.note ul { margin: 0; padding-left: 18px; }
.note.error { background: #fbe7e0; color: #8d2a12; }
.note.ok { background: var(--leaf-tint); color: var(--vine-2); }
.note.info { background: var(--grape-tint); color: var(--grape-2); }

/* Legal pages */
.legal { padding: 24px 0 96px; }
.legal article { max-width: 46rem; background: var(--white); border-radius: 18px; padding: 44px; border: 1px solid var(--line); }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-1); margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); margin-top: 10px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .shell, .anatomy, .statement, .pricing { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth.with-aside .auth-grid { grid-template-columns: minmax(0, 30rem); }
  .auth-aside { display: none; }
}
@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .site-head .shell { min-height: 64px; flex-wrap: nowrap; gap: 12px; }
  .brand small { display: none; }
  .site-nav { gap: 14px; flex-wrap: nowrap; }
  .site-nav a[href^="index.php#"] { display: none; }
  .site-nav a { white-space: nowrap; }
  .site-nav .nav-cta { padding: 8px 12px; font-size: 0.9rem; }
  .hero { padding: 20px 0 64px; }
  .band { padding: 64px 0; }
  .alert { grid-template-columns: 36px 1fr; gap: 12px; padding: 12px; }
  .alert .mono { width: 36px; height: 36px; font-size: 0.82rem; }
  .alert .when { grid-column: 2; }
  .extras, .promises { grid-template-columns: 1fr; }
  .auth-card, .legal article, .plan { padding: 24px; }
}
