/* Organum — landing page. Same design language: paper-on-canvas,
   Schibsted Grotesk + Source Serif 4, green #0E9F6E. */

:root {
  --canvas: #F2F4F4;
  --paper: #FFFFFF;
  --ink: #1C2326;
  --muted: #79858A;
  --faint: #A8B2B6;
  --line: #E4E8E9;
  --accent: #0E9F6E;
  --accent-ink: #0B7F58;
  --accent-soft: #E3F4EC;

  --neg: #C4504C;     --neg-bg: #FAEDEC;   --neg-strong: #F5D9D7;
  --dual: #A87C24;    --dual-bg: #FAF2DF;  --dual-strong: #F3E4BC;
  --pos: #178F62;     --pos-bg: #E7F4EE;   --pos-strong: #CFEADD;

  --ui: "Schibsted Grotesk", -apple-system, sans-serif;
  --doc: "Source Serif 4", Charter, Georgia, serif;

  --max-w: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  animation: page-in .55s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* ── Header ── */

.l-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 36px;
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: blur(10px);
}

.l-brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: inherit; text-decoration: none;
}

/* ── Buttons ── */

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 14px/1 var(--ui);
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(14,159,110,.35);
  transition: background .15s ease, transform .12s ease, box-shadow .2s ease;
}
.btn-primary:hover {
  background: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(14,159,110,.30);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(.97); }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn-arrow { flex-shrink: 0; }

/* ── Hero ── */

.hero {
  padding: clamp(64px, 10vw, 120px) 36px clamp(48px, 8vw, 96px);
  display: flex; justify-content: center;
}

.hero-inner {
  max-width: var(--max-w);
  width: 100%;
  animation: rise .6s .05s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

.hero-label {
  display: inline-block;
  font: 600 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  border-radius: 999px; padding: 6px 14px;
  margin-bottom: 28px;
}

.hero-heading {
  font-family: var(--doc);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
  margin: 0 0 40px;
}

/* ── Sample highlight visual ── */

.sample-section {
  padding: 0 36px 80px;
  display: flex; justify-content: center;
  animation: rise .6s .12s cubic-bezier(.2,.7,.3,1) both;
}

.sample-wrap {
  max-width: var(--max-w); width: 100%;
}

.sample-paper {
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(22,32,38,.08), 0 14px 44px rgba(22,32,38,.08);
  padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 60px);
}

.sample-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin: 0 0 18px;
}
.sample-title {
  font: 600 20px/1.3 var(--doc);
  color: var(--ink); margin: 0;
}
/* A–F grade badge in the sample (mirrors the app's rail grade) */
.sample-grade {
  flex-shrink: 0; text-align: center;
  font: 800 32px/1 var(--ui); letter-spacing: -.02em;
  color: #e8590c;  /* D → orange */
}
.sample-grade span {
  display: block; margin-top: 4px;
  font: 600 10px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
}

.sample-body {
  font: 400 17px/1.8 var(--doc);
  color: var(--ink);
}

/* marks (same classes as main app) */
.sample-body mark {
  border-radius: 3px; padding: 1px 1px;
  color: inherit; font-style: inherit;
  border-bottom: 2px solid transparent;
}
.s-neg { background: var(--neg-bg); border-bottom-color: var(--neg) !important; }
.s-dual { background: var(--dual-bg); border-bottom-color: var(--dual) !important; }
.s-pos { background: var(--pos-bg); border-bottom-color: var(--pos) !important; }

.sample-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.leg-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
}
.sw {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0;
}
.sw-neg { background: var(--neg); }
.sw-dual { background: var(--dual); }
.sw-pos { background: var(--pos); }

/* ── Features ── */

.features {
  padding: clamp(48px, 7vw, 96px) 36px;
  display: flex; justify-content: center;
}

.features-inner {
  max-width: var(--max-w); width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.feature {
  animation: rise .55s cubic-bezier(.2,.7,.3,1) both;
}
.feature:nth-child(1) { animation-delay: .08s; }
.feature:nth-child(2) { animation-delay: .14s; }
.feature:nth-child(3) { animation-delay: .20s; }

.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.feature-title {
  font: 600 16px/1.3 var(--ui);
  color: var(--ink); margin: 0 0 10px;
}

.feature-desc {
  font-size: 14px; line-height: 1.65;
  color: var(--muted); margin: 0;
}

/* ── CTA section ── */

.cta-section {
  padding: clamp(48px, 7vw, 80px) 36px;
  display: flex; justify-content: center;
}

.cta-inner {
  max-width: var(--max-w); width: 100%;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(22,32,38,.06), 0 8px 30px rgba(22,32,38,.07);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  animation: rise .55s .15s cubic-bezier(.2,.7,.3,1) both;
}

.cta-heading {
  font: 600 clamp(22px, 3.5vw, 32px)/1.25 var(--doc);
  color: var(--ink); margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 15px; color: var(--muted); margin: 0 0 32px;
  line-height: 1.55;
}

/* ── Footer ── */

.l-footer {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 36px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}

.footer-link {
  color: var(--faint); text-decoration: none;
  transition: color .12s;
}
.footer-link:hover { color: var(--muted); }

/* ── Responsive ── */

@media (max-width: 640px) {
  .l-header { padding: 16px 20px; }
  .hero, .sample-section, .features, .cta-section { padding-left: 20px; padding-right: 20px; }
  .features-inner { grid-template-columns: 1fr; gap: 28px; }
  .l-footer { padding: 20px; }
}

@media (max-width: 880px) {
  .features-inner { grid-template-columns: 1fr 1fr; }
}

.sample-note {
  max-width: var(--max-w); margin: 18px auto 0;
  text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
