/*
 * Akselerert — landing page styles.
 * Design tokens and component styles for the marketing site. Built mobile-first
 * with fluid type (clamp) for headings and breakpoints for the multi-column grids.
 */

:root {
  /* Brand accent. Darkened a step from the design's oklch(0.62 0.2 28) so white
     button text clears WCAG AA contrast (4.5:1) on the accent fill. */
  --accent: oklch(0.58 0.2 28);
  /* Darker accent reserved for small accent-colored text on light surfaces
     (eyebrows, validation messages, card numbers) where the fill tone fails AA. */
  --accent-text: oklch(0.5 0.18 28);

  --bg: #f6f4ef;
  --ink: #16150f;
  --ink-soft: #4a463c;
  --muted: #57534b;
  --muted-strong: #3a372f;
  --label: #8a8478;
  --faint: #a8a294;        /* decorative only (logo placeholder fill) */
  --faint-text: #6f6a5e;   /* AA-compliant grey for small label/note text */
  --line: #e2ddd2;
  --line-soft: #f0ece3;
  --surface: #fff;

  --input-bg: #faf8f4;
  --input-border: #928a73; /* darkened to meet WCAG 1.4.11 non-text contrast (3:1) */

  --dark: #16150f;
  --dark-line: #3a382f;
  --dark-muted: #b8b3a8;
  --dark-faint: #8a8478;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --container: 1180px;
  --gutter: 40px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 100;
  border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ===== Shared type ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.acc { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  padding: 16px 28px;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn--dark { background: var(--ink); color: var(--bg); padding: 11px 20px; font-size: 14px; }
.btn--dark:hover { opacity: 0.9; }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }

.btn--block { display: block; width: 100%; padding: 16px; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand__dot { color: var(--accent); }

.site-nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); }

/* Mobile hamburger + dropdown (revealed at the mobile breakpoint below). */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.nav-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 16px;
}
.nav-menu__link {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #ebe7dd;
}
.nav-menu__link:hover { color: var(--ink); }
.nav-menu__cta {
  display: block;
  margin-top: 14px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

/* ===== Hero ===== */
.hero { padding-block: 84px 64px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 8.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 16ch;
}
.hero__row {
  display: flex;
  gap: 56px;
  margin-top: 40px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.hero__lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__cta .btn { white-space: nowrap; }

/* ===== Stat strip ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat { padding: 32px 36px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.4vw, 44px);
  letter-spacing: -0.03em;
}
.stat__label { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ===== Logos ===== */
.logos {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-block: 40px 24px;
}
.logos__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint-text);
  white-space: nowrap;
}
.logos__row { display: flex; gap: 18px; flex: 1; }
.logo {
  flex: 1;
  height: 36px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #e7e2d6, #e7e2d6 6px, #efebe1 6px, #efebe1 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}

/* ===== Section head ===== */
.section-head { padding-block: 80px 40px; }
.section-head .section-title { max-width: 22ch; }

/* ===== Benefits ===== */
.benefits-wrap { padding-top: 0; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.benefit { background: var(--surface); padding: 38px 34px; }
.benefit__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.benefit__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.benefit__body { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ===== Process (dark) ===== */
.process { background: var(--dark); color: var(--bg); margin-top: 96px; }
.process__inner { padding-block: 88px; }
.process .eyebrow { color: var(--accent); } /* accent passes AA on the dark bg */
.process__title { color: var(--bg); margin-bottom: 56px; max-width: 20ch; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step { border-top: 2px solid var(--dark-line); padding-top: 22px; }
.step--first { border-top-color: var(--accent); }
.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dark-faint);
  margin-bottom: 14px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 10px;
}
.step__body { font-size: 15px; line-height: 1.55; color: var(--dark-muted); }

/* ===== Human ===== */
.human { padding-block: 96px; }
.human__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.human__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.human__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0;
}
.owns {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.owns__head {
  border-bottom: 1px solid var(--line);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.owns__head-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.owns__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint-text);
  white-space: nowrap;
}
.owns__list { padding: 8px 0; margin: 0; list-style: none; }
.owns__item {
  padding: 18px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-top: 1px solid var(--line-soft);
}
.owns__item:first-child { border-top: none; }
.owns__item-arrow { font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.owns__item-title { font-weight: 600; font-size: 16px; }
.owns__item-desc { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* ===== Pricing ===== */
.pricing {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pricing__inner { padding-block: 88px; }
.pricing__title { max-width: 18ch; margin-bottom: 12px; }
.pricing__lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 48px;
  max-width: 56ch;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.plan--featured {
  border: 1.5px solid var(--accent);
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: var(--radius);
}
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.plan__desc { font-size: 15px; color: var(--muted); margin: 6px 0 24px; }
.plan__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: -0.03em;
}
.plan__period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint-text);
  margin-bottom: 26px;
  margin-top: 4px;
}
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--muted-strong);
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan__feature { display: flex; gap: 10px; }
.plan__cta { margin-top: 28px; padding: 13px; font-size: 15px; }

