/*
 * The Samly site (samly.eu): what this site adds to Vakna's site.css, which it loads first.
 * Same tokens, same fonts, same square cards and pastel bands.
 */
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree Variable";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree Variable";
  src: url("/assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Header: the logo, and the four products as plain links. No action block: nobody signs in here. */
.samly-header { align-items: center; flex-wrap: wrap; padding-inline-end: 16px; }
.samly-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; }
.samly-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 4px 14px 0; border-bottom: 4px solid transparent; color: var(--ink); font-weight: 700; text-decoration: none; }
.samly-nav a:hover { color: var(--primary-hover); text-decoration: underline; }
/* --sun is a line here, not text. */
.samly-nav a[aria-current="page"] { border-bottom-color: var(--sun); }

/* One hero colour per product: the colour the product has in the suite. */
.hero--vakna { background: var(--band-1); }
.hero--lyssna { background: var(--band-3); }
.hero--signera { background: var(--band-2); }
.hero--spara { background: var(--band-4); }
.hero__kind { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 8px; }
.hero__actions .button--quiet { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.hero__actions .button--quiet:hover { color: var(--primary-hover); border-color: var(--primary-hover); text-decoration: underline; }
.button--primary:hover { text-decoration: underline; }

/* The start page has four cards, one for each product. */
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card .card__kind { flex: none; margin: 0 0 4px; color: var(--muted); font-size: 0.9688rem; font-weight: 700; }
.card .card__kind + h2 { margin-top: 0; }

/* Cards further down a page, with nothing to overlap: the products this one belongs with. */
.cards--flat { margin-top: 0; }
.card h3 { font-size: 1.375rem; margin-bottom: 10px; }

.section__lead { max-width: 760px; margin: -4px 0 24px; color: var(--ink); }

/* The story: numbered steps, one under the other, in a white card. */
.story { list-style: none; counter-reset: step; margin: 0; padding: 4px 24px; background: var(--surface); border: 1px solid var(--line); }
.story li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 20px; padding-block: 22px; border-top: 1px solid var(--line); }
.story li:first-child { border-top: 0; }
.story li::before { content: counter(step); grid-row: 1 / span 3; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1; color: var(--ink); }
.story h3 { grid-column: 2; margin: 0; }
.story p { grid-column: 2; margin: 0; max-width: 72ch; }
.story .story__where { color: var(--muted); font-size: 0.9688rem; }
.story__note { max-width: 760px; margin: 16px 0 0; }

/* A plain note under a section, for what is not finished or not switched on. */
.note { max-width: 800px; margin: 20px 0 0; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); }
.note p { margin: 0; }

@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cards--4 { grid-template-columns: 1fr; }
  .samly-header { padding-block: 0 4px; }
  .samly-nav a { padding-inline: 10px; }
  .samly-nav li:first-child a { padding-inline-start: 0; }
}
@media (max-width: 480px) {
  .story { padding-inline: 16px; }
  .story li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; }
  .story li::before { width: 40px; height: 40px; font-size: 1.125rem; }
}
