/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.menu-open body {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
main:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.surface-night :focus-visible {
  outline-color: var(--c-on-night);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: var(--s-4);
  top: var(--s-3);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--c-ink);
  color: var(--c-paper);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

/* Typography */
.h1,
.h2,
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: var(--lh-head);
  text-wrap: balance;
}
.h1 {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: var(--t-h2);
}
.h3 {
  font-size: var(--t-h3);
  font-weight: 500;
}
p {
  text-wrap: pretty;
}

.label {
  font-family: var(--f-text);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-soft);
}

/* Section kicker – set in the display face, closed by the red full stop of the logo */
.eyebrow {
  margin-bottom: var(--s-4);
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.eyebrow .stop {
  margin-left: 0.04em;
}

/* The logo's full stop */
.stop {
  color: var(--accent);
  margin-left: 0.02em;
}

/* Buttons – the red dot is the full stop of the label; on hover it fills the button. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 22px;
  border: var(--hair) solid var(--c-ink);
  border-radius: var(--r-0);
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.btn__label {
  position: relative;
  z-index: 1;
}
.btn__dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--r-circle);
  background: var(--accent);
  transition: transform var(--dur-3) var(--ease);
}
.btn .btn__dot {
  position: relative;
  z-index: 0;
}
.btn:hover .btn__dot,
.btn:focus-visible .btn__dot {
  transform: scale(70);
}
.btn:hover,
.btn:focus-visible {
  color: #fff;
  border-color: var(--accent);
}
.btn--primary {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn--line {
  background: transparent;
  color: var(--c-ink);
}
.btn--on-night {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--c-paper);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: var(--hair) solid transparent;
}
.textlink:hover {
  text-decoration: underline;
}
.textlink__arrow {
  width: 22px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform var(--dur-2) var(--ease);
}
.textlink:hover .textlink__arrow {
  transform: translateX(5px);
}

/* Product status: empty ring → half → full circle */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-text);
  font-size: var(--t-label);
  white-space: nowrap;
}
.status__node {
  width: 10px;
  height: 10px;
  border-radius: var(--r-circle);
  border: 1.5px solid currentColor;
}
.status--beta .status__node {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.status--tillganglig .status__node {
  background: var(--accent);
  border-color: var(--accent);
}
.ph-flag {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: var(--r-circle);
  background: #f0c419;
  color: #222;
  font-size: 10px;
  font-weight: 600;
}

/* Placeholder marker – deliberately loud so it is never mistaken for final copy */
.ph {
  display: inline;
  padding: 1px 6px;
  font-family: var(--f-text);
  font-size: 0.75em;
  background: repeating-linear-gradient(-45deg, #f6e7a3 0 6px, #f2dc85 6px 12px);
  color: #3a3000;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Reveal: only hides content when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

.surface-night {
  --bg: var(--c-night);
  --fg: var(--c-on-night);
  --fg-soft: var(--c-on-night-soft);
  --line: rgba(244, 244, 244, 0.16);
  --line-strong: var(--c-on-night);
  background: var(--bg);
  color: var(--fg);
}

.list-line li {
  padding: 12px 0;
  border-top: var(--hair) solid var(--line);
}
.list-line li:last-child {
  border-bottom: var(--hair) solid var(--line);
}
.list-line--soft li {
  color: var(--fg-soft);
}
.textlink--back:hover .textlink__arrow {
  transform: translateX(-5px);
}
