/* Page styles shared by the home and AI pages; colours come from brand.css. */
:root {
  --margin: clamp(16px, 4vw, 56px);
  --gap: clamp(88px, 11vw, 176px);
  --radius: 14px;
  --step-small: .9375rem;
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.8vw, 4.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  background: var(--night); color: var(--paper);
  font: 400 var(--step-body)/1.55 "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
code { font-size: 1em; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 8px; z-index: 30; background: var(--paper); color: var(--ink); padding: 8px 16px; }

.button {
  display: inline-block; padding: .65em 1.25em; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s;
}
.button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.link { font-weight: 700; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.link:hover { color: var(--glow); }

/* ---- hero: one sentence split around the product */
.hero { padding-top: clamp(8px, 1.5svh, 24px); padding-bottom: var(--gap); display: grid; }
/* the h1 spans the picture's row, so the sentence stays one heading around it */
.hero { grid-template-rows: repeat(4, auto); }
.hero h1 { grid-area: 1 / 1 / 4 / 2; display: grid; grid-template-rows: subgrid; }
/* sized by width and by height, so the whole first screen fits a laptop */
.say { font-size: clamp(2.75rem, min(8.4vw, 11svh), 8rem); font-weight: 800; line-height: .98; letter-spacing: -.05em; }
.say-a { grid-row: 1; }
.hero-screen { grid-area: 2 / 1; z-index: 1; justify-self: center; width: min(100%, 78svh); margin-block: clamp(12px, 1.8svh, 28px); }
.say-b { grid-row: 3; justify-self: end; text-align: right; }
.hero-foot { grid-area: 4 / 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(16px, 2.4svh, 40px); }
.hero-foot p { max-width: 44ch; color: var(--soft); margin-right: auto; }
.button.big { padding: .85em 1.7em; }

/* ---- product screens */
.screen { position: relative; }
.screen > video, .screen > img { width: 100%; border-radius: var(--radius); background: var(--paper); }
.screen figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--soft); }
.hold {
  display: block; margin: 8px 0 0 auto; min-width: 44px; min-height: 32px; padding: 6px 12px;
  border: 0; border-radius: 999px; background: var(--night); color: var(--paper); cursor: pointer;
  font-family: inherit; font-size: var(--step-small); font-weight: 700; line-height: 1;
  opacity: .72; transition: opacity .2s;
}
/* with a mouse it overlays the corner on hover or keyboard focus; on touch it sits under the recording */
@media (hover: hover) { .hold { position: absolute; left: 8px; top: 8px; z-index: 1; margin: 0; opacity: 0; } .screen:hover .hold { opacity: .9; } }
.hold:focus-visible, .screen .hold:hover { opacity: 1; }

/* ---- the four jobs, alternating sides */
.work { background: var(--tint); color: var(--ink); padding-block: var(--gap); }
.work h2 { margin-bottom: clamp(32px, 5vw, 72px); }
.job {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 48px); align-items: center;
  margin-bottom: 24px; padding: clamp(20px, 3vw, 48px);
  border-radius: 24px; background: var(--ink); color: var(--paper);
}
.job:nth-of-type(even) { background: var(--deep); grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.job:nth-of-type(even) .job-text { order: 1; }
.job:last-of-type { margin-bottom: 0; }
.job-text p { margin-top: 16px; color: var(--soft); }
.job-text strong { color: var(--paper); }
.job-text .ask { margin-top: 28px; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; color: var(--paper); }

/* ---- control */
.control { background: var(--accent); color: var(--on-accent); padding-block: var(--gap); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.rules { margin-top: 48px; display: grid; gap: 32px; }
.rules li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.rules img { border-radius: 13px; background: var(--ink); }
.rules p { margin-top: 6px; max-width: 46ch; }
.control .screen figcaption { color: var(--on-accent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }

/* ---- addon catalogue */
.addons { padding-block: var(--gap); }
.lead { margin-top: 20px; max-width: 48ch; font-size: var(--step-lead); color: var(--soft); }
.addons ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(16px, 4vw, 64px); margin-top: 56px; }
.addons li {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-content: center;
  padding: 20px 12px; margin-inline: -12px; border-radius: 18px; transition: background-color .25s, transform .25s var(--ease);
}
.addons li:hover { background: var(--ink); transform: translateX(6px); }
.addons img { grid-row: span 2; align-self: center; }
.addons p { color: var(--soft); }

.addons .store { margin-top: 32px; }

/* ---- providers */
.providers { background: var(--paper); color: var(--body-ink); padding-block: var(--gap); }
.providers h2 { color: var(--ink); }
.names { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 40px 32px; }
.names li { padding: .45em .9em; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.providers p:last-child { max-width: 62ch; }

/* ---- questions */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 112px); padding-block: var(--gap); align-items: start; }
.faq details { border-radius: var(--radius); transition: background-color .2s; }
.faq details[open] { background: var(--ink); }
.faq details + details { margin-top: 8px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px; cursor: pointer; font-weight: 700; font-size: var(--step-lead); line-height: 1.25; list-style: none; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; transition: transform .25s var(--ease); }
.faq summary:hover { background: var(--ink); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 22px; max-width: 58ch; color: var(--soft); }

/* ---- contact */
.contact { background: var(--tint); color: var(--ink); padding-block: var(--gap) 32px; }
.mail { display: inline-block; margin-top: 56px; font-size: clamp(2.25rem, 7.4vw, 6.75rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--deep); text-decoration: none; transition: color .2s; }
.mail:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: .06em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--gap); font-size: var(--step-small); }

/* ---- entrances: only hidden once the script has marked them */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .job, .job:nth-of-type(even) { grid-template-columns: 1fr; }
  .job:nth-of-type(even) .job-text { order: 0; }
  .split, .faq, .addons ul { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .say { font-size: 9.6vw; }
  .hero-screen { width: 100%; }
  .pair { grid-template-columns: 1fr; }
  .mail { font-size: 10.4vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
