/* Matins AB landing page. Values come from brand/tokens.json (Light theme). */
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/Outfit-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/Outfit-700-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-600-latin.woff2") format("woff2"); }

:root {
  --surface: #ffffff;
  --surface-sunken: #f1f6f3;
  --haze: #e4ede9;
  --ink: #0c1730;
  --ink-muted: #4d5a75;
  --hairline: #dbe3ef;
  --border-strong: #76829b;
  --blue: #1f5eff;
  --on-blue: #ffffff;
  --blue-tint: #e6eeff;
  --midnight: #0a1630;
  --on-midnight: #ffffff;
  --sky: #6b97ff;
  --line-pale: #c9d5ea;
  --sun: #d8452f;

  --font-display: "Outfit", "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px;
  --gutter: var(--space-8);
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
main[id], section[id] { scroll-margin-top: 88px; }
body {
  margin: 0; background: var(--surface-sunken); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 25px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-8) 0; }
.panel, .card, .values, .expect > div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: 0 8px 24px rgb(12 23 48 / 4%); }
.wrap.panel { width: calc(100% - 2 * var(--gutter)); max-width: var(--content); padding: clamp(24px, 4vw, 48px); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: inherit; }
.display { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; overflow-wrap: anywhere; }
h2 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 20px; line-height: 31px; color: var(--ink-muted); }
.eyebrow {
  font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-4);
}
.small { font-size: 14px; line-height: 22px; }
.caption { font-size: 12px; line-height: 18px; }
.muted { color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: #1a50db; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--surface); }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--surface-sunken); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-6); }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-8); margin-left: auto; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-muted); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.language-switch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); text-decoration: none; }
.language-switch span { font-size: 12px; font-weight: 600; }
.language-switch:hover { background: var(--blue-tint); }
.site-header .btn { padding: 10px var(--space-4); }

/* Hero */
.hero { padding: var(--space-16) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: center; }
.hero .wrap > div { min-width: 0; }
.hero .lead { margin-top: var(--space-6); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero .note { margin-top: var(--space-6); color: var(--ink-muted); }
.motif-panel { background: var(--haze); border-radius: var(--radius-lg); padding: var(--space-8); }
.motif-panel svg { width: 100%; height: auto; }

/* What we do */
.section-head { max-width: 40em; margin-bottom: var(--space-12); }
.section-head p { margin-top: var(--space-3); color: var(--ink-muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card { min-width: 0; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); overflow-wrap: anywhere; }
.card .bar { width: 36px; height: 4px; background: var(--blue); }
.card h3 { margin-top: var(--space-2); }
.card p { color: var(--ink-muted); }
.card .paid { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--hairline); color: var(--ink); }
.card .paid span { color: var(--ink-muted); }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.card li { position: relative; padding-left: var(--space-4); }
.card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 2px; background: var(--ink-muted); }

/* How we work */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-12); align-items: start; }
.values { margin: 0; padding: var(--space-6); list-style: none; }
.values li { display: grid; grid-template-columns: 9em 1fr; gap: var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--hairline); }
.values li:last-child { border-bottom: 0; }
.values strong { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; }
.values span { color: var(--ink-muted); }

/* Expect */
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.expect > div { min-width: 0; padding: var(--space-6); overflow-wrap: anywhere; }
.expect .num { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; letter-spacing: -0.02em; color: var(--ink); }
.expect .bar { width: 36px; height: 4px; background: var(--blue); margin-bottom: var(--space-4); }
.expect p { color: var(--ink-muted); margin-top: var(--space-2); }

/* Skolnav */
.product { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: center; }
.product h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.02em; }
.product .lead { margin-top: var(--space-4); }
.product-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.product-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 2em 1fr; gap: var(--space-3); }
.product-list .k { color: var(--blue); font-weight: 600; }
.product-list span { color: var(--ink-muted); overflow-wrap: anywhere; }

/* Closing */
.closing { text-align: left; }
.closing .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); align-items: center; }
.closing h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.02em; }
.closing .lead { margin-top: var(--space-4); }
.closing .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-start; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.facts li { display: grid; grid-template-columns: 7em 1fr; gap: var(--space-4); }
.facts .label { color: var(--ink-muted); }

/* Footer */
.site-footer { padding: var(--space-12) 0 var(--space-8); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; align-items: flex-start; }
.site-footer img { height: 22px; width: auto; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.site-footer .col p { color: var(--ink-muted); }
.site-footer .col .h { color: var(--ink); font-weight: 600; margin-bottom: var(--space-2); }
.site-footer .legal { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--hairline); color: var(--ink-muted); }

/* Tablet and phone */
@media (max-width: 960px) {
  :root { --gutter: var(--space-6); }
  .hero .wrap, .split, .product, .closing .wrap { grid-template-columns: 1fr; gap: var(--space-8); }
  .cards, .expect { grid-template-columns: 1fr; }
  .display { font-size: 44px; line-height: 48px; }
  .product h2, .closing h2 { font-size: 32px; line-height: 38px; }
  .site-header { position: static; }
  .site-header .wrap { height: auto; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  main[id], section[id] { scroll-margin-top: 16px; }
}
@media (max-width: 560px) {
  :root { --gutter: var(--space-4); }
  .brand img { height: 20px; }
  .site-header .btn { padding: 10px 12px; font-size: 14px; }
  .language-switch { min-width: 56px; padding: 6px; }
  .nav { justify-content: space-between; gap: 0 var(--space-2); }
  .nav a:not(.btn) { font-size: 13px; white-space: nowrap; }
  .hero { padding: var(--space-8) 0; }
  .section { padding: var(--space-6) 0; }
  .display { font-size: 38px; line-height: 42px; }
  .lead { font-size: 18px; line-height: 28px; }
  .values li { grid-template-columns: 1fr; gap: var(--space-1); }
  .facts li { grid-template-columns: 1fr; gap: 0; }
  .motif-panel { display: none; }
  .hero .actions .btn, .closing .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 360px) {
  .brand img { height: 18px; }
  .header-actions .btn { display: none; }
  .display { font-size: 32px; line-height: 36px; hyphens: auto; }
}

h1, h2, h3, .lead { text-wrap: balance; }
@media (min-width: 961px) { .split > div:first-child { position: sticky; top: 104px; } }
