/* Leo Svenells kontaktsida. Facit: docs/superpowers/sketches/mockup-2.html utan parametrar. */

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/card/fonts/familjen-grotesk.woff2') format('woff2');
}

:root {
  --ink: #0B0D17;
  --paper: #F2F3F5;
  --soft: #585E6E;
  --font: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Jag: ljusgrå, minst 600 punkter hög, innehållet centrerat i höjdled */
.me {
  min-height: 600px; display: flex; flex-direction: column; justify-content: center;
  padding: 44px 0 30px; text-align: center; background: var(--paper); color: var(--ink);
}
.me > .wrap { width: 100%; }
.face {
  width: 152px; height: 152px; margin: 0 auto; border-radius: 50%; overflow: hidden;
  background: #E1E4EA; border: 4px solid #FFFFFF; box-shadow: 0 18px 40px -18px rgba(5, 8, 40, .6);
}
.face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.me h1 { margin: 20px 0 0; font-size: 46px; line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.sub { margin: 12px auto 0; font-size: 17px; line-height: 1.4; color: var(--soft); max-width: 30ch; }

.save {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 58px; margin-top: 26px; border-radius: 16px;
  background: var(--ink); color: #FFFFFF; font: 600 18px/1 var(--font); text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(5, 8, 40, .5); transition: transform .15s var(--ease);
}
.save:active { transform: scale(.985); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.cols a {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 6px 4px 4px;
  border-radius: 16px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: transform .15s var(--ease);
}
.cols a:active { transform: scale(.97); }
.save:focus-visible, .cols a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Riktiga appikoner */
.appicon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 15px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 8px 18px -8px rgba(0, 0, 0, .45);
}
.appicon svg { display: block; }
.appicon.li { background: #0A66C2; }
.appicon.li svg { width: 32px; height: 32px; }
.appicon.ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.appicon.ig svg { width: 36px; height: 36px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.appicon.gm { background: #FFFFFF; }
.appicon.gm svg { width: 38px; height: auto; }

/* Företagen, ett band per företag i dess egna färger */
.co { background: var(--bg); color: var(--fg); padding: 44px 0 40px; }
.co-head { display: flex; align-items: center; gap: 16px; }
.co-head .mark { width: 68px; height: 68px; flex: none; display: grid; place-items: center; }
.co h2 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.co .role { margin-top: 7px; font-size: 14px; color: var(--fg-soft); }
.co .desc { margin: 18px 0 22px; font-size: 17px; line-height: 1.45; color: var(--fg-soft); max-width: 34ch; }

.rows { display: grid; gap: 14px; }
.row {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 16px 10px 11px; border-radius: 16px;
  background: var(--row); color: var(--fg); text-decoration: none; border: 1px solid var(--row-line);
  transition: border-color .2s var(--ease), transform .15s var(--ease);
}
a.row:hover { border-color: var(--accent); }
a.row:active { transform: scale(.99); }
a.row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.row .lbl { display: block; font-size: 13px; color: var(--fg-soft); }
.row .val { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }

/* Handlingsordet längst till höger: Besök, Följ eller Mejla */
.go { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.go .i { width: 15px; height: 15px; stroke-width: 2.3; transition: transform .2s var(--ease); }
a.row:hover .go .i { transform: translateX(2px); }

.row.soon { background: transparent; border: 1px dashed var(--row-line-strong); }
.row.soon .ic { background: transparent; border: 1px dashed var(--row-line-strong); color: var(--fg-soft); }
.row.soon .val { color: var(--fg-soft); font-weight: 500; }
.badge { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }

/* Northengine: vitt band, bara roboten utan ruta, 68 punkter hög */
.ne {
  --bg: #FFFFFF; --fg: #0B0D17; --fg-soft: #5A5F6B;
  --row: #F6F6F7; --row-line: #ECECEF; --row-line-strong: #C9CBD2;
  --accent: #D3302A; --accent-soft: #FCE8E6; --accent-ink: #B4241F;
  border-top: 1px solid #E1E3E8;
}
.ne .mark { width: auto; height: 68px; }
.ne .mark img { display: block; height: 68px; width: auto; }

/* Sauth: mörkt band som tonar över i Attendancys svarta, så att skarven försvinner.
   Dolt från sidan sedan 2026-12-02; markupen ligger i docs/dolt/sauth-band.html. */
.sa {
  --bg: #11141A; --fg: #FFFFFF; --fg-soft: rgba(255, 255, 255, .66);
  --row: #1A1E26; --row-line: #252A34; --row-line-strong: #3A404C;
  --accent: #4ADE6B; --accent-soft: rgba(74, 222, 107, .14); --accent-ink: #4ADE6B;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #11141A 0%, #11141A 45%, #07080A 100%);
}
/* Symbolen är fylld ut till kanterna, så den ritas 52 punkter i en ruta på 68 */
.sa .mark svg { display: block; width: 52px; height: 52px; }
.sa .wordmark { display: block; height: 28px; width: auto; }

/* Attendancy UF: svart band med en svag glöd runt loggan, som börjar under skarven.
   Med Sauth-bandet framme behövs padding-top: 28px här (Sauth tonar ner och har egen luft). */
.at {
  --bg: #07080A; --fg: #F4F5F7; --fg-soft: rgba(244, 245, 247, .64);
  --row: #131519; --row-line: #1F2228; --row-line-strong: #383C44;
  --accent: #D4D7DC; --accent-soft: rgba(212, 215, 220, .12); --accent-ink: #E6E8EB;
  background: radial-gradient(85% 26% at 50% 32%, rgba(255, 255, 255, .055) 0%, rgba(255, 255, 255, 0) 100%), #07080A;
}
.at .mark { border-radius: 50%; overflow: hidden; background: #000000; }
.at .mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

.foot { background: #07080A; padding: 30px 0 36px; text-align: center; font-size: 13px; color: rgba(244, 245, 247, .45); }
.foot span + span::before { content: ""; display: inline-block; width: 14px; }

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