/* Nordagent landing page — static CSS, no build step */
html { text-size-adjust: 100%; }

:root {
  --ink: #12201b;
  --ink-soft: #1c322b;
  --snow: #f4f1ea;
  --paper: #fbfaf6;
  --mist: #e6e1d6;
  --line: #d5cfc3;
  --aurora: #0f7a6c;
  --aurora-bright: #1aa58f;
  --text: #1a241f;
  --muted: #5c675f;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(18, 32, 27, 0.1);
  --radius: 16px;
  --header: 72px;
  --font: "Schibsted Grotesk", "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: color-mix(in srgb, var(--snow) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand img { border-radius: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--aurora); }
.nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--ink-soft); }
.btn:focus-visible,
.text-link:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.social a:focus-visible,
.footer-grid a:focus-visible {
  outline: 2px solid var(--aurora-bright);
  outline-offset: 3px;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }
.btn-light {
  background: var(--paper);
  color: var(--ink) !important;
  border-color: var(--paper);
}
.btn-light:hover { background: var(--white); }
.price-card.is-featured .btn:not(.btn-ghost) {
  background: var(--paper);
  color: var(--ink) !important;
  border-color: var(--paper);
}
.price-card.is-featured .btn:not(.btn-ghost):hover { background: var(--white); }

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
}
.text-link:hover { color: var(--aurora); border-color: var(--aurora); }

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aurora);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora-bright);
  box-shadow: 0 0 0 0 rgba(26, 165, 143, 0.55);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(26, 165, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 165, 143, 0); }
}

.hero h1,
.benefits h2,
.demo h2,
.pricing h2,
.close h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  max-width: 12ch;
  text-wrap: wrap;
}
.hero h1 em {
  font-style: italic;
  color: var(--aurora);
}

.lede {
  margin: 1.35rem 0 1.8rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.6rem;
}

.chat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--mist);
  font-weight: 600;
  font-size: 0.92rem;
}
.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--aurora-bright);
}
.chat-meta {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem 1.15rem 1.35rem;
  background:
    linear-gradient(180deg, #eef6f3 0%, var(--paper) 48%);
}
.bubble {
  margin: 0;
  max-width: 86%;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.bubble.in {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--mist);
  border-bottom-left-radius: 6px;
}
.bubble.out {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}

/* Benefits */
.benefits {
  padding: 1rem 0 5.5rem;
}
.section-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aurora);
}
.benefits h2,
.demo h2,
.pricing h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  max-width: 22ch;
  margin-bottom: 0.4rem;
}
.section-lead {
  max-width: 38rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.4rem;
}
.benefit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}
.benefit-num {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--aurora);
}
.benefit h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.benefit p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Demo */
.demo {
  padding: 0 0 5.5rem;
}
.demo-head { margin-bottom: 1.6rem; }
.demo-shot {
  margin: 0 auto;
  max-width: 36rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.demo-shot img,
.demo-media {
  width: 100%;
  height: auto;
  display: block;
}
.demo-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.6rem;
  max-width: 36rem;
  margin-inline: auto;
}
.demo-cta p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

/* Pricing */
.pricing {
  padding: 0 0 5.5rem;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.2rem;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.price-card.is-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.price-card h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-card.is-featured h3 { color: var(--aurora-bright); }
.price {
  margin: 1rem 0 1.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.amount {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.period {
  color: var(--muted);
  font-weight: 500;
}
.price-card.is-featured .period {
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}
.price-card ul {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  flex: 1;
}
.price-card li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.3rem;
  border-top: 1px solid var(--mist);
  color: var(--muted);
}
.price-card.is-featured li {
  border-top-color: color-mix(in srgb, var(--paper) 16%, transparent);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aurora-bright);
}
.price-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Close */
.close {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0;
}
.close-inner {
  max-width: 40rem;
  text-align: center;
}
.close h2 {
  color: var(--paper);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 18ch;
  margin: 0 auto;
}
.close p {
  margin: 1.1rem auto 1.8rem;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
  max-width: 36rem;
}

/* Footer */
.site-footer {
  background: #0d1814;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  padding: 3rem 0 1.6rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
}
.brand-footer { color: var(--paper); }
.footer-tag {
  margin: 0.8rem 0 0;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}
.footer-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
}
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--paper); }
.social { list-style: none; margin: 0; padding: 0; }
.social li + li { margin-top: 0.4rem; }
.ph {
  color: #d4a017;
  font-weight: 600;
  font-size: 0.8em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.footer-bottom p,
.footer-bottom a {
  margin: 0;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  text-decoration: none;
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible { color: var(--paper); }

/* Personvernerklæring */
.legal {
  padding: 3.25rem 0 5.5rem;
}
.legal-inner {
  max-width: 42rem;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0;
  text-wrap: balance;
}
.legal-updated {
  margin: 0.85rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal h2 {
  margin: 2.15rem 0 0.7rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal p {
  margin: 0 0 0.9rem;
  color: var(--text);
}
.legal a {
  color: var(--aurora);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.legal a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid,
  .benefit-grid,
  .price-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 2.6rem 0 3.5rem; }
  .hero-grid { gap: 2.2rem; }
  .hero h1 { max-width: none; }
  .nav-burger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 0.7rem 0; }
  .nav .btn { margin-top: 0.4rem; width: 100%; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .close { padding: 3.5rem 0; }
  .legal { padding: 2.4rem 0 3.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}
