/* FlowSpeakr landing page, v3 (Claude Design "FlowSpeakr Landningssida v3", 2026-10-27): editorial paper look,
   hairline rules, Space Grotesk for display text, Schibsted Grotesk for body, IBM Plex Mono for labels.
   Space Grotesk is self-hosted; the other two fall back to system fonts until they are added. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F1EA;
  --sheet: #FBFAF6;
  --ink: #16140F;
  --ink2: #5F594F;
  --ink3: #9A9387;
  --mark: #2B4BE0;
  --on-mark: #FFFFFF;
  --rule: rgba(22, 20, 15, 0.15);
  --inv2: #B3AC9F;
  --markinv: #9DAEFF;
  --tint: #DDE2FA;
  --sq-orange: #D46A43; --sq-green: #3A8A66; --sq-violet: #8475C4;

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.3, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --gap-section: clamp(80px, 11vw, 160px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12110F;
    --sheet: #1A1916;
    --ink: #EDEAE2;
    --ink2: #A39D92;
    --ink3: #6B665D;
    --mark: #8EA2FF;
    --on-mark: #12110F;
    --rule: rgba(237, 234, 226, 0.14);
    --inv2: #5F594F;
    --markinv: #2B4BE0;
    --tint: #232A55;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--sans); font-kerning: normal; -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--mark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
::selection { background: var(--tint); }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 16px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; }
.pad { padding: 0 var(--gutter) var(--gap-section); }
.pad--top { padding-top: var(--gap-section); }

/* Type */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); }
.display {
  margin-top: 20px; max-width: 1040px; font: 400 clamp(48px, 7.6vw, 96px)/0.98 var(--display);
  letter-spacing: -0.025em; text-wrap: balance;
}
.display--m { margin-top: 16px; font-size: clamp(48px, 7vw, 88px); letter-spacing: -0.028em; }
.h2 { font: 400 clamp(36px, 4.6vw, 56px)/1.04 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.h2--chapter { margin-top: clamp(28px, 4vw, 48px); max-width: 14em; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.022em; }
.h2--flush { margin-top: 0; }
.h3 { font: 400 32px/1.1 var(--display); letter-spacing: -0.015em; }
.lead { max-width: 32em; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink2); text-wrap: pretty; }
.body { margin-top: 28px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.body--s { margin-top: 18px; }
.muted { color: var(--ink2); }
.mark { color: var(--mark); }
.small { font-size: 14px; }
.said { font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; }
.said--m { font-size: clamp(22px, 2.4vw, 28px); }
.said--s { font-size: 19px; line-height: 1.4; letter-spacing: 0; }
/* "AI:n" is always set in the display italic, in the accent. */
.ai { font-family: var(--display); font-style: italic; font-size: 1.12em; color: var(--mark); }

/* What the AI removes and adds, in the demos */
del { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
ins { color: var(--mark); font-style: normal; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); cursor: pointer;
  font: 600 17px/1.2 var(--sans); text-decoration: none; transition: background 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--mark); color: var(--on-mark); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); padding: 15px 22px; transition: box-shadow 200ms ease; }
