:root { color-scheme: light; --ink: #253345; --muted: #506174; --blue: #135e85; --deep: #183d58; --edge: #dce5eb; --pale: #f3f7fa; --white: #fff; }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
    a { color: var(--blue); text-underline-offset: 3px; }
    a:hover { color: var(--deep); }
    a:focus-visible { outline: 3px solid #e4a83e; outline-offset: 4px; border-radius: 2px; }
    .wrap { width: min(100% - 48px, 1040px); margin-inline: auto; }
    .skip { position: absolute; left: 16px; top: -120px; background: #fff; z-index: 3; padding: 8px 16px; }
    .skip:focus { top: 12px; }
    .header { border-bottom: 1px solid var(--edge); background: #fff; }
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; }
    .brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--deep); min-width: 0; }
    .brand-logo { display: block; width: 240px; max-width: 100%; height: auto; }
    nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
    nav a { color: var(--ink); font-size: .95rem; text-decoration: none; font-weight: 600; padding: 7px 0; }
    nav a[aria-current="page"] { color: var(--blue); box-shadow: 0 2px var(--blue); }
    .hero { background: linear-gradient(125deg, #f4f8fa, #fff 64%); border-bottom: 1px solid var(--edge); padding: clamp(42px, 7vw, 84px) 0 clamp(34px, 5vw, 60px); }
    .eyebrow { color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; margin: 0 0 8px; }
    h1,h2,h3,p { margin-top: 0; }
    h1 { font-size: clamp(2.3rem, 5.5vw, 3.65rem); letter-spacing: -.045em; line-height: 1.12; color: var(--deep); margin-bottom: 21px; }
    .lede { max-width: 770px; font-size: clamp(1.04rem, 2vw, 1.2rem); color: var(--muted); margin-bottom: 0; }
    .content { padding: 46px 0 80px; }
    .intro-links { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 35px; }
    .intro-links a { border: 1px solid var(--edge); padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 650; }
    .product { scroll-margin-top: 20px; border-top: 1px solid var(--edge); padding: 36px 0 42px; display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 24px 50px; }
    .product h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.025em; color: var(--deep); margin-bottom: 12px; }
    .product-label { text-transform: uppercase; letter-spacing: .12em; color: #738798; font-size: .72rem; font-weight: 750; }
    .product p { margin-bottom: 17px; }
    .product p:last-child { margin-bottom: 0; }
    .outbound { margin-top: 20px; padding: 18px 22px; border-left: 3px solid var(--blue); background: var(--pale); }
    .outbound a { font-weight: 650; }
    .footer { background: #203b50; color: #f5f8fa; padding: 44px 0 30px; }
    .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 13px; }
    .footer p { margin-bottom: 3px; color: #e0e9ef; }
    .footer a { color: #fff; }

    @media(max-width: 720px) { .header-inner { align-items: flex-start; flex-direction: column; gap: 14px; } nav { gap: 4px 18px; } .product { grid-template-columns: 1fr; gap: 4px; } .footer-grid { grid-template-columns: 1fr; } }
    @media(max-width: 430px) { .wrap { width: min(100% - 32px, 1040px); } nav { gap: 2px 16px; } }
    @media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

    /* Gemensam formgivning och layout för samtliga sidor. */
    .section { padding: 48px 0 62px; }
    .section + .section { border-top: 1px solid var(--edge); }
    .section-title { font-size: clamp(1.65rem, 3.1vw, 2.2rem); line-height: 1.25; color: var(--deep); letter-spacing: -.03em; margin-bottom: 16px; }
    .section-intro { max-width: 780px; color: var(--muted); margin-bottom: 29px; }
    .text-column { max-width: 780px; }
    .text-column p { margin-bottom: 19px; }
    .pill { display: inline-block; background: #e9f1f5; border-radius: 999px; padding: 5px 11px; color: #345b74; font-size: .79rem; font-weight: 750; }
    .page-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 21px; min-height: 46px; border-radius: 7px; background: var(--blue); color: white; font-weight: 700; text-decoration: none; }
    .page-button:hover { background: #104a68; color: white; }
    .page-button--outline { background: white; border: 1px solid #a6b9c8; color: var(--deep); }
    .page-button--outline:hover { background: #eaf1f6; color: var(--deep); }
    .button-row { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
    .tile { border: 1px solid var(--edge); border-radius: 12px; padding: 26px; background: #fff; min-width: 0; }
    .tile h3 { color: var(--deep); font-size: 1.23rem; line-height: 1.35; margin: 0 0 12px; }
    .tile p { color: var(--muted); margin: 0 0 12px; }
    .tile p:last-child { margin-bottom: 0; }
    .tile a { font-weight: 700; }
    .highlight { border-left: 4px solid var(--blue); background: var(--pale); padding: 21px 25px; margin: 27px 0; border-radius: 0 9px 9px 0; }
    .highlight p:last-child { margin-bottom: 0; }
    .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .inline-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 16px 0 20px; list-style: none; }
    .inline-list li { background: #ecf3f7; color: #2d536b; border-radius: 999px; font-size: .91rem; font-weight: 650; padding: 6px 15px; }
    .soft-band { background: #f5f9fb; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
    .soft-band h2 { margin-bottom: 17px; }
    .soft-band p { max-width: 760px; }
    .soft-band .button-row { margin-top: 22px; }
    .muted-small { color: var(--muted); font-size: .91rem; }
    .mini-label { color: var(--blue); font-weight: 750; font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; }
    .home-hero { padding: clamp(55px, 8vw, 103px) 0 clamp(55px, 8vw, 95px); }
    .home-hero h1 { max-width: 790px; }
    .home-hero .lede { margin-bottom: 26px; }
    .home-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .home-feature { position: relative; background: #f5f8fa; border: 1px solid var(--edge); border-radius: 12px; padding: 30px; overflow: hidden; min-height: 260px; }
    .home-feature > svg { display: block; width: 64px; height: 64px; margin-bottom: 18px; }
    .home-feature h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); color: var(--deep); letter-spacing: -.025em; line-height: 1.25; margin-bottom: 10px; }
    .home-feature p { max-width: 340px; color: var(--muted); margin: 0 0 14px; }
    .home-feature a { font-weight: 700; }
    .spotlight { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 26px; padding: 38px; border-radius: 13px; background: #eaf3f8; }
    .spotlight h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--deep); line-height: 1.2; margin-bottom: 13px; }
    .spotlight .visual { display: grid; place-items: center; border-radius: 50%; background: #dcecf4; width: 145px; height: 145px; }
    .spotlight .visual svg { width: 76px; height: 76px; }
    .shortcut-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .shortcut { border: 1px solid var(--edge); padding: 17px 18px; border-radius: 8px; background: #fff; font-weight: 750; text-decoration: none; }
    .shortcut:hover { background: #f2f7fa; }
    .shortcut span { display: block; font-size: .78rem; color: var(--muted); font-weight: 450; margin-top: 6px; }
    .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
    .fact { padding: 20px 25px; border: 1px solid var(--edge); border-radius: 10px; }
    .fact strong { display: block; color: var(--deep); font-size: 1.38rem; line-height: 1.3; margin-bottom: 5px; }
    .fact span { display: block; color: var(--muted); font-size: .92rem; }
    .partner { display: flex; flex-direction: column; }
    .partner h3 { font-size: 1.27rem; }
    .partner .contact-details { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--edge); font-size: .89rem; }
    .partner .contact-details p { margin: 0 0 5px; overflow-wrap: anywhere; }
    .partner .contact-details a { font-weight: 650; }
    .partner-note { font-size: .88rem; color: var(--muted); margin-top: 25px; padding: 16px 22px; border-left: 3px solid #9eb5c4; background: #f4f7f9; }
    @media (max-width: 900px) { .shortcut-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 720px) { .two-col, .home-features, .facts, .three-col { grid-template-columns: 1fr; } .spotlight { grid-template-columns: 1fr; padding: 28px; } .spotlight .visual { width: 100px; height: 100px; } .spotlight .visual svg { width: 60px; height: 60px; } .section { padding: 39px 0 49px; } }
    @media (max-width: 410px) { .shortcut-list { grid-template-columns: 1fr; } .home-feature { padding: 23px; } .tile { padding: 21px; } }
    @media print { .header, .footer { background: #fff !important; color: #222 !important; } .footer a { color: #222 !important; } .skip { display: none; } }

/* Särskild layout för kundcase. */
.case { scroll-margin-top: 22px; border-top: 1px solid var(--edge); padding: 38px 0 46px; display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: 24px 48px; }
    .case-name { min-width: 0; }
    .case-number { text-transform: uppercase; letter-spacing: .12em; color: #738798; font-size: .72rem; font-weight: 750; margin-bottom: 7px; }
    .case h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.025em; color: var(--deep); margin-bottom: 11px; }
    .case-subtitle { color: var(--muted); font-size: .96rem; line-height: 1.6; max-width: 260px; }
    .case-copy p { margin-bottom: 19px; }
    .case-copy p:last-child { margin-bottom: 0; }
    .case-action { margin-top: 24px; padding: 17px 20px; background: var(--pale); border-left: 3px solid var(--blue); }
    .case-action a { font-weight: 650; }
    .hero .lede a { color: var(--blue); }
    @media (max-width: 720px) { .case { grid-template-columns: 1fr; gap: 4px; } .case-subtitle { max-width: unset; } }

/* DocuMasker: komponenter ovanpå samma grund-CSS som R2B:s statiska webbplats. */
:root { --docu-soft: #eaf3f8; --docu-accent: #135e85; }
.brand-logo { width: 245px; }
.nav-demo { display: inline-block; border: 1px solid var(--blue); color: var(--blue); border-radius: 7px; padding: 5px 13px; }
.nav-demo:hover { color: var(--deep); border-color: var(--deep); }
.docu-hero { background: linear-gradient(115deg, #edf5fa, #fff 70%); }
.docu-hero .hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 48px; align-items: center; }
.docu-hero h1 { max-width: 670px; }
.docu-hero .lede { margin-bottom: 27px; }
.docu-illustration { background: #fff; border: 1px solid #d7e6f0; border-radius: 17px; padding: 18px; box-shadow: 0 24px 65px rgba(12, 52, 82, .09); }
.docu-illustration svg { display: block; width: 100%; height: auto; }
.docu-section { padding: 61px 0; }
.docu-section + .docu-section { border-top: 1px solid var(--edge); }
.docu-section.soft { background: #f5f9fb; }
.docu-section .section-title { margin-bottom: 15px; }
.docu-lead { max-width: 790px; color: var(--muted); font-size: 1.075rem; }
.docu-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.docu-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docu-card { border: 1px solid var(--edge); border-radius: 12px; padding: 26px; min-width: 0; background: white; }
.docu-card h3 { color: var(--deep); font-size: 1.27rem; line-height: 1.3; margin-bottom: 11px; }
.docu-card p { margin: 0 0 12px; color: var(--muted); }
.docu-card p:last-child { margin-bottom: 0; }
.docu-card ul { padding-left: 20px; margin-bottom: 0; }
.docu-card li + li { margin-top: 5px; }
.docu-number { display: inline-flex; width: 41px; height: 41px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; background: #e8f2f7; color: var(--blue); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.docu-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; align-items: start; }
.docu-split p:last-child { margin-bottom: 0; }
.docu-list { padding-left: 22px; }
.docu-list li { margin: 8px 0; }
.docu-banner { border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: #eaf3f8; padding: 29px; }
.docu-banner h2 { font-size: 1.42rem; color: var(--deep); margin-bottom: 11px; }
.docu-banner p:last-child { margin-bottom: 0; }
.docu-content { padding: 40px 0 80px; }
.docu-content .section-title { margin-top: 8px; }
.docu-content h2 { color: var(--deep); font-size: clamp(1.4rem, 2.8vw, 1.9rem); letter-spacing: -.02em; line-height: 1.3; margin-top: 30px; }
.docu-content h3 { color: var(--deep); font-size: 1.17rem; line-height: 1.35; margin-top: 25px; }
.docu-content p { max-width: 880px; }
.docu-content a { overflow-wrap: anywhere; }
.docu-content pre { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #dce5eb; border-radius: 8px; padding: 15px 19px; color: #20344a; background: #f3f7fa; font: 0.92rem/1.6 ui-monospace, 'Cascadia Code', 'Consolas', monospace; }
.docu-content :not(pre) > code { overflow-wrap: anywhere; background: #edf3f7; padding: .1em .28em; border-radius: 3px; font: .92em ui-monospace, 'Cascadia Code', 'Consolas', monospace; }
.docu-notice { background: #eff6fa; border-left: 3px solid var(--blue); padding: 18px 22px; margin: 25px 0 32px; border-radius: 0 8px 8px 0; }
.docu-notice p:last-child { margin-bottom: 0; }
.docu-steps { display: grid; gap: 13px; margin-top: 28px; }
.docu-step { border: 1px solid var(--edge); border-radius: 11px; background: white; padding: 25px 29px; scroll-margin-top: 18px; }
.docu-step h2 { margin: 0 0 11px; }
.docu-step p:last-child, .docu-step ol:last-child { margin-bottom: 0; }
.docu-step .step-kicker { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.docu-steps ol { padding-left: 26px; }
.docu-steps li { margin: 7px 0; }
.docu-toplinks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.docu-toplinks a { font-size: .92rem; padding: 6px 11px; border: 1px solid var(--edge); border-radius: 7px; text-decoration: none; }
.docu-table-wrap { overflow-x: auto; margin: 24px 0 34px; border: 1px solid var(--edge); border-radius: 9px; }
.docu-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.docu-table th { background: #edf4f8; color: var(--deep); text-align: left; }
.docu-table th, .docu-table td { padding: 12px 15px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.docu-table tbody tr:last-child td { border-bottom: 0; }
.docu-table td:first-child { font-weight: 700; white-space: nowrap; }
.docu-file { border: 1px solid #d8e6ef; border-radius: 12px; padding: 27px; background: #f7fafc; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.docu-file h2 { margin: 0; }
.docu-file p { margin: 0; }
.docu-file .page-button { margin-top: 10px; }
.docu-muted { color: var(--muted); font-size: .89rem; }
.docu-legal { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); max-width: 780px; margin: 32px 0 18px; }
.docu-legal .docu-card { display: flex; flex-direction: column; align-items: flex-start; }
.docu-legal .page-button { margin-top: auto; }
.docu-callout { padding: 45px 0; border-top: 1px solid var(--edge); background: #f4f8fa; }
.docu-callout .wrap { display:flex; align-items:center; justify-content:space-between; gap: 25px; }
.docu-callout h2 { color: var(--deep); font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 5px; }
.docu-callout p { color: var(--muted); margin: 0; }
.docu-callout .page-button { flex-shrink: 0; }
.footer .footer-grid .footer-links { display:flex; flex-wrap: wrap; gap: 8px 15px; }
.footer .footer-grid .footer-links a { color: #fff; }
@media(max-width: 920px) { .docu-hero .hero-grid { grid-template-columns: 1fr 0.7fr; gap: 25px; } .docu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .docu-legal { grid-template-columns: 1fr; } }
@media(max-width: 720px) { .docu-hero .hero-grid, .docu-split, .docu-grid, .docu-grid--two { grid-template-columns: 1fr; } .docu-hero .hero-grid { gap: 30px; } .docu-hero { padding: 46px 0; } .docu-illustration { max-width: 540px; } .docu-section { padding: 43px 0; } .docu-callout .wrap { align-items:flex-start; flex-direction:column; } .docu-step { padding: 21px; } }
@media(max-width: 430px) { .brand-logo { width: 224px; } .docu-card, .docu-file { padding: 21px; } .docu-legal { gap: 13px; } }

.visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
