/* Hej website. One stylesheet, no build step. Tokens follow the app design. */

:root {
  --paper: #FCFBF8;
  --sand: #F3F0EA;
  --ink: #141311;
  --ink-hover: #2A2824;
  --muted: #6F6B63;
  --amber: #E9A54A;
  --amber-tint: #FBEBD2;
  --amber-text: #8A5A14;
  --line: rgba(20, 19, 17, .08);
  --line-strong: #E6E1D8;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1040px;
  --wrap-text: 700px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-text); }

:focus-visible {
  outline: 2px solid var(--amber-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img.mark { width: 36px; height: 36px; border-radius: 10px; }
.brand img.wordmark { width: auto; height: 22px; }

/* ---------- language switch ---------- */

.langs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 13px;
}
.langs a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.langs a:hover { background: var(--sand); color: var(--ink); }
.langs a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- sections ---------- */

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.sand { background: var(--sand); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: pretty;
}

h1 { font-size: clamp(40px, 9vw, 68px); }
h2 { font-size: clamp(28px, 5vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }

.accent { color: var(--amber-text); }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
  margin: 20px 0 0;
}

.hero { padding: 72px 0 64px; }
.hero .lead { margin-top: 24px; }

.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-art { display: none; }
.hero-art svg { width: 100%; height: auto; max-width: 300px; }

/* ---------- buttons and store links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}
.btn:hover { background: var(--ink-hover); color: var(--paper); }
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: rgba(20, 19, 17, .2);
}
.btn.secondary:hover { background: var(--sand); color: var(--ink); }

.store-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--amber-text);
  margin-bottom: 10px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.badge {
  display: inline-block;
  background: var(--amber-tint);
  color: var(--amber-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.plain-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list strong { color: var(--ink); font-weight: 500; }

/* ---------- prose (legal, faq) ---------- */

.prose { padding: 56px 0 72px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 {
  font-size: 26px;
  margin: 48px 0 14px;
  scroll-margin-top: 24px;
}
.prose h3 { margin: 28px 0 8px; font-size: 18px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.toc {
  background: var(--sand);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 0 0 40px;
}
.toc h2 {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 16px; }

.faq { margin-top: 8px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 {
  font-size: 21px;
  margin: 0 0 10px;
}
.faq-item p:last-child { margin-bottom: 0; }

.callout {
  background: var(--amber-tint);
  border-radius: 18px;
  padding: 24px;
  margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h2 { margin-top: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sand);
  padding: 48px 0 56px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-nav a { font-size: 15px; text-decoration: none; color: var(--ink); }
.footer-nav a:hover { color: var(--amber-text); text-decoration: underline; }
.footer-legal {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.footer-legal p { margin: 0 0 4px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  section { padding: 84px 0; }
  .hero { padding: 96px 0 84px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
  .steps li { border-bottom: 1px solid var(--line); }
  .prose { padding: 72px 0 96px; }
}

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
  .hero-art { display: block; justify-self: end; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
