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

:root {
  --ink: #15181C;
  --text: #3D434A;
  --muted: #5B6168;
  --line: #E2E4E1;
  --surface: #F3F4F2;
  --bg: #FFFFFF;
  --accent: #1E5A47;
  --accent-hover: #174636;
  --radius: 10px;
  --wrap: 1200px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 104px; padding-bottom: 104px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { text-decoration: none; }
.wordmark { font-size: 21px; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); white-space: nowrap; }
.wordmark b { font-weight: 800; }
.nav-right { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-section { text-decoration: none; }

.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 600; }
.lang a { text-decoration: none; color: var(--muted); padding: 6px 9px; border-radius: 5px; line-height: 1; }
.lang a:hover { color: var(--ink); background: var(--surface); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Buttons and links */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--accent); color: #fff; border-radius: var(--radius);
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-sm { font-size: 15px; padding: 11px 18px; border-radius: 8px; white-space: nowrap; }
.btn-lg { font-size: 17px; padding: 16px 26px; }
.link-strong { font-weight: 600; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.note { font-size: 14px; color: var(--muted); }
.lead { font-size: 19px; color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 104px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero .lead { margin-top: 28px; }
.hero .actions { margin-top: 36px; }
.hero .note { margin-top: 28px; }

/* Before / after */
.compare { flex: 1 1 480px; min-width: 0; margin: 0; }
.browser {
  border: 1px solid #D5D8D4; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -30px rgba(21, 24, 28, 0.35);
}
.browser-bar { height: 38px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.browser-url { font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 14px; }
.compare-stage { --pos: 50%; position: relative; height: 400px; overflow: hidden; user-select: none; }
/* Each version gets its own side and reflows as the divider moves, so both always read in full */
.compare-stage > .old, .compare-stage > .new { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.compare-stage > .old { left: 0; right: calc(100% - var(--pos)); }
.compare-stage > .new { left: var(--pos); right: 0; }

.old {
  background: #EFE3B4; padding: 20px 16px; text-align: center;
  font-family: "Times New Roman", Times, serif; color: #222;
}
.old-title { font-size: 26px; font-weight: 700; color: #A11D1D; text-decoration: underline; letter-spacing: 0.02em; }
.old-links { margin-top: 8px; font-size: 13px; color: #1A3FB8; text-decoration: underline; }
.old-photo {
  margin: 16px auto 0; width: 78%; height: 112px; background: #B9B39A; border: 3px ridge #8C866C;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #4A4636;
}
.old-text { margin-top: 14px; font-size: 15px; }
.old-map { margin-top: 10px; font-size: 13px; color: #1A3FB8; text-decoration: underline; }
.old-count { margin: 14px auto 0; width: max-content; font-size: 11px; color: #fff; background: #222; padding: 2px 6px; font-family: "Courier New", monospace; }

/* The fictional client site uses its own identity, not Aranha's */
.new {
  background: #F7F1E6; color: #24324F; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
.new-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; }
.new-name { font-size: 15px; font-weight: 700; font-style: italic; }
.new-links { display: flex; gap: 14px; color: #4B5875; font-family: system-ui, sans-serif; }
.new-photo {
  height: 132px; border-radius: 3px;
  background:
    radial-gradient(circle at 30% 60%, #E3B66A 0 18%, transparent 19%),
    radial-gradient(circle at 52% 52%, #C98E4B 0 15%, transparent 16%),
    radial-gradient(circle at 72% 62%, #EBCB8B 0 17%, transparent 18%),
    #E9DCC4;
}
.new-h { font-size: 24px; line-height: 1.15; font-weight: 700; }
.new-p { font-size: 13px; color: #4B5875; font-family: system-ui, sans-serif; }
.new-btns { display: flex; flex-wrap: wrap; gap: 8px 10px; font-family: system-ui, sans-serif; font-size: 12px; font-weight: 600; }
.new-b1 { background: #24324F; color: #F7F1E6; padding: 8px 14px; border-radius: 3px; }
.new-b2 { border: 1px solid #24324F; padding: 7px 13px; border-radius: 3px; }

.divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.handle {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-range:focus-visible + .handle, .compare-stage:has(.compare-range:focus-visible) .handle { outline: 3px solid var(--accent); outline-offset: 3px; }
.compare-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.compare-caption > span:first-child, .compare-caption > span:last-child { color: var(--ink); font-weight: 600; }

/* Services */
.band-light { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; justify-content: space-between; }
.section-head h2 { max-width: 14ch; }
.section-head p { color: var(--text); max-width: 30em; }
.services { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 56px 48px; }
.service { border-top: 2px solid var(--ink); padding-top: 22px; }
.service p { margin-top: 12px; color: var(--text); }

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: 26px; letter-spacing: -0.02em; }
.step p { color: var(--text); }
.step-n { font-size: 15px; font-weight: 700; color: var(--accent); }

/* Languages */
.band-dark { background: var(--ink); color: #fff; }
.band-dark h2 { color: #fff; }
.langs { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: space-between; }
.langs-words {
  flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
}
.langs-words span:nth-child(2) { color: #A9AFB6; }
.langs-words span:nth-child(3) { color: #7D848C; }
.langs-text { flex: 1 1 320px; min-width: 0; }
.langs-text h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.langs-text p { margin-top: 14px; color: #C9CDD2; }

/* Contact */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 120px; padding-bottom: 120px; }
.contact h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.contact .mail { font-size: 19px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; font-size: 15px; color: var(--muted); }
.footer .wordmark { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* Legal page */
.legal { max-width: 760px; padding-top: 80px; padding-bottom: 104px; }
.legal h1 { max-width: none; font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 40px; }
.legal h2 { font-size: 22px; letter-spacing: -0.015em; font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
.legal p { color: var(--text); margin-bottom: 12px; }
.legal .note { margin-top: 40px; }
.todo { background: #FFF1B8; color: #5A4300; padding: 0 4px; border-radius: 3px; }

/* Small screens */
@media (max-width: 900px) {
  .nav-section { display: none; }
  .nav-right { gap: 14px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero { padding-top: 56px; padding-bottom: 80px; gap: 48px; }
  .nav .btn-sm { display: none; }
  .wordmark { font-size: 19px; }
  .compare-stage { height: 360px; }
  .old { padding: 18px 14px; }
  .old-title { font-size: 19px; }
  .old-links { font-size: 11px; }
  .new { padding: 18px 18px; }
  .new-links { display: none; }
  .new-h { font-size: 19px; }
  .contact { padding-top: 88px; padding-bottom: 88px; }
}
