/* Marketing Studio samples, clean version. roche.com structure (white header, soft gradient hero, Light
   headlines, hairlines) with a light graphic layer. Every colour is a brand/tokens.json value.
   Square surfaces, 6 px on controls. Rule of thumb: one headline, one main action, three blocks at most. */
:root {
  --blue: #0B41CD; --navy: #022366; --sky: #BDE3FF;
  --b050: #F1F9FE; --b100: #D7E0F7; --b200: #AEC0EE; --b300: #85A0E6; --b400: #5C80DE;
  --ink: #000000; --ink2: #544F4F; --text2: #706B69; --muted: #9D948E;
  --line: #DBD6D1; --hair: #EAE8E5; --alt: #F5F5F2;
  --ok: #00B458; --ok-bg: #CCF0DE; --ok-text: #00724A;
  --warn: #FBAE40; --warn-bg: #FFF7CE;
  --bad: #FF1F26; --bad-bg: #FFD2D4; --bad-text: #B8002C;
  --font: "Roche Sans", roche-sans, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #FFFFFF; font-size: 15px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
button, input, select { font-family: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.i16 { width: 16px; height: 16px; flex: none; }
.muted { color: var(--text2); }
.ex { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); border-radius: 3px; vertical-align: middle; white-space: nowrap; }

.strip { background: var(--alt); color: var(--text2); font-size: 11.5px; text-align: center; padding: 4px 16px; }

/* header: one row */
.hdr { background: #FFFFFF; border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 20; }
.hdr__in { display: flex; align-items: center; gap: 40px; height: 68px; }
.hdr__brand { display: flex; align-items: center; gap: 16px; color: var(--navy); font-size: 19px; font-weight: 300; white-space: nowrap; }
.hdr__logo { height: 30px; display: block; padding-right: 16px; border-right: 1px solid var(--line); box-sizing: content-box; }
.nav { display: flex; gap: 30px; align-self: stretch; }
.nav a { display: flex; align-items: center; color: var(--ink); font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.nav a.on { color: var(--blue); border-bottom-color: var(--blue); }
.hdr__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--b100); color: var(--navy); display: grid; place-items: center; flex: none; }

/* buttons: 6 px controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 6px; border: 1px solid var(--blue); background: var(--blue); color: #FFFFFF; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn--ghost { background: #FFFFFF; color: var(--blue); border-color: var(--b200); }
.btn--ghost:hover { background: var(--b050); color: var(--navy); border-color: var(--navy); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { background: var(--hair); border-color: var(--hair); color: var(--muted); cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }

/* home hero: the one gradient on the page, at the hexagon angle */
.hero { background: linear-gradient(131deg, #D7E0F7 0%, #F1F9FE 34%, #FFFFFF 58%, #FFF7F5 82%, #FAD6C7 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { margin: 0 0 32px; font-size: 52px; line-height: 1.1; font-weight: 300; letter-spacing: -0.015em; }
.hero__art .scene { width: 100%; height: auto; display: block; }
.bigsearch { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; padding: 6px 6px 6px 18px; box-shadow: 0 0.75rem 1.5rem rgba(33,33,33,.08); max-width: 560px; }
.bigsearch > svg { width: 20px; height: 20px; color: var(--ink2); flex: none; }
.bigsearch input { flex: 1; border: 0; outline: 0; font-size: 16px; height: 44px; min-width: 0; background: transparent; }

/* page head (inner pages): calm, no gradient */
.head { border-bottom: 1px solid var(--hair); }
.head__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 40px; padding-bottom: 32px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 42px; line-height: 1.12; font-weight: 300; letter-spacing: -0.01em; max-width: 820px; }
.head__sub { margin: 10px 0 0; font-size: 17px; color: var(--ink2); max-width: 720px; }
.head__sub b { color: var(--ink); font-weight: 600; }
.head__act { display: flex; gap: 10px; }
.crumb { font-size: 13px; color: var(--text2); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--text2); } .crumb a:hover { color: var(--blue); } .crumb i { font-style: normal; color: var(--line); }

/* sections */
.sec { padding: 56px 0; }
.sec--top { padding-top: 32px; }
.sec--alt { background: var(--alt); }
.h2 { margin: 0 0 24px; font-size: 28px; font-weight: 300; }
.h3 { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text2); }

/* home: three ways */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.way { display: grid; grid-template-columns: 56px 1fr 24px; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 26px 24px; border: 1px solid var(--line); color: var(--ink); }
.way:hover { border-color: var(--blue); }
.way:hover .way__go { transform: translateX(4px); }

.way__t { font-size: 21px; font-weight: 300; }
.way__d { font-size: 14px; color: var(--text2); }
.way__go { grid-row: 1 / 3; grid-column: 3; color: var(--blue); transition: transform .15s; }
.way__go svg { width: 22px; height: 22px; display: block; }

