/* SeniorPad site. One stylesheet for every page.
   Large type and strong contrast on purpose: many readers are older, and the ones who are not are
   often reading on a phone in a corridor. The colours come from the pad's own home screen tiles.
   Light is the default; [data-theme="dark"] on <html> switches to dark (see site.js). */

:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --text: #17140f;
  --muted: #574f46;
  --border: #e3dcd0;
  --accent: #1b7a3e;
  --accent-hover: #135f2f;
  --on-accent: #ffffff;
  --accent-soft: #e2f1e6;
  --focus: #b4410e;
  --note-bg: #fff4e0;
  --note-border: #c97a12;
  --closing-bg: #173a24;
  --shadow: 0 1px 2px rgb(40 30 20 / 0.05), 0 12px 32px rgb(40 30 20 / 0.08);
  --device-shadow: 0 2px 4px rgb(20 15 10 / 0.12), 0 30px 60px -20px rgb(20 15 10 / 0.35);

  /* The pad's home screen tiles. */
  --t-call: #1e7f3c;
  --t-calendar: #a7275b;
  --t-photos: #2061a8;
  --t-news: #8a4a13;
  --t-music: #0e6e66;
  --t-radio: #3a4a6b;
  --t-talk: #5e41a2;

  /* Illustrations */
  --il-soft: #cdb9a2;
  --il-soft-2: #b9a28a;
  --il-wood: #b08860;
  --il-leg: #8d6a49;
  --il-stand: #6b6b70;
  --il-cable: #4a4a4f;
  --il-socket: #ffffff;

  --radius: 1rem;
  --radius-lg: 1.6rem;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121510;
  --surface: #1a1e18;
  --surface-2: #1f251d;
  --text: #f2f0ea;
  --muted: #c4beb2;
  --border: #343b31;
  --accent: #79d69a;
  --accent-hover: #a2e6b9;
  --on-accent: #0b2414;
  --accent-soft: #1c3524;
  --focus: #ffb27a;
  --note-bg: #2e2312;
  --note-border: #e0a043;
  --closing-bg: #0e2416;
  --shadow: none;
  --device-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7);
  --il-soft: #75644f;
  --il-soft-2: #62523f;
  --il-wood: #85674a;
  --il-leg: #6c533b;
  --il-stand: #8e8e93;
  --il-cable: #a1a1a6;
  --il-socket: #d8d3ca;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.2rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; margin: 0 0 1.25rem; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.4rem; }
