/* solacia.ai. One stylesheet for every page. Brand: paper, ink and the sun (brand guidelines). */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/docs/fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #F4F1EE;
  --paper-2: #EDE8E3;
  --card: #FBFAF8;
  --line: #E2DBD4;
  --line-2: #D3CAC1;
  --ink: #1C1714;
  --ink-2: #4A403A;
  --ink-3: #74685F;
  --sun: #DA5420;
  --sun-ink: #A8400F;
  --sun-soft: #F6DCCD;
  --sun-deep: #C2481A; /* the sun, one step darker, so white text on it passes WCAG AA */
  --night: #16110E;
  --night-2: #241C17;
  --night-line: #3A2F28;
  --night-ink: #F4F1EE;
  --night-ink-2: #BFB3A9;
  --ok: #1F7A4C;
  --ok-soft: #DCEFE3;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Motion uses one easing and three durations: state changes, moves inside a picture, entrances. Loops and the demo's scene timings keep their own lengths. */
  --quick: .25s;
  --move: .6s;
  --enter: 1s;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}
body {
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sun); color: #fff; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em; transition: text-decoration-color var(--quick) var(--ease), color var(--quick) var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--sun); }
:focus-visible { outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 76px; }
code { font: .875em/1.4 var(--mono); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { left: 12px; }

/* Header: stays at the top. Over the hero it is clear; once the page moves it settles into
   frosted paper with a hairline (a scroll-driven animation, no script). Where that isn't
   supported, or motion is reduced, it is frosted from the start. */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 238, .92); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); }
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-settle linear both; animation-timeline: scroll(root); animation-range: 0 96px; }
}
@keyframes header-settle { from { background-color: rgba(244, 241, 238, 0); box-shadow: 0 1px 0 rgba(226, 219, 212, 0); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font-weight: 700; font-size: 1.4375rem; letter-spacing: -.03em; text-decoration: none; }
.brand svg { width: 46px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; font-size: .9375rem; font-weight: 500; }
.site-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease); }
.site-nav a:hover { color: var(--ink); background: rgba(28, 23, 20, .06); }
.header-cta { display: flex; align-items: center; gap: 6px; justify-self: end; }
.header-cta .header-book { padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink); transition: background-color var(--quick) var(--ease); }
.header-cta .header-book:hover { background: rgba(28, 23, 20, .06); }
.site-header .button { height: 46px; padding: 0 20px 0 17px; gap: 10px; font-size: .9375rem; }
/* Narrow screens: the main links move into a menu beside the button (a <details>, no script). */
.menu { display: none; }
.menu summary { display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(28, 23, 20, .06); }
.menu-panel { position: absolute; top: calc(100% - 4px); right: var(--gutter); min-width: 220px; display: grid; padding: 8px; border: 1px solid var(--line); }
.menu-panel { border-radius: 16px; background: var(--card); box-shadow: 0 18px 48px rgba(28, 23, 20, .16); }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.menu-panel a:hover { background: var(--paper-2); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-ink); }
.eyebrow::before { content: ""; width: 14px; height: 7px; border-radius: 14px 14px 0 0; background: var(--sun); }
.display { font-size: clamp(2.75rem, 7.4vw, 6.25rem); line-height: .98; letter-spacing: -.035em; font-weight: 700; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
.h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 26px 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.button:hover { background: #000; }
.button:active { transform: translateY(1px); }
.button .sun { width: 18px; height: 9px; border-radius: 18px 18px 0 0; background: var(--sun); transition: transform var(--quick) var(--ease); }
.button:hover .sun { transform: translateY(-2px); }
.button.light { background: var(--paper); color: var(--ink); }
.button.light:hover { background: #fff; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(28, 23, 20, .2); }
.button.ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
/* 404: the half sun sets behind a horizon once, then rests. Reduced motion shows it already set. */
.lost-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sunset { position: relative; height: clamp(110px, 16vw, 190px); margin-top: clamp(40px, 6vw, 72px); overflow: hidden; border-bottom: 1.5px solid var(--line-2); }
.sunset svg { position: absolute; left: 50%; bottom: 0; width: clamp(220px, 32vw, 380px); transform: translate(-50%, 31%); animation: sunset 2.4s var(--ease) .3s both; }
@keyframes sunset { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 31%); } }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.text-link .arrow { transition: transform var(--quick) var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* Sections */
.section { padding: clamp(80px, 11vw, 152px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.label { grid-column: 1 / span 3; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: .9em; }
.content { grid-column: 4 / span 9; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: 72px 0 40px; font-size: .9375rem; }
.site-footer .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--night-line); }
.site-footer .brand { color: var(--night-ink); }
.site-footer .about { grid-column: 1 / span 5; }
.site-footer .about p { margin-top: 18px; max-width: 30rem; }
.site-footer nav { grid-column: span 2; }
.site-footer nav h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 14px; }
.site-footer nav ul { list-style: none; padding: 0; }
.site-footer nav li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--night-ink); }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; font-size: .875rem; }

/* Sub pages: about, pricing, contact, privacy, 404 */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-head .display { font-size: clamp(2.5rem, 6vw, 4.75rem); margin-top: 22px; max-width: 16ch; }
.page-head .lede { margin-top: 26px; max-width: 40rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.015em; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol, .prose dl { color: var(--ink-2); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .callout { margin-top: 28px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); }
.prose .callout { border-radius: 16px; }
.page-body { padding-bottom: clamp(96px, 12vw, 160px); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0 28px; margin-top: 18px; }
.facts dt { font-weight: 600; color: var(--ink); padding: 12px 0; border-top: 1px solid var(--line); }
.facts dd { padding: 12px 0; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .label, .content { grid-column: 1 / -1; }
  .label { padding: 0 0 20px; }
  .site-footer .about { grid-column: 1 / -1; }
  .site-footer nav { grid-column: span 6; }
}
@media (max-width: 560px) {
  .site-header .wrap { height: 68px; }
  .brand { font-size: 1.25rem; gap: 10px; }
  .brand svg { width: 38px; }
  .header-cta .header-book { display: none; }
  .site-header .button { height: 44px; padding: 0 16px 0 14px; font-size: .875rem; }
  .site-header .wrap { gap: 8px; }
  .brand svg { flex: none; }
  .header-cta { gap: 2px; }
  .menu summary { padding: 0 12px; }
  .site-footer nav li + li { margin-top: 0; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .button { height: 52px; padding: 0 22px 0 18px; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
}
/* The narrowest phones: the half sun alone says Solacia, so the menu and the demo button fit. */
@media (max-width: 400px) {
  .site-header .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.prose ol li::marker { font-weight: 600; color: var(--sun-ink); }
