/* ── Relay design tokens · Bone & Forest (brand kit v2.0) ────────────
   Shape rule: buttons = pill, cards = 14px, inputs = 10px.
   One brand family: forest. Clay is the single warm accent, one per view. */

:root {
  --bg: #F3F1EA;             /* bone-100 · page ground   */
  --surface: #FBFAF6;        /* bone-50  · card / paper  */
  --surface-2: #E7E3D8;      /* bone-200 · sunken        */
  --ink: #1E3128;            /* forest-900               */
  --ink-2: #465D51;          /* forest-600 · text-safe   */
  --ink-3: #8E877A;          /* bone-500 · tertiary      */
  --line: #E7E3D8;           /* bone-200                 */
  --line-strong: #D5CFC0;    /* bone-300                 */
  --accent: #1E3128;         /* action-primary (forest-900) */
  --accent-hover: #2A3B33;   /* forest-800               */
  --accent-ink: #465D51;     /* forest-600 · brand text  */
  --accent-mid: #5A7565;     /* forest-500 · fills, focus */
  --accent-tint: #EEF3EF;    /* forest-50                */
  --accent-tint-2: #DCE6DF;  /* forest-100               */
  --clay: #9C5334;           /* the one warm accent      */
  --clay-ink: #8F4A2E;
  --clay-tint: #F4E4DA;
  --danger: #A33C34;
  --danger-tint: #F7E4E1;
  --amber: #8A6415;
  --amber-tint: #F6EDD6;
  --wa-chat-bg: #e7e0d5;
  --wa-bubble-out: #d9f2c8;
  --wa-bubble-in: #ffffff;
  --shadow-card: 0 1px 3px rgba(30, 49, 40, 0.07), 0 6px 16px rgba(30, 49, 40, 0.07);
  --shadow-pop: 0 5px 12px rgba(30, 49, 40, 0.05), 0 16px 40px rgba(30, 49, 40, 0.10);
  --r-card: 14px;
  --r-input: 10px;
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif; /* italic only, one phrase per page */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.14; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 550; line-height: 1;
  padding: 14px 26px; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 14px 16px; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--line-strong); }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 550; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .error-text { font-size: 13px; color: var(--danger); display: none; }
.field.invalid .error-text { display: block; }
.field.invalid input { border-color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="tel"], select, textarea {
  width: 100%; appearance: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
  padding: 13px 14px; font-size: 15px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(90, 117, 101, 0.22);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355605a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 241, 234, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; font-size: 20px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 28px; height: 28px; }

/* ── Badges / pills ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 5px 12px;
  font-size: 12.5px; font-weight: 550;
  background: var(--accent-tint); color: var(--accent-ink);
}
.pill-amber { background: var(--amber-tint); color: var(--amber); }
.pill-neutral { background: var(--surface-2); color: var(--ink-2); }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 0; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: none; color: var(--ink); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { font-size: 14px; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer-note { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .nav.open .nav-links { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; order: 3; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
  .nav.open .nav-links a { display: block; width: 100%; padding: 10px 0; font-size: 16px; }
  .nav.open .nav-cta { flex-basis: 100%; order: 4; padding-top: 12px; }
  .nav.open .nav-cta a { flex: 1; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Inline SVG icons (js/icons.js sprite replaces the Phosphor icon font) */
.ph { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; fill: currentColor; flex: none; }
