@font-face { font-family: Karla; font-weight: 400; font-display: swap; src: url(/fonts/karla-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Karla; font-weight: 700; font-display: swap; src: url(/fonts/karla-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }

/* Brand palette — mirrors torpshop-frontend src/providers/ThemeProvider/palette.js */
:root {
  --green-dark: #2F5B27;
  --green: #3C6B2E;
  --ivory: #FDF8E9;
  --sand: #EFE6D2;
  --border: #DCD0B6;
  --hairline: #E7DFCC;
  --mint: #DFE7CE;
  --muted: #635F50;
  --body: #5C5C56;
  --ink: #2E2A20;
  --radius: 18px;
  --heading: "Poppins", system-ui, sans-serif;
  --text: "Karla", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--body);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--heading); color: var(--green-dark); margin: 0; }

/* Language visibility.
   data-layout="stacked": both languages below each other, SV/FI are jump links.
   data-layout="tabs":    one language at a time, SV/FI toggles (needs JS). */
[data-layout="tabs"].js main[lang] { display: none; }
[data-layout="tabs"].js[lang="sv"] main[lang="sv"], [data-layout="tabs"].js[lang="fi"] main[lang="fi"] { display: block; }
[data-layout="stacked"] main { scroll-margin-top: 76px; }
[data-layout="stacked"] main + main, .no-js main + main { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 48px; }
[data-layout="stacked"] .lang a:hover { color: var(--green-dark); }

/* Header */
.bar { background: var(--ivory); position: sticky; top: 0; z-index: 2; }
.bar-inner {
  max-width: 1200px; margin: 0 auto; height: 76px; padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand img { display: block; height: 42px; width: auto; }
.lang { justify-self: end; display: flex; gap: 2px; background: var(--sand); border-radius: 999px; padding: 3px; }
.lang a {
  font: 600 13px/1 var(--heading); letter-spacing: .06em; color: var(--muted);
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
}
.lang a[aria-current="true"] { background: var(--green); color: var(--ivory); }
.no-js .lang { display: none; }

/* Layout */
main { max-width: 680px; margin: 0 auto; padding: 28px 16px 8px; }
.eyebrow, .section-label {
  font: 700 12px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px 2px;
}
.section-label { margin-top: 32px; }

.card {
  background: var(--ivory); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* Hero */
.hero { border: 1.5px solid var(--green); padding: 28px 24px; }
.hero h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--ink); }
.hero strong { color: var(--green-dark); }
.move { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; color: var(--green); }
.pill { font: 600 15px/1 var(--heading); padding: 10px 14px; border-radius: 999px; }
.pill.old { background: var(--sand); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(99,95,80,.5); }
.pill.new { background: var(--mint); color: var(--green-dark); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 20px; border-radius: 12px;
  background: var(--green); color: var(--ivory); text-decoration: none;
  font: 600 16px/1 var(--heading);
  box-shadow: 0 2px 6px rgba(47,91,39,.18);
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); }
.btn:focus-visible, .lang a:focus-visible, summary:focus-visible, .contact a:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -3px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint); color: var(--green-dark); font: 600 15px/1 var(--heading);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 4px;
  width: 1px; background: var(--border);
}
.steps li.done::before { content: "✓"; background: var(--green); color: var(--ivory); }
.steps h3 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.steps p { margin: 2px 0 0; }

/* FAQ */
.faq { padding: 4px 24px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font: 600 16px/1.4 var(--heading); color: var(--green-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary) { margin: 0 0 12px; }
.faq details > :last-child { margin-bottom: 20px; }
.faq ol { padding-left: 22px; }
.faq ol li { margin-bottom: 4px; }

/* Contact */
.contact { display: grid; gap: 4px; padding: 10px; }
.contact a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.contact a:hover { background: var(--sand); }
.contact svg {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  background: var(--mint); fill: none; stroke: var(--green-dark); stroke-width: 1.8;
  stroke-linejoin: round; stroke-linecap: round;
}
.contact small { display: block; font-weight: 400; color: var(--body); font-size: 15px; }

/* Notice / callout */
.notice { display: flex; gap: 16px; align-items: flex-start; background: var(--mint); border-color: #C9D6B2; margin-top: 16px; }
.notice > svg {
  flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%;
  background: var(--ivory); fill: none; stroke: var(--green-dark); stroke-width: 1.8; stroke-linecap: round;
}
.notice h2 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 7px 0 10px; }
.notice p { color: var(--ink); }
.notice strong { color: var(--green-dark); white-space: nowrap; }

.foot { max-width: 680px; margin: 40px auto 0; padding: 24px 16px 40px; text-align: center; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (max-width: 480px) {
  .bar-inner { height: 64px; padding: 0 12px; }
  .brand img { height: 28px; }
  .lang a { padding: 7px 9px; font-size: 12px; }
  .card { padding: 20px; }
  .faq { padding: 2px 20px; }
  .contact { padding: 8px; }
  .notice { flex-direction: column; gap: 10px; }
  .notice h2 { margin-top: 0; }
}
