/* InterseQtion website. Self-hosted type (SIL OFL): Schibsted Grotesk for headings and interface,
   Source Serif 4 for reading text. One memorable element per page (the market intersection on the
   home page); everything else is quiet, left-aligned and ruled. */
@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ink: #13202b;
  --ink-2: #3b4855;
  --slate: #5f6b77;
  --paper: #f5f7f6;
  --white: #ffffff;
  --rule: #d6dcdb;
  --rule-strong: #b9c3c2;
  --malachite: #0e7c66;
  --malachite-deep: #0a5c4c;
  --malachite-wash: #e3f1ec;
  --marigold: #e3a72f;
  --marigold-wash: #fbf1db;
  --error: #b42318;
  --sans: "Schibsted", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--malachite-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--marigold-wash); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; font: 600 15px var(--sans); z-index: 50; }
.skip:focus { left: 8px; }

/* type */
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; font-weight: 760; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 720; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 680; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 650; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.small { font-size: 15px; line-height: 1.5; color: var(--slate); }
.sans { font-family: var(--sans); }

/* nav */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 246, 0.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 760 20px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo .q { color: var(--malachite); }
.menu { display: flex; align-items: center; gap: 4px; font: 520 15.5px/1 var(--sans); }
.menu a { color: var(--ink-2); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.menu a:hover { color: var(--ink); background: rgba(19, 32, 43, 0.05); }
.menu a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--malachite); border-radius: 0; }
.menu .signin { margin-left: 8px; }
.menu .cta-sm { margin-left: 6px; background: var(--ink); color: var(--white); padding: 10px 14px; }
.menu .cta-sm:hover { background: var(--malachite-deep); color: var(--white); }
.menu-toggle { display: none; font: 600 15px var(--sans); background: none; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 8px 12px; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 0; }
  .menu.open { display: flex; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--malachite); padding-left: 12px; }
  .menu .signin, .menu .cta-sm { margin: 0; }
  .menu .cta-sm { margin-top: 12px; text-align: center; border-radius: 6px; border-bottom: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 620 16px/1 var(--sans); padding: 15px 22px; border-radius: 6px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--malachite); color: var(--white); }
.btn-primary:hover { background: var(--malachite-deep); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn:disabled { opacity: 0.55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--rule); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: end; margin-bottom: 44px; }
.head p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }
.ink { background: var(--ink); color: #d7dee0; }
.ink h2, .ink h3, .ink h4 { color: var(--white); }
.ink a { color: #9fe0cc; }
.white { background: var(--white); }

/* home hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 26px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* the intersection: one vertical line (the client's business) crossing three market lines */
.crossing { width: 100%; height: auto; overflow: visible; }
.crossing .market-line { stroke: var(--rule-strong); stroke-width: 2; }
.crossing .you-line { stroke: var(--malachite); stroke-width: 6; stroke-linecap: round; }
.crossing .node { fill: var(--white); stroke: var(--ink); stroke-width: 2.5; }
.crossing .node-on { fill: var(--marigold); stroke: var(--ink); stroke-width: 2.5; }
.crossing text { font-family: var(--sans); fill: var(--ink); }
.crossing .cc { font-size: 30px; font-weight: 760; letter-spacing: -0.02em; }
.crossing .meta { font-size: 13.5px; fill: var(--slate); font-weight: 480; }
.crossing .you { font-size: 14px; font-weight: 650; fill: var(--malachite-deep); }
@media (prefers-reduced-motion: no-preference) {
  .crossing .you-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.4s 0.2s cubic-bezier(.6, 0, .2, 1) forwards; }
  .crossing .node-on { opacity: 0; animation: pop 0.35s forwards; }
  .crossing .n1 { animation-delay: 0.65s; } .crossing .n2 { animation-delay: 0.95s; } .crossing .n3 { animation-delay: 1.25s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
}

/* two ways */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.split > div { padding: 32px 40px 8px 0; }
.split > div + div { padding-left: 40px; border-left: 1px solid var(--rule); }
.split h3 { font-size: 26px; margin-bottom: 12px; }
.split ul { margin: 18px 0 0; padding: 0; list-style: none; }
.split li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 17px; }
.split li b { font-family: var(--sans); font-weight: 650; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* launch path (a real sequence) */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); counter-reset: step; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--rule-strong); }
.path li { position: relative; padding: 46px 14px 0 0; counter-increment: step; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.path li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 15px var(--sans); color: var(--ink); }
.path li:last-child::before { background: var(--marigold); }
.path h4 { margin-bottom: 6px; }
.path .day { display: block; margin-top: 8px; font: 560 13.5px var(--sans); color: var(--malachite-deep); }
@media (max-width: 1000px) {
  .path { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .path::before { display: none; }
}
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }

