/*
 * The public site.
 *
 * Deliberately hand-written and dependency-free: it is eleven files of static content that has to
 * survive being deployed inside the API container, and a build step would be one more thing to keep
 * working for no reader-visible gain.
 *
 * The palette and type are the portal's, on purpose. Somebody who signs in after reading this page
 * should arrive somewhere that looks like the same product rather than a different company.
 */

@font-face {
  font-family: 'Fraunces';
  src: url('/site/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/site/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #fdfcf9;
  --ground: #efece6;
  --ink: #1d2333;
  --ink-soft: #565149;
  --dimmed: #6e6960;
  --hairline: #e3dfd7;
  --iris: #7a52f4;
  --iris-deep: #5636bf;
  --iris-wash: #f2f0ff;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(29, 26, 18, 0.05), 0 6px 14px -4px rgba(29, 26, 18, 0.08);
  --shadow-lg: 0 2px 4px rgba(29, 26, 18, 0.06), 0 24px 40px -10px rgba(29, 26, 18, 0.14);

  --measure: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ground);
  /* The same grain the portal uses, so the two surfaces feel like one material. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--iris-deep);
  text-underline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* ---- masthead ---------------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.masthead-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.masthead-nav a:hover {
  color: var(--ink);
}

/* ---- buttons ----------------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.button:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button-primary {
  background: var(--iris);
  border-color: var(--iris);
  color: #fdfcf9;
}

.button-primary:hover {
  background: var(--iris-deep);
  border-color: var(--iris-deep);
}

.button-quiet {
  padding: 8px 16px;
}

/* ---- hero -------------------------------------------------------------------------------------- */

.hero {
  padding: 88px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iris-deep);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--iris-deep);
}

.lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.footnote {
  margin-top: 24px;
  font-size: 14px;
  color: var(--dimmed);
}

/* ---- the signature specimen -------------------------------------------------------------------- */

.specimen {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.specimen-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: #f7f5f1;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d3cec4;
}

.specimen-subject {
  margin-left: 10px;
  font-size: 13px;
  color: var(--dimmed);
}

.specimen-body {
  padding: 24px;
}

.specimen-message {
  color: var(--ink-soft);
  font-size: 15px;
}

.specimen-body hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 20px 0;
}

.signature {
  display: flex;
  gap: 14px;
  align-items: center;
}

.signature-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--iris-wash);
  color: var(--iris-deep);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.signature-name {
  font-weight: 600;
  font-size: 15px;
}

.signature-title {
  font-size: 13px;
  color: var(--ink-soft);
}

.signature-contact {
  margin-top: 3px;
  font-size: 13px;
  color: var(--dimmed);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signature-banner {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--iris) 0%, var(--iris-deep) 100%);
  color: #fdfcf9;
  font-size: 13px;
  font-weight: 500;
}

/* ---- bands ------------------------------------------------------------------------------------- */

.band {
  padding: 76px 0;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.band-quiet {
  background: transparent;
}

.band h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.section-lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
}

.cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3,
.feature h3 {
  font-size: 19px;
}

.card p,
.feature p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.features {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.feature {
  padding-left: 20px;
  border-left: 2px solid var(--iris);
}

/* ---- partners ---------------------------------------------------------------------------------- */

.partners {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.ticks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 15px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--iris);
  border-bottom: 2px solid var(--iris);
  transform: rotate(-45deg);
}

.callout {
  background: var(--ink);
  color: #efece6;
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.callout h3 {
  font-size: 21px;
  color: #fdfcf9;
}

.callout p {
  margin: 14px 0 22px;
  font-size: 15px;
  color: #b3b7cc;
}

/* ---- contact form ------------------------------------------------------------------------------ */

.enquiry {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: #cdd0e0;
}

.optional {
  font-weight: 400;
  color: #8e93ad;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #454b63;
  background: #20243a;
  color: #fdfcf9;
  font: inherit;
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #666c85;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #977dff;
  box-shadow: 0 0 0 3px rgba(151, 125, 255, 0.25);
}

/* Off-screen rather than display:none: some form-fillers skip what is not rendered, and this field
   only earns its keep if a bot believes in it. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry button[type='submit'] {
  justify-self: start;
  margin-top: 4px;
}

.enquiry button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.enquiry-status {
  margin: 0;
  font-size: 14px;
  min-height: 1.4em;
  color: #b3b7cc;
}

.enquiry-status[data-tone='ok'] {
  color: #8ce0b4;
}

.enquiry-status[data-tone='error'] {
  color: #ffb4a2;
}

.enquiry-fallback {
  margin: 14px 0 0;
  font-size: 14px;
  color: #b3b7cc;
}

.enquiry-fallback a {
  color: #cdc2ff;
}

/* ---- footer ------------------------------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--dimmed);
}

.footer nav {
  display: flex;
  gap: 22px;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* ---- responsive -------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner,
  .partners {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .cards,
  .features {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .masthead-nav a:not(.button) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* The portal is light-only today, and a public page that flipped to dark while the product it links
   to did not would be a mismatch a visitor notices. Kept deliberately in one scheme. */
