/* ottokan.se – Ottos palett (Sand, OttoTheme.Palette.sand) och en varm mörk variant. Inga webbtypsnitt: systemets
   rundade typsnitt i rubriker (SF Pro Rounded på Mac), systemtypsnittet i brödtext. */

:root {
  --bg: #EFE6D8;
  --surface: #F7F1E7;
  --raised: #FBF7F0;
  --line: #E2D5C1;
  --hairline: #E6DACA;
  --text: #3B2F25;
  --muted: #66564A;
  --accent: #8E4F2A;
  --accent-press: #74401F;
  --on-accent: #FFF8EE;
  --sage: #8FA58A;
  --sage-ink: #2E5A3A;
  --success: #2E6B3F;
  --danger: #A8352B;
  --eye: #3B2F25;
  --shadow: 0 1px 2px rgba(59, 47, 37, .06), 0 12px 32px -12px rgba(59, 47, 37, .18);
  --shadow-big: 0 2px 4px rgba(59, 47, 37, .05), 0 40px 80px -32px rgba(59, 47, 37, .35);
  --radius: 22px;
  --radius-small: 14px;
  --gutter: 20px;
  --max: 1120px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1611;
    --surface: #231D17;
    --raised: #2B241D;
    --line: #3D3329;
    --hairline: #342B23;
    --text: #F3EADC;
    --muted: #C7B8A4;
    --accent: #E3A57B;
    --accent-press: #EDB993;
    --on-accent: #1B1611;
    --sage: #9DB497;
    --sage-ink: #B9D1B2;
    --success: #8FCB9E;
    --danger: #F09A8F;
    --eye: #F3EADC;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-big: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -32px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-press); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

h1, h2, h3 { font-family: var(--round); font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.125rem, 2.1vw, 1.375rem); color: var(--muted); line-height: 1.5; }
.eyebrow { font: 600 .8125rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .35em;
  font: 600 .85em/1 var(--body); color: var(--text);
  background: var(--raised); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px;
  vertical-align: .08em;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ------------------------------------------------------------------ header */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--hairline); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
/* Loggan: ögonen (levande, data-alive) + ordet "ottokan" som mask. Proportionerna följer ordbild-ottokan-liggande.svg:
   öga 400 × 620, avstånd 360, ordet börjar vid 1600 av 5153 enheter. */
.brand { display: inline-flex; align-items: flex-end; gap: 0; color: var(--text); flex: none; text-decoration: none; --u: 0.0258px; }
.brand-eyes { --eye-w: calc(400 * var(--u)); gap: calc(360 * var(--u)); margin: 0 calc(420 * var(--u)) calc(48 * var(--u)) calc(20 * var(--u)); }
.brand-eyes i { background: currentColor; }
.brand-word {
  display: block; width: calc(3533 * var(--u)); height: calc(780 * var(--u)); background: currentColor;
  -webkit-mask: url("/tillgangar/ordbild-ord.svg") no-repeat left bottom / contain;
  mask: url("/tillgangar/ordbild-ord.svg") no-repeat left bottom / contain;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav .button { margin-left: 8px; color: var(--on-accent); }
.nav .button:hover { background: var(--accent-press); color: var(--on-accent); }
.menu-button { display: none; }

@media (max-width: 1020px) {
  .menu-button {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    font: 600 .9375rem/1 var(--body); color: var(--text);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer;
  }
  .menu-button svg { width: 16px; height: 16px; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.0625rem; }
  .nav .button { margin: 12px 0 0; justify-content: center; }
  .no-js .nav { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 16px; }
  .no-js .top .wrap { flex-wrap: wrap; height: auto; padding-top: 16px; }
  .no-js .menu-button { display: none; }
}

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 999px; padding: 16px 26px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s cubic-bezier(.3, .7, .4, 1), background .2s;
}
.button:hover { background: var(--accent-press); color: var(--on-accent); }
.button:active { transform: scale(.97); }
.button.small { padding: 11px 18px; font-size: .9375rem; }
.button.quiet { color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.button.quiet:hover { background: var(--surface); color: var(--text); }
.button[disabled] { opacity: .6; cursor: progress; }
.button svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ hero */

.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 52% at 82% 18%, color-mix(in srgb, var(--sage) 26%, transparent), transparent 70%),
    radial-gradient(42% 46% at 10% 6%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 64px); }
