/* ============================================================
   public.css · Ny design för de publika sidorna (2026-09)
   Laddas efter tokens.css och base.css i layouts/public.php.
   Alla klasser har prefixet "p-" så att inget krockar med
   base.css, som fortfarande används av admin och inloggning.
   ============================================================ */

/* ── Typsnitt (egen server) ─────────────────────────────────
   Variabla woff2-filer i /assets/fonts (SIL Open Font License, se OFL-*.txt).
   Egna familjenamn så att Google-versionen i tokens.css aldrig laddas här.
   Byt filnamnets -v1 vid ny version, så kan de cachas länge. */
@font-face { font-family: 'SIF Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url('/assets/fonts/bricolage-latin-v1.woff2') format('woff2-variations'), url('/assets/fonts/bricolage-latin-v1.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'SIF Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url('/assets/fonts/bricolage-latin-ext-v1.woff2') format('woff2-variations'), url('/assets/fonts/bricolage-latin-ext-v1.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'SIF Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/assets/fonts/inter-latin-v1.woff2') format('woff2-variations'), url('/assets/fonts/inter-latin-v1.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'SIF Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url('/assets/fonts/inter-latin-ext-v1.woff2') format('woff2-variations'), url('/assets/fonts/inter-latin-ext-v1.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
    --p-bg: #FBF7EE;
    --p-bg-alt: #F4EDDF;
    --p-white: #FFFFFF;
    --p-ink: #0E1729;
    --p-ink-2: #3B4252;
    --p-muted: #525A6B;
    --p-quiet: #686F7E;
    --p-red: var(--primary, #C21B32);
    --p-red-deep: var(--primary-deep, #951425);
    --p-blue: #1A3060;
    --p-blue-deep: #0F1E40;
    --p-cream: #F4E5C2;
    --p-line: rgba(14, 23, 41, 0.10);
    --p-line-strong: rgba(14, 23, 41, 0.20);
    --p-success: #1F7A3D;
    --p-display: 'SIF Bricolage', 'SIF Inter', system-ui, sans-serif;
    --p-body: 'SIF Inter', system-ui, -apple-system, sans-serif;
    --p-gutter: clamp(20px, 8.3vw, 120px);
    --p-max: 1440px;
}

/* ── Grund ─────────────────────────────────────────────────── */
body.pub {
    --font-display: var(--p-display);
    --font-body: var(--p-body);
    background: var(--p-bg);
    color: var(--p-ink);
    font-family: var(--p-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body.pub::before { display: none; }
body.pub main { display: block; }
.pub a { color: var(--p-red); }
.pub a:hover { color: var(--p-red-deep); }
.pub :focus-visible { outline: 3px solid var(--p-blue); outline-offset: 2px; border-radius: 4px; }
.pub [hidden] { display: none !important; }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.p-sr:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; padding: 12px 16px; border-radius: 10px; background: #FFFFFF; color: var(--p-ink); box-shadow: 0 8px 24px rgba(14,23,41,.2); }

.p-wrap { width: 100%; max-width: var(--p-max); margin: 0 auto; padding-left: var(--p-gutter); padding-right: var(--p-gutter); box-sizing: border-box; }
.p-section { padding-top: clamp(64px, 7.2vw, 104px); padding-bottom: clamp(64px, 7.2vw, 104px); }
.p-section--white { background: var(--p-white); border-top: 1px solid rgba(14,23,41,0.06); border-bottom: 1px solid rgba(14,23,41,0.06); }
.p-section--alt { background: var(--p-bg-alt); }
.p-section--blue { background: var(--p-blue); color: #FFFFFF; }

/* ── Typografi ─────────────────────────────────────────────── */
.p-eyebrow {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--p-body); font-size: 13px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-red-deep);
}
.p-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--p-red); flex-shrink: 0; }
.p-eyebrow--blue { color: var(--p-blue); }
.p-eyebrow--blue::before { background: var(--p-blue); }
.p-eyebrow--light { color: rgba(255,255,255,0.75); }
.p-eyebrow--light::before { background: rgba(255,255,255,0.75); }

.p-h1 {
    margin: 24px 0 0; max-width: 1000px;
    font-family: var(--p-display); font-weight: 800;
    font-size: clamp(44px, 6.4vw, 92px); line-height: 0.96; letter-spacing: -0.04em;
    color: var(--p-ink);
}
.p-h2 {
    margin: 0;
    font-family: var(--p-display); font-weight: 800;
    font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.035em;
    color: inherit;
}
.p-h3 { margin: 0; font-family: var(--p-body); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.p-lead { margin: 24px 0 0; max-width: 640px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--p-muted); }
.p-text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--p-muted); }
.p-red { color: var(--p-red); }
.p-label { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* ── Knappar ───────────────────────────────────────────────── */
.p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 56px; padding: 0 28px; border-radius: 14px; border: 1px solid transparent;
    font-family: var(--p-body); font-size: 17px; font-weight: 700; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.pub .p-btn--primary { background: var(--p-red); color: #FFFFFF; }
.pub .p-btn--primary:hover { background: var(--p-red-deep); color: #FFFFFF; }
.pub .p-btn--blue { background: var(--p-blue); color: #FFFFFF; }
.pub .p-btn--blue:hover { background: var(--p-blue-deep); color: #FFFFFF; }
.pub .p-btn--ghost { background: transparent; border-color: var(--p-line-strong); color: var(--p-ink); font-weight: 600; }
.pub .p-btn--ghost:hover { border-color: var(--p-ink); color: var(--p-ink); }
.p-btn--sm { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.p-btn--block { width: 100%; }
.p-btn[disabled] { opacity: .6; cursor: wait; }
.p-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ── Sidhuvud ──────────────────────────────────────────────── */
.p-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 247, 238, 0.94);
    backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid rgba(14,23,41,0.08);
}
.p-header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pub .p-brand { display: flex; align-items: center; gap: 12px; color: var(--p-ink); text-decoration: none; }
.p-brand img { width: 44px; height: 44px; object-fit: contain; }
.p-brand-text { display: flex; flex-direction: column; gap: 2px; }
.p-brand-small { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; color: var(--p-muted); }
.p-brand-big { font-family: var(--p-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.p-nav { display: flex; align-items: center; gap: 32px; }
.pub .p-nav-link { font-size: 15px; font-weight: 500; color: var(--p-ink); text-decoration: none; }
.pub .p-nav-link:hover, .pub .p-nav-link[aria-current="page"] { color: var(--p-red); }
.p-menu-btn {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid rgba(14,23,41,0.14); background: #FFFFFF;
    align-items: center; justify-content: center; cursor: pointer; color: var(--p-ink);
}
.p-mobile-nav { display: none; }

@media (max-width: 900px) {
    .p-header-inner { height: 64px; }
    .p-brand img { width: 36px; height: 36px; }
    .p-brand-big { font-size: 17px; }
    .p-nav { display: none; }
    .p-menu-btn { display: inline-flex; }
    .p-mobile-nav[data-open="true"] {
        display: flex; flex-direction: column;
        padding: 4px var(--p-gutter) 20px; border-top: 1px solid rgba(14,23,41,0.08);
    }
    .pub .p-mobile-nav a { padding: 14px 0; font-size: 18px; font-weight: 600; color: var(--p-ink); text-decoration: none; border-bottom: 1px solid var(--p-line); }
    .pub .p-mobile-nav a:last-child { border-bottom: 0; }
}

/* ── Sidfot ────────────────────────────────────────────────── */
.p-footer { background: var(--p-ink); color: #FBF7EE; padding: 56px 0 40px; }
.p-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.p-footer-brand { display: flex; align-items: center; gap: 16px; }
.p-footer-brand img { width: 56px; height: 56px; object-fit: contain; }
.p-footer-name { font-family: var(--p-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.p-footer-tag { font-size: 15px; color: rgba(251,247,238,0.72); }
.p-footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.pub .p-footer a { color: rgba(251,247,238,0.78); text-decoration: none; }
.pub .p-footer a:hover { color: #FFFFFF; }
.p-footer-bottom {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(251,247,238,0.14);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13px; color: rgba(251,247,238,0.64);
}
.p-footer-nav a { font-size: 15px; }

/* ── Startsida: hero + laglista ─────────────────────────────── */
.p-hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7.2vw, 104px); }
.p-finder { margin-top: 44px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.p-search { position: relative; display: block; flex: 0 1 440px; }
.p-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.p-search input {
    width: 100%; height: 60px; box-sizing: border-box; padding: 0 20px 0 52px;
    border-radius: 14px; border: 1px solid rgba(14,23,41,0.16); background: #FFFFFF;
    font-family: var(--p-body); font-size: 17px; color: var(--p-ink);
}
.p-search input:focus { outline: none; border-color: var(--p-ink); box-shadow: 0 0 0 4px rgba(14,23,41,0.08); }
.p-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.p-chip {
    height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px;
    border-radius: 999px; border: 1px solid rgba(14,23,41,0.16); background: #FFFFFF; color: var(--p-ink);
    font-family: var(--p-body); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.p-chip:hover { border-color: var(--p-ink); }
.p-chip[aria-pressed="true"] { background: var(--p-ink); border-color: var(--p-ink); color: #FFFFFF; }
.p-chip-n { font-size: 13px; opacity: .7; }

.p-teamlists {
    margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 80px; row-gap: 48px; align-items: start;
}
.p-teamlist-head {
    padding-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 2px solid var(--p-ink);
}
.p-teamlist-head h2 { margin: 0; font-family: var(--p-body); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.p-teamlist-count { font-size: 13px; color: var(--p-muted); }
.p-teamlist { list-style: none; margin: 0; padding: 0; }
.pub .p-teamrow {
    padding: 16px 4px; display: flex; align-items: center; gap: 16px;
    border-bottom: 1px solid var(--p-line); color: var(--p-ink); text-decoration: none;
}
.p-teamrow-name { font-family: var(--p-display); font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; transition: color .15s; }
.p-teamrow-fill { flex-grow: 1; }
.p-teamrow-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--p-red-deep); white-space: nowrap; }
.p-teamrow-meta::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--p-red); }
.p-teamrow-arrow { width: 20px; font-size: 18px; color: rgba(14,23,41,0.25); transition: color .15s, transform .15s; }
.pub .p-teamrow:hover .p-teamrow-name, .pub .p-teamrow:hover .p-teamrow-arrow { color: var(--p-red); }
.pub .p-teamrow:hover .p-teamrow-arrow { transform: translateX(4px); }
.p-teamlist-group[hidden], .p-teamlist li[hidden] { display: none; }
.p-teamlist-group[data-group="pojkar"] { grid-column: 2; grid-row: span 2; }
.p-teamlist-group[data-group="flickor"] { grid-column: 1; }
.p-teamlist-group[data-group="ovrigt"] { grid-column: 1; }
.p-teamlists.is-flow .p-teamlist-group { grid-column: auto; grid-row: auto; }
.p-empty { margin: 0; font-size: 17px; color: var(--p-muted); }

.p-missing { margin: 40px 0 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--p-muted); }
.p-preview { background: var(--p-cream); border-bottom: 1px solid rgba(107,86,31,0.25); color: #4A3B14; font-size: 15px; line-height: 1.5; padding: 14px 0; }
.pub .p-preview a { color: #4A3B14; font-weight: 700; margin-left: 6px; }

/* ── Startsida: tre steg ───────────────────────────────────── */
.p-steps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.p-total { text-align: right; }
.p-total-num { font-family: var(--p-display); font-size: clamp(32px, 3.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.p-total-num span { color: var(--p-red); }
.p-total-label { margin-top: 6px; font-size: 15px; color: var(--p-muted); }
.p-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.p-step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--p-ink); }
.p-step-num { font-family: var(--p-display); font-size: 20px; font-weight: 800; color: var(--p-red); }
.p-step h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }

/* ── Startsida: historien ──────────────────────────────────── */
.p-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: center; }
.p-history .p-h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 0.98; letter-spacing: -0.04em; }
.p-history .p-text { font-size: 19px; color: var(--p-ink-2); max-width: 520px; }
.p-emblems { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.p-emblem-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.p-emblem { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; text-align: center; }
.p-emblem img { width: 100%; max-width: 124px; height: 124px; object-fit: contain; }
.p-timeline { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--p-muted); }
.p-timeline::after { content: none; }
.p-timeline-line { flex-grow: 1; height: 1px; background: rgba(14,23,41,0.25); }
.p-emblems figcaption { font-size: 15px; color: var(--p-muted); }

/* ── Startsida: företag ────────────────────────────────────── */
.p-bizcard {
    padding: clamp(28px, 4.4vw, 64px); border-radius: 28px; background: #FFFFFF; border: 1px solid rgba(14,23,41,0.08);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px);
}
.p-bizcard .p-btn-row { margin-top: 12px; }
.p-pkgs { display: flex; flex-direction: column; gap: 16px; }
.p-pkg { padding: 28px; border-radius: 18px; background: var(--p-bg); display: flex; flex-direction: column; gap: 12px; }
.p-pkg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-pkg-tag { font-size: 13px; font-weight: 600; color: var(--p-blue); white-space: nowrap; }
.p-pkg p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--p-muted); }

/* ── Logotyper ─────────────────────────────────────────────── */
.p-logo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.p-logo-head h2 { margin: 0; font-family: var(--p-display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.pub .p-logo-head a { font-size: 16px; font-weight: 600; text-decoration: none; }
.p-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.p-logo-cell {
    height: 104px; border-radius: 16px; background: #FFFFFF; border: 1px solid rgba(14,23,41,0.06);
    display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
}
.p-logo-cell img { max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: opacity .2s; }
.p-logo-cell:hover img { opacity: 1; }
.p-logo-cell span { font-weight: 700; text-align: center; }

/* Rader med etikett till vänster (tacklistor, partners) */
.p-rows { display: flex; flex-direction: column; border-top: 2px solid var(--p-ink); }
.p-row {
    padding: 28px 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: center;
    border-bottom: 1px solid rgba(14,23,41,0.12);
}
.p-row--top { align-items: start; }
.p-row-label { display: flex; flex-direction: column; gap: 6px; }
.p-row-label strong { font-size: 18px; font-weight: 700; }
.p-row-label span { font-size: 14px; color: var(--p-muted); }
.p-row-logos { display: flex; align-items: center; gap: 48px 64px; flex-wrap: wrap; }
.p-row-logos img { max-width: 150px; max-height: 64px; object-fit: contain; }
.p-row-logos .p-mono { filter: grayscale(1); }
.pub .p-row-logos a { display: inline-flex; }
.p-names-lg { margin: 0; font-family: var(--p-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.45; }
.p-names { margin: 0; font-size: 19px; line-height: 1.7; color: var(--p-ink-2); }
.p-sep { color: var(--p-red); padding: 0 .35em; }
.p-names .p-sep { color: var(--p-quiet); }
.p-team-tag { font-size: 13px; font-weight: 600; color: var(--p-muted); }
.pub a.p-team-tag { color: var(--p-muted); text-decoration: none; }
.pub a.p-team-tag:hover { color: var(--p-red); }

.p-quotes { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.p-quote { margin: 0; padding-top: 24px; border-top: 1px solid rgba(14,23,41,0.25); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.p-quote p { margin: 0; font-family: var(--p-display); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.p-quote footer { font-size: 14px; color: var(--p-muted); }

/* ── Lagsida ───────────────────────────────────────────────── */
.p-back { display: inline-block; font-size: 15px; font-weight: 600; text-decoration: none; }
.pub .p-back { color: var(--p-muted); }
.pub .p-back:hover { color: var(--p-red); }
.p-team-hero { padding-top: 48px; padding-bottom: clamp(56px, 6.6vw, 96px); }
.p-team-grid { margin-top: 40px; display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.p-team-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-red-deep); }
.p-team-kicker img { width: 36px; height: 36px; object-fit: contain; }
.p-team-title {
    margin: 20px 0 0; font-family: var(--p-display); font-weight: 800; color: var(--p-ink);
    font-size: clamp(72px, 13vw, 200px); letter-spacing: -0.04em; line-height: 0.84; white-space: nowrap;
}
.p-team-title--long { font-size: clamp(44px, 7vw, 104px); line-height: 0.9; white-space: normal; overflow-wrap: anywhere; }
.p-team-nick { margin: 20px 0 0; font-family: var(--p-display); font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--p-red); }
.p-team-photo { margin-top: 24px; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.p-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-proof { padding-top: 28px; border-top: 2px solid var(--p-ink); display: flex; flex-direction: column; gap: 24px; }
.p-proof-num { display: flex; align-items: baseline; gap: 14px; }
.p-proof-num strong { font-family: var(--p-display); font-size: 80px; font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.p-proof-num span { font-size: 18px; line-height: 1.35; color: var(--p-muted); }
.p-avatars { display: flex; }
.p-avatar {
    width: 44px; height: 44px; margin-left: -10px; border-radius: 999px; border: 3px solid var(--p-bg);
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #FFFFFF;
}
.p-avatar:first-child { margin-left: 0; }
.p-avatar--1 { background: var(--p-blue); }
.p-avatar--2 { background: var(--p-red); }
.p-avatar--3 { background: #897145; }
.p-avatar--4 { background: var(--p-ink); }
.p-avatar--more { background: var(--p-bg-alt); color: var(--p-ink); font-size: 13px; }
.p-proof-quote { margin: 0; padding-top: 20px; border-top: 1px solid var(--p-line); display: flex; flex-direction: column; gap: 10px; }
.p-proof-quote p { margin: 0; font-family: var(--p-display); font-size: 24px; font-weight: 700; line-height: 1.25; }
.p-proof-quote footer { font-size: 14px; color: var(--p-muted); }
.p-first { padding-top: 28px; border-top: 2px solid var(--p-red); display: flex; flex-direction: column; gap: 18px; }
.p-first h2 { margin: 0; font-family: var(--p-display); font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }

/* Nivåer + formulär */
.p-support-grid { margin-top: 48px; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.p-tiers { display: flex; flex-direction: column; border-top: 2px solid var(--p-ink); }
.p-tier {
    width: 100%; box-sizing: border-box; padding: 24px 16px; display: flex; align-items: center; gap: 20px;
    border: 0; border-bottom: 1px solid rgba(14,23,41,0.12); border-radius: 0; background: transparent;
    font-family: var(--p-body); color: var(--p-ink); text-align: left; cursor: pointer; transition: background .15s;
}
.p-tier:hover, .p-tier.is-selected { background: var(--p-bg-alt); }
.p-tier:has(input:focus-visible) { outline: 3px solid var(--p-blue); outline-offset: -3px; }
.p-radio { width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px; border: 2px solid rgba(14,23,41,0.25); display: flex; align-items: center; justify-content: center; }
.p-radio::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: transparent; }
.p-tier.is-selected .p-radio { border-color: var(--p-red); }
.p-tier.is-selected .p-radio::after { background: var(--p-red); }
.p-level { flex-shrink: 0; }
.p-level rect { fill: rgba(14,23,41,0.14); }
.p-level rect.on { fill: var(--p-red); }
.p-tier-body { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p-tier-name { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.p-badge { padding: 3px 9px; border-radius: 999px; background: var(--p-cream); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #6B561F; }
.p-tier-desc { font-size: 15px; line-height: 1.45; color: var(--p-muted); }
.p-tier-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.p-tier-price strong { font-family: var(--p-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.p-tier-price span { font-size: 13px; color: var(--p-muted); }
.p-tiers-note { margin: 20px 0 0; font-size: 15px; color: var(--p-muted); }

.p-form {
    padding: 36px; border-radius: 24px; background: #FFFFFF; border: 1px solid rgba(14,23,41,0.08);
    box-shadow: 0 24px 48px -24px rgba(14,23,41,0.18); display: flex; flex-direction: column; gap: 22px;
    position: sticky; top: 104px;
}
.p-summary { padding: 20px 22px; border-radius: 16px; background: var(--p-bg); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.p-summary-l, .p-summary-r { display: flex; flex-direction: column; gap: 4px; }
.p-summary-r { align-items: flex-end; text-align: right; }
.p-summary small { font-size: 13px; color: var(--p-muted); }
.p-summary-name { font-family: var(--p-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.p-summary-price { font-size: 22px; font-weight: 700; color: var(--p-red); white-space: nowrap; }
.p-summary-empty { font-size: 16px; color: var(--p-muted); }
.p-fieldset { margin: 0; padding: 0; border: 0; }
.p-fieldset legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.p-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p-seg label { position: relative; cursor: pointer; }
.p-seg input { position: absolute; opacity: 0; }
.p-seg span {
    height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px;
    border: 1px solid rgba(14,23,41,0.16); background: #FFFFFF; font-size: 15px; font-weight: 600; color: var(--p-ink);
}
.p-seg label:hover span { border-color: var(--p-ink); }
.p-seg input:checked + span { background: var(--p-ink); border-color: var(--p-ink); color: #FFFFFF; }
.p-seg input:focus-visible + span { outline: 3px solid var(--p-blue); outline-offset: 2px; }
.p-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.p-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--p-ink); }
.p-field small { font-weight: 400; color: var(--p-muted); }
.p-field .p-opt { font-weight: 400; color: var(--p-muted); }
.p-input, .p-textarea {
    width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid rgba(14,23,41,0.16); background: #FFFFFF;
    font-family: var(--p-body); font-size: 16px; font-weight: 400; color: var(--p-ink);
}
.p-input { height: 50px; padding: 0 16px; }
.p-textarea { padding: 12px 16px; min-height: 96px; resize: vertical; }
.p-input:focus, .p-textarea:focus { outline: none; border-color: var(--p-ink); box-shadow: 0 0 0 4px rgba(14,23,41,0.08); }
.p-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--p-ink); }
.p-more-body { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.p-checks { padding-top: 20px; border-top: 1px solid var(--p-line); display: flex; flex-direction: column; gap: 14px; }
.p-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.p-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--p-red); }
.p-check small { display: block; font-size: 14px; color: var(--p-muted); }
.p-form-note { margin: -6px 0 0; font-size: 14px; line-height: 1.5; color: var(--p-muted); text-align: center; }
.p-alert { padding: 14px 16px; border-radius: 12px; background: #FDECEE; color: #7A1020; font-size: 15px; line-height: 1.45; }
.p-alert[hidden] { display: none; }

/* Fast knapp på mobil (lagsidan) */
.p-sticky {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: #FFFFFF;
    border-top: 1px solid var(--p-line); box-shadow: 0 -12px 24px -16px rgba(14,23,41,0.25);
    align-items: center; gap: 14px;
}
.p-sticky-info { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-sticky-info strong { font-size: 15px; }
.p-sticky-info span { font-size: 13px; color: var(--p-muted); }

/* Klubbsida: jämförelsetabell */
.p-compare { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 17px; }
.p-compare thead tr { border-bottom: 2px solid var(--p-ink); }
.p-compare th, .p-compare td { text-align: left; vertical-align: middle; }
.p-compare thead th { padding: 0 16px 20px 0; }
.p-compare thead th:first-child { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--p-muted); width: 55%; }
.p-compare-name { display: block; font-family: var(--p-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.p-compare-sub { font-size: 14px; font-weight: 500; color: var(--p-muted); }
.p-compare tbody tr { border-bottom: 1px solid var(--p-line); }
.p-compare tbody th { padding: 18px 16px 18px 0; font-weight: 500; }
.p-compare tbody td { padding: 18px 16px 18px 0; }
.p-no { font-size: 14px; color: var(--p-quiet); }
.p-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.p-contact .p-text { color: rgba(255,255,255,0.82); font-size: 19px; margin-top: 20px; }
.p-contact-box { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pub .p-contact-mail { font-family: var(--p-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; color: #FFFFFF; overflow-wrap: anywhere; }
.pub .p-contact-mail:hover { color: #FFFFFF; text-decoration: underline; }
.pub .p-btn--white { background: #FFFFFF; color: var(--p-blue); }
.pub .p-btn--white:hover { background: var(--p-cream); color: var(--p-blue); }

/* Tacksida */
.p-done { max-width: 640px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 20px 96px; display: flex; flex-direction: column; gap: 32px; }
.p-progress { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.p-progress li { display: flex; align-items: center; gap: 10px; }
.p-progress-dot { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: var(--p-ink); }
.p-progress .is-done { color: var(--p-success); }
.p-progress .is-done .p-progress-dot { background: var(--p-success); }
.p-progress-line { width: 48px; height: 2px; background: rgba(14,23,41,0.2); }
.p-done .p-h1 { margin: 0; font-size: clamp(40px, 5vw, 60px); }
.p-receipt { padding: 28px 32px; border-radius: 20px; background: #FFFFFF; border: 1px solid rgba(14,23,41,0.08); display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.p-receipt-row { display: flex; justify-content: space-between; gap: 16px; }
.p-receipt-row span:first-child { color: var(--p-muted); }
.p-receipt-row span:last-child { font-weight: 600; text-align: right; }
.p-receipt hr { margin: 0; border: 0; height: 1px; background: var(--p-line); }
.p-receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.p-receipt-total strong { font-family: var(--p-display); font-size: 32px; font-weight: 800; }
.p-receipt-total small { font-size: 15px; font-weight: 500; color: var(--p-muted); }
.p-center { text-align: center; }

/* Uppmaning längst ner */
.p-cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.p-cta-band .p-h2 { font-size: clamp(40px, 4.4vw, 64px); }

/* ── Responsivt ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .p-support-grid { grid-template-columns: minmax(0, 1fr); }
    .p-form { position: static; }
}
@media (max-width: 900px) {
    .p-teamlists { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
    .p-teamlists .p-teamlist-group { grid-column: auto; grid-row: auto; }
    .p-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
    .p-total { text-align: left; }
    .p-history { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .p-bizcard { grid-template-columns: minmax(0, 1fr); }
    .p-team-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 24px; }
    .p-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .p-contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .p-compare thead th:first-child { width: auto; }
    .p-compare-name { font-size: 20px; }
    .p-compare { font-size: 15px; }
}
@media (max-width: 600px) {
    .p-finder { margin-top: 28px; }
    .p-search { flex: 1 1 100%; }
    .p-search input { height: 52px; font-size: 16px; }
    .p-chips { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .p-chip { height: 44px; font-size: 14px; flex-shrink: 0; }
    .pub .p-teamrow { padding: 12px 2px; min-height: 56px; box-sizing: border-box; }
    .p-teamrow-name { font-size: 22px; }
    .p-teamrow-meta { font-size: 13px; }
    .p-emblem img { height: 72px; }
    .p-emblem { font-size: 12px; gap: 8px; }
    .p-tier { padding: 18px 8px; gap: 14px; }
    .p-level { display: none; }
    .p-tier-desc { font-size: 13px; }
    .p-tier-price strong { font-size: 19px; }
    .p-form { padding: 24px 20px; border-radius: 20px; }
    .p-grid2 { grid-template-columns: minmax(0, 1fr); }
    .p-proof-num strong { font-size: 56px; }
    .p-sticky { display: flex; }
    body.pub:has(.p-sticky) { padding-bottom: 96px; }
    .p-footer-bottom { flex-direction: column; }
    .p-btn { height: 52px; padding: 0 22px; font-size: 16px; }
    .p-compare .p-no { font-size: 13px; }
    .p-compare { font-size: 14px; }
    .p-compare thead th:first-child { width: 44%; }
    .p-compare-name { font-size: 15px; letter-spacing: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
    .p-compare-sub { display: none; }
    .p-compare tbody th, .p-compare tbody td { padding: 14px 8px 14px 0; }
    .p-summary-name { font-size: 22px; }
    .p-summary-price { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .pub * { transition: none !important; scroll-behavior: auto !important; }
}