/* market table */
.markets { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15.5px; }
.markets th, .markets td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); }
.markets thead th { font-weight: 600; color: var(--slate); font-size: 14px; border-bottom: 2px solid var(--ink); }
.markets tbody th { font-size: 22px; font-weight: 740; letter-spacing: -0.02em; white-space: nowrap; }
.markets td small { display: block; color: var(--slate); font-size: 13.5px; margin-top: 2px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 860px) {
  .markets thead { display: none; }
  .markets, .markets tbody, .markets tr, .markets th, .markets td { display: block; }
  .markets tr { padding: 18px 0; border-bottom: 2px solid var(--ink); }
  .markets th, .markets td { border: 0; padding: 4px 0; }
  .markets td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--slate); margin-top: 8px; }
}

/* product list */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.products article { padding: 26px 0 28px; border-top: 1px solid var(--rule); }
.products h3 { margin-bottom: 8px; }
.products p { font-size: 16.5px; color: var(--ink-2); margin: 0; }
.products .status { display: inline-block; margin-top: 12px; font: 560 13.5px var(--sans); color: var(--slate); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* record sample */
.record { background: var(--white); border: 1px solid var(--rule-strong); border-left: 6px solid var(--malachite); padding: 24px 28px; font-family: var(--sans); }
.record h4 { font-size: 19px; margin-bottom: 6px; }
.record p { font-family: var(--serif); font-size: 16.5px; color: var(--ink-2); }
.record dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 14.5px; }
.record dt { color: var(--slate); }
.record dd { margin: 0; }
.record .flag { color: #8a5a00; background: var(--marigold-wash); padding: 1px 6px; border-radius: 3px; }
.pair { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; gap: 32px; } }

/* page header (inner pages) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); max-width: 18ch; }
.page-head .lede { margin-top: 20px; }

/* prose blocks and definition grids */
.cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; }
.cols + .cols { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }
.cols h2 { font-size: clamp(24px, 2.6vw, 32px); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.defs { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0; font-size: 17px; }
.defs dt, .defs dd { padding: 14px 0; border-top: 1px solid var(--rule); margin: 0; }
.defs dt { font: 640 16px/1.5 var(--sans); padding-right: 28px; }
@media (max-width: 600px) { .defs { grid-template-columns: 1fr; } .defs dd { border-top: 0; padding-top: 0; } }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--rule); font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px; border-left: 2.5px solid var(--malachite); border-bottom: 2.5px solid var(--malachite); transform: rotate(-45deg); }
.note { border-left: 4px solid var(--marigold); background: var(--marigold-wash); padding: 16px 20px; font-size: 16px; color: #4a3a12; max-width: 72ch; }
.note p:last-child { margin-bottom: 0; }

/* code */
pre.code { margin: 0; background: var(--ink); color: #d8e3e0; padding: 22px 24px; border-radius: 8px; overflow-x: auto; font: 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
pre.code .c { color: #8fa3a8; }
pre.code .s { color: #f0c66e; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: rgba(19, 32, 43, 0.06); padding: 1px 5px; border-radius: 3px; }

/* market page */
.market { padding: 56px 0; border-top: 2px solid var(--ink); }
.market:first-of-type { border-top: 0; padding-top: 0; }
.market-title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.market-title h2 { font-size: clamp(32px, 4vw, 48px); }
.market-title span { font: 560 16px var(--sans); color: var(--slate); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
@media (max-width: 860px) { .market-grid { grid-template-columns: 1fr; } }

/* contact */
.form { background: var(--white); border: 1px solid var(--rule-strong); padding: clamp(22px, 3vw, 36px); border-radius: 8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-family: var(--sans); }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { font: 16px/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1.5px solid var(--rule-strong); border-radius: 6px; padding: 12px 13px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--malachite); box-shadow: 0 0 0 3px var(--malachite-wash); }
.field .hint { font-size: 13.5px; color: var(--slate); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font: 15px/1.5 var(--sans); min-height: 1.5em; margin: 0 0 14px; }
.form-status.ok { color: var(--malachite-deep); }
.form-status.err { color: var(--error); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
address { font-style: normal; font-size: 17px; line-height: 1.6; }

/* sign in chooser */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.doors a { display: block; padding: 28px 28px 32px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); }
.doors a + a { padding-left: 28px; border-left: 1px solid var(--rule); }
.doors a:hover h3 { color: var(--malachite-deep); text-decoration: underline; text-underline-offset: 4px; }
.doors p { color: var(--ink-2); font-size: 16.5px; margin: 8px 0 0; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .doors a + a { padding-left: 0; border-left: 0; } }

/* closing band */
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band h2 { max-width: 20ch; }

/* footer */
.foot { background: var(--ink); color: #b6c1c4; font: 15px/1.6 var(--sans); padding: 56px 0 40px; }
.foot a { color: #e3ebec; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--white); font-size: 15px; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot .logo { color: var(--white); margin-bottom: 14px; }
.foot .fine { margin-top: 44px; padding-top: 20px; border-top: 1px solid #2b3a46; font-size: 13.5px; color: #8e9ca1; max-width: none; }
.foot .fine p { max-width: 110ch; margin: 0 0 8px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* legal pages */
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 17px; max-width: 72ch; }
