/* ==========================================================================
   Krovi website: home page
   hero (live pill) · feature rows (video / illustration frames) · set up AI · privacy table ·
   tools grid · download
   ========================================================================== */

/* the pill, as the app draws it: glass-white in light, black in dark */
:root {
  --pill-bg: light-dark(#fffef9, #0b0b08);
  --pill-fg: light-dark(#1d1c14, #f6f4e6);
  --pill-fg-2: light-dark(rgba(29, 28, 20, 0.62), rgba(246, 244, 230, 0.66));
  --pill-shadow: 0 0 0 0.5px light-dark(rgba(60, 50, 10, 0.2), rgba(255, 255, 255, 0.16)), 0 2px 5px rgba(60, 50, 10, 0.14), 0 14px 28px -8px rgba(60, 50, 10, 0.3);
  --wall-a: light-dark(#f3f2ea, #24231a);
  --wall-b: light-dark(#e0ddcd, #14130e);
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 8vw, 112px); text-align: center; }
.hero-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0; color: var(--text-2);
}
.hero-brand .brand-mark { width: 30px; height: 30px; }
.hero h1 { margin: 22px auto 0; max-width: 11.5em; }
.hero .lede { margin: 26px auto 0; max-width: 32rem; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.hero-note { margin: 18px 0 0; font-size: 0.93rem; color: var(--text-3); }
.hero .chip-row { justify-content: center; margin-top: 30px; }

/* the "desktop": a dark-bezel screen with Krovi's own dusk wallpaper; the pill sits at its top, as on a real PC */
.hero-stage { margin: clamp(44px, 6vw, 72px) auto 0; width: min(980px, 100%); }
.pet-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 8.2; border-radius: 22px; text-align: center;
  background: #3c5f8f url("/media/wallpaper-dusk.svg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* a believable desktop: a translucent taskbar, a cursor, and (when the pill wakes) a short confirmation toast */
.pet-task {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(26px, 6.4%, 38px);
  display: flex; align-items: center; justify-content: center; gap: clamp(5px, 1vw, 10px);
  background: rgba(238, 243, 250, 0.62); border-top: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pet-task i { width: clamp(11px, 2vw, 20px); aspect-ratio: 1; border-radius: 28%; background: rgba(36, 52, 86, 0.55); }
.pet-task i:nth-child(1) { background: #2f6fd0; } .pet-task i:nth-child(3) { background: #d9822b; }
.pet-task i:nth-child(5) { background: #3f9156; } .pet-task i:nth-child(6) { background: rgba(36, 52, 86, 0.3); }
.pet-task b { position: absolute; right: clamp(8px, 1.6vw, 16px); font-size: clamp(0.56rem, 0.4rem + 0.5vw, 0.74rem); font-weight: 600; color: rgba(22, 32, 56, 0.85); }
.pet-cursor { position: absolute; left: 24%; top: 50%; width: clamp(14px, 2.2vw, 24px); height: auto; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.pet-toast {
  position: absolute; left: 50%; top: 8.6em; z-index: 2; font-size: clamp(9.5px, 1.5vw, 16px);
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.55em 1.15em; border-radius: 999px; white-space: nowrap;
  background: rgba(14, 22, 42, 0.62); color: #fff; font-weight: 600; letter-spacing: 0.005em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0; transform: translate(-50%, -0.5em); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.pet-toast svg { width: 1.15em; height: 1.15em; color: #8ee0a3; }
.pet-screen.is-awake .pet-toast { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.35s; }
.pet-hint {
  position: absolute; left: 50%; bottom: calc(clamp(26px, 6.4%, 38px) + clamp(10px, 2.4vw, 22px)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 6px 14px; border-radius: 999px;
  background: rgba(14, 22, 42, 0.58); color: #f4f6fb;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: clamp(0.72rem, 0.5rem + 0.6vw, 0.9rem);
}
.pet-hint kbd { background: #f4f6fb; color: #16203a; border-bottom-color: #aeb6c8; }
.pet-hint .keys .plus { color: rgba(244, 246, 251, 0.75); }
.pet {
  --ex: 0px; --ey: 0px;
  font-size: clamp(9.5px, 1.5vw, 16px);
  position: absolute; top: 2.4em; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 17em; height: 4.4em; padding: 0;
  border: 0; border-radius: 999px; background: var(--pill-bg); color: var(--pill-fg);
  box-shadow: var(--pill-shadow); cursor: pointer;
  transition: width 0.45s var(--ease-out);
}
.pet:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 999px; }
.pet-eyes, .pet-wake { grid-area: 1 / 1; transition: opacity 0.25s var(--ease); }
.pet-eyes { display: flex; align-items: center; gap: 2.5em; }
.pet-eye {
  position: relative; width: 1.45em; height: 1.9em; border-radius: 50% / 54%;
  background: var(--pill-fg); transform: translate(var(--ex), var(--ey));
  transition: transform 0.16s linear;
}
.pet-eye::after { /* the glint */
  content: ""; position: absolute; left: 24%; top: 16%; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--pill-bg); opacity: 0.9;
}
.pet.is-blink .pet-eye { animation: blink 0.16s ease-in-out; }
@keyframes blink { 50% { transform: translate(var(--ex), var(--ey)) scaleY(0.08); } }
.pet-wake {
  display: flex; align-items: center; gap: 0.9em; opacity: 0; white-space: nowrap;
  font-size: 1.05em; font-weight: 560; color: var(--pill-fg);
}
.pet-wake .dim { color: var(--pill-fg-2); font-weight: 500; }
.pet-wake i { width: 4px; height: 4px; border-radius: 50%; background: var(--pill-fg-2); }
.pet.is-awake { width: 21em; }
.pet.is-awake .pet-eyes { opacity: 0; }
.pet.is-awake .pet-wake { opacity: 1; }
.pet-cap { margin: 16px 0 0; font-size: 0.93rem; color: var(--text-3); }
.pet-cap .badge { margin-left: 6px; }

/* ---------- feature rows ---------- */
.how { padding-top: clamp(24px, 4vw, 56px); }
.feature {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); align-items: center;
  gap: clamp(32px, 5.5vw, 88px);
  padding-block: clamp(56px, 8vw, 120px);
}
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { margin-top: 0; font-size: clamp(2rem, 1.3rem + 2.5vw, 3.15rem); }
.feature-copy h2 em { display: block; }
.feature-copy > p { margin-top: 22px; color: var(--text-2); }
.points { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.points li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.points strong { color: var(--text); font-weight: 650; }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.feature + .feature { border-top: 1px solid var(--line); }
.keys-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; font-size: 0.95rem; color: var(--text-2); }

/* ---------- device frame (dark bezel, large radius) ---------- */
.media { margin: 0; min-width: 0; }
.frame {
  position: relative; padding: clamp(6px, 1vw, 11px); border-radius: clamp(20px, 3vw, 34px);
  background: var(--bezel); box-shadow: 0 0 0 1px var(--bezel-edge), var(--shadow-l);
}
.frame-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2.2vw, 24px);
  background: linear-gradient(175deg, #efecda, #d8d3bb); isolation: isolate;
  container-type: inline-size;
}
.frame-screen video, .frame-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-tag {
  position: absolute; z-index: 3; left: clamp(14px, 2.2vw, 26px); top: clamp(14px, 2.2vw, 26px);
  padding: 4px 11px; border-radius: 999px;
  background: rgba(15, 15, 11, 0.74); color: #f3f1e0;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.5;
}
.frame-tag.illustration { background: rgba(138, 90, 30, 0.9); }
.clip-toggle {
  position: absolute; z-index: 3; right: clamp(14px, 2.2vw, 26px); bottom: clamp(14px, 2.2vw, 26px);
  display: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(15, 15, 11, 0.72); color: #f3f1e0;
  transition: background 0.2s;
}
.js .clip-toggle { display: grid; }
.clip-toggle:hover { background: rgba(15, 15, 11, 0.9); }
.clip-cc {
  position: absolute; z-index: 3; right: calc(clamp(14px, 2.2vw, 26px) + 46px); bottom: clamp(14px, 2.2vw, 26px);
  height: 38px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 0;
  background: rgba(15, 15, 11, 0.72); color: #f3f1e0;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  transition: background 0.2s;
}
.clip-cc:hover { background: rgba(15, 15, 11, 0.9); }
.clip-cc[aria-pressed="true"] { background: #f3f1e0; color: #14130e; }
.frame-screen video::cue { background: rgba(15, 15, 11, 0.82); color: #fffef9; font-family: var(--font); font-size: 1em; }
.frame-screen video::-webkit-media-text-track-display { font-size: 0.9em; }
.clip-toggle svg { width: 16px; height: 16px; }
.clip-toggle .i-play { display: none; }
.clip-toggle[aria-pressed="true"] .i-play, .media.is-static .clip-toggle .i-play { display: block; }
.clip-toggle[aria-pressed="true"] .i-pause, .media.is-static .clip-toggle .i-pause { display: none; }
.cap { margin: 18px 4px 0; font-size: 0.95rem; color: var(--text-2); line-height: 1.5; }
.cap b { color: var(--text); font-weight: 650; }
.desc { margin: 10px 4px 0; font-size: 0.9rem; color: var(--text-3); }
.desc summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.desc summary:hover { color: var(--text); }
.desc ol { margin: 10px 0 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.media-more { margin: 14px 4px 0; }
.media-more > summary { cursor: pointer; width: fit-content; font-size: 0.93rem; font-weight: 600; color: var(--accent-text); }
.media-more[open] > summary { margin-bottom: 14px; }

/* ---------- illustrations (HTML/CSS re-enactments; never passed off as recordings) ---------- */
.illo { position: absolute; inset: 0; overflow: hidden; font-size: clamp(6px, 2.45cqw, 17px); color: #1d1c14; }
.illo * { box-sizing: border-box; }
.illo-wall {
  position: absolute; inset: 0;
  background: #3c5f8f url("/media/wallpaper-dusk.svg") center / cover no-repeat;
}
.i-pill {
  position: absolute; z-index: 4; top: 1.5em; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 0.9em;
  width: 14em; height: 3.3em; border-radius: 999px; background: #fffef9; color: #1d1c14;
  box-shadow: 0 0 0 0.5px rgba(60, 50, 10, 0.2), 0 0.15em 0.4em rgba(60, 50, 10, 0.14), 0 1em 2em -0.6em rgba(60, 50, 10, 0.3);
  font-size: 1em; font-weight: 600;
}
.i-pill .lab { position: absolute; display: flex; align-items: center; gap: 0.8em; white-space: nowrap; opacity: 0; }
.i-pill .lab.l-idle { opacity: 1; color: #66644f; font-weight: 500; }
.i-bars { display: inline-flex; align-items: center; gap: 0.22em; height: 1.4em; }
.i-bars i { width: 0.2em; border-radius: 0.2em; background: #2b6a3d; height: 30%; }
.i-eyes { display: inline-flex; gap: 1.1em; }
.i-eyes i { width: 0.65em; height: 0.85em; border-radius: 50% / 54%; background: #1d1c14; }
.i-keys { position: absolute; z-index: 4; left: 50%; bottom: 1.4em; transform: translateX(-50%); display: flex; align-items: center; gap: 0.5em; padding: 0.4em 1em; border-radius: 999px; background: rgba(14, 22, 42, 0.62); font-size: 0.95em; color: #f4f6fb; white-space: nowrap; }
.i-keys kbd { font-size: 0.95em; background: #f4f6fb; color: #16203a; border-bottom-color: #aeb6c8; }
.i-keys .t { margin-left: 0.5em; }
.i-win {
  position: absolute; z-index: 2; left: 50%; top: 6.4em; transform: translateX(-50%); width: 76%; max-width: 36em;
  border-radius: 1em; background: #fffef9; box-shadow: 0 0 0 0.5px rgba(60, 50, 10, 0.16), 0 1.4em 3em -1em rgba(60, 50, 10, 0.35);
  overflow: hidden;
}
.i-win-bar { display: flex; align-items: center; gap: 0.5em; height: 2.4em; padding: 0 1em; border-bottom: 1px solid rgba(60, 50, 10, 0.1); font-size: 0.85em; color: #66644f; }
.i-win-bar i { width: 0.7em; height: 0.7em; border-radius: 50%; background: rgba(60, 50, 10, 0.16); }
.i-win-bar span { margin-left: 0.6em; }
.i-row { display: flex; gap: 0.8em; padding: 0.6em 1.2em; border-bottom: 1px solid rgba(60, 50, 10, 0.08); font-size: 0.9em; color: #66644f; }
.i-row b { font-weight: 500; width: 4.4em; flex: none; }
.i-row span { color: #1d1c14; }
.i-body { padding: 0.9em 1.2em 1.1em; font-size: 1em; line-height: 1.6; min-height: 5.2em; }
.i-body .ln { display: block; width: fit-content; white-space: nowrap; }
.i-caret { display: inline-block; width: 0.12em; height: 1.05em; margin-left: 0.1em; vertical-align: -0.15em; background: #2b6a3d; }

/* Illustrations only run while on screen (home.js toggles .is-live); without JS they simply sit in their finished state. */
.js .illo, .js .illo * { animation-play-state: paused; }
.js .illo.is-live, .js .illo.is-live * { animation-play-state: running; }

/* Voice: one 12 s loop. Base styles are the FINAL state, so reduced motion (animation: none) shows a finished frame. */
.illo-voice .ln1 { animation: i-type1 12s infinite both; }
.illo-voice .ln2 { animation: i-type2 12s infinite both; }
.illo-voice .l-idle { animation: i-lab-idle 12s infinite both; }
.illo-voice .l-listen { animation: i-lab-listen 12s infinite both; }
.illo-voice .l-done { animation: i-lab-done 12s infinite both; opacity: 1; }
.illo-voice .l-listen .i-bars i:nth-child(1) { animation: i-bar 0.9s ease-in-out infinite; }
.illo-voice .l-listen .i-bars i:nth-child(2) { animation: i-bar 0.9s ease-in-out -0.2s infinite; }
.illo-voice .l-listen .i-bars i:nth-child(3) { animation: i-bar 0.9s ease-in-out -0.4s infinite; }
.illo-voice .l-listen .i-bars i:nth-child(4) { animation: i-bar 0.9s ease-in-out -0.6s infinite; }
.illo-voice .l-listen .i-bars i:nth-child(5) { animation: i-bar 0.9s ease-in-out -0.1s infinite; }
.illo-voice .i-caret { animation: i-caret-v 12s infinite both; }
.illo-voice .i-keys kbd { animation: i-press 12s infinite both; }
@keyframes i-bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes i-type1 { 0%, 14% { clip-path: inset(0 100% 0 0); } 38% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes i-type2 { 0%, 38% { clip-path: inset(0 100% 0 0); } 62% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes i-lab-idle { 0%, 8% { opacity: 1; } 11%, 100% { opacity: 0; } }
@keyframes i-lab-listen { 0%, 10% { opacity: 0; } 13%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes i-lab-done { 0%, 66% { opacity: 0; } 69%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes i-caret-v { 0%, 14% { opacity: 0; } 15%, 66% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes i-press { 0%, 10% { transform: none; } 12%, 64% { transform: translateY(0.14em); border-bottom-width: 1px; } 67%, 100% { transform: none; } }
/* idle label for reduced motion: show the final state (done) and no idle label */
.illo-voice .l-idle, .illo-voice .l-listen { opacity: 0; }

/* ---------- themes: swatches ---------- */
.swatches { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.swatches li { display: grid; gap: 6px; font-size: 0.84rem; color: var(--text-2); text-align: center; line-height: 1.25; }
.swatches .sw { display: block; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.swatches .sw::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ac); }
.swatches .new { color: var(--warm); font-weight: 600; }
.sw-graphite { background: #0b0b0d; --ac: #ff8a4c; } .sw-porcelain { background: #fafafc; --ac: #bc3f09; }
.sw-mochi { background: #faf2fb; --ac: #9c3a62; } .sw-arcade { background: #0e0c26; --ac: #ff4fd8; }
.sw-terracotta { background: #f1e6d4; --ac: #4f5a16; } .sw-tide { background: #152336; --ac: #5fe3c4; }
.sw-obsidian { background: #1b1a18; --ac: #d6b67c; } .sw-linen { background: #fbf8f2; --ac: #4f6d4c; }
.sw-voxel { background: #242822; --ac: #8dd44f; } .sw-meadow { background: #c6c6c6; --ac: #14500b; }
.swatch-note { margin: 14px 0 0; font-size: 0.88rem; color: var(--text-3); }

/* ---------- set up AI in three steps ---------- */
.setup-chips { margin-top: 28px; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(36px, 5vw, 64px); align-items: stretch; }
.step-card { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: clamp(22px, 2.6vw, 32px); border-radius: 30px; }
.step-no { margin: 0 0 14px; font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.step-card h3 { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.05; letter-spacing: -0.015em; }
.step-card .inset { margin-top: 22px; padding: 16px 18px; border-radius: 18px; }
.step-note { margin: auto 0 0; padding-top: 22px; font-size: 0.95rem; line-height: 1.5; }
.step-light { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.step-light .step-no { color: var(--text-3); }
.step-light .step-note { color: var(--text-2); }
.step-light .inset { background: var(--surface-2); border: 1px solid var(--line); }
.prov { list-style: none; display: grid; gap: 0; }
.prov li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.95rem; font-weight: 600; }
.prov li:first-child { border-top: 0; padding-top: 0; }
.prov li:last-child { padding-bottom: 0; }
.prov small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--text-3); text-align: right; line-height: 1.35; }
.prov .free { color: var(--accent-text); }
.step-dark { background: #1a1912; color: #f3f1e0; box-shadow: var(--shadow-l); }
:root[data-theme="dark"] .step-dark { background: #26251c; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-l); }
.step-dark .step-no { color: #93d3a1; }
.step-dark .step-note { color: #cfccb6; }
.step-dark h3 { color: #f3f1e0; }
.step-dark .inset { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.field-label { font-size: 0.82rem; color: #a3a18a; margin-bottom: 8px; }
.field { padding: 11px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid #93d3a1; font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.08em; color: #f3f1e0; overflow: hidden; white-space: nowrap; }
.saved { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 0.9rem; color: #93d3a1; }
.saved svg { width: 16px; height: 16px; flex: none; }
.mock-tag { position: absolute; top: clamp(22px, 2.6vw, 32px); right: clamp(22px, 2.6vw, 32px); }
/* paper slip with a torn edge */
.slip-wrap { filter: drop-shadow(0 18px 24px rgba(60, 50, 10, 0.22)); transform: rotate(0.9deg); }
:root[data-theme="dark"] .slip-wrap { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.step-paper {
  height: 100%; background: #fffdf0; color: #1d1c14;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
  padding-bottom: 38px;
}
.step-paper .step-no { color: #66644f; }
.slip { margin-top: 20px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; }
.slip h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #66644f; margin: 0 0 8px; font-weight: 500; }
.slip .r { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.slip .r::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #aaa68a; min-width: 12px; transform: translateY(-3px); }
.slip .r b { order: 0; font-weight: 500; }
.slip .r span { order: 2; color: #2b6a3d; font-weight: 600; }
.slip .r span.key { color: #8a5a1e; }
.slip hr { border: 0; border-top: 1px dashed #aaa68a; margin: 12px 0; }
.slip .end { margin-top: 14px; font-size: 0.78rem; color: #4a483a; }
.step-paper .step-note { color: #4a483a; }

/* ---------- privacy ---------- */
.ptable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s); }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.ptable caption { padding: 16px 22px; text-align: left; color: var(--text-3); font-size: 0.88rem; caption-side: bottom; border-top: 1px solid var(--line); }
.ptable th, .ptable td { padding: 14px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ptable thead th { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.ptable tbody th { font-weight: 600; width: 29%; color: var(--text); }
.ptable td { color: var(--text-2); }
.ptable td:last-child { width: 27%; }
.ptable tr.group th { padding: 22px 22px 12px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 450; letter-spacing: -0.01em; background: var(--bg-alt); border-bottom: 1px solid var(--line); color: var(--text); width: auto; }
.ptable tr.group.out th { background: var(--surface-2); }
.ptable tr.group th small { display: block; margin-top: 2px; font-family: var(--font); font-size: 0.9rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.ptable tbody tr:last-child td, .ptable tbody tr:last-child th { border-bottom: 0; }
.ptable .badge { margin-left: 6px; }
.ptable code { font-size: 0.82em; overflow-wrap: anywhere; }
.priv-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: clamp(28px, 4vw, 48px); }
.priv-foot p { margin: 0; color: var(--text-2); }
.net-check { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.net-check .big { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--accent-text); font-weight: 450; }
.net-check .what { font-size: 0.97rem; line-height: 1.4; color: var(--text-2); }
.net-check ul { list-style: none; margin-top: 6px; font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); }
.priv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }

/* ---------- tools grid ---------- */
.tools { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card {
  display: flex; gap: 16px; align-items: flex-start; height: 100%;
  padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.tool-card .ti { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--surface-3); color: var(--text); }
.tool-card .ti svg { width: 21px; height: 21px; }
.tool-card h3 { font-family: var(--font); font-size: 1.02rem; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.tool-card p { margin: 3px 0 0; font-size: 0.93rem; line-height: 1.45; color: var(--text-2); }
.tool-card.new { border-color: color-mix(in srgb, var(--warm) 35%, transparent); background: color-mix(in srgb, var(--warm-soft) 55%, var(--surface)); }
.tool-card.new .ti { background: var(--warm-soft); color: var(--warm); }
.tools-sub { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: clamp(36px, 5vw, 56px) 0 22px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
.tools-sub.first { margin-top: 0; }
.tools-new { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tools-new .tool-card { flex-direction: column; gap: 14px; }
.tools-note { margin: 28px 0 0; text-align: center; font-size: 0.95rem; color: var(--text-3); }

/* ---------- download ---------- */
.dl-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-m);
}
.dl-panel h2 { margin-top: 4px; }
.dl-panel h2 em { display: block; }
.dl-panel .lede { margin-top: 18px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dl-status { margin: 18px 0 0; font-size: 0.93rem; color: var(--text-3); }
.reqs { margin: 0; display: grid; gap: 0; }
.reqs > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.reqs > div:first-child { border-top: 0; padding-top: 0; }
.reqs dt { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 0.2rem; }
.reqs dd { margin: 0; color: var(--text-2); font-size: 0.97rem; line-height: 1.5; }
.reqs dd strong { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .steps3 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .step-card { min-height: 0; }
  .tools, .tools-new { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priv-foot, .dl-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .frame-tag { font-size: 0.56rem; padding: 2px 8px; left: 12px; top: 12px; }
  .clip-toggle { width: 34px; height: 34px; right: 12px; bottom: 12px; }
  .clip-cc { height: 34px; min-width: 40px; right: 54px; bottom: 12px; padding: 0 9px; font-size: 0.72rem; }
  .tools, .tools-new { grid-template-columns: minmax(0, 1fr); }
  .tools-new .tool-card { flex-direction: row; }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .swatches li { font-size: 0.72rem; }
  /* three narrow columns are unreadable on a phone: stack each row (the header row stays for screen readers) */
  .ptable { display: flex; flex-direction: column; }
  .ptable thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ptable tbody { display: block; }
  .ptable caption { display: block; order: 2; padding: 14px 16px; }
  .ptable tbody tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .ptable tbody th, .ptable tbody td { display: block; width: auto; padding: 0; border: 0; }
  .ptable tbody th { margin-bottom: 4px; }
  .ptable td:last-child { width: auto; margin-top: 8px; font-size: 0.9rem; color: var(--text-3); }
  .ptable td:last-child::before { content: "Leaves your PC: "; font-weight: 600; color: var(--text-2); }
  .ptable tbody tr:last-child { border-bottom: 0; }
  .ptable tbody tr.group { padding: 0; }
  .ptable tr.group th { padding: 18px 16px 10px; margin: 0; }
  .ptable tbody tr:last-child td, .ptable tbody tr:last-child th { border-bottom: 0; }
  .reqs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-note { font-size: 0.88rem; }
  .pet-hint .t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* base styles are the finished frame of each illustration; the loop does not run */
  .illo, .illo * { animation: none !important; }
  .illo-voice .l-listen .i-bars i { height: 60%; }
  .pet.is-blink .pet-eye { animation: none; }
  .pet-eye { transition: none; }
}