/* home: disease areas */
.das { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.da { background: #FFFFFF; color: var(--ink); border: 1px solid transparent; }
.da:hover { border-color: var(--b300); }
.da__art { aspect-ratio: 2 / 1; }
.da__art svg { width: 100%; height: 100%; display: block; }
.da__b { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; font-size: 15px; font-weight: 600; }
.da__b b { font-size: 22px; font-weight: 300; color: var(--navy); }

/* search, tabs, chips, filters */
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink2); height: 44px; width: 340px; max-width: 100%; }
.search svg { width: 18px; height: 18px; color: var(--ink2); flex: none; }
.search input { border: 0; outline: 0; font-size: 16px; flex: 1; min-width: 0; background: transparent; height: 100%; }
.search:focus-within { border-bottom-color: var(--blue); }
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--hair); margin-bottom: 24px; }
.tabs a { padding: 10px 0 12px; color: var(--ink2); font-size: 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs a:hover { color: var(--blue); }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 56px; background: #FFFFFF; font-size: 14px; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.fpanel { display: none; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 16px; padding: 24px; background: var(--alt); }
.fpanel.open { display: grid; }
.fpanel .link { grid-column: 1 / -1; justify-self: start; }
.fgroup h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.chk { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; color: var(--ink2); cursor: pointer; }
.chk input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--muted); border-radius: 3px; margin: 0; display: grid; place-items: center; background: #FFFFFF; cursor: pointer; flex: none; }
.chk input:checked { background: var(--blue); border-color: var(--blue); }
.chk input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; transform: translateY(-1px) rotate(-45deg); }
.count { margin: 28px 0 16px; font-size: 13px; color: var(--text2); }
.empty { color: var(--text2); padding: 48px 0; }

/* cards: picture, title, one status line */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.card { color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__img { aspect-ratio: 4 / 3; background: var(--alt); overflow: hidden; border: 1px solid var(--hair); }
.card__img img, .card__img svg { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .25s; }
.card:hover .card__img img, .card:hover .card__img svg { transform: scale(1.03); }
.card:hover .card__t { color: var(--blue); }
.card__img.is-dim { opacity: .45; }
.card__t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.card__m { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text2); }

/* status */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.st--ok { color: var(--ok-text); } .st--ok::before { background: var(--ok); }
.st--warn { color: #8A5A12; } .st--warn::before { background: var(--warn); }
.st--bad { color: var(--bad-text); } .st--bad::before { background: var(--bad); }
.st--review { color: var(--navy); } .st--review::before { background: var(--blue); }
.st--int { color: var(--ink2); } .st--int::before { background: var(--b300); }

/* material page */

.mat__prev { aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.mat__prev img { max-width: 92%; max-height: 92%; object-fit: contain; display: block; box-shadow: 0 0.75rem 1.5rem rgba(33,33,33,.18); }
.mat__prev svg { width: 100%; height: 100%; display: block; }

.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 8px; }
.verdict b { display: block; font-size: 18px; font-weight: 600; }
.verdict span { font-size: 13.5px; color: var(--ink2); }

.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-top: 16px; }
.facts3 > div { padding: 16px 12px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.facts3 > div + div { padding-left: 16px; border-left: 1px solid var(--hair); }
.facts3 b { font-size: 17px; font-weight: 600; color: var(--navy); }
.facts3 span { font-size: 12.5px; color: var(--text2); display: flex; align-items: center; }
.facts3--wide { margin: 0 0 40px; }
.facts3--wide b { font-size: 24px; font-weight: 300; }

.more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); cursor: pointer; font-weight: 600; color: var(--blue); }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary svg { transform: rotate(180deg); }
.more p { margin: 14px 0; font-size: 14px; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { text-align: left; font-weight: 400; color: var(--text2); width: 36%; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.kv td { padding: 9px 0; border-bottom: 1px solid var(--hair); }

/* playbook */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); color: var(--ink); min-height: 200px; }
.tile:hover { border-color: var(--blue); }

.row { display: grid; grid-template-columns: 72px 1fr 16px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 15px; }
.row:hover { color: var(--blue); }

.row > svg { color: var(--blue); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 24px; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; border: 1.5px solid var(--blue); transform: rotate(45deg); }
.ticks li:last-child { border-bottom: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-size: 13px; }


