/* Kinora Lab — site v2 "One strip". Tokens from brand/tokens (brand book v1.1). */
:root {
  --paper: #F6F1E8; --ink: #1B1A17; --burgundy: #7A1F35; --green: #1E4A3A;
  --graphite: #554D45; --stone: #8A8178; --sand: #ECE4D6; --line: #DCD2C2; --white: #FFFFFF;
  --burgundy-300: #E29AAB; --green-300: #93C4AC; --muted-dark: #BDB3A6;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* brand book, chapter 06 */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --wrap: 1280px; --gutter: clamp(20px, 4vw, 48px);
  --r-sm: 3px; --r-md: 6px; --r-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-md); z-index: 20; }
.skip:focus { top: 12px; }

/* ---------- header: fixed to the top, paper ground, a hairline once the page has moved ---------- */
:root { --header-h: 72px; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper);   /* solid Paper: no muddy tint over the Ink sections */
  border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease-out); }
.site-header.is-scrolled, .doc-page .site-header { border-bottom-color: var(--line); }
.header-bar { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo img { width: 156px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a, .header-cta { text-decoration: none; }
.nav a:hover { color: var(--burgundy); }
.header-cta { font-size: 15px; font-weight: 500; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 999px; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.header-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; padding: 48px 0 clamp(56px, 9vh, 104px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.hero-copy { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(52px, 8.4vw, 132px); line-height: 0.94; letter-spacing: -0.035em; max-width: 9.5em; }
.lead { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--graphite); max-width: 33em; }
.btn { display: inline-block; margin-top: 36px; background: var(--burgundy); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 16px 26px; border-radius: var(--r-md); transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out); }
.btn:hover { background: #63182A; }
.btn:active { transform: scale(0.97); }
.hero-mark { grid-column: 8 / span 5; align-self: center; justify-self: end; width: min(100%, 62vh, 560px); aspect-ratio: 1; }
.hero-mark svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- statement ---------- */
.statement { position: relative; background: var(--ink); color: var(--paper); padding: clamp(96px, 16vh, 176px) 0; overflow: clip; }
.statement-strip { position: absolute; inset: 0; width: 100%; height: 100%; }
.statement-copy { position: relative; }
.statement h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.028em; max-width: 13.5em; }
.statement p { margin-top: 28px; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted-dark); }

/* ---------- shared section type ---------- */
.section-title { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.03em; }
.section-intro { margin-top: 20px; max-width: 32em; font-size: clamp(18px, 1.5vw, 21px); color: var(--graphite); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }

/* ---------- what we make ---------- */
.make { padding: clamp(96px, 14vh, 160px) 0 clamp(64px, 10vh, 120px); overflow-x: clip; }
.make-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 6vh, 64px); }
.make-list { grid-column: 1 / span 5; }
.area { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; border-top: 1px solid var(--line); }
.area:first-child { border-top: 0; }
.area h3 { font-size: clamp(36px, 4vw, 60px); line-height: 1; letter-spacing: -0.025em; }
.area p { margin-top: 18px; font-size: 18px; color: var(--graphite); max-width: 30em; }
.area-stage { display: none; }
.make-stage { grid-column: 7 / span 6; position: sticky; /* holds the folding icon while the four texts scroll past */ top: var(--header-h); height: calc(100svh - var(--header-h)); display: grid; place-items: center; }
.make-stage svg { width: min(100%, 66vh, 580px); height: auto; aspect-ratio: 1; overflow: visible; }

/* ---------- how we work: one strip, three folds ---------- */
.how { padding: clamp(80px, 12vh, 140px) 0 clamp(80px, 12vh, 140px); border-top: 1px solid var(--line); }
.how-strip { width: 100%; height: clamp(200px, 30vw, 440px); margin: clamp(32px, 5vh, 56px) 0; overflow: hidden; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.principle h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.principle-rule { margin-top: 12px; font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--burgundy); }
.principle p:not(.principle-rule) { margin-top: 14px; color: var(--graphite); }

/* ---------- questions ---------- */
.faq { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq-grid .section-title { grid-column: 1 / span 4; }
.faq-list { grid-column: 6 / span 7; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0;
  font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background:
  linear-gradient(currentColor 0 0) center / 14px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 14px no-repeat;
  transition: transform 200ms var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--burgundy); }
.faq-answer { padding: 0 48px 24px 0; color: var(--graphite); }

