:root {
  --leaf: #1d3a2b;
  --leaf-soft: #2f5641;
  --baya: #f2c230;
  --baya-deep: #c99a0f;
  --paper: #f6f7f2;
  --white: #ffffff;
  --ink: #17221b;
  --muted: #5d6b60;
  --line: #dfe3d8;
  --chat-bg: #e7ece3;
  --bubble-out: #d9f2c9;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --max: 1080px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-soft); }

:focus-visible {
  outline: 3px solid var(--baya-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 40px; }
.header-link {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
.header-link:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero {
  padding: 40px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 14ch;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 30px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--leaf);
  font-weight: 600;
  margin-bottom: 26px;
}
.status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--baya);
  box-shadow: 0 0 0 4px rgba(242, 194, 48, 0.28);
}
.btn {
  display: inline-block;
  background: var(--leaf);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
}
.btn:hover { background: var(--leaf-soft); color: var(--white); }

/* Chat demo */
.phone {
  background: var(--chat-bg);
  border-radius: var(--radius-lg);
  padding: 18px 16px 22px;
  border: 1px solid var(--line);
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid #d3dacd;
  margin-bottom: 16px;
}
.phone-top .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--leaf);
  display: grid;
  place-items: center;
}
.phone-top .avatar svg { width: 16px; height: 22px; }
.phone-top strong { display: block; font-size: 0.98rem; line-height: 1.2; }
.phone-top span { font-size: 0.8rem; color: var(--muted); }

.msg {
  max-width: 86%;
  padding: 10px 13px 8px;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.45;
  margin-bottom: 10px;
  background: var(--white);
}
.msg.out {
  margin-left: auto;
  background: var(--bubble-out);
  border-bottom-right-radius: 4px;
}
.msg.in { border-bottom-left-radius: 4px; }
.msg .fwd {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2px;
}
.msg time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}
.listing {
  margin: 6px 0 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--baya);
  background: #fbf8ea;
  border-radius: 6px;
}
.listing dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  font-size: 0.86rem;
}
.listing dt { color: var(--muted); }
.listing dd { margin: 0; font-weight: 600; }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
.section-intro {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 40px;
}

.jobs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 56px;
}
.jobs h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.jobs p { margin: 0; color: var(--muted); max-width: 44ch; }
.jobs li { padding-top: 18px; border-top: 3px solid var(--baya); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split p { margin: 0 0 14px; max-width: 52ch; }
.split p:last-child { margin-bottom: 0; }

.contact {
  background: var(--leaf);
  color: var(--white);
}
.contact h2 { color: var(--white); }
.contact p { color: #cfdcd3; max-width: 52ch; margin: 0 0 26px; }
.contact a.mail {
  color: var(--baya);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact a.mail:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal {
  padding: 32px 0 80px;
}
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}
.legal h3 { font-size: 1.08rem; margin: 22px 0 6px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--baya);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}

@media (max-width: 860px) {
  .hero { padding: 16px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { justify-self: start; }
  .jobs { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 56px 0; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .msg { max-width: 92%; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone .msg {
    opacity: 0;
    transform: translateY(6px);
    animation: msg-in 0.45s ease-out forwards;
  }
  .phone .msg:nth-of-type(1) { animation-delay: 0.2s; }
  .phone .msg:nth-of-type(2) { animation-delay: 0.9s; }
  .phone .msg:nth-of-type(3) { animation-delay: 1.7s; }
  .phone .msg:nth-of-type(4) { animation-delay: 2.4s; }
}
@keyframes msg-in {
  to { opacity: 1; transform: none; }
}