h4 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
p, li { text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 20;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }
.wrap.narrow { max-width: 50rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.lang-link { font-size: 0.95rem !important; letter-spacing: 0.04em; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.site-nav a { white-space: nowrap; }
@media (max-width: 52rem) { .nav-wide { display: none; } }
@media (max-width: 30rem) { .nav-mid { display: none; } }
@media (max-width: 26rem) {
  .brand { font-size: 1.15rem; }
  .brand img { width: 2rem; height: 2rem; }
  .site-nav a { padding: 0.4rem 0.45rem; font-size: 0.95rem; }
}

/* Buttons and badges */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2rem 0 1rem; }
.store-badge { display: inline-block; line-height: 0; border-radius: 0.6rem; }
.store-badge img { height: 3.25rem; width: auto; }
.store-badge .badge-dark { display: none; }
[data-theme="dark"] .store-badge .badge-light { display: none; }
[data-theme="dark"] .store-badge .badge-dark { display: inline; }
.button-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.3rem;
  border-radius: 0.8rem;
  border: 2px solid var(--border);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.button-quiet:hover { border-color: var(--text); color: var(--text); }
.button-quiet.on-dark { color: #fff; border-color: rgb(255 255 255 / 0.45); }
.button-quiet.on-dark:hover { border-color: #fff; color: #fff; }
.link-strong { font-weight: 700; }
.small { font-size: 1rem; color: var(--muted); }

/* Device frames around real screenshots */
.device { margin: 0; background: #1c1c1e; box-shadow: var(--device-shadow); }
.device img { display: block; width: 100%; }
.ipad { padding: 3.2%; border-radius: 7% / 5.25%; }
.ipad img { border-radius: 3.5% / 2.6%; }
.iphone { padding: 3.6%; border-radius: 15% / 7%; }
.iphone img { border-radius: 12% / 5.6%; }
[data-theme="dark"] .device { background: #3a3a3c; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.lead { font-size: clamp(1.25rem, 2.6vw, 1.45rem); color: var(--muted); max-width: 38rem; }
.hero-devices { position: relative; max-width: 34rem; width: 100%; margin: 0 auto; padding: 0 0 2.5rem; }
.hero-devices .ipad { width: 80%; margin-left: auto; }
.hero-devices .iphone { position: absolute; left: 0; bottom: 0; width: 31%; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.tinted { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-lead { font-size: clamp(1.2rem, 2.4vw, 1.35rem); color: var(--muted); }

.tone-call { --tone: var(--t-call); }
.tone-calendar { --tone: var(--t-calendar); }
.tone-photos { --tone: var(--t-photos); }
.tone-news { --tone: var(--t-news); }
.tone-music { --tone: var(--t-music); }
.tone-radio { --tone: var(--t-radio); }
.tone-talk { --tone: var(--t-talk); }

/* Why */
.statement { max-width: 52rem; }
.statement p { font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.55; color: var(--muted); }
.audience { display: grid; gap: 1.5rem 2.5rem; margin-top: 3rem; }
@media (min-width: 52rem) { .audience { grid-template-columns: repeat(3, 1fr); } }
.audience-item { border-top: 6px solid var(--tone); padding-top: 1.25rem; }
.audience-item p { color: var(--muted); margin: 0; }

/* On the iPad */
.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) { .split { grid-template-columns: 0.85fr 1fr; gap: 4.5rem; } }
.split-media { position: relative; max-width: 28rem; width: 100%; margin: 0 auto; padding-bottom: 18%; }
@media (min-width: 60rem) { .split-media { position: sticky; top: 7rem; } }
.small-ipad { width: 72%; }
.small-ipad.offset { position: absolute; right: 0; bottom: 0; width: 62%; }
.feature-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.feature-list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.1rem; align-items: start; }
.feature-list p { color: var(--muted); margin: 0; }
.feature-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.95rem;
  background: var(--tone);
}
.feature-mark svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* On the iPhone */
.phone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 15rem)); justify-content: center; gap: clamp(0.75rem, 3vw, 2.5rem); margin-bottom: 3rem; }
.phone-row .iphone:nth-child(2) { transform: translateY(-1.5rem); }
.phone-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.phone-features p { color: var(--muted); margin: 0; }

/* Quick start */
.quick-steps { list-style: none; margin: 0; padding: 0; counter-reset: qs; display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .quick-steps { grid-template-columns: 1fr 1fr; } }
.quick-steps > li {
  counter-increment: qs;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.75rem 5rem;
  box-shadow: var(--shadow);
}
.quick-steps > li::before {
  content: counter(qs);
  position: absolute;
  left: 1.4rem;
  top: 1.6rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
}
.quick-steps .qs-text p { color: var(--muted); }
.quick-steps .store-badge img { height: 2.75rem; }
.quick-steps > li.qs-kiosk { grid-column: 1 / -1; }
@media (max-width: 36rem) {
  .quick-steps > li { padding: 4.5rem 1.25rem 1.5rem; }
  .quick-steps > li::before { left: 1.25rem; top: 1.25rem; }
}
.kiosk-layout { display: grid; gap: 2rem; margin-top: 1.5rem; }
.kiosk-notes { background: var(--surface-2); border-radius: var(--radius); padding: 1.5rem; }
.setting-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.setting-list li { margin-bottom: 0.6rem; }
.setting-list li::marker { color: var(--accent); }

/* The Guided Access walkthrough */
.kiosk-demo { margin: 0; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .kiosk-demo { grid-template-columns: minmax(0, 24rem) 1fr; gap: 3rem; } }
.kd-stage { width: 100%; max-width: 24rem; margin: 0 auto; padding: 1.4rem 1rem 0 0; }
.kd-device {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #1c1c1e;
  border-radius: 7% / 5.25%;
  padding: 3.4%;
  box-shadow: var(--device-shadow);
}
[data-theme="dark"] .kd-device { background: #3a3a3c; }
.kd-btn-top, .kd-btn-vol { position: absolute; background: #3a3a3c; }
[data-theme="dark"] .kd-btn-top, [data-theme="dark"] .kd-btn-vol { background: #5a5a5e; }
.kd-btn-top { top: -1.3%; right: 13%; width: 13%; height: 1.4%; border-radius: 4px 4px 0 0; }
.kd-btn-vol { right: -1.6%; top: 11%; width: 1.6%; height: 15%; border-radius: 0 4px 4px 0; }
.kd-x3 {
  position: absolute;
  bottom: 160%;
  right: -10%;
  white-space: nowrap;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  opacity: 0;
}
.kd-screen {
  position: relative;
  height: 100%;
  border-radius: 3.5% / 2.6%;
  overflow: hidden;
  background: #f2f2f7;
  color: #000;
  container-type: inline-size;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.25;
}
.kd-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.kd-scene.is-active { opacity: 1; visibility: visible; }
.kd-pane { padding: 5cqw 5cqw; font-size: 3.6cqw; }
.kd-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2cqw; margin-bottom: 2cqw; }
.kd-back { color: #007aff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-back::before { content: "‹ "; font-size: 1.3em; line-height: 0; }
.kd-title { font-weight: 600; white-space: nowrap; }
.kd-group { list-style: none; margin: 4cqw 0 0; padding: 0; background: #fff; border-radius: 3cqw; }
.kd-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  min-height: 9.5cqw;
  padding: 0 3.5cqw;
  border-bottom: 1px solid #e5e5ea;
}
.kd-row:first-child { border-radius: 3cqw 3cqw 0 0; }
.kd-row:last-child { border-bottom: 0; border-radius: 0 0 3cqw 3cqw; }
.kd-row:only-child { border-radius: 3cqw; }
.kd-row em { font-style: normal; color: #8a8a8e; margin-left: auto; }
.kd-chev { flex: none; width: 1.6cqw; height: 1.6cqw; border-right: 0.5cqw solid #c4c4c7; border-top: 0.5cqw solid #c4c4c7; transform: rotate(45deg); }
.kd-toggle { position: relative; flex: none; width: 9.5cqw; height: 5.8cqw; border-radius: 99px; background: #e5e5ea; }
.kd-toggle::before {
  content: "";
  position: absolute;
  top: 0.5cqw;
  left: 0.5cqw;
  width: 4.8cqw;
  height: 4.8cqw;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.3cqw 0.8cqw rgb(0 0 0 / 0.22);
}
.kd-toggle[data-from="on"] { background: #34c759; }
.kd-toggle[data-from="on"]::before { transform: translateX(3.7cqw); }
.is-active .kd-toggle[data-from="off"][style] { animation: kd-bg-on 0.25s var(--t) forwards; }
.is-active .kd-toggle[data-from="off"][style]::before { animation: kd-knob-on 0.25s var(--t) forwards; }
.is-active .kd-toggle[data-from="on"][style] { animation: kd-bg-off 0.25s var(--t) forwards; }
.is-active .kd-toggle[data-from="on"][style]::before { animation: kd-knob-off 0.25s var(--t) forwards; }
@keyframes kd-bg-on { to { background: #34c759; } }
@keyframes kd-knob-on { to { transform: translateX(3.7cqw); } }
@keyframes kd-bg-off { to { background: #e5e5ea; } }
@keyframes kd-knob-off { to { transform: translateX(0); } }

/* The finger: a soft circle that lands on whatever is tapped. */
.kd-tap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9cqw;
  height: 9cqw;
  margin: -4.5cqw 0 0 -4.5cqw;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.16);
  border: 0.5cqw solid rgb(0 0 0 / 0.35);
  opacity: 0;
  pointer-events: none;
}
.kd-row.kd-tap:has(.kd-toggle)::after { left: calc(100% - 8.3cqw); }
.kd-row.kd-tap:has(.kd-chev)::after, .kd-choices .kd-tap::after { left: 30%; }
.is-active .kd-tap::after { animation: kd-tap 0.8s var(--tap-t, 1s) both; }
.is-active .kd-row.kd-tap:has(.kd-chev) { animation: kd-row 0.5s calc(var(--tap-t, 1s) + 0.15s) both; }
@keyframes kd-tap {
  0% { opacity: 0; transform: scale(1.7); }
  35% { opacity: 1; transform: scale(1); }
  60% { opacity: 1; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes kd-row { 40% { background: #d1d1d6; } }

.kd-passcode { text-align: center; }
.kd-prompt { margin: 10cqw 0 4cqw; font-size: 4.2cqw; }
.kd-dots { display: flex; justify-content: center; gap: 3.5cqw; margin-bottom: 9cqw; }
.kd-dots i { width: 3.2cqw; height: 3.2cqw; border: 0.5cqw solid #000; border-radius: 50%; }
.is-active .kd-dots i { animation: kd-fill 0.1s var(--t) forwards; }
@keyframes kd-fill { to { background: #000; } }
.kd-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw 5cqw; width: 58cqw; margin: 0 auto; }
.kd-keypad b { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: #e3e3e8; font-size: 6cqw; font-weight: 400; }
.kd-keypad b:empty { background: none; }

.kd-check { flex: none; width: 2.2cqw; height: 4cqw; border-right: 0.7cqw solid #007aff; border-bottom: 0.7cqw solid #007aff; transform: rotate(45deg) translate(-0.5cqw, -0.5cqw); opacity: 0; }
.kd-check.is-from { opacity: 1; }
.is-active .kd-check.is-from { animation: kd-out 0.1s 1.35s forwards; }
.is-active .kd-check.is-to { animation: kd-in 0.1s 1.35s forwards; }
@keyframes kd-out { to { opacity: 0; } }
@keyframes kd-in { to { opacity: 1; } }

.kd-app { position: absolute; inset: 0; background: #faf6f0; }
.kd-app img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kd-dim img { filter: brightness(0.5) saturate(0.8); }
.kd-hud {
  position: absolute;
  top: 5cqw;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2.5cqw;
  width: 50cqw;
  padding: 2.4cqw 4cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgb(28 28 30 / 0.82);
  opacity: 0;
}
.kd-hud svg { width: 5.5cqw; height: 5.5cqw; fill: #fff; flex: none; }
.kd-hud-bar { flex: 1; height: 1.8cqw; border-radius: 99px; background: rgb(255 255 255 / 0.3); overflow: hidden; }
.kd-hud-bar i { display: block; width: 40%; height: 100%; background: #fff; }
.is-active .kd-hud { animation: kd-in 0.2s 0.5s forwards; }
.is-active .kd-hud-bar i { animation: kd-volume 1.6s 0.7s steps(6) forwards; }
@keyframes kd-volume { to { width: 100%; } }

.kd-shortcut {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0);
}
.kd-shortcut span {
  padding: 3cqw 6cqw;
  border-radius: 99px;
  background: rgb(28 28 30 / 0.85);
  color: #fff;
  font-size: 4.2cqw;
  font-weight: 600;
  opacity: 0;
}
.is-active .kd-shortcut { animation: kd-dim 0.4s 1.9s forwards; }
.is-active .kd-shortcut span { animation: kd-pop 0.35s 1.9s forwards; }
@keyframes kd-dim { to { background: rgb(0 0 0 / 0.35); } }
@keyframes kd-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.kd-sheet {
  position: absolute;
  left: 7cqw;
  right: 7cqw;
  top: 12cqw;
  padding-bottom: 4cqw;
  border-radius: 4cqw;
  background: #f2f2f7;
  font-size: 3.4cqw;
  box-shadow: 0 2cqw 8cqw rgb(0 0 0 / 0.35);
}
.is-active .kd-sheet { animation: kd-rise 0.4s 0.1s both; }
@keyframes kd-rise { from { opacity: 0; transform: translateY(6cqw); } }
.kd-sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 3.5cqw 4.5cqw 1cqw; color: #007aff; }
.kd-sheet-bar b { color: #000; font-weight: 600; }
.kd-start { position: relative; font-weight: 600; }
.kd-sheet-head { margin: 3cqw 4.5cqw 0; color: #6d6d72; font-size: 2.9cqw; }
.kd-sheet .kd-group { margin: 1.5cqw 4cqw 0; }
.kd-banner {
  position: absolute;
  top: 4cqw;
  left: 50%;
  padding: 2.4cqw 5cqw;
  border-radius: 99px;
  background: rgb(28 28 30 / 0.85);
  color: #fff;
  font-size: 3.4cqw;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -160%);
}
.is-active .kd-banner { animation: kd-banner 2.6s 0.3s both; }
@keyframes kd-banner {
  0% { transform: translate(-50%, -160%); }
  15%, 85% { transform: translate(-50%, 0); }
  100% { transform: translate(-50%, -160%); }
}

/* Hardware buttons react in their scenes. */
.kiosk-demo[data-step="4"] .kd-btn-vol { animation: kd-press-side 0.28s 0.7s 6; }
.kiosk-demo[data-step="5"] .kd-btn-top { animation: kd-press-top 0.3s 0.7s 3; }
.kiosk-demo[data-step="5"] .kd-x3 { animation: kd-in 0.2s 0.7s forwards; }
@keyframes kd-press-side { 50% { background: var(--accent); transform: translateX(-35%); } }
@keyframes kd-press-top { 50% { background: var(--accent); transform: translateY(40%); } }

.kd-steps { list-style: none; margin: 0; padding: 0; counter-reset: kd; display: grid; gap: 0.25rem; }
.kd-steps li { counter-increment: kd; }
.kd-steps button {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 1.08rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.kd-steps button::before {
  content: counter(kd);
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--muted);
  transform: translateY(0.15rem);
}
.kd-steps button:hover { background: var(--surface-2); }
.kd-steps b { color: var(--text); }
.kd-steps li.is-active button { background: var(--accent-soft); color: var(--text); }
.kd-steps li.is-active button::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.kd-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding-left: 0.5rem; }
.kd-controls[hidden] { display: none; }
.kd-ctl {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.kd-ctl:hover { background: var(--surface-2); }
.kd-ctl svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kd-play .i-play path { fill: currentColor; stroke: none; }
.kd-play .i-play { display: block; }
.kd-play .i-pause { display: none; }
.is-playing .kd-play .i-play { display: none; }
.is-playing .kd-play .i-pause { display: block; }
.kd-progress { flex: 1; max-width: 10rem; height: 0.35rem; margin-left: 0.5rem; border-radius: 99px; background: var(--border); overflow: hidden; }
.kd-progress i { display: block; width: 12.5%; height: 100%; background: var(--accent); transition: width 0.3s; }

/* Videos */
.video-soon {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.video-soon svg { flex: none; width: 2.75rem; height: 2.75rem; padding: 0.7rem; border-radius: 50%; background: var(--accent-soft); fill: var(--accent); }
.video-soon p { margin: 0; color: var(--muted); }
.video-soon .video-soon-title { color: var(--text); font-weight: 700; }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Placement */
.rooms { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-bottom: 3rem; }
.room { margin: 0; background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; }
.room svg { display: block; width: 100%; height: auto; padding: 1.25rem 1rem 0; }
.room figcaption { padding: 1rem 1.5rem 1.5rem; }
.room figcaption p { color: var(--muted); margin: 0; }
.il-floor { stroke: var(--border); stroke-width: 2; }
.il-soft { fill: var(--il-soft); }
.il-soft-2 { fill: var(--il-soft-2); }
.il-wood { fill: var(--il-wood); }
.il-wood-stroke { fill: none; stroke: var(--il-wood); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.il-leg { stroke: var(--il-leg); stroke-width: 5; stroke-linecap: round; }
.il-drawer { fill: none; stroke: var(--il-leg); stroke-width: 2; stroke-linecap: round; }
.il-stand { fill: var(--il-stand); }
.il-pad { fill: #1c1c1e; }
.il-screen { fill: #faf6f0; }
.il-tile-a { fill: var(--t-call); }
.il-tile-b { fill: var(--t-calendar); }
.il-tile-c { fill: var(--t-photos); }
.il-tile-d { fill: var(--t-radio); }
.il-mug { fill: var(--il-soft); }
.il-cable { fill: none; stroke: var(--il-cable); stroke-width: 2.5; stroke-linecap: round; }
.il-socket { fill: var(--il-socket); stroke: var(--il-soft-2); stroke-width: 1.5; }
.il-sight { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.tips li { padding-left: 1.25rem; border-left: 4px solid var(--accent); }
.tips p { color: var(--muted); margin: 0; }

/* Privacy */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.checks li { padding-left: 2.25rem; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 1.2rem;
  height: 0.65rem;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.note { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--note-bg); border-left: 5px solid var(--note-border); border-radius: 0.6rem; }
.note p:last-child { margin-bottom: 0; }

/* Pricing */
.pricing { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 56rem) { .pricing { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.price-line { color: var(--accent); font-weight: 700; margin-bottom: 1.25rem; }
.price-card .small { margin: 1.25rem 0 0; }

/* FAQ and long-form details */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem; margin-bottom: 0.75rem; }
summary { cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; list-style-position: outside; margin-left: 1.25rem; }
details > div { padding: 0 1.25rem 1rem; }
details[open] summary { color: var(--accent); }

/* Closing band */
.closing { background: var(--closing-bg); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.closing h2 { color: #fff; max-width: 40rem; }
.closing .cta-row { margin-bottom: 0; }
.closing .store-badge .badge-light { display: inline; }
.closing .store-badge .badge-dark { display: none; }

/* Long-form pages: setup guide, privacy, terms, support */
.doc { padding: 2.5rem 0 4rem; }
.doc .wrap { max-width: 50rem; }
.doc h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.doc h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-top: 3rem; scroll-margin-top: 6rem; }
.doc h3 { margin-top: 1.75rem; scroll-margin-top: 6rem; }
.doc ul, .doc ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.5rem; }
.doc .kiosk-demo { margin: 2rem 0; }
.doc .kd-steps, .doc .setting-list { padding-left: 0; }
.doc .setting-list { padding-left: 1.2rem; }
.doc-wide .wrap { max-width: 64rem; }
.doc-wide .prose { max-width: 50rem; }
.meta { color: var(--muted); font-size: 1.05rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0 1rem; }
.toc h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; }
.placeholder { background: #ffe58a; color: #1b1512; padding: 0 0.25rem; border-radius: 0.2rem; }
.guide-step { counter-increment: guide; }
.callout { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--accent-soft); }
.callout p:last-child { margin-bottom: 0; }
kbd { font-family: inherit; font-weight: 700; padding: 0.05rem 0.4rem; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 0.35rem; background: var(--surface); font-size: 0.95em; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: 0.75rem; }
table { border-collapse: collapse; width: 100%; font-size: 1.05rem; min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* On a phone the data table becomes one card per row, labelled, rather than a sideways scroll. */
@media (max-width: 44rem) {
  .table-wrap { overflow: visible; border: 0; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, td { display: block; }
  tr { border: 1px solid var(--border); border-radius: 0.75rem; margin-bottom: 1rem; background: var(--surface); }
  td { border-bottom: 1px solid var(--border); }
  tr td:last-child { border-bottom: 0; }
  td:nth-child(2)::before, td:nth-child(3)::before {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--muted);
  }
  .privacy-table td:nth-child(2)::before { content: "Why"; }
  .privacy-table td:nth-child(3)::before { content: "Legal basis"; }
  :lang(pl) .privacy-table td:nth-child(2)::before { content: "Cel"; }
  :lang(pl) .privacy-table td:nth-child(3)::before { content: "Podstawa prawna"; }
  .settings-table td:first-child { font-weight: 700; }
  .settings-table td:nth-child(2)::before { content: "Set to"; }
  .settings-table td:nth-child(3)::before { content: "Why"; }
  :lang(pl) .settings-table td:nth-child(2)::before { content: "Ustaw"; }
  :lang(pl) .settings-table td:nth-child(3)::before { content: "Dlaczego"; }
}

.contact-box { background: var(--accent-soft); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0 2rem; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box a { font-weight: 700; font-size: 1.35rem; word-break: break-word; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2.5rem 0 3rem; font-size: 1.05rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.footer-top .store-badge img { height: 2.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer nav a { color: var(--text); font-weight: 600; }
.site-footer p { color: var(--muted); margin: 0.25rem 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* No motion inside the walkthrough: every scene shows its finished state. */
@media (prefers-reduced-motion: reduce) {
  .kiosk-demo *, .kiosk-demo *::before, .kiosk-demo *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

@media print {
  .site-header nav, .site-footer ul, .skip-link, .cta-row, .kd-controls { display: none; }
  body { font-size: 12pt; }
}