/* ---------- closing and footer (one Ink ground) ---------- */
.closing { background: var(--ink); color: var(--paper); padding-top: clamp(96px, 14vh, 160px); overflow: clip; }
.closing-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.closing-copy { grid-column: 1 / span 8; }
.closing-note { margin-top: 20px; max-width: 30em; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted-dark); }
.closing-mail { margin-top: clamp(28px, 5vh, 48px); font-size: clamp(28px, 5.4vw, 84px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; }
.closing-mail a { text-decoration: none; background: linear-gradient(var(--burgundy-300), var(--burgundy-300)) 0 100% / 0 3px no-repeat; transition: background-size 260ms var(--ease-out), color 160ms var(--ease-out); }
.closing-mail a:hover { color: var(--burgundy-300); background-size: 100% 3px; }
.copy-mail { margin-top: 28px; font: 500 15px/1 var(--font); color: var(--paper); background: transparent; border: 1.5px solid rgba(246, 241, 232, 0.5); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: border-color 160ms var(--ease-out); }
.copy-mail:hover { border-color: var(--paper); }
.closing-mark { grid-column: 9 / span 4; }
.closing-mark svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
.footer { margin-top: clamp(80px, 12vh, 140px); padding-top: 40px; padding-bottom: 40px; border-top: 1px solid rgba(246, 241, 232, 0.16); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo img { width: 168px; height: auto; }
.footer-nav { display: flex; gap: clamp(40px, 6vw, 96px); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { color: var(--muted-dark); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--paper); }
.legal-line { margin-top: 48px; font-size: 13px; line-height: 1.6; color: var(--muted-dark); max-width: 60em; }
.closing :focus-visible { outline-color: var(--burgundy-300); }

/* ---------- motion toggle: next to every moving picture, one shared setting ---------- */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font); color: var(--graphite);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.motion-toggle:hover { border-color: var(--stone); color: var(--ink); }
.motion-icon { width: 9px; height: 10px; display: inline-block; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-icon { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hero-mark { position: relative; }
.hero-mark .motion-toggle { position: absolute; right: 0; bottom: -56px; }
.make-stage .motion-toggle { position: absolute; right: 0; bottom: 32px; }
.motion-toggle-row { display: none; }

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  :root { --header-h: 60px; }
  .header-bar { gap: 16px; }
  .logo img { width: 132px; }
  .header-cta { margin-left: auto; padding: 7px 14px; font-size: 14px; }
  .hero { align-items: stretch; padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; align-content: space-between; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .hero-mark { grid-column: 1; grid-row: 1; justify-self: center; width: min(78vw, 42svh); }
  .hero h1 { font-size: clamp(44px, 12.5vw, 72px); }
  .hero-mark .motion-toggle { bottom: -8px; }
  /* the statement strip gets its own band under the text: text never sits on the strip */
  .statement { display: flex; flex-direction: column; padding-bottom: 0; }
  .statement-copy { order: 1; }
  .statement-strip { order: 2; position: relative; inset: auto; height: 300px; margin-top: 24px; }
  .make-grid { display: block; }
  .make-stage { display: none; }
  .area { min-height: 0; padding: 40px 0 48px; }
  .area-stage { display: block; width: min(72vw, 320px); margin: 0 0 28px; overflow: visible; }
  .motion-toggle-row { display: block; margin-top: 20px; }
  .principles { grid-template-columns: 1fr; }
  .faq-grid .section-title, .faq-list { grid-column: 1 / -1; }
  .faq-list { margin-top: 24px; }
  .faq-item summary { font-size: 18px; }
  .faq-answer { padding-right: 0; }
  .closing-copy, .closing-mark { grid-column: 1 / -1; }
  .closing-mark { width: min(64vw, 280px); justify-self: start; margin-top: 40px; }
  .closing-mail { font-size: clamp(26px, 8.6vw, 56px); }
  .footer-nav { flex-direction: column; gap: 24px; }
}

/* ---------- document pages (privacy, terms, support, delete account, 404) ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 60ch) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(48px, 8vh, 88px); padding-bottom: clamp(80px, 12vh, 140px); }
.doc { max-width: 60ch; }   /* about 75 characters a line in Schibsted Grotesk */
.doc h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
.doc__meta { margin-top: 16px; font-size: 14px; color: var(--stone); }
.doc__lead { margin-top: 28px; font-size: 20px; line-height: 1.5; color: var(--ink); }
.doc h2 { margin-top: 56px; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; scroll-margin-top: 24px; }
.doc h3 { margin-top: 32px; font-size: 19px; line-height: 1.3; }
.doc p, .doc ul, .doc ol, .doc table { margin-top: 16px; }
.doc p, .doc li { color: var(--graphite); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--burgundy); }
.doc a:not(.btn) { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:not(.btn):hover { text-decoration-thickness: 2px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 600; }
.doc__box { margin-top: 36px; padding: 28px 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.doc__box h2 { margin-top: 0; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; }
.doc-toc a { color: var(--graphite); text-decoration: none; font-size: 15px; }
.doc-toc a:hover { color: var(--burgundy); }
.doc-toc--side { position: sticky; top: 32px; border-left: 2px solid var(--line); padding-left: 20px; }
.doc-toc--side li + li { margin-top: 10px; }
.doc-toc__title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.doc-toc--inline { display: none; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; background: var(--white); }
.doc-toc--inline summary { cursor: pointer; font-weight: 600; }
.doc-toc--inline ol { margin-top: 12px; }
.doc-toc--inline li + li { margin-top: 8px; }
.not-found { padding: clamp(80px, 16vh, 160px) 0; }
.not-found__actions .btn { margin-right: 12px; }
.closing--doc { padding-top: 0; }
.closing--doc .footer { margin-top: 0; border-top: 0; }
.footer-mail { margin-top: 40px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.footer-mail a { text-decoration: none; }
.footer-mail a:hover { color: var(--burgundy-300); }
.footer-nav a[aria-current="page"] { color: var(--paper); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc--side { display: none; }
  .doc-toc--inline { display: block; }
}