.btn--line:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--small { padding: 10px 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* A framed sheet with a hairline, nearly square corners */
.frame { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }

/* Header and footer */
.site-header { padding: 22px var(--gutter); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; font-weight: 500; }
.site-nav__link { color: var(--ink); text-decoration: none; }
.site-nav__link:hover { color: var(--mark); }
@media (max-width: 600px) { .site-nav__link { display: none; } }
.site-footer { padding: 28px var(--gutter) 36px; border-top: 1px solid var(--rule); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.site-footer img { height: 22px; width: auto; }
.site-footer nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.site-footer nav a { color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(72px, 10vw, 140px); }
.hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 56px clamp(40px, 6vw, 96px); }
.hero__copy { flex: 1.6 1 460px; min-width: 0; }
.hero .display { font-size: clamp(48px, 7vw, 92px); }
.hero__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
.hero__lead .lead { max-width: 30em; }
.hero__phone { flex: 0 1 300px; min-width: 0; margin: 0 auto; align-items: center; }
.demo { margin-top: clamp(48px, 7vw, 88px); }
.demo__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.demo__tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0;
  padding: clamp(12px, 1.6vw, 18px) clamp(10px, 2vw, 24px); border: 0; background: transparent; cursor: pointer;
  text-align: left; color: var(--ink2); font-family: var(--sans); transition: color 200ms ease;
}
.demo__tab[aria-selected="true"] { color: var(--ink); }
.demo__tab .mono { color: inherit; letter-spacing: 0.06em; }
.demo__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(14px, 1.6vw, 18px); font-weight: 600; }
/* Progress through the current example; full when autoplay has stopped. */
.demo__bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--mark); }
.demo__tab[aria-selected="true"] .demo__bar { width: calc(var(--progress, 1) * 100%); }
.demo__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1px; background: var(--rule); }
.demo__cell { display: flex; flex-direction: column; gap: 22px; min-height: 300px; padding: clamp(20px, 3vw, 40px); background: var(--sheet); }
.demo__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; letter-spacing: 0.06em; }
.demo__steps { display: flex; gap: 8px; color: var(--ink3); }
.demo__steps .is-on { color: var(--mark); transition: color 200ms ease; }
/* Every mode shares one grid cell, so the panel is as tall as its tallest mode and nothing shifts while it plays. */
.demo__stack { display: grid; }
.demo__stack > * { grid-area: 1 / 1; min-width: 0; }
.demo__stack > .is-inactive { visibility: hidden; }
.demo__result { transition: opacity 420ms ease, transform 420ms var(--ease); }
.demo[data-phase]:not([data-phase="done"]) .demo__result { opacity: 0; transform: translateY(10px); }
.pause { padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink2); letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 3px; }
.pause:hover { color: var(--ink); }

