/* Synapsis marketing site. One stylesheet, no build step.
   Identity: a records office. Cool paper, deep ledger ink, one blue for actions,
   and the logo's lime, used only where something was found or verified. */

/* Schibsted Grotesk (SIL OFL 1.1, see fonts/OFL.txt), served from this site: no third-party font requests. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
}

:root {
  --paper: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #102033;
  --ink-2: #33425A;
  --muted: #5F6C80;       /* 4.96:1 on paper, 5.33:1 on white: also the placeholder colour */
  --rule: #DCE2EA;
  --rule-strong: #C3CCD8;
  --field: #76839A;       /* input borders: 3.57:1 on paper, 3.83:1 on white */
  --blue: #1E5BA8;
  --blue-deep: #174A8A;
  --blue-wash: #E8F0FA;
  --hit: #DDF5A6;         /* search highlight, from the app's lime */
  --lime: #A3E635;
  --night: #102033; /* logo navy, same as the header */
  --night-rule: #2A3D57;
  --on-night: #E7EDF4;
  --on-night-muted: #A2B1C4;
  --danger: #B42318;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(56px, 8vw, 96px);
  --nav-h: 64px;
  --r-box: 14px;
  --r-card: 12px;
  --r-small: 6px;
  --shadow-box: 0 1px 0 rgba(16, 32, 51, .04), 0 12px 32px -14px rgba(16, 32, 51, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; }
[hidden] { display: none !important; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
mark { background: var(--hit); color: inherit; padding: 0 .12em; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-small); }
.skip:focus { top: 12px; color: #fff; }

/* Interactive parts appear only when the script runs; without it, the resolved example and the email line stand in. */
.no-js .demo__tabs, .no-js .demo__foot, .no-js .request { display: none; }
.js .request-nojs { display: none; }

/* Wordmark: the ChatGPT logo, traced to SVG (img/). On light backgrounds the "ap" uses a deeper green. */
.wordmark { display: inline-flex; align-items: center; flex: none; text-decoration: none; padding: 6px 0; }
.wordmark__img { height: 45px; width: auto; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

/* ------------------------------------------------------------------- Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 32, 51, .97); /* logo navy #102033 */
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--night-rule); }
.nav :focus-visible { outline-color: #A3E635; }
.nav__inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--on-night); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; padding: 10px 0; }
.nav__links a:hover { color: #fff; text-decoration: underline; }
/* Below 720px: wordmark and the button only. */
@media (max-width: 719px) {
  :root { --nav-h: 60px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 719px) { .wordmark__img { height: 40px; } }
@media (max-width: 419px) { .wordmark__img { height: 35px; } .nav__cta { padding: 0 12px; } }
@media (max-width: 359px) { .wordmark__img { height: 28px; } .nav__inner { gap: 12px; } }

/* Type */
.h2 {
  margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.08;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); max-width: 16ch; text-wrap: balance;
}

/* ------------------------------------------------------------------ Hero */
.hero { padding: clamp(16px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.hero__copy { padding-top: clamp(0px, 3vw, 40px); }
.hero__title {
  margin: 0; max-width: 13ch; font-weight: 750; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); text-wrap: balance;
}
.hero__lede { margin: 20px 0 0; max-width: 44ch; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); }
.hero__cta { margin-top: 28px; }
@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__copy { padding-top: 0; }
  .hero__title { max-width: 20ch; }
  .hero__lede { max-width: 60ch; margin-top: 12px; }
}
@media (max-width: 560px) {
  .hero__title { font-size: 1.875rem; }
    .hero__lede { margin-top: 8px; font-size: .975rem; line-height: 1.5; }
  .hero__cta { display: none; }
  .hero__inner { gap: 16px; }
}

/* Demo: question tabs, then a search window that types by itself, then the answer. */
.demo { min-width: 0; }
.try { display: flex; flex-wrap: wrap; gap: 8px; }
.demo__tabs { position: relative; }
.chip {
  position: relative; overflow: hidden;
  min-height: 40px; border: 1px solid var(--rule-strong); background: var(--surface); border-radius: 999px;
  padding: 0 16px; font-size: .875rem; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chip[aria-pressed="true"] { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-wash); }
/* Countdown to the next question, along the bottom of the active tab. */
.chip__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .1s linear; }
.chip[aria-pressed="false"] .chip__timer { display: none; }

.window {
  margin-top: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-box);
  box-shadow: 0 1px 2px rgba(16, 32, 51, .05), 0 22px 48px -30px rgba(16, 32, 51, .4);
  overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.window__icon { width: 20px; height: 20px; flex: none; color: var(--muted); }
.window__query { margin: 0; min-width: 0; min-height: 1.6em; font-size: 1.0625rem; font-weight: 550; color: var(--ink); line-height: 1.5; }
.window__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--blue); opacity: 0; }
.is-typing .window__caret { opacity: 1; }
.demo:not(.is-typing) .window__caret { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 1; } }