/* ===== Contact ===== */
.contact { padding-block: 96px; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 14ch;
}
.contact__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 32px;
}
.contact__points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  color: var(--muted-strong);
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__point { display: flex; gap: 12px; }
.contact__point-arrow { font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.contact__address {
  font-style: normal;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.contact__address-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint-text);
  margin-bottom: 4px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

/* ===== Form ===== */
.form__fields { display: flex; flex-direction: column; gap: 18px; }
.form__errors {
  background: color-mix(in oklab, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, #fff);
  color: var(--muted-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
}
.field { display: flex; flex-direction: column; }
.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
}
.field__input:focus { border-color: var(--accent); }
textarea.field__input { resize: vertical; min-height: 116px; }
.field--invalid .field__input { border-color: var(--accent); }
.field__error { color: var(--accent-text); font-size: 13px; font-weight: 600; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--faint-text); text-align: center; margin: 0; }

/* Honeypot — removed from view but kept in the DOM for bots to fill. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Sent confirmation ===== */
.sent {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.sent__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.sent__title:focus { outline: none; }
.sent__body { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: var(--dark-muted); }
.site-footer__inner {
  padding-block: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--bg);
}
.site-footer__meta { font-size: 14px; }
.site-footer__legal { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.site-footer__link {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__link:hover { color: var(--accent); }
.site-footer__copy { font-family: var(--font-mono); font-size: 12px; color: var(--dark-faint); }

/* ===== Responsive ===== */

/* Tablet — collapse the wide grids and ease the vertical rhythm. */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .hero { padding-block: 56px 48px; }
  .hero__row { gap: 32px; margin-top: 32px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .human__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { padding-block: 56px 32px; }
  .process__inner,
  .pricing__inner { padding-block: 64px; }
  .human,
  .contact { padding-block: 64px; }
  .process { margin-top: 64px; }
}

/* Swap the inline nav for the hamburger menu; single-column pricing. */
@media (max-width: 760px) {
  .site-nav__links { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu:not([hidden]) { display: block; }
  .price-grid { grid-template-columns: 1fr; }
  .plan--featured { box-shadow: none; }
}

/* Phone — matches the mobile design (390px): 20px gutters, compact type. */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .site-nav__inner { padding-top: 16px; padding-bottom: 16px; }
  .brand { font-size: 19px; }

  .eyebrow { font-size: 12px; letter-spacing: 0.14em; margin-bottom: 14px; }

  /* Hero */
  .hero { padding-block: 44px 36px; }
  .hero__title { font-size: 46px; line-height: 0.98; letter-spacing: -0.03em; max-width: none; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 28px; margin-top: 24px; }
  .hero__lede { font-size: 17px; max-width: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; padding: 16px; }

  /* Stat strip */
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px; border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .stat__num { font-size: 40px; }
  .stat__label { margin-top: 2px; }

  /* Logos (2-up when re-enabled) */
  .logos { display: block; padding-block: 32px 8px; }
  .logos__label { margin-bottom: 16px; }
  .logos__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .logo { height: 40px; }

  /* Section headings */
  .section-head { padding-block: 56px 24px; }
  .section-head .section-title { max-width: none; }
  .section-title { font-size: 34px; line-height: 1.04; letter-spacing: -0.025em; }

  /* Benefits */
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { padding: 26px 22px; }
  .benefit__num { margin-bottom: 12px; }
  .benefit__title { font-size: 20px; margin-bottom: 8px; }
  .benefit__body { line-height: 1.5; }

  /* Process */
  .process { margin-top: 56px; }
  .process__inner { padding-block: 56px; }
  .process__title { margin-bottom: 36px; max-width: none; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-top: 18px; }
  .step__num { margin-bottom: 10px; }
  .step__title { font-size: 20px; }
  .step__body { line-height: 1.5; }

  /* Mennesket */
  .human { padding-block: 56px; }
  .human__grid { gap: 28px; }
  .human__title { font-size: 34px; line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 18px; max-width: none; }
  .human__lede { font-size: 16px; max-width: none; }
  .owns { padding: 0; }
  .owns__head { padding: 18px 22px; }
  .owns__head-title { font-size: 15px; }
  .owns__list { padding: 0; }
  .owns__item { padding: 16px 22px; }
  .owns__item-title { font-size: 15px; }
  .owns__item-desc { margin-top: 2px; }

  /* Pricing */
  .pricing__inner { padding-block: 56px; }
  .pricing__title { font-size: 34px; margin-bottom: 10px; max-width: none; }
  .pricing__lede { font-size: 15px; margin-bottom: 32px; }
  .price-grid { gap: 20px; }
  .plan { padding: 28px 24px; }
  .plan__name { font-size: 20px; }
  .plan__desc { font-size: 14px; margin: 5px 0 18px; }
  .plan__price { font-size: 34px; }
  .plan__period { font-size: 11px; margin-bottom: 20px; }
  .plan__features { gap: 10px; }
  .plan__cta { margin-top: 22px; padding: 14px; }
  .plan__badge { top: -11px; left: 24px; }

  /* Contact */
  .contact { padding-block: 56px; }
  .contact__grid { gap: 32px; }
  .contact__title { font-size: 38px; line-height: 1.0; letter-spacing: -0.025em; margin-bottom: 18px; max-width: none; }
  .contact__lede { font-size: 16px; max-width: none; margin-bottom: 24px; }
  .contact__points { gap: 12px; font-size: 15px; }
  .contact-card { padding: 28px 24px; }
  .form__fields { gap: 16px; }
  .field__label { letter-spacing: 0.08em; margin-bottom: 7px; }
  .field__input { padding: 14px; }
  .sent { min-height: 280px; }
  .sent__title { font-size: 28px; }

  /* Footer — stack */
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 36px; }
}
