/* TRYGGTAGG DESIGN SYSTEM v1
   Scandinavian minimalism + information design.
   Principle: mycket får finnas på skärmen, lite får kräva uppmärksamhet. */

:root {
    --brand-navy: #04366c;
    --brand-navy-strong: #032b57;
    --brand-navy-soft: #eef4fa;
    --brand-red: #dc1c2e;
    --action-green: #35a85b;
    --action-green-strong: #278847;
    --action-green-soft: #e8f5ec;
    --attention-amber: #e9a51a;
    --attention-amber-soft: #fff5dc;
    --safety-red: #c81e36;
    --safety-red-strong: #a9192e;
    --safety-red-soft: #fcecef;
    --background: #f6f7f9;
    --surface: #ffffff;
    --surface-subtle: #fafbfc;
    --text: #101828;
    --text-secondary: #667085;
    --text-tertiary: #8a94a3;
    --border: #e1e5ea;
    --border-strong: #c9d1da;
    --radius: 10px;
    --radius-sm: 8px;
    --focus-ring: 0 0 0 3px rgba(4, 54, 108, .12);
    --menu-shadow: 0 12px 28px rgba(16, 24, 40, .10);
    --page-width: 1040px;
    --content-width: 760px;
    --form-width: 620px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; text-rendering: optimizeLegibility; }