.demo__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.sets { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sets__label { margin-right: 4px; }
.sets__btn, .demo__pause {
  min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: none;
  font-size: .8125rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.sets__btn:hover, .demo__pause:hover { color: var(--blue-deep); border-color: var(--rule-strong); }
.sets__btn[aria-pressed="true"] { color: var(--ink); border-color: var(--rule-strong); background: var(--surface); }
@media (max-width: 560px) {
  .chip { padding: 0 12px; font-size: .8125rem; min-height: 38px; flex: none; }
  /* One row of tabs that scrolls sideways, so the window below never moves. */
  .demo__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .demo__tabs::-webkit-scrollbar { display: none; }
  .window__bar { padding: 12px 14px; gap: 10px; }
  .window__icon { display: none; }
  .window__query { font-size: .975rem; }
}

/* Answer: inside the search window. */
.answer { padding: clamp(14px, 2.6vw, 24px); }
.answer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.answer__label { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.answer__label.is-busy { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--blue-deep); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.answer__tag { flex: none; font-size: .8125rem; color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
/* While a question is typing, the old answer fades out but keeps its space, so the page does not jump. */
.answer__body { min-height: 19.5rem; transition: opacity .2s; }
.answer__body.is-waiting { opacity: 0; }
.answer__body.is-entering { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.answer__text { font-size: clamp(1rem, .97rem + .2vw, 1.125rem); line-height: 1.6; color: var(--ink); max-width: 68ch; }
/* Inline (not inline-flex) so a line never breaks between a citation and the full stop after it. */
.cite {
  display: inline; vertical-align: .3em;
  margin: 0 2px 0 3px; padding: .15em .45em;
  font-size: .7em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--blue-deep); background: var(--blue-wash); border: 1px solid #C9DAF0; border-radius: 4px;
  text-decoration: none; cursor: pointer;
}
.cite:hover, .cite.is-lit { background: var(--blue); border-color: var(--blue); color: #fff; }

.evidence { margin-top: 14px; }
.evidence__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin-bottom: 6px; }
.evidence__title { margin: 0; font-size: .9375rem; font-weight: 700; }
.role { margin: 0; font-size: .8125rem; color: var(--muted); }
.role strong { color: var(--ink); font-weight: 650; }

.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.source { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); transition: border-color .15s, background-color .15s; }
.source.is-lit, .source:has(details[open]) { border-color: var(--blue); background: var(--surface); }
.source summary {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px 9px 8px; cursor: pointer; list-style: none;
  font-size: .875rem; color: var(--ink-2); border-radius: 8px; min-height: 44px;
}
.source summary::-webkit-details-marker { display: none; }
.source summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: 7px 2px 0 auto;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .15s;
}
.source details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.source__n {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 5px; background: var(--surface); border: 1px solid var(--rule-strong);
  font-size: .75rem; font-weight: 700; color: var(--blue-deep); font-variant-numeric: tabular-nums;
}
.source__label { min-width: 0; line-height: 1.45; padding-top: 2px; overflow-wrap: anywhere; }
.source__name { font-weight: 650; color: var(--ink); }
.source__kind { color: var(--muted); }
.source__kind::before { content: "("; }
.source__kind::after { content: ")"; }
.source__loc { display: block; color: var(--muted); font-size: .8125rem; }
.source__excerpt { margin: 0 12px 12px 42px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; font-size: .9375rem; color: var(--ink); }
.source__excerpt p { margin: 0; }
@media (max-width: 560px) {
  .source summary { padding: 7px 10px 7px 7px; }
  .source__excerpt { margin-left: 10px; margin-right: 10px; }
}


/* Proof strip: three short claims under the hero. */
.proof {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px);
}
.proof li { padding-top: 16px; border-top: 2px solid var(--ink); }
.proof__title { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.proof p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) {
  .proof { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .proof li { padding-top: 12px; }
}

/* -------------------------------------------------------------- Security */
.security { padding: var(--band) 0; background: var(--night); color: var(--on-night); }
.security__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.security .h2 { color: #fff; }
.security__brief { margin-top: 20px; color: var(--on-night-muted); }
.security a { color: #9CC3F5; font-weight: 600; }
.security a:hover { color: #C6DCFA; }
.points { list-style: none; margin: 0; padding: 0; }
.points li {
  position: relative; padding: 16px 0 16px 36px; border-top: 1px solid var(--night-rule);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.5; color: var(--on-night);
}
.points li:first-child { border-top: 0; padding-top: 4px; }
/* Lime tick: the same colour the demo uses for a verified match. */
.points li::before {
  content: ""; position: absolute; left: 4px; top: calc(16px + .3em); width: 7px; height: 13px;
  border-right: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime); transform: rotate(45deg);
}
.points li:first-child::before { top: calc(4px + .3em); }
.security__sources {
  grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--night-rule);
  max-width: 80ch; font-size: .9375rem; color: var(--on-night-muted);
}
@media (max-width: 860px) {
  .security__inner { grid-template-columns: minmax(0, 1fr); }
  .security__brief { margin-top: 12px; }
}

/* ------------------------------------------------------------- Request a demo */
.cta { padding: var(--band) 0; background: var(--blue-wash); border-top: 1px solid #D3E1F3; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.cta__copy { max-width: 52ch; color: var(--ink-2); }
.cta__copy .h2 { margin-bottom: 16px; color: var(--ink); }
.cta__lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--ink); }
@media (max-width: 860px) { .cta__inner { grid-template-columns: minmax(0, 1fr); } }

.request-nojs { margin: 0; font-weight: 600; color: var(--ink); }
.request { background: var(--surface); border: 1px solid #D3E1F3; border-radius: var(--r-card); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--field); border-radius: 8px;
}
.field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); border-radius: 8px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; font-size: .875rem; color: var(--danger); }
.field__error:empty { display: none; }
.request__submit { justify-self: start; }
.request__status { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.request__alt { margin: 0; font-size: .9375rem; color: var(--ink-2); text-align: center; }
.request__alt a, .footer__contact a { color: var(--blue); font-weight: 600; }
.request__status:empty { display: none; }
.request__status.is-error { color: var(--danger); }
@media (max-width: 560px) { .request__submit { justify-self: stretch; } }

/* ---------------------------------------------------------------- Footer */
.footer { padding: 28px 0 36px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