.field label { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 44px; border: 1px solid var(--muted); border-radius: 6px; padding: 0 12px; font-size: 15px; background: #FFFFFF; color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }


/* plan: accordion */

.foot { border-top: 1px solid var(--hair); padding: 24px 0 36px; font-size: 13px; color: var(--text2); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #FFFFFF; padding: 12px 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .das { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid, .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fpanel { grid-template-columns: repeat(3, minmax(0, 1fr)); }

}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hdr__in { gap: 16px; height: auto; flex-wrap: wrap; padding-top: 12px; }
  .nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; height: 44px; }
  .hero__in { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
  .hero h1 { font-size: 34px; }
  .head h1 { font-size: 30px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .das, .grid, .tiles, .fpanel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { gap: 24px 14px; }

  .facts3 b { font-size: 15px; }
}
.head__ico { width: 96px; height: 96px; border-radius: 50%; background: var(--b050); color: var(--blue); display: grid; place-items: center; flex: none; }
.head__ico svg { width: 46px; height: 46px; }
.head__mock { width: 240px; aspect-ratio: 8 / 5; flex: none; overflow: hidden; }
.head__mock svg { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .head__ico, .head__mock { display: none; } }
@media (max-width: 760px) { .card__m > span:last-child { display: none; } }

/* identity: logo A (journey M) + page icons style 1 */
.hdr__ms { display: flex; align-items: center; gap: 12px; }
.hdr__ms .mark { display: block; flex: none; }
.word { font-size: 19px; line-height: 1; letter-spacing: -0.01em; color: var(--navy); white-space: nowrap; }
.word i { font-style: normal; font-weight: 300; }
.word b { font-weight: 600; color: var(--blue); }
.head__main { display: flex; align-items: center; gap: 24px; }
.head__picon { width: 88px; height: 88px; flex: none; }
.way { grid-template-columns: 80px 1fr 24px; }
.way__picon { grid-row: 1 / 3; width: 80px; height: 80px; }
@media (max-width: 760px) { .head__picon { width: 56px; height: 56px; } .head__main { gap: 14px; } .word { font-size: 16px; } }

/* Viewer / Editor switch (header) */
.role { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex: none; }
.role button { height: 30px; padding: 0 12px; border: 0; background: #FFFFFF; color: var(--ink2); font-size: 13px; cursor: pointer; }
.role button + button { border-left: 1px solid var(--line); }
.role button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
.role button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (max-width: 760px) { .role button { padding: 0 9px; } }
/* Header at medium widths: brand and role switch on one row, the nav on its own row underneath. */
@media (max-width: 1000px) {
  .hdr__in { gap: 16px; height: auto; flex-wrap: wrap; padding-top: 12px; }
  .nav { order: 3; width: 100%; gap: 26px; overflow-x: auto; height: 44px; }
}
/* Small phones: keep the Studio mark, drop the wordmark and avatar so the role switch fits on the first row. */
@media (max-width: 480px) {
  .hdr__ms .word, .hdr__avatar { display: none; }
  .hdr__logo { padding-right: 12px; }
  .hdr__brand { gap: 12px; }
}

/* ---------- Products (31 Oct 2026): Library, Playbook, Campaign Builder each carry their own mark and
   lockup inside the Studio family. Grounds: brand/tokens.json color.marketing-studio-products. ---------- */
body { --pc: var(--blue); }
body[data-product="library"] { --pc: #1482FA; }
body[data-product="playbook"] { --pc: #022366; }
body[data-product="builder"] { --pc: #0B41CD; }
.plock { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; white-space: nowrap; }
.plock small { font-size: 10.5px; font-weight: 400; letter-spacing: .02em; color: var(--text2); margin-bottom: 2px; }
.plock b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.nav a { gap: 8px; }
.nav a .mark { display: block; flex: none; opacity: .9; }
.nav a.on { border-bottom-color: var(--pc); }
/* The product's own rule under the header, in its ground colour. */
body:not([data-product="home"]) .hdr { border-bottom: 3px solid var(--pc); }
.head__mark { flex: none; display: block; align-self: flex-start; margin-top: 4px; }
.head__mark .mark { display: block; }
.pb-hdr__r { gap: 24px; }
/* Home: one tile per product. */
.way { grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; row-gap: 4px; align-items: start; border-top: 3px solid var(--line); }
.way__picon { grid-row: 1 / 4; width: 56px; height: 56px; }
.way__picon .mark { display: block; }
.way__t { font-size: 24px; font-weight: 300; line-height: 1.15; }
.way__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.way__cta svg { width: 18px; height: 18px; transition: transform .15s; }
.way:hover .way__cta svg { transform: translateX(4px); }
.way--library { border-top-color: #1482FA; } .way--playbook { border-top-color: #022366; } .way--builder { border-top-color: #0B41CD; }
@media (max-width: 760px) { .head__mark .mark { width: 44px; height: 44px; } .plock b { font-size: 16px; } }
@media (max-width: 480px) { .plock small { display: none; } .nav a .mark { display: none; } }
.head__main > div { min-width: 0; }
.pb-hdr__m.head__main { align-items: flex-start; }
@media (max-width: 760px) { .head__main { align-items: flex-start; } .head h1 { font-size: 32px; } }
@media (max-width: 480px) { .hdr__ms .plock { display: none; } .head__mark .mark { width: 36px; height: 36px; } .head h1 { font-size: 28px; } }
/* The Campaign Builder editor is a full-width tool: header and footer line up with it. */
body:has(.bfc) .hdr .wrap, body:has(.bfc) .foot .wrap { max-width: 1680px; padding-left: 20px; padding-right: 20px; }