.hero-copy { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 880px; margin-inline: auto; }
.hero-copy .actions { justify-content: center; }
.hero-copy .lead { max-width: 680px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .875rem; font-weight: 500; color: var(--muted);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 25%, transparent); }
.hero h1 .soft { color: var(--accent); }
.fine { font-size: .875rem; color: var(--muted); }

/* ------------------------------------------------------------------ Otto's eyes */

.eyes { display: inline-flex; gap: calc(var(--eye-w, 14px) * .9); }
.eyes i {
  width: var(--eye-w, 14px); height: calc(var(--eye-w, 14px) * 1.55); border-radius: 999px; background: var(--eye);
  position: relative; display: block;
}
.eyes.glint i::after {
  content: ""; position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%;
  left: 49%; top: 20%; background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .eyes.blink i { animation: blink 6s infinite; transform-origin: 50% 60%; }
  .eyes.blink i:nth-child(2) { animation-delay: .04s; }
}
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

/* ------------------------------------------------------------------ demo */

.demo {
  position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #D9CBB5, #C9B79C);
  box-shadow: var(--shadow-big);
  aspect-ratio: 16 / 9.6;
  font-family: var(--body);
  isolation: isolate;
}
@media (prefers-color-scheme: dark) { .demo { background: linear-gradient(160deg, #3A3026, #2A221B); } }
.demo-menubar {
  position: absolute; inset: 0 0 auto; height: 4.2%; background: rgba(251, 247, 240, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; padding: 0 2.2%; gap: 2.4%; font-size: clamp(6px, 1.05vw, 12px); color: #3B2F25; font-weight: 600;
}
.demo-menubar span:not(:first-child) { font-weight: 400; }
.demo-menubar .clock { margin-left: auto; font-weight: 500; }
.demo-notch {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 17%; height: 5.2%; background: #0E0B08; border-radius: 0 0 14px 14px; z-index: 6;
}
.demo-island {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 17%; height: 5.2%; background: #0E0B08; border-radius: 0 0 18px 18px; z-index: 7;
  display: flex; align-items: center; justify-content: center; gap: 6%;
  color: #F3EADC; font-size: clamp(6px, 1vw, 11.5px); overflow: hidden;
  transition: width .55s cubic-bezier(.3, 1.3, .5, 1), height .55s cubic-bezier(.3, 1.3, .5, 1), border-radius .55s;
}
.demo-island .eyes { --eye-w: clamp(4px, .7vw, 8px); }
.demo-island .eyes i { background: #F3EADC; }
.demo-island .label { white-space: nowrap; opacity: 0; transition: opacity .25s; }
.demo-island .wave { display: none; gap: 2px; align-items: center; height: 40%; }
.demo-island .wave b { width: 2px; height: 30%; background: #E3A57B; border-radius: 2px; }
.demo[data-step="listen"] .demo-island, .demo[data-step="think"] .demo-island { width: 25%; height: 7%; border-radius: 0 0 20px 20px; }
.demo[data-step="listen"] .demo-island .label, .demo[data-step="think"] .demo-island .label { opacity: 1; }
.demo[data-step="listen"] .demo-island .wave { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .demo[data-step="listen"] .demo-island .wave b { animation: wave .9s ease-in-out infinite alternate; }
  .demo-island .wave b:nth-child(2) { animation-delay: -.2s !important; }
  .demo-island .wave b:nth-child(3) { animation-delay: -.5s !important; }
  .demo-island .wave b:nth-child(4) { animation-delay: -.1s !important; }
  .demo-island .wave b:nth-child(5) { animation-delay: -.7s !important; }
}
@keyframes wave { from { height: 25%; } to { height: 100%; } }

.demo-window {
  position: absolute; left: 7%; right: 7%; top: 11%; bottom: 7%;
  background: #FFFDF9; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 24px 48px -20px rgba(40, 28, 16, .45);
  display: grid; grid-template-rows: auto auto 1fr; color: #2A2420;
}
.demo-titlebar { display: flex; align-items: center; gap: 1.2%; padding: 1.4% 2%; background: #F4EEE4; font-size: clamp(6px, .95vw, 11px); color: #6B5E52; }
.demo-titlebar .lights { display: flex; gap: 5px; }
.demo-titlebar .lights i { width: clamp(5px, .8vw, 9px); aspect-ratio: 1; border-radius: 50%; background: #E2D5C1; display: block; }
.demo-titlebar .title { margin-inline: auto; transform: translateX(-20px); }
.demo-ribbon { display: flex; gap: 3.2%; padding: 1% 3%; border-bottom: 1px solid #EDE4D6; font-size: clamp(6px, .95vw, 11px); color: #5A4E43; }
.demo-ribbon span { padding: .3% .6%; border-radius: 4px; }
.demo-ribbon .insert { position: relative; }
.demo[data-step="point"] .demo-ribbon .insert, .demo[data-step="rest"] .demo-ribbon .insert { background: #F1E4D3; }
.demo-page { padding: 4% 9% 0; display: grid; gap: 3.2%; align-content: start; font-family: Georgia, "Times New Roman", serif; }
.demo-page h4 { margin: 0; font: 700 clamp(9px, 1.6vw, 19px)/1.2 Georgia, serif; }
.demo-page .meta { font: clamp(6px, .9vw, 10.5px)/1.4 var(--body); color: #8A7B6B; }
.demo-page p { font-size: clamp(7px, 1.12vw, 13.5px); line-height: 1.6; color: #3A322B; position: relative; }
.demo-page .para-new { display: none; }
.demo[data-step="rewritten"] .para-old, .demo[data-step="rest"] .para-old { display: none; }
.demo[data-step="rewritten"] .para-new, .demo[data-step="rest"] .para-new { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .demo[data-step="rewritten"] .para-new { animation: flash 1.6s ease-out; }
}
@keyframes flash { 0% { background: rgba(143, 165, 138, .45); } 100% { background: transparent; } }
.demo-page .ghost { height: .7em; border-radius: 3px; background: #EFE8DD; }

.demo-caption {
  position: absolute; z-index: 8; left: 50%; top: 82%; transform: translateX(-50%);
  background: rgba(14, 11, 8, .86); color: #F3EADC; border-radius: 999px; padding: .9% 2.2%;
  font-size: clamp(7px, 1.15vw, 13.5px); white-space: nowrap; opacity: 0; transition: opacity .3s;
}
.demo[data-step="listen"] .demo-caption, .demo[data-step="think"] .demo-caption { opacity: 1; }

.demo-keys {
  position: absolute; z-index: 8; right: 3%; bottom: 3.4%; display: flex; gap: 6px; opacity: 0; transition: opacity .3s, transform .3s;
}
.demo-keys kbd { font-size: clamp(8px, 1.2vw, 14px); background: #FBF7F0; color: #3B2F25; border-color: #D8C9B3; }
.demo[data-step="listen"] .demo-keys { opacity: 1; transform: translateY(2px); }

.demo-pointer {
  position: absolute; z-index: 9; width: 3.2%; left: 64%; top: 70%;
  transition: left 1.1s cubic-bezier(.45, .05, .25, 1), top 1.1s cubic-bezier(.45, .05, .25, 1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
}
.demo-pointer svg { width: 100%; height: auto; }
.demo[data-step="point"] .demo-pointer { left: 19.4%; top: 20.6%; }
.demo-bubble {
  position: absolute; z-index: 9; left: 22.6%; top: 25.4%; max-width: 38%;
  background: #0E0B08; color: #F3EADC; border-radius: 14px; padding: 1.2% 1.8%;
  font-size: clamp(7px, 1.15vw, 13.5px); line-height: 1.4;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.demo[data-step="point"] .demo-bubble.one { opacity: 1; transform: none; }
.demo-bubble.two { left: auto; right: 9%; top: 61%; }
.demo[data-step="rewritten"] .demo-bubble.two { opacity: 1; transform: none; }
.demo-replay {
  position: absolute; z-index: 10; left: 2.4%; bottom: 3.4%; font: 600 clamp(9px, 1.1vw, 13px)/1 var(--body);
  background: rgba(251, 247, 240, .85); color: #3B2F25; border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.demo-note { margin-top: 14px; text-align: center; }

/* ------------------------------------------------------------------ cards, grids */

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--raised); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start;
}
.card.big { padding: clamp(28px, 4vw, 48px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--sage) 26%, var(--raised)); color: var(--sage-ink);
}
.card .icon.warm { background: color-mix(in srgb, var(--accent) 16%, var(--raised)); color: var(--accent); }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); }
.card ul { margin: 4px 0 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }

.feature { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--hairline); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 880px) { .feature { grid-template-columns: 1fr 1fr; } .feature.flip > :first-child { order: 2; } }
.feature-copy { display: grid; gap: 16px; }
.feature-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-copy li { padding-left: 28px; position: relative; color: var(--muted); }
.feature-copy li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 14px; border-radius: 999px; background: var(--sage);
}
.mock {
  background: var(--raised); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  padding: clamp(18px, 3vw, 28px); display: grid; gap: 12px; font-size: .9375rem;
}
.mock .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.mock .row b { font-weight: 600; }
.mock .row .tag { margin-left: auto; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.mock .bar { height: 8px; border-radius: 99px; background: var(--hairline); overflow: hidden; }
.mock .bar i { display: block; height: 100%; border-radius: inherit; background: var(--sage); }
.mock .src { font-size: .8125rem; color: var(--accent); }
.mock .q { font-family: var(--round); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.mock .choices { display: grid; gap: 8px; }
.mock .choice { padding: 11px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 10px; }
.mock .choice kbd { flex: none; }
.mock .choice.right { box-shadow: inset 0 0 0 2px var(--success); }
.mock .kicker { font-size: .8125rem; color: var(--muted); display: flex; justify-content: space-between; }
.mock .lock { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.mock .doc { font-family: Georgia, serif; line-height: 1.6; color: var(--text); }
.mock .doc mark { background: color-mix(in srgb, var(--sage) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

.steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; }
.step::before {
  content: counter(step); font: 700 1.125rem/1 var(--round); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: var(--bg);
}

.band { background: var(--surface); border-block: 1px solid var(--hairline); }
.quote { font-family: var(--round); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.2; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--muted); }
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list svg { width: 22px; height: 22px; color: var(--success); margin-top: 2px; }
.check-list.no svg { color: var(--danger); }

.flow { display: grid; gap: 12px; }
.flow-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--radius-small); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.flow-item .where { font: 700 .75rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); white-space: nowrap; }
.flow-item.local .where { color: var(--sage-ink); background: color-mix(in srgb, var(--sage) 22%, transparent); }
.flow-item h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.flow-item p { color: var(--muted); font-size: .96875rem; }
@media (max-width: 560px) { .flow-item { grid-template-columns: 1fr; } .flow-item .where { justify-self: start; } }

.price { display: grid; gap: 18px; align-content: start; }
.price .amount { font: 700 clamp(2.25rem, 5vw, 3.25rem)/1 var(--round); letter-spacing: -0.03em; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price.featured { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.badge { justify-self: start; font: 600 .75rem/1 var(--body); letter-spacing: .05em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.badge.quiet { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ FAQ */

.faq { display: grid; gap: 10px; }
.faq details { background: var(--raised); border-radius: var(--radius-small); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 600 1.0625rem/1.4 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }

/* ------------------------------------------------------------------ waitlist form */

.signup { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 920px) { .signup { grid-template-columns: 1fr 1.05fr; } }
.signup-copy { display: grid; gap: 18px; }
.form { background: var(--raised); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input[type="email"], .field input[type="text"] {
  font: 400 1.0625rem/1.3 var(--body); color: var(--text);
  background: var(--bg); border: 1px solid #857360; border-radius: 12px; padding: 14px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
@media (prefers-color-scheme: dark) { .field input[type="email"], .field input[type="text"] { border-color: #8C7A66; } }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.two-fields { display: grid; gap: 18px; }
@media (min-width: 560px) { .two-fields { grid-template-columns: 1fr 1fr; } }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.consent label { cursor: pointer; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-size: .9375rem; }
.form-status.error { color: var(--danger); }
.form-done { display: grid; gap: 14px; justify-items: start; }
.form-done .eyes { --eye-w: 18px; margin-bottom: 6px; }
.form-done h3 { font-size: 1.625rem; }

/* ------------------------------------------------------------------ confirm / remove pages */

.center-card { max-width: 560px; margin: clamp(40px, 10vw, 120px) auto; text-align: center; justify-items: center; }
.center-card .eyes { --eye-w: 26px; margin-bottom: 12px; }
.center-card h1 { font-size: clamp(2rem, 5vw, 2.75rem); }

/* ------------------------------------------------------------------ prose */

.prose { display: grid; gap: 18px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-top: 24px; }
.prose h3 { margin-top: 8px; }
.prose ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.page-head { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }

/* ------------------------------------------------------------------ CTA band, footer */

.cta-band { text-align: center; }
.cta-band .card { justify-items: center; gap: 20px; padding: clamp(40px, 7vw, 80px) clamp(22px, 5vw, 64px); background: var(--text); color: var(--bg); box-shadow: none; }
.cta-band .card p { color: color-mix(in srgb, var(--bg) 78%, transparent); max-width: 520px; }
.cta-band .eyes i { background: var(--bg); }
.cta-band .button { background: var(--bg); color: var(--text); box-shadow: none; }
.cta-band .button:hover { background: var(--surface); }

.foot { border-top: 1px solid var(--hairline); padding-block: 48px 56px; font-size: .9375rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .brand { margin-bottom: 14px; }
.foot h2 { font: 600 .8125rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }

/* ------------------------------------------------------------------ reveal on scroll */

@media (prefers-reduced-motion: no-preference) {
  /* Bara rörelse, ingen toning: text som ännu inte glidit in har ändå full kontrast (axe/Lighthouse, skärmläsare). */
  .js .reveal { transform: translateY(22px); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

h2.h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.flow-item h2.h3 { font-size: 1.0625rem; margin-bottom: 4px; }

/* ================================================================== high-end-passet (2026-12-02) */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.3, .7, .4, 1); }
.text-link:hover svg { transform: translateX(3px); }

/* Levande ögon: JS sätter --look-x/--look-y (px) och klassen .blinking. Utan JS eller med minskad rörelse står de still. */
.eyes[data-alive] i { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .35s cubic-bezier(.25, .8, .3, 1); }
.eyes[data-alive].blinking i { transform: translate(var(--look-x, 0px), var(--look-y, 0px)) scaleY(.1); transition-duration: .07s; }
@media (prefers-reduced-motion: reduce) { .eyes[data-alive] i, .eyes[data-alive].blinking i { transform: none; transition: none; } }

/* ------------------------------------------------------------------ hjältens formulär */

.hero-signup { width: min(100%, 560px); }
.hero-form { display: grid; gap: 12px; }
.hero-field {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--raised);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: box-shadow .2s;
}
.hero-field:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.hero-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: 400 1.0625rem/1.2 var(--body); padding: 0 12px 0 18px; outline: none;
}
.hero-field input::placeholder { color: var(--muted); opacity: 1; }
.hero-field input[aria-invalid="true"] { color: var(--danger); }
.hero-field .button { flex: none; padding: 14px 22px; }
.hero-form .consent { text-align: left; font-size: .875rem; grid-template-columns: 20px 1fr; gap: 10px; padding: 0 8px; }
.hero-form .consent input { width: 18px; height: 18px; }
.hero-form .form-status { text-align: left; padding: 0 8px; min-height: 0; }
.hero-form .form-status:empty { display: none; }
.hero-done { justify-items: center; text-align: center; padding: 18px 20px; border-radius: 24px; background: var(--raised); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.hero-done .eyes { --eye-w: 16px; }
.hero-done h3 { font-size: 1.375rem; }
@media (max-width: 560px) {
  .hero-field { flex-direction: column; border-radius: 22px; padding: 8px; }
  .hero-field input { padding: 12px; min-height: 48px; }
  .hero-field .button { justify-content: center; }
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; }
.trust { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .8125rem; color: var(--muted); text-align: left; text-wrap: balance; }
.trust-mark { width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--success) 18%, transparent); position: relative; flex: none; }
.trust-mark::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--success); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.form .trust { justify-self: start; }

/* ------------------------------------------------------------------ demon på smala skärmar */

.demo-menubar .apple { width: .9em; height: .9em; border-radius: 50%; background: currentColor; opacity: .75; flex: none; }
.demo-menubar { padding-left: max(3.4%, 18px); padding-right: max(3.4%, 18px); }
@media (max-width: 640px) {
  .demo { border-radius: 18px; aspect-ratio: 4 / 3.3; }
  .demo-menubar { height: 6%; font-size: 8.5px; gap: 10px; padding-left: 16px; padding-right: 14px; }
  .demo-menubar .wide-only { display: none; }
  .demo-notch, .demo-island { height: 7%; }
  .demo-island .label { display: none; }
  .demo[data-step="listen"] .demo-island, .demo[data-step="think"] .demo-island { width: 32%; height: 9%; }
  .demo-window { left: 4%; right: 4%; top: 13%; bottom: 5%; }
  .demo-ribbon span:nth-child(n+5) { display: none; }
  .demo-page { padding: 5% 7% 0; }
  .demo-page h4 ~ h4, .demo-page h4 ~ h4 ~ .ghost { display: none; }
  .demo-caption { font-size: 10px; top: 84%; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
  .demo-bubble { font-size: 10px; max-width: 60%; }
  .demo[data-step="point"] .demo-pointer { left: 22%; top: 24.5%; }
  .demo-bubble.one { left: 27%; top: 29%; }
  .demo-pointer { width: 5%; }
  .demo-replay { font-size: 10px; padding: 6px 10px; }
}

/* ------------------------------------------------------------------ videoblocket */

.video-section { padding-top: 0; }
.video-frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #14100C;
  box-shadow: var(--shadow-big);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #14100C; }
.video-frame.playing .video-play { opacity: 0; pointer-events: none; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: #1B1611;
  background: rgba(251, 247, 240, .92); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  transition: transform .25s cubic-bezier(.3, .7, .4, 1), opacity .25s;
}
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-play:hover { transform: scale(1.05); }
.video-placeholder { display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 40%, #3A2F25, #14100C); }
.video-placeholder .video-play { cursor: default; opacity: .55; }
.video-poster { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); }
.video-poster .eyes { --eye-w: 26px; }
.video-poster .eyes i { background: #F3EADC; }
.video-poster .eyes.glint i::after { background: #3A2F25; }
.video-soon { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; color: #E9DDCB; font-size: .9375rem; padding: 0 20px; }
.video-soon strong { color: #FFF8EE; }
@media (max-width: 560px) { .video-frame { border-radius: 18px; } .video-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .video-soon { font-size: .8125rem; bottom: 6%; } .video-poster { top: 14%; } .video-poster .eyes { --eye-w: 16px; } }

/* ------------------------------------------------------------------ funktionsflikarna */

.features { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 900px) { .features { grid-template-columns: minmax(300px, 5fr) 7fr; } .fstage { position: sticky; top: 100px; } }
.ftabs { display: grid; gap: 4px; }
.ftab {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: transparent; border: 0; border-radius: 18px; padding: 14px 16px;
  transition: background .25s;
}
.ftab:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
.ftab[aria-selected="true"] { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.ftab-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--sage) 22%, var(--raised)); color: var(--sage-ink); }
.ftab[aria-selected="true"] .ftab-icon { background: var(--accent); color: var(--on-accent); }
.ftab-icon svg { width: 20px; height: 20px; }
.ftab-text { display: grid; gap: 2px; padding-top: 2px; }
.ftab-title { font: 700 1.0625rem/1.3 var(--round); letter-spacing: -0.01em; }
.ftab-sentence { font-size: .9375rem; color: var(--muted); line-height: 1.5; display: none; }
.ftab[aria-selected="true"] .ftab-sentence { display: block; }
.fstage { min-height: 360px; display: grid; }
.fpanel-sentence { display: none; color: var(--muted); margin-bottom: 16px; }
.fpanel { grid-area: 1 / 1; display: grid; align-content: center; padding: clamp(20px, 4vw, 48px); border-radius: 28px;
  background: radial-gradient(70% 80% at 80% 10%, color-mix(in srgb, var(--sage) 20%, transparent), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline); }
.fpanel .mock { box-shadow: var(--shadow-big), inset 0 0 0 1px var(--line); }
@media (max-width: 899px) {
  .ftabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: none; }
  .ftabs::-webkit-scrollbar { display: none; }
  .ftab { grid-template-columns: 28px auto; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; scroll-snap-align: start; }
  .ftab-icon { width: 28px; height: 28px; border-radius: 50%; }
  .ftab-icon svg { width: 15px; height: 15px; }
  .ftab-text { padding: 0; }
  .ftab-title { font-size: .9375rem; white-space: nowrap; }
  .ftab[aria-selected="true"] .ftab-sentence { display: none; }
  .fstage { min-height: 0; }
  .fpanel-sentence { display: block; }
}

/* Minidemon: elementen i den aktiva mockupen kommer fram i tur och ordning. */
.mock .answer { background: var(--text); color: var(--bg); }
.mock .graded { box-shadow: inset 0 0 0 2px var(--success); }
.mock .bar i { width: var(--w, 50%); }
.mock .lock-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); }
.mock .lock-icon svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .fpanel.active .mock > * { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
  .fpanel.active .mock > :nth-child(2) { animation-delay: .12s; }
  .fpanel.active .mock > :nth-child(3) { animation-delay: .5s; }
  .fpanel.active .mock > :nth-child(4) { animation-delay: .62s; }
  .fpanel.active .mock > :nth-child(5) { animation-delay: .74s; }
  .fpanel.active .mock > :nth-child(6) { animation-delay: .86s; }
  .fpanel.active .mock .bar i { animation: grow 1.2s .9s cubic-bezier(.2, .7, .2, 1) both; }
  .fpanel.active .mock .choice.right { animation: correct .5s 1.3s both; }
  .fpanel.active .mock .doc mark { animation: marker 1s .3s both; }
  .fpanel.active .mock .graded { animation: rise .55s 1s both; }
  .fpanel.active .mock .anim-type { animation: rise .45s .1s both; }
  .fpanel.active .mock .answer { animation: rise .55s 1.1s both; }
}
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes grow { from { width: 0; } }
@keyframes correct { from { box-shadow: inset 0 0 0 1px var(--line); } to { box-shadow: inset 0 0 0 2px var(--success); } }
@keyframes marker { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.mock .doc mark { background: linear-gradient(color-mix(in srgb, var(--sage) 35%, transparent), color-mix(in srgb, var(--sage) 35%, transparent)) no-repeat; background-size: 100% 100%; }

/* ------------------------------------------------------------------ avsändaren */

.about-inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.about-inner .eyes { --eye-w: 18px; margin-bottom: 4px; }
.about-inner h2 { max-width: 720px; }

.demo-scene { position: absolute; inset: 0; }