/* Hero tokens: words appear while "listening"; then fillers are struck and corrections slide in. */
.tk { transition: opacity 180ms ease, color 300ms ease, background-size 420ms var(--ease); transition-delay: 0ms, var(--d, 0ms), var(--d, 0ms); }
.tk.is-waiting { opacity: 0; }
.tk--del { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 60% / 0% 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tk__ins { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; white-space: pre; color: var(--mark); font-style: normal; transition: max-width 420ms var(--ease); transition-delay: var(--d, 0ms); }
.is-marked .tk--del { color: var(--ink3); background-size: 100% 2px; }
.is-marked .tk__ins { max-width: 6em; }

.mail__to { padding-bottom: 12px; border-bottom: 1px solid var(--rule); text-transform: none; letter-spacing: 0; }
.mail__body { padding-top: 16px; font-size: 20px; line-height: 1.55; }
.mail__sign { margin-top: 14px; }
.rows { display: flex; flex-direction: column; font-size: 17px; line-height: 1.45; }
.rows > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.rows > div:first-child { padding-top: 0; }
.rows > div + div { border-top: 1px solid var(--rule); }
.rows dt { padding-top: 4px; letter-spacing: 0.06em; }
.note-title { margin-top: 8px; font: 500 34px/1.1 var(--display); letter-spacing: -0.015em; }
.note-title--l { margin-top: 6px; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }
.checks { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 18px; }
.checks li { display: flex; gap: 12px; }
.checks li > span { color: var(--ink2); }
.checks .is-done s { color: var(--ink2); }
.checks--s { gap: 4px; margin-top: 0; font-size: inherit; }
.checks--s li { gap: 10px; }

/* Overview */
.title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.parts { margin-top: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.part {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px;
  margin: 0 -12px; padding: clamp(22px, 3vw, 32px) 12px; border-top: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; transition: background 200ms ease;
}
.part:hover { background: var(--sheet); color: var(--ink); }
.part > .mono { flex: 0 0 40px; font-size: 13px; letter-spacing: 0; }
.part__name { flex: 1 1 260px; font: 400 clamp(36px, 4.4vw, 56px)/1 var(--display); letter-spacing: -0.02em; }
.part > p { flex: 1 1 240px; font-size: 17px; text-wrap: pretty; }

/* Chapters */
.chapter { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--ink); color: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(36px, 6vw, 88px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.cols--center { margin-top: clamp(28px, 4vw, 48px); align-items: center; }
.steps { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.steps li { display: flex; align-items: baseline; gap: 10px; font: 400 32px/1.2 var(--display); letter-spacing: -0.015em; }
.steps .mono { font-size: 13px; color: var(--mark); letter-spacing: 0; }
.glossary { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); }
.glossary ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; font: italic 24px/1.4 var(--display); }
.dashes { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.dashes li { display: flex; gap: 12px; text-wrap: pretty; }
.dashes li::before { content: "–"; color: var(--ink3); }

/* Dictation: tone */
.tone__said, .tone__out { padding: clamp(20px, 3vw, 32px); }
.tone__said .said { margin-top: 14px; }
.tone__tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px;
  padding: 14px clamp(20px, 3vw, 32px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.tone__tabs .mono { letter-spacing: 0.06em; }
.tone__tab {
  padding: 8px 0; border: 0; background: transparent; cursor: pointer;
  font: 600 16px/1.3 var(--sans); color: var(--ink2); transition: color 200ms ease, box-shadow 200ms ease;
}
.tone__tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--mark); }
.tone__out { min-height: 190px; }
.tone__out > [hidden] { display: block !important; visibility: hidden; }
.tone__text { margin-top: 12px; font-size: 20px; line-height: 1.5; }

/* Meetings */
.meet-intro { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px clamp(36px, 6vw, 88px); margin-top: clamp(28px, 4vw, 48px); }
.meet-intro > .h2 { flex: 1.2 1 420px; min-width: 0; margin-top: 0; }
.meet-intro > div { flex: 1 1 360px; min-width: 0; }
.meet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1px; margin-top: clamp(36px, 5vw, 56px); background: var(--rule); }
.meet__col { background: var(--sheet); }
.meet__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 2.4vw, 28px); letter-spacing: 0.06em; }
.turns li {
  display: grid; grid-template-columns: 44px 84px minmax(0, 1fr); gap: 4px 12px; align-items: baseline;
  padding: 14px clamp(16px, 2.4vw, 28px); border-top: 1px solid var(--rule);
}
.turns li:last-child { padding-bottom: 18px; }
@media (max-width: 520px) {
  .turns li { grid-template-columns: 44px minmax(0, 1fr); }
  .turns li > p { grid-column: 1 / -1; }
}
.turns .mono { letter-spacing: 0; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.who--stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.who--stack > span:first-child { display: flex; align-items: center; gap: 8px; }
.who__name { padding-left: 16px; font-size: 11px; letter-spacing: 0.06em; }
.sq { flex: none; display: inline-block; width: 8px; height: 8px; background: var(--mark); }
.sq--orange { background: var(--sq-orange); }
.sq--green { background: var(--sq-green); }
.sq--violet { background: var(--sq-violet); }
.sq--blue { background: var(--mark); }
.minutes { padding: 0 clamp(16px, 2.4vw, 28px) 24px; font-size: 17px; }
.minutes > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.minutes > div:last-child { padding-bottom: 0; }
.minutes dt { font: italic 22px/1.3 var(--display); }
.minutes dd { margin-top: 6px; }

/* Notes */
.note { justify-self: center; width: 100%; max-width: 520px; padding: clamp(22px, 3.4vw, 40px); transform: rotate(-1deg); }
.note__out { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.note .checks { gap: 10px; margin-top: 18px; }

/* 04 Tankar, inverted */
.inverse {
  --ink2: var(--inv2); --ink3: var(--inv2); --mark: var(--markinv); --rule: var(--inv2);
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(72px, 10vw, 128px); margin-bottom: var(--gap-section);
  background: var(--ink); color: var(--paper);
}
.chapter--inverse { border-top-color: var(--paper); color: var(--paper); }
.thoughts { display: flex; flex-wrap: wrap; gap: clamp(36px, 6vw, 88px); margin-top: clamp(36px, 5vw, 64px); }
.thoughts__text { flex: 1 1 300px; min-width: 0; }
.thoughts__demo { flex: 1.7 1 520px; min-width: 0; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
@media (max-width: 600px) { .thoughts__demo { flex-basis: 100%; } }
.burst { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.burst .mono { letter-spacing: 0.06em; }
.burst .said { font-size: 20px; line-height: 1.45; color: var(--inv2); }
.concepts {
  min-height: 210px; display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; gap: 6px 28px;
  font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; color: var(--paper);
}
.concepts li { transition: opacity 600ms ease, transform 900ms var(--ease); }
.concepts .is-inferred { font-style: italic; color: var(--markinv); }
.concepts__l { font-size: clamp(40px, 5vw, 60px); }
.concepts__m { font-size: clamp(28px, 3.4vw, 40px); }
.concepts__s { font-size: clamp(20px, 2.2vw, 26px); }
.concepts li.is-waiting { opacity: 0; transform: translateY(14px); }
.tied { padding-top: 18px; border-top: 1px solid var(--inv2); }
.tied > .mono { letter-spacing: 0.06em; }
.tied__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px 28px; margin-top: 16px; font-size: 17px; line-height: 1.45; }
.tied__grid dt { font: italic 22px/1.3 var(--display); }
.tied__grid dd { margin-top: 4px; }
.tied__grid sup { margin-left: 2px; font-size: 11px; color: var(--markinv); letter-spacing: 0; }
.sources { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; padding-top: 14px; border-top: 1px dashed var(--inv2); font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.sources .mark { margin-right: 1.2ch; }

/* Everything connected */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px); }
.trio > div { padding-top: 18px; border-top: 1px solid var(--ink); }
.trio .muted { margin-top: 10px; font-size: 17px; text-wrap: pretty; }

/* Privacy */
.privacy { display: flex; flex-wrap: wrap; gap: 32px clamp(36px, 6vw, 88px); }
.privacy__intro { flex: 1 1 320px; min-width: 0; }
.privacy__intro .h2 { margin-top: 16px; font-size: clamp(36px, 4.6vw, 56px); }
.privacy__intro .body { margin-top: 18px; max-width: 24em; }
.numbered { flex: 1.5 1 460px; min-width: 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
@media (max-width: 600px) { .numbered { flex-basis: 100%; } }
.numbered li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--rule); text-wrap: pretty; }
.numbered .mono { padding-top: 5px; letter-spacing: 0; }

/* Access */
.access { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); background: var(--sheet); border-top: 1px solid var(--rule); }
.access__inner { display: flex; flex-wrap: wrap; gap: 36px clamp(36px, 6vw, 88px); }
.access__intro { flex: 1 1 360px; min-width: 0; }
.access__intro > :first-child { margin-top: 0; }
.access__intro .body { margin-top: 20px; max-width: 26em; }
.access__form { flex: 1.2 1 380px; min-width: 0; align-self: flex-end; }
@media (max-width: 600px) { .access__form { flex-basis: 100%; } }
.form { display: flex; flex-direction: column; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 6px; letter-spacing: 0.06em; }
.form input {
  width: 100%; padding: 6px 0 10px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: 26px/1.3 var(--display); letter-spacing: -0.01em; text-transform: none;
  outline-offset: 6px;
}
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form__foot .small { flex: 1 1 200px; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form__error { color: #B3261E; font-size: 15px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .form__error { color: #FF8A80; } }
.thanks { padding-top: 18px; border-top: 1px solid var(--ink); }
.thanks .mono { letter-spacing: 0.06em; }
.thanks__title { margin-top: 10px; font: 400 40px/1.05 var(--display); letter-spacing: -0.02em; }
.thanks .body { margin-top: 10px; }

/* Text pages (privacy policy, thanks, 404) */
.prose { max-width: 760px; padding-top: clamp(32px, 6vw, 72px); }
.prose .display { font-size: clamp(34px, 9vw, 72px); overflow-wrap: break-word; hyphens: auto; }
.prose .h3 { margin-top: 48px; font-size: 28px; }
.prose .body { margin-top: 14px; }
.prose .numbered { margin-top: 20px; }

/* Device mockups: the app drawn in HTML at its real size, scaled to the column by site.js (--s). Decorative
   (aria-hidden); the caption says what it shows. Device colours are the app's own and do not follow the theme. */
.device { margin: 0; display: flex; flex-direction: column; }
.device > figcaption { margin-top: 18px; letter-spacing: 0.06em; }
.scalebox { position: relative; width: 100%; }
.scalebox--phone { max-width: 300px; height: calc(640px * var(--s, 1)); }
.scalebox--mac { height: calc(760px * var(--s, 1)); }
.scalebox > * { position: absolute; left: 0; top: 0; transform: scale(var(--s, 1)); transform-origin: 0 0; }

.phone {
  width: 300px; height: 640px; padding: 9px; border-radius: 52px; background: #0A0A0B;
  box-shadow: 0 40px 80px -30px rgba(22, 20, 15, 0.45), 0 0 0 1px rgba(22, 20, 15, 0.25);
}
.device--on-dark .phone { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.phone__screen {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 43px; background: #161616; color: #FFFFFF;
  font: 13px/1.35 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: 0;
}
.phone__notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000000; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 0 30px; font-size: 14px; font-weight: 600; }
.phone__sys { display: flex; align-items: center; gap: 5px; }
.phone__bars { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.phone__bars i { width: 3px; border-radius: 1px; background: #FFFFFF; }
.phone__bars i:nth-child(1) { height: 4px; } .phone__bars i:nth-child(2) { height: 6px; }
.phone__bars i:nth-child(3) { height: 8px; } .phone__bars i:nth-child(4) { height: 10px; }
.phone__battery { width: 22px; height: 11px; padding: 1px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 3px; }
.phone__battery i { display: block; width: 70%; height: 100%; border-radius: 1px; background: #FFFFFF; }
.phone__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 0 18px; }
.phone__head img { height: 19px; width: auto; }
.phone__title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.phone__icons { display: flex; gap: 6px; }
.phone__icon { width: 32px; height: 32px; border-radius: 50%; background: #262628; display: grid; place-items: center; }
.phone__icon--light { background: #F2F2F2; color: #111111; font-size: 11.5px; font-weight: 700; }
.phone__stats { display: flex; gap: 12px; padding: 14px 18px 0; font: 600 12px/1.3 ui-monospace, "SF Mono", monospace; color: #8A8A8E; }
.phone__stats .is-on { color: #FFFFFF; }
.phone__list { display: flex; flex-direction: column; gap: 7px; padding: 20px 12px 0; }
.phone__list--notes { padding-top: 18px; }
.phone__day { padding: 0 6px 2px; font-size: 12px; font-weight: 600; color: #8A8A8E; }
.phone__day + .phone__row + .phone__day { padding-top: 6px; }
.phone__row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 6px; padding: 11px 12px; border-radius: 16px; background: #232325; }
.phone__row--note { grid-template-columns: 44px minmax(0, 1fr); gap: 3px 6px; padding: 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.phone__time { padding-top: 2px; font: 600 11px/1.3 ui-monospace, "SF Mono", monospace; }
.phone__sub { font-size: 11px; font-weight: 400; color: #8A8A8E; }
.phone__spacer { flex: 1; }
.phone__chips { display: flex; gap: 4px; padding: 0 10px; overflow: hidden; white-space: nowrap; font-size: 10.5px; font-weight: 600; }
.phone__chips span { padding: 7px 8px; border-radius: 999px; background: #232325; }
.phone__chips .is-on { background: #F2F2F2; color: #111111; }
.phone__actions { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 8px; padding: 10px 12px 0; }
.phone__talk, .phone__start {
  background-color: #4F70FF; background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.3px); background-size: 12px 12px;
}
.phone__talk { height: 82px; border-radius: 22px; display: flex; align-items: center; gap: 10px; padding: 0 14px; white-space: nowrap; }
.phone__talk > span, .phone__start { display: flex; flex-direction: column; }
.phone__talk b { font-size: 15.5px; letter-spacing: -0.01em; }
.phone__talk small { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, 0.72); }
.phone__thoughts { height: 82px; border-radius: 22px; background: #F2F2F2; color: #111111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; }
.phone__segment { align-self: flex-start; display: flex; margin: 14px 0 0 14px; padding: 3px; border-radius: 999px; background: #232325; font-size: 13px; font-weight: 500; white-space: nowrap; }
.phone__segment span { padding: 7px 12px; color: #A1A1A6; }
.phone__segment .is-on { border-radius: 999px; background: #4F70FF; color: #FFFFFF; font-weight: 600; }
.phone__start { margin: 12px 12px 0; padding: 20px 16px; border-radius: 24px; align-items: center; text-align: center; }
.phone__start-icon { width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; color: #4F70FF; display: grid; place-items: center; }
.phone__start b { margin-top: 10px; font-size: 19px; letter-spacing: -0.01em; }
.phone__start small { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, 0.8); }
.phone__tabbar {
  display: flex; align-items: center; justify-content: space-between; height: 58px; margin: 10px 10px 12px; padding: 4px;
  border-radius: 30px; background: #2A2A2C; font-size: 9.5px; font-weight: 500; color: #EDEDED;
}
.phone__tab { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.phone__tab.is-on { flex: 1.3; border-radius: 26px; background: #161617; color: #7D97FF; }

.thoughts__phone { margin-top: clamp(40px, 5vw, 56px); align-items: flex-start; }

/* Without JS the window stays full size; clip it sideways so the page never scrolls horizontally. */
.mac-figure { margin-top: clamp(48px, 6vw, 80px); overflow-x: clip; }
.mac-figure__cap { order: -1; margin: 0 0 20px !important; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.mac {
  width: 1240px; height: 760px; display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden;
  border-radius: 14px; background: #E6E0D5; color: #1D1B17;
  box-shadow: 0 50px 100px -40px rgba(22, 20, 15, 0.4), 0 0 0 1px rgba(22, 20, 15, 0.14);
  font: 14px/1.35 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: 0;
}
.mac b { font-weight: 800; }
.mac__side { display: flex; flex-direction: column; padding: 16px 12px; }
.mac__lights { display: flex; gap: 8px; padding-left: 4px; }
.mac__lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mac__lights i:nth-child(2) { background: #FEBC2E; } .mac__lights i:nth-child(3) { background: #28C840; }
.mac__logo { margin-top: 26px; padding: 10px 12px; border-radius: 9px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.mac__logo img { height: 16px; width: auto; }
.mac__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; font-weight: 500; }
.mac__nav span { padding: 8px 12px; }
.mac__nav .is-on { border-radius: 9px; background: #FFFFFF; color: #3553D9; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.mac__fill { flex: 1; }
.mac__me { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 6px; }
.mac__me > span:last-child { display: flex; flex-direction: column; }
.mac__me b { font-size: 13.5px; font-weight: 600; }
.mac__me small { font-size: 11.5px; color: #7A756C; }
.mac__avatar { width: 32px; height: 32px; border-radius: 50%; background: #4F70FF; color: #FFFFFF; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mac__sheet { margin: 10px 10px 10px 0; padding: 30px 32px; overflow: hidden; border-radius: 11px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.mac__title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.mac__bar-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.mac__tabs { display: flex; gap: 22px; }
.mac__muted { color: #8A857C; font-weight: 500; }
.mac__tabs .mac__muted { color: #9A958C; font-weight: 600; }
.mac__faint { color: #CBC6BC; }
.mac__period { display: flex; align-items: center; gap: 14px; }
.mac__seg { display: flex; padding: 3px; border-radius: 999px; background: #EFEAE1; font-size: 13px; }
.mac__seg span { padding: 6px 16px; color: #6F6A61; }
.mac__seg .is-on { border-radius: 999px; background: #FFFFFF; color: #1D1B17; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.mac__cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.mac__cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mac__card { display: flex; flex-direction: column; padding: 20px 22px; border-radius: 18px; background: #F2EEE6; }
.mac__cards3 > div { height: 146px; }
.mac__hero {
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px; border-radius: 18px; color: #FFFFFF;
  background-color: #4F70FF; background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.3px); background-size: 12px 12px;
}
.mac__mach { display: flex; align-items: baseline; gap: 10px; }
.mac__mach b { font-size: 46px; line-height: 1; letter-spacing: -0.03em; }
.mac__mach small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.mac__meter { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.mac__meter i { position: absolute; inset: 0 20% 0 0; border-radius: 3px; background: #FFFFFF; }
.mac__meter em { position: absolute; left: 80%; top: -5px; width: 2px; height: 16px; background: #FFFFFF; }
.mac__hero-foot { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.mac__num { font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.mac__num-row { display: flex; justify-content: space-between; align-items: center; }
.mac__pill { padding: 4px 10px; border-radius: 999px; background: #DDE3FD; color: #3553D9; font-size: 12px; font-weight: 700; }
.mac__label { margin-top: 8px; font-size: 14px; font-weight: 600; }
.mac__foot { margin-top: auto; font-size: 12px; color: #8A857C; }
.mac__card-head { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700; }
.mac__apps { display: flex; flex-direction: column; margin-top: 10px; font-size: 13px; }
.mac__app { display: grid; grid-template-columns: 16px minmax(0, 1fr) 90px 48px 64px; align-items: center; gap: 10px; padding: 10px 0; }
.mac__app + .mac__app { border-top: 1px solid #E2DCD1; }
.mac__app b { text-align: right; font-weight: 700; }
.mac__app .mac__muted { text-align: right; font-size: 12px; }
.mac__caret { font-size: 9px; color: #8A857C; }
.mac__bar { height: 6px; overflow: hidden; border-radius: 3px; background: #E2DCD1; }
.mac__bar i { display: block; height: 100%; border-radius: 3px; background: #9AAEF8; }
.mac__bar .w51 { width: 51%; } .mac__bar .w34 { width: 34%; } .mac__bar .w11 { width: 11%; } .mac__bar .w6 { width: 6%; }
.mac__streak { display: flex; align-items: baseline; gap: 8px; }
.mac__streak .mac__muted { font-size: 12px; }
.mac__heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 4px; margin-top: 14px; }
.mac__heat i { border-radius: 3px; background: #E6E0D6; }
.mac__heat i[data-l="1"] { background: #C9D3FB; } .mac__heat i[data-l="2"] { background: #9AAEF8; }
.mac__heat i[data-l="3"] { background: #4F70FF; } .mac__heat i[data-l="4"] { background: #3553D9; }
.mac__heat i.is-empty { background: transparent; }
.mac__streak-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; font-size: 12px; color: #8A857C; white-space: nowrap; }
.mac__streak-foot b { color: #1D1B17; font-weight: 700; }
.mac__card--meetings { margin-top: 12px; }
.mac__card-title { font-size: 14.5px; font-weight: 700; }
.mac__meet { display: flex; gap: 44px; margin-top: 12px; }
.mac__meet span { display: flex; flex-direction: column; }
.mac__meet b { font-size: 26px; }
.mac__meet small { font-size: 12px; color: #8A857C; }

/* Reduced motion: no transitions on the demos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation-duration: 0.01ms !important; }
}