button,input,textarea,select { font: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--brand-navy); text-underline-offset: 3px; }
p,ul,ol { margin-top: 0; }
h1,h2,h3 { margin-top: 0; color: var(--brand-navy-strong); font-weight: 750; text-wrap: balance; }
h1 { margin-bottom: 10px; font-size: clamp(27px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -.65px; }
h2 { margin-bottom: 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.2px; }
h3 { margin-bottom: 6px; font-size: 16px; line-height: 1.3; }
strong { font-weight: 750; }
.page,.page-home { width: min(calc(100% - 32px), var(--page-width)); margin: 0 auto; padding: 20px 0 48px; }
.page-home { --page-width: 1120px; }
.brand { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 54px; margin: 0 0 22px; padding: 0 0 14px; border-bottom: 1px solid var(--border); }
.brand-home { display: inline-flex; align-items: center; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.logo { width: 40px; height: 40px; border-radius: 7px; object-fit: contain; }
.brand-name { overflow: hidden; color: var(--brand-navy-strong); font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -.35px; text-overflow: ellipsis; white-space: nowrap; }
#account-menu-root { position: relative; z-index: 40; justify-self: end; }
.menu-toggle { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.menu-toggle:hover { background: var(--surface-subtle); }
.menu-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.menu-toggle img { width: 22px; height: 22px; object-fit: contain; }
.customer-menu { position: absolute; top: 46px; right: 0; width: min(274px, calc(100vw - 28px)); padding: 5px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--menu-shadow); }
.customer-menu[hidden] { display: none; }
.customer-menu a { display: flex; align-items: center; gap: 10px; min-height: 41px; padding: 8px 10px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 650; }
.customer-menu a:hover,.customer-menu a:focus-visible { background: var(--brand-navy-soft); color: var(--brand-navy-strong); outline: none; }
.customer-menu a img { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.menu-divider { height: 1px; margin: 5px 4px; background: var(--border); }
.customer-menu .menu-logout { color: var(--safety-red-strong); }
.menu-logout-mark { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--safety-red-soft); color: var(--safety-red-strong); font-weight: 800; }
.card { width: 100%; max-width: var(--content-width); margin: 0 0 10px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: none; overflow-wrap: anywhere; }
.card > :last-child { margin-bottom: 0; }
.card p { margin-bottom: 11px; }
.card h1 + p,.card h2 + p { color: var(--text-secondary); }
.help-text { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.break-all { word-break: break-all; }
.admin-pair-code { margin: 14px 0; color: var(--brand-navy-strong); font-family: "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(26px, 7vw, 34px); font-weight: 700; font-variant-numeric: slashed-zero tabular-nums; letter-spacing: .12em; }
#activationCode { font-family: "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-variant-numeric: slashed-zero tabular-nums; letter-spacing: .08em; }
form { margin: 0; }
.card form { width: min(100%, var(--form-width)); }
.form-group { width: 100%; margin: 0 0 15px; }
label { display: block; margin: 0 0 6px; color: var(--text); font-size: 13px; font-weight: 700; }
input,textarea,select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 15px; transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; }
textarea { min-height: 92px; resize: vertical; }
input::placeholder,textarea::placeholder { color: var(--text-tertiary); }
input:hover,textarea:hover,select:hover { border-color: #aeb9c5; }
input:focus,textarea:focus,select:focus { outline: none; border-color: var(--brand-navy); box-shadow: var(--focus-ring); }
input.input-invalid,textarea.input-invalid,select.input-invalid { border-color: var(--safety-red); background: #fffafb; }
input.input-valid,textarea.input-valid,select.input-valid { border-color: #72b98a; }
.field-error { margin-top: 5px; color: var(--safety-red-strong); font-size: 12px; font-weight: 650; }
.field-error[hidden] { display: none; }
.button { width: auto; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 7px 4px 0; padding: 9px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); text-align: center; text-decoration: none; font-size: 14px; line-height: 1.2; font-weight: 700; cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.button:hover { text-decoration: none; }
.button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.button-primary { border-color: var(--brand-navy); background: var(--brand-navy); color: #fff; }
.button-primary:hover { border-color: var(--brand-navy-strong); background: var(--brand-navy-strong); }
.button-secondary { border-color: var(--border-strong); background: var(--surface); color: var(--brand-navy); }
.button-secondary:hover { border-color: #aeb9c5; background: var(--brand-navy-soft); }
.button-quiet { border-color: var(--border); background: var(--surface-subtle); color: var(--brand-navy-strong); }
.button-quiet:hover { background: var(--brand-navy-soft); }
.button-red { border-color: var(--safety-red); background: var(--safety-red); color: #fff; }
.button-red:hover { border-color: var(--safety-red-strong); background: var(--safety-red-strong); }
.button-green { border-color: var(--action-green); background: var(--action-green); color: #fff; }
.button-green:hover { border-color: var(--action-green-strong); background: var(--action-green-strong); }
.card form + .button,.card > form + a.button { margin-top: 10px; }
.inline-action-form { display: inline-block; width: auto !important; margin: 4px 7px 4px 0; }
.inline-action-form .button { margin: 0; }
.status-active,.status-inactive,.status-blocked,.status-unactivated { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11px; line-height: 1.35; font-weight: 750; white-space: nowrap; }
.status-active::before,.status-inactive::before,.status-blocked::before,.status-unactivated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active { background: var(--action-green-soft); color: #247944; }
.status-inactive,.status-unactivated { background: #f0f2f5; color: #667085; }
.status-blocked { background: var(--safety-red-soft); color: var(--safety-red-strong); }
.notice { max-width: var(--content-width); margin: 10px 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-subtle); color: var(--text); }
.notice-danger { border-color: #efcbd2; background: var(--safety-red-soft); color: var(--safety-red-strong); }
.tag-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.tag-summary-main h2 { margin-bottom: 5px; }
.tag-summary-meta { color: var(--text-secondary); font-size: 13px; }
.admin-overview-actions { display: grid; gap: 10px; margin-top: 14px; }
.admin-overview-actions-primary,.admin-overview-actions-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-overview-create-form { width: auto !important; margin: 0 !important; }
.admin-overview-actions .button { margin: 0; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; margin: 0 0 14px; }
.admin-page-heading h1 { margin-bottom: 4px; }
.admin-page-heading p { margin: 0; color: var(--text-secondary); }
.admin-count { color: var(--text-secondary); font-size: 13px; font-weight: 650; white-space: nowrap; }
.admin-table-shell { width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.admin-account-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.admin-account-table th { padding: 9px 13px; border-bottom: 1px solid var(--border); background: var(--surface-subtle); color: var(--text-secondary); text-align: left; font-size: 11px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.admin-account-table td { padding: 12px 13px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-account-table tbody tr:last-child td { border-bottom: 0; }
.admin-account-table tbody tr:hover { background: #fbfcfd; }
.admin-account-table th:nth-child(1),.admin-account-table td:nth-child(1) { width: 38%; }
.admin-account-table th:nth-child(2),.admin-account-table td:nth-child(2) { width: 18%; }
.admin-account-table th:nth-child(3),.admin-account-table td:nth-child(3) { width: 12%; }
.admin-account-table th:nth-child(4),.admin-account-table td:nth-child(4) { width: 15%; }
.admin-account-table th:nth-child(5),.admin-account-table td:nth-child(5) { width: 17%; }
.admin-customer-name { color: var(--brand-navy-strong); font-weight: 750; }
.admin-customer-email { margin-top: 2px; color: var(--text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.admin-nowrap { white-space: nowrap; }
.admin-row-action { text-align: right !important; }
.admin-manage-link { color: var(--brand-navy); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.admin-manage-link:hover { text-decoration: underline; }
.admin-mobile-list { display: none; }
.admin-account-mobile-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.admin-account-mobile-row:last-child { border-bottom: 0; }
.admin-account-mobile-row:hover { background: var(--surface-subtle); }
.admin-mobile-meta { margin-top: 4px; color: var(--text-secondary); font-size: 12px; }
.admin-mobile-right { display: flex; align-items: center; gap: 8px; }
.admin-chevron { color: var(--brand-navy); font-size: 20px; line-height: 1; }
.admin-empty-state { max-width: var(--content-width); padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-secondary); }
.admin-customer-tag-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.admin-customer-tag-row:last-of-type { border-bottom: 0; }
.admin-customer-tag-row p { min-width: 0; margin: 0; }
.admin-customer-tag-row .button { margin: 0; white-space: nowrap; }
body:has(.finder-title) { background: var(--surface); }
body:has(.finder-title) .page { width: min(calc(100% - 28px), 520px); padding-top: 14px; padding-bottom: 24px; }
body:has(.finder-title) .brand { min-height: 44px; margin-bottom: 18px; padding-bottom: 11px; }
body:has(.finder-title) .logo { width: 32px; height: 32px; border-radius: 6px; }
body:has(.finder-title) .brand-name { font-size: 17px; }
body:has(.finder-title) #account-menu-root { display: none; }
body:has(.finder-title) .card { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body:has(.finder-title) .card + .card { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.finder-title { margin: 0 0 5px; font-size: clamp(27px, 8vw, 32px); line-height: 1.08; letter-spacing: -.65px; }
.finder-lead { max-width: 45ch; margin: 0 0 8px !important; color: var(--text-secondary) !important; font-size: 14px; line-height: 1.45; }
.finder-message { margin: 7px 0 0 !important; color: var(--text) !important; font-size: 13px; line-height: 1.4; }
.finder-medical { position: relative; margin: 12px 0 0; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: var(--safety-red-soft); color: var(--safety-red-strong); font-size: 13px; line-height: 1.35; }
.finder-medical strong { display: block; margin-bottom: 1px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.contact:last-of-type { border-bottom: 0; }
.contact-name { margin: 0; color: var(--brand-navy-strong); font-size: 16px; line-height: 1.2; font-weight: 750; }
.finder-contact { grid-template-columns: 48px 48px minmax(0, 1fr); grid-template-areas: "call sms name" "help help help"; column-gap: 10px; row-gap: 5px; min-height: 0; padding: 12px 0; }
.finder-contact-action { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; text-decoration: none; transition: transform .12s ease, filter .12s ease; -webkit-tap-highlight-color: transparent; }
.finder-contact-action:first-child { grid-area: call; }
.finder-contact-action:nth-child(2) { grid-area: sms; }
.finder-contact-action:hover { filter: brightness(1.06); transform: translateY(-1px); }
.finder-contact-action:active { transform: translateY(0) scale(.96); }
.finder-contact-action:focus-visible { outline: 3px solid rgba(8, 63, 119, .22); outline-offset: 2px; }
.finder-contact-action img { display: block; width: 48px; height: 48px; object-fit: contain; }
.finder-contact .contact-name { grid-area: name; align-self: center; }
.finder-contact-help { grid-area: help; margin: 0 !important; color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
.sms-location-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 30, 64, .54); }
.sms-location-modal[hidden] { display: none; }
.sms-location-modal-open { overflow: hidden; }
.sms-location-dialog { width: min(100%, 390px); padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 48px rgba(0, 30, 64, .24); }
.sms-location-dialog h2 { margin: 0 0 9px; color: var(--brand-navy-strong); font-size: 20px; line-height: 1.25; }
.sms-location-dialog p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.sms-location-status { min-height: 21px; margin-top: 10px !important; color: var(--brand-navy-strong) !important; font-weight: 650; }
.sms-location-actions { display: flex; gap: 10px; margin-top: 18px; }
.sms-location-actions .button { flex: 1 1 0; width: auto; margin: 0; }
.finder-guidance { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
.finder-guidance strong { display: block; margin-bottom: 1px; color: var(--text); font-size: 13px; }
.brand-homepage { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 0; column-gap: 18px; }
.brand-homepage .brand-home { min-width: 0; max-width: 100%; }
.brand-homepage .logo-horizontal { max-width: 100%; }
.brand-homepage .home-nav { min-width: max-content; }
.activation-pin { margin: 20px 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-subtle); }
.activation-pin h2 { margin-bottom: 8px; }
.activation-pin-value { margin: 14px 0; color: var(--brand-navy-strong); font-size: clamp(30px, 8vw, 40px); font-weight: 800; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.activation-pin-copy { margin: 0 0 8px; }
#activation-pin-feedback:empty { display: none; }
@media (max-width: 560px) {
    .brand-homepage { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .brand-homepage .logo-horizontal { width: min(180px, 100%); height: auto; }
    .brand-homepage .home-nav { gap: 0; }
    .brand-homepage .home-login-link { display: inline-block; padding: 8px 0 8px 6px; font-size: 14px; }
    .activation-pin { padding: 16px; }
}
.brand-homepage .logo-horizontal { width: 158px; height: auto; border-radius: 0; }
.home-nav { justify-self: end; display: flex; align-items: center; gap: 22px; }
.home-nav a { color: var(--brand-navy-strong); text-decoration: none; font-size: 14px; font-weight: 650; }
.home-nav a:hover { text-decoration: underline; }
.home-hero { max-width: 880px; padding: 72px 0 68px; border-bottom: 1px solid var(--border); }
.home-hero-copy { max-width: 780px; }
.home-eyebrow { margin: 0 0 11px; color: var(--brand-navy); font-size: 12px; line-height: 1.3; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.home-hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 5vw, 52px); line-height: 1.04; letter-spacing: -1.5px; }
.home-lead { max-width: 670px; margin: 20px 0 0; color: var(--text-secondary); font-size: 18px; line-height: 1.55; }
/* Scan → Call → Re-connect: the first thing visitors see, without new assets. */
.home-reconnect-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 25px 0 0; padding: 0; list-style: none; }
.home-reconnect-flow li { min-width: 0; min-height: 132px; display: flex; flex-direction: column; gap: 8px; padding: 17px 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.home-flow-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.home-flow-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-reconnect-flow strong { font-size: clamp(18px, 2.4vw, 25px); line-height: 1.1; letter-spacing: -.5px; color: var(--brand-navy-strong); }
.home-reconnect-flow li > span:last-child { color: var(--text-secondary); font-size: 13px; line-height: 1.35; }
@media (max-width: 560px) {
    .home-reconnect-flow { gap: 6px; margin-top: 22px; }
    .home-reconnect-flow li { min-height: 112px; gap: 7px; padding: 11px 8px; border-radius: 11px; }
    .home-reconnect-flow strong { font-size: clamp(12px, 3.65vw, 17px); letter-spacing: -.3px; }
    .home-reconnect-flow li > span:last-child { font-size: 11px; }
    .home-flow-icon { width: 35px; height: 35px; }
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 25px; }
.home-text-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 7px; color: var(--brand-navy); text-decoration: none; font-size: 14px; font-weight: 700; }
.home-text-link:hover { text-decoration: underline; }
.home-proof-list { display: flex; flex-wrap: wrap; gap: 7px 24px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 13px; }
.home-proof-list li { position: relative; padding-left: 17px; }
.home-proof-list li::before { content: ""; position: absolute; left: 1px; top: .57em; width: 6px; height: 6px; border-radius: 50%; background: var(--action-green); }
.home-how,.home-values { max-width: 880px; padding: 58px 0; border-bottom: 1px solid var(--border); }
.home-section-heading { max-width: 700px; margin-bottom: 30px; }
.home-section-heading h2 { margin: 0; font-size: clamp(28px, 3.3vw, 38px); line-height: 1.1; letter-spacing: -.8px; }
.home-section-heading > p:last-child { max-width: 650px; margin: 13px 0 0; color: var(--text-secondary); font-size: 15px; }
.home-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.home-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step-number { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--brand-navy-strong); font-size: 12px; font-weight: 750; }
.home-steps h3 { margin: 1px 0 3px; font-size: 17px; }
.home-steps p { max-width: 650px; margin: 0; color: var(--text-secondary); }
.home-value-list { border-top: 1px solid var(--border); }
.home-value-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; padding: 19px 0; border-bottom: 1px solid var(--border); }
.home-value-list img { width: 28px; height: 28px; object-fit: contain; }
.home-value-list h3 { margin: 1px 0 3px; font-size: 17px; }
.home-value-list p { max-width: 650px; margin: 0; color: var(--text-secondary); }
.footer { max-width: 880px; padding: 22px 0 0; color: var(--text-tertiary); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 820px) { .page,.page-home { width: min(calc(100% - 24px), var(--page-width)); padding-top: 12px; padding-bottom: 34px; } .brand { min-height: 50px; margin-bottom: 16px; padding-bottom: 11px; } .logo { width: 36px; height: 36px; } .brand-name { font-size: 19px; } .brand-homepage .logo-horizontal { width: 145px; } .home-nav { gap: 14px; } .home-nav > a:first-child { display: none; } .card { padding: 17px 18px; } .admin-account-table,.admin-table-shell { display: none; } .admin-mobile-list { display: block; width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); } }
@media (max-width: 560px) { body { font-size: 15px; } .page,.page-home { width: min(calc(100% - 20px), var(--page-width)); } h1 { font-size: 27px; } .card { padding: 16px; } .button { min-height: 42px; } input,textarea,select { min-height: 46px; } .admin-page-heading { display: block; } .admin-count { display: block; margin-top: 5px; } .home-hero { padding: 48px 0 45px; } .home-hero h1 { font-size: clamp(34px, 10vw, 42px); letter-spacing: -1px; } .home-lead { font-size: 16px; } .hero-actions { align-items: stretch; gap: 3px; } .hero-actions .button { flex: 1 1 140px; } .home-text-link { flex-basis: 100%; padding-left: 0; } .home-proof-list { display: grid; gap: 7px; } .home-how,.home-values { padding: 44px 0; } .home-section-heading { margin-bottom: 24px; } .home-steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 11px; padding: 17px 0; } .home-value-list article { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 17px 0; } body:has(.finder-title) .page { width: min(calc(100% - 24px), 520px); padding-top: 10px; } body:has(.finder-title) .brand { margin-bottom: 14px; } .finder-title { font-size: 28px; } .contact:not(.finder-contact) { grid-template-columns: minmax(0, 1fr) auto; min-height: 55px; gap: 9px; padding: 7px 0; } .contact-name { font-size: 15px; } body:has(.finder-title) .button-green { width: 148px; min-width: 148px; min-height: 40px; padding: 8px 10px; font-size: 13px; } }
@media (max-width: 350px) { body:has(.finder-title) .button-green { width: 140px; min-width: 140px; font-size: 12px; } .finder-title { font-size: 26px; } }
[hidden] { display: none !important; }
.choice-row { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 4px; color: var(--text); cursor: pointer; }
.choice-row input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--brand-navy); box-shadow: none; }
.choice-row span { font-size: 14px; font-weight: 700; }
.conditional-field { margin-top: -2px; }
body:has(.guide-title) .card { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
body:has(.guide-title) .card:first-of-type { padding-top: 0; }
body:has(.guide-title) .card:last-of-type { border-bottom: 0; }
body:has(.guide-title) .card h2 { font-size: 18px; }
body:has(.admin-overview-title) .card { max-width: none; }
.home-account-root { display: inline-flex; align-items: center; }
.home-account-root .menu-toggle { width: 38px; height: 38px; }
.home-account-root .menu-toggle img { width: 21px; height: 21px; }
.home-login-link { white-space: nowrap; }

/* Desktop: center readable content inside the shared page shell. */
@media (min-width: 821px) {
    .page > .card { margin-left: auto; margin-right: auto; }
    .page-home .home-hero,
    .page-home .home-how,
    .page-home .home-values,
    .page-home .footer { margin-left: auto; margin-right: auto; }
}
/* Header logo stays inside its own grid track; no absolute overlap with login. */
.brand-homepage .logo-horizontal { width: min(208px, 100%); height: auto; }
@media (max-width: 820px) {
    .brand-homepage .logo-horizontal { width: min(182px, 100%); }
}
@media (max-width: 560px) {
    .brand-homepage { column-gap: 10px; }
    .brand-homepage .logo-horizontal { width: min(168px, 100%); }
    .brand-homepage .home-login-link { white-space: nowrap; }
}

/* Homepage layout: wider hero, actions below the three cards, paired information sections. */
.page-home .home-hero { max-width:none; }
.page-home .home-hero-copy { max-width:none; }
.page-home .home-hero h1 { max-width:none; }
.page-home .home-lead { max-width:900px; }
.page-home .home-reconnect-flow { gap:16px; }
.page-home .hero-actions { margin-top:24px; gap:10px; }
.page-home .home-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:36px; align-items:start; }
.page-home .home-info-grid > section { min-width:0; max-width:none; }
.page-home .home-info-grid .home-section-heading h2 { font-size:clamp(25px,2.7vw,32px); }
.page-home .footer { max-width:none; }
@media(max-width:760px) {
  .page-home .home-info-grid { grid-template-columns:minmax(0,1fr); gap:0; }
  .page-home .home-reconnect-flow { gap:6px; }
  .page-home .hero-actions { gap:3px; }
}

/* Align both desktop information headings and their lists on the same baseline. */
@media(min-width:761px) {
  .page-home .home-info-grid > section { display:grid; grid-template-rows:auto 1fr; align-content:start; }
  .page-home .home-info-grid .home-section-heading { display:grid; grid-template-rows:auto minmax(3.4em,auto) minmax(3.2em,auto); align-content:start; margin-bottom:24px; }
  .page-home .home-info-grid .home-section-heading h2 { align-self:start; }
  .page-home .home-info-grid .home-section-heading > p:last-child { align-self:start; }
}

/* Match both information columns: shared bottom edge and identical row rhythm. */
@media(min-width:761px) {
  .page-home .home-info-grid { align-items:stretch; border-bottom:1px solid var(--border); }
  .page-home .home-info-grid > section { border-bottom:0; padding-bottom:0; grid-template-rows:auto 1fr; }
  .page-home .home-info-grid .home-steps,
  .page-home .home-info-grid .home-value-list { display:grid; grid-template-rows:repeat(3,minmax(105px,1fr)); align-self:stretch; }
  .page-home .home-info-grid .home-steps li,
  .page-home .home-info-grid .home-value-list article { min-height:0; align-content:center; }
  .page-home .home-info-grid .home-steps li:last-child,
  .page-home .home-info-grid .home-value-list article:last-child { border-bottom:0; }
}

/* Unified benefit strip: TryggTagg blue on white, without card backgrounds. */
.page-home .home-proof-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:30px 0 0; padding:22px 0; background:#fff; border-top:1px solid var(--border); border-bottom:1px solid var(--border); color:var(--brand-navy-strong); }
.page-home .home-proof-list li { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:4px 22px; text-align:center; }
.page-home .home-proof-list li + li { border-left:1px solid var(--border); }
.page-home .home-proof-list li::before { content:none; }
.page-home .home-proof-icon { display:flex; align-items:center; justify-content:center; width:32px; height:32px; color:var(--brand-navy-strong); }
.page-home .home-proof-icon svg { width:28px; height:28px; }
.page-home .home-proof-list strong { font-size:17px; line-height:1.25; color:var(--brand-navy-strong); }
.page-home .home-proof-list li > span:last-child { font-size:13px; line-height:1.4; color:var(--text-secondary); }
@media(max-width:560px) {
  .page-home .home-proof-list { grid-template-columns:minmax(0,1fr); padding:4px 0; }
  .page-home .home-proof-list li { display:grid; grid-template-columns:36px minmax(0,1fr); grid-template-rows:auto auto; justify-content:start; gap:2px 12px; padding:14px 8px; text-align:left; }
  .page-home .home-proof-list li + li { border-left:0; border-top:1px solid var(--border); }
  .page-home .home-proof-icon { grid-row:1 / 3; align-self:center; }
  .page-home .home-proof-list strong { font-size:16px; }
}

/* Align benefit-strip content with the left-aligned hero cards. */
@media(min-width:561px) {
  .page-home .home-proof-list li { align-items:flex-start; text-align:left; padding-left:clamp(16px,2vw,28px); padding-right:clamp(16px,2vw,28px); }
}
.page-home .home-hero { padding-bottom:42px; }
@media(max-width:560px) {
  .page-home .home-hero { padding-bottom:34px; }
}

/* Activation is the primary homepage action; account links remain secondary. */
.page-home .hero-actions { display:flex; flex-direction:column; align-items:flex-start; gap:11px; margin-top:25px; }
.page-home .home-activate-action { display:inline-flex; align-items:center; justify-content:center; gap:13px; min-height:50px; padding:12px 22px; font-weight:750; }
.page-home .home-reconnect-flow { margin-top:30px; }
@media(max-width:560px) {
  .page-home .hero-actions { align-items:stretch; gap:10px; }
  .page-home .home-activate-action { width:100%; flex:none; }
  .page-home .home-reconnect-flow { margin-top:26px; }
}

/* Restore a centered masthead and keep account links discreetly under activation. */
.page-home .brand-homepage { display:flex; justify-content:center; align-items:center; width:100%; padding:12px 0 16px; }
.page-home .brand-homepage .brand-home { display:flex; justify-content:center; width:100%; max-width:100%; }
.page-home .brand-homepage .logo-horizontal { display:block; width:min(560px,88%); max-width:100%; height:auto; max-height:145px; object-fit:contain; border-radius:0; }
.page-home .brand-homepage { position:relative; }
.page-home .home-header-tools { position:absolute; right:0; top:50%; transform:translateY(-50%); display:flex; align-items:center; justify-content:flex-end; z-index:40; }
.page-home .brand-homepage .home-account-root { display:inline-flex; align-items:center; position:static; transform:none; }
.page-home .brand-homepage .home-account-root:empty { display:none; }
.page-home .home-account-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--text-secondary); font-size:14px; }
.page-home .home-account-actions a { color:var(--brand-navy-strong); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.page-home .home-account-actions a:focus-visible { outline:3px solid var(--action-green); outline-offset:3px; border-radius:4px; }
@media(max-width:560px) {
  .page-home .brand-homepage { padding:5px 0 9px; }
  .page-home .brand-homepage .logo-horizontal { width:min(250px,72vw); max-height:65px; }
  .page-home .home-account-actions { justify-content:center; font-size:13px; }
}

/* Clear feedback after activation and when saved contact data is re-opened. */
.activation-success-receipt { margin:0 0 18px; padding:18px; border:1px solid var(--action-green); border-radius:var(--radius); background:var(--surface-subtle); }
.activation-success-receipt h1 { margin:0 0 10px; font-size:clamp(23px,4vw,29px); }
.activation-success-receipt p { margin:7px 0; }
.save-confirmation { margin:0; font-weight:700; color:var(--brand-navy-strong); }


/* Homepage FAQ and footer — added without changing hero or existing feature sections. */
.page-home .home-about { max-width:none; padding:58px 0; border-bottom:1px solid var(--border); }
.page-home .home-about .home-section-heading { max-width:700px; margin-bottom:24px; }
.page-home .home-about-copy { max-width:780px; }
.page-home .home-about-copy p { margin:0 0 14px; color:var(--text-secondary); line-height:1.65; }
.page-home .home-about-copy p:first-child { color:var(--brand-navy-strong); font-size:17px; font-weight:650; }
.page-home .home-about-copy p:last-child { margin-bottom:0; }
.page-home .home-faq { max-width:none; padding:58px 0; border-bottom:1px solid var(--border); }
.page-home .home-faq .home-section-heading { max-width:700px; }
.page-home .home-faq-list { max-width:880px; border-top:1px solid var(--border); }
.page-home .home-faq-list details { border-bottom:1px solid var(--border); }
.page-home .home-faq-list summary { position:relative; padding:19px 42px 19px 0; color:var(--brand-navy-strong); font-size:16px; font-weight:750; cursor:pointer; list-style:none; }
.page-home .home-faq-list summary::-webkit-details-marker { display:none; }
.page-home .home-faq-list summary::after { content:"+"; position:absolute; right:4px; top:50%; transform:translateY(-50%); color:var(--brand-navy); font-size:24px; line-height:1; font-weight:500; }
.page-home .home-faq-list details[open] summary::after { content:"−"; }
.page-home .home-faq-list summary:focus-visible { outline:3px solid var(--action-green); outline-offset:3px; border-radius:4px; }
.page-home .home-faq-list details p { max-width:720px; margin:-4px 42px 18px 0; color:var(--text-secondary); line-height:1.55; }
.page-home .home-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:end; padding:34px 0 0; }
.page-home .home-footer-brand { max-width:430px; }
.page-home .home-footer-logo { width:150px; height:auto; margin-bottom:10px; }
.page-home .home-footer p { margin:0; color:var(--text-secondary); font-size:13px; }
.page-home .home-footer-meta { display:flex; flex-direction:column; gap:4px; align-items:flex-end; color:var(--text-tertiary); font-size:12px; text-align:right; }
@media(max-width:560px) {
  .page-home .home-about,
  .page-home .home-faq { padding:44px 0; }
  .page-home .home-faq-list summary { padding:17px 36px 17px 0; font-size:15px; }
  .page-home .home-faq-list details p { margin:-2px 30px 17px 0; }
  .page-home .home-footer { grid-template-columns:minmax(0,1fr); gap:22px; align-items:start; padding-top:28px; }
  .page-home .home-footer-logo { width:132px; }
  .page-home .home-footer-meta { align-items:flex-start; text-align:left; }
}


/* Homepage alignment polish + footer finish. */
@media(min-width:761px) {
  .page-home .home-info-grid,
  .page-home .home-about,
  .page-home .home-faq { width:100%; max-width:100%; }
  .page-home .home-faq .home-section-heading,
  .page-home .home-faq-list { max-width:none; }
}
.page-home .home-footer {
  width:calc(100% + 64px);
  max-width:none;
  margin-left:-32px;
  margin-right:-32px;
  margin-bottom:-48px;
  padding:32px;
  grid-template-columns:minmax(240px,1fr) auto minmax(280px,1fr);
  align-items:center;
  background:#edf0f3;
  border-top:1px solid var(--border-strong);
  border-radius:12px 12px 0 0;
}
.page-home .home-footer-home { display:inline-block; }
.page-home .home-footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 20px; }
.page-home .home-footer-links a { color:var(--brand-navy-strong); font-size:13px; font-weight:700; text-decoration:none; }
.page-home .home-footer-links a:hover { text-decoration:underline; }
.page-home .home-footer-links a:focus-visible { outline:3px solid var(--action-green); outline-offset:3px; border-radius:3px; }
@media(max-width:820px) {
  .page-home .home-footer {
    width:calc(100% + 24px);
    margin-left:-12px;
    margin-right:-12px;
    margin-bottom:-34px;
    padding:28px 20px;
  }
}
@media(max-width:560px) {
  .page-home .home-faq-list summary { padding-right:52px; }
  .page-home .home-faq-list summary::after { right:18px; }
  .page-home .home-faq-list details p { margin-right:46px; }
  .page-home .home-footer {
    width:calc(100% + 20px);
    margin-left:-10px;
    margin-right:-10px;
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    padding:26px 18px;
  }
  .page-home .home-footer-links { justify-content:flex-start; gap:10px 18px; }
}


/* Final three-column TryggTagg footer. */
.page-home .home-footer { display:block; }
.page-home .home-footer-columns { display:grid; grid-template-columns:minmax(260px,1.35fr) minmax(170px,.75fr) minmax(220px,1fr); gap:clamp(28px,5vw,72px); align-items:start; }
.page-home .home-footer-brand p { max-width:360px; }
.page-home .home-footer-swedish { margin-top:14px !important; color:var(--brand-navy-strong) !important; font-weight:650; }
.page-home .home-footer-column { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.page-home .home-footer-column h2 { margin:0 0 5px; color:var(--brand-navy-strong); font-size:13px; line-height:1.3; text-transform:uppercase; letter-spacing:.055em; }
.page-home .home-footer-column a { color:var(--brand-navy-strong); font-size:13px; font-weight:650; text-decoration:none; }
.page-home .home-footer-column a:hover { text-decoration:underline; }
.page-home .home-footer-column a:focus-visible { outline:3px solid var(--action-green); outline-offset:3px; border-radius:3px; }
.page-home .home-footer-pending { color:var(--text-secondary); font-size:13px; }
.page-home .home-footer-bottom { display:flex; justify-content:space-between; gap:24px; margin-top:30px; padding-top:18px; border-top:1px solid var(--border-strong); color:var(--text-tertiary); font-size:12px; }
@media(max-width:700px) {
  .page-home .home-footer-columns { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px 24px; }
  .page-home .home-footer-brand { grid-column:1 / -1; }
  .page-home .home-footer-bottom { flex-direction:column; gap:5px; }
}
@media(max-width:430px) {
  .page-home .home-footer-columns { grid-template-columns:minmax(0,1fr); gap:25px; }
  .page-home .home-footer-brand { grid-column:auto; }
}


/* Subtle affordance for clickable reconnect cards. */
.page-home .home-reconnect-flow .home-demo-trigger { transition:transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.page-home .home-flow-hint { display:inline-flex; align-items:center; gap:5px; margin-top:4px; color:var(--brand-navy); font-size:12px; font-weight:700; opacity:.66; }
.page-home .home-flow-hint > span { display:inline-block; transition:transform 180ms ease; }
@media(hover:hover) and (pointer:fine) {
  .page-home .home-reconnect-flow .home-demo-trigger:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(15,43,63,.07); }
  .page-home .home-reconnect-flow .home-demo-trigger:hover .home-flow-hint { opacity:.9; }
  .page-home .home-reconnect-flow .home-demo-trigger:hover .home-flow-hint > span { transform:translateX(3px); }
}
.page-home .home-reconnect-flow .home-demo-trigger:focus-visible { transform:translateY(-2px); }
.page-home .home-reconnect-flow .home-demo-trigger:focus-visible .home-flow-hint { opacity:.9; }
.page-home .home-reconnect-flow .home-demo-trigger:focus-visible .home-flow-hint > span { transform:translateX(3px); }
@media(prefers-reduced-motion:reduce) {
  .page-home .home-reconnect-flow .home-demo-trigger,
  .page-home .home-flow-hint > span { transition:none; }
  .page-home .home-reconnect-flow .home-demo-trigger:hover,
  .page-home .home-reconnect-flow .home-demo-trigger:focus-visible { transform:none; }
  .page-home .home-reconnect-flow .home-demo-trigger:hover .home-flow-hint > span,
  .page-home .home-reconnect-flow .home-demo-trigger:focus-visible .home-flow-hint > span { transform:none; }
}


/* Compact mobile footer — keep desktop footer unchanged. */
@media(max-width:560px) {
  .page-home .home-footer { padding:22px 18px 18px; }
  .page-home .home-footer-columns {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 22px;
  }
  .page-home .home-footer-brand {
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    column-gap:14px;
    row-gap:3px;
    align-items:center;
  }
  .page-home .home-footer-home { grid-row:1 / 3; }
  .page-home .home-footer-logo { width:112px; margin:0; }
  .page-home .home-footer-brand p { font-size:12px; line-height:1.4; }
  .page-home .home-footer-swedish { margin-top:0 !important; font-size:12px !important; }
  .page-home .home-footer-column { gap:6px; }
  .page-home .home-footer-column h2 { margin-bottom:3px; font-size:11px; }
  .page-home .home-footer-column a,
  .page-home .home-footer-pending { font-size:12px; line-height:1.35; }
  .page-home .home-footer-bottom {
    margin-top:20px;
    padding-top:14px;
    gap:3px;
    font-size:10.5px;
    line-height:1.4;
  }
}
@media(max-width:360px) {
  .page-home .home-footer-columns { grid-template-columns:minmax(0,1fr); gap:18px; }
  .page-home .home-footer-brand { grid-column:auto; }
}


/* Mobile footer: three compact columns on one row. */
@media(max-width:560px) {
  .page-home .home-footer { padding:20px 12px 16px; }
  .page-home .home-footer-columns {
    grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,1.15fr);
    gap:10px;
    align-items:start;
  }
  .page-home .home-footer-brand {
    grid-column:auto;
    display:block;
    min-width:0;
  }
  .page-home .home-footer-home { display:block; }
  .page-home .home-footer-logo { width:min(92px,100%); margin:0 0 7px; }
  .page-home .home-footer-brand p { font-size:10px; line-height:1.35; }
  .page-home .home-footer-swedish { margin-top:7px !important; font-size:9.5px !important; line-height:1.3 !important; }
  .page-home .home-footer-column { min-width:0; gap:5px; }
  .page-home .home-footer-column h2 { margin:0 0 3px; font-size:9.5px; line-height:1.25; letter-spacing:.035em; }
  .page-home .home-footer-column a,
  .page-home .home-footer-pending { max-width:100%; font-size:10px; line-height:1.3; overflow-wrap:anywhere; }
  .page-home .home-footer-bottom { margin-top:16px; padding-top:11px; font-size:9.5px; }
}
@media(max-width:360px) {
  .page-home .home-footer-columns {
    grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,1.15fr);
    gap:7px;
  }
  .page-home .home-footer-column h2 { font-size:9px; }
  .page-home .home-footer-column a,
  .page-home .home-footer-pending,
  .page-home .home-footer-brand p { font-size:9px; }
}
