/*
  ClipBirdy website: the landing pages (index.html, de/index.html) on top of site.css.
  Everything interactive is drawn with HTML and CSS and driven by landing.js; without JavaScript
  every demo still shows a sensible still picture. The Content Security Policy allows no inline
  styles, so per-element values come from classes and :nth-child, never from style="".
*/

/* ---------- Tokens ---------- */

:root {
  --container-wide: 1240px;
  --sel: rgba(91, 93, 228, 0.26);
  --changed: rgba(63, 160, 80, 0.2);
  --changed-line: #3f9a4f;
  --typo: #e5484d;

  --wall:
    radial-gradient(70% 90% at 0% 100%, #bfe0c9 0%, rgba(191, 224, 201, 0) 60%),
    radial-gradient(60% 80% at 100% 0%, #c7cbfb 0%, rgba(199, 203, 251, 0) 60%),
    radial-gradient(60% 80% at 75% 100%, #dccbef 0%, rgba(220, 203, 239, 0) 60%),
    linear-gradient(135deg, #e5e6fb 0%, #f6d5dd 100%);
  --win: #ffffff;
  --win-text: #1a1b1e;
  --win-muted: #707279;
  --win-line: #e5e7ef;
  --menubar: rgba(255, 255, 255, 0.42);
  --menubar-text: #1a1b1e;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-line: rgba(255, 255, 255, 0.75);
  --glass-text: #1a1b1e;
  --glass-muted: #63656c;
  --mode-ico: rgba(91, 93, 228, 0.14);
  --mode-ico-text: #4947c5;
  --stage-shadow: 0 2px 6px rgba(20, 20, 50, 0.08), 0 30px 80px rgba(50, 50, 140, 0.22);

  --ink: #121317;
  --ink-2: #1b1c22;
  --ink-3: #24252c;
  --ink-line: #303238;
  --ink-text: #eef0f9;
  --ink-muted: #abadb5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sel: rgba(173, 184, 254, 0.3);
    --changed: rgba(120, 200, 110, 0.22);
    --changed-line: #8fcb6e;
    --typo: #ff6b6f;
    --wall:
      radial-gradient(70% 90% at 0% 100%, #22382b 0%, rgba(34, 56, 43, 0) 60%),
      radial-gradient(60% 80% at 100% 0%, #262a6e 0%, rgba(38, 42, 110, 0) 60%),
      radial-gradient(60% 80% at 75% 100%, #33284a 0%, rgba(51, 40, 74, 0) 60%),
      linear-gradient(135deg, #202228 0%, #2a1c24 100%);
    --win: #202024;
    --win-text: #edeef6;
    --win-muted: #9fa0a8;
    --win-line: #313239;
    --menubar: rgba(16, 16, 21, 0.45);
    --menubar-text: #edeef6;
    --glass: rgba(38, 39, 45, 0.78);
    --glass-line: rgba(255, 255, 255, 0.1);
    --glass-text: #edeef6;
    --glass-muted: #aaacb4;
    --mode-ico: rgba(173, 184, 254, 0.16);
    --mode-ico-text: #adb8fe;
    --stage-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(0, 0, 0, 0.6);
    --ink: #0b0b0f;
    --ink-2: #15161b;
    --ink-3: #1e1f25;
  }
}

[hidden] {
  display: none !important;
}

.container--wide {
  max-width: var(--container-wide);
}

/* ---------- Header call to action ---------- */

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--button-hover);
}

/* Next to the menu button on phones, too; only the narrowest screens drop it. */
@media (max-width: 350px) {
  .header-cta {
    display: none;
  }
}

/* ---------- Scroll reveal (only once landing.js has set .js) ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .rv.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .rv {
    transform: none;
  }
}

/* ---------- Hero ---------- */

.hero2 {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--accent-soft) 0%, rgba(0, 0, 0, 0) 70%),
    var(--bg);
}

.hero2-copy {
  text-align: center;
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  box-shadow: var(--shadow);
}

.eyebrow img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero2 h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 0.4em;
}

.h1-accent {
  display: block;
  background: linear-gradient(90deg, #5b5de4 0%, #7a84f8 45%, #4947c5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero2-lede {
  max-width: 40rem;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.hero2 .download {
  margin-bottom: clamp(36px, 6vw, 64px);
}

/* ---------- The stage: a small Mac desktop ---------- */

.demo {
  position: relative;
}

.stage {
  position: relative;
  border-radius: 22px;
  background: var(--wall);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  isolation: isolate;
  color: var(--win-text);
  font-size: 15px;
  line-height: 1.5;
}

.menubar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 30px;
  padding: 0 14px;
  background: var(--menubar);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  color: var(--menubar-text);
  font-size: 13px;
  white-space: nowrap;
}

.mb-app {
  font-weight: 700;
}

.mb-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.mb-sym {
  display: block;
  opacity: 0.85;
}

.mb-bird {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border-radius: 6px;
  transition: background 0.2s;
}

.mb-bird img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.mb-bird.is-busy {
  background: rgba(255, 255, 255, 0.45);
}

.mb-bird.is-busy::after {
  content: "";
  position: absolute;
  inset: -1px 3px;
  border: 2px solid rgba(91, 93, 228, 0.25);
  border-top-color: #5b5de4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.mb-check {
  position: absolute;
  right: 0;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #34c759;
  color: #fff;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.mb-bird.is-done .mb-check {
  transform: scale(1);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  grid-template-areas: "win pick";
  gap: 28px;
  align-items: start;
  min-height: 500px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px) 64px;
}

/* Windows */

.win {
  border-radius: 12px;
  background: var(--win);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 12px 40px rgba(20, 20, 50, 0.18);
  overflow: hidden;
}

.win--mail {
  grid-area: win;
  min-height: 380px;
}

.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-bottom: 1px solid var(--win-line);
  color: var(--win-muted);
  font-size: 13px;
  font-weight: 600;
}

.lights {
  position: absolute;
  left: 13px;
  display: flex;
  gap: 8px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.lights i:nth-child(2) {
  background: #febc2e;
}

.lights i:nth-child(3) {
  background: #28c840;
}

.win-title {
  overflow: hidden;
  max-width: calc(100% - 150px); /* clear of the traffic lights on both sides */
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-head {
  display: flex;
  flex-direction: column;
  padding: 10px 22px;
  border-bottom: 1px solid var(--win-line);
  color: var(--win-muted);
  font-size: 13px;
}

.win-head b {
  font-weight: 600;
}

.win-body {
  padding: 18px 22px 22px;
  font-size: clamp(15px, 1.4vw, 17px);
}

.win-body p {
  margin: 0 0 0.9em;
}

.demo-text {
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(var(--sel), var(--sel));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.55s ease, opacity 0.3s;
}

.demo-text.is-selected {
  background-size: 100% 100%;
}

.demo-text.is-busy {
  animation: breathe 1s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.45;
  }
}

.typo {
  text-decoration: underline wavy var(--typo);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

/* Removed words stay a moment, struck through, before the text settles */
.demo-text del {
  padding: 0 1px;
  border-radius: 3px;
  background: rgba(229, 72, 77, 0.1);
  color: var(--typo);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  transition: opacity 0.35s ease;
}

.demo-text.is-settling del {
  opacity: 0;
}

.demo-text mark {
  padding: 0 1px;
  border-radius: 3px;
  background: var(--changed);
  box-shadow: inset 0 -2px 0 var(--changed-line);
  color: inherit;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: #5b5de4;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* The mode picker and the preview panel share a place */

.picker,
.preview {
  grid-area: pick;
  position: relative;
  z-index: 2;
  margin-left: -56px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: 0 24px 60px rgba(20, 20, 50, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  color: var(--glass-text);
  font-size: 13px;
  line-height: 1.3;
}

.js .picker {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.js .picker.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0s;
}

.picker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-line);
  color: var(--glass-muted);
}

.picker-head .icon {
  width: 16px;
  height: 16px;
  color: #5b5de4;
}

.picker-search {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--glass-text);
  font: inherit;
  font-size: 13px;
}

.picker-search::placeholder {
  color: var(--glass-muted);
}

.picker-search:focus {
  outline: none;
}

.picker-head:focus-within {
  box-shadow: inset 0 -2px 0 #5b5de4;
}

.picker-list {
  max-height: 392px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}

.mode {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mode:hover {
  background: rgba(91, 93, 228, 0.1);
}

.mode.is-active {
  background: #5b5de4;
  color: #fff;
}

.mode:focus-visible {
  outline-offset: -2px;
  border-radius: 9px;
}

.mode-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--mode-ico);
  color: var(--mode-ico-text);
}

.mode-ico svg {
  width: 17px;
  height: 17px;
}

.mode-ico--abc {
  font-size: 10px;
  font-weight: 700;
}

.mode.is-active .mode-ico {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.mode-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.mode-txt strong {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-txt small {
  overflow: hidden;
  color: var(--glass-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode.is-active small {
  color: rgba(255, 255, 255, 0.85);
}

.mode kbd {
  min-width: 20px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--glass-muted);
  font-size: 11px;
  line-height: 20px;
}

.mode.is-active kbd {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.picker-none {
  margin: 0;
  padding: 14px 16px;
  color: var(--glass-muted);
}

.picker-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-top: 1px solid var(--glass-line);
  color: var(--glass-muted);
  font-size: 11px;
}

.picker-foot kbd,
.hbar-foot kbd {
  min-width: 0;
  padding: 0 5px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  font-size: 10px;
  line-height: 18px;
}

.picker-foot kbd + kbd {
  margin-left: -2px;
}

/* Preview (translation) */

.preview {
  display: flex;
  flex-direction: column;
  padding: 0;
  animation: pop-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-line);
}

.preview-head .icon {
  width: 16px;
  height: 16px;
  color: #5b5de4;
}

.preview-body {
  min-height: 150px;
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.preview-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--glass-line);
}

.preview-foot button {
  padding: 5px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.preview-foot .is-primary {
  border-color: #5b5de4;
  background: #5b5de4;
  color: #fff;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* "Your turn": fills the picker's place once the first run is over */

.nudge {
  grid-area: pick;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 260px;
  padding: 22px 22px 20px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 18px 40px rgba(20, 20, 50, 0.18);
  color: var(--glass-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.demo.is-ready:not(.is-picking) .nudge {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s, visibility 0s;
}

.nudge:hover {
  border-color: #5b5de4;
}

.nudge-keys {
  display: flex;
  gap: 6px;
}

.nudge .kc {
  min-width: 38px;
  height: 38px;
  font-size: 17px;
}

.nudge:hover .kc {
  animation: key-tap 1.6s ease-in-out infinite;
}

.nudge:hover .kc:nth-child(2) {
  animation-delay: 0.1s;
}

.nudge:hover .kc:nth-child(3) {
  animation-delay: 0.2s;
}

.nudge-text strong {
  display: block;
  font-size: 15px;
}

/* Keycaps floating over the stage while the demo "presses" them */

.keys-float {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(16, 16, 21, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.keys-float.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.kc {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 9px;
  background: linear-gradient(#fafbfe, #e5e6ef);
  box-shadow: 0 3px 0 #b4b5be, 0 4px 10px rgba(0, 0, 0, 0.25);
  color: #24252b;
  font-size: 20px;
  font-weight: 600;
  transition: transform 0.08s, box-shadow 0.08s, background 0.08s;
}

.kc.is-down {
  background: linear-gradient(#ffe2c8, #ffc896);
  box-shadow: 0 1px 0 #c98a55, 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(2px);
}

/* Under the stage */

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding-inline: 4px;
}

.demo-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  vertical-align: 0.05em;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.2);
  animation: live 2s ease-in-out infinite;
}

@keyframes live {
  50% {
    box-shadow: 0 0 0 7px rgba(52, 199, 89, 0.05);
  }
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.pill-btn:hover {
  background: var(--surface-2);
}

.pill-btn.is-primary {
  border-color: var(--button);
  background: var(--button);
  color: var(--on-button);
}

.pill-btn.is-primary:hover {
  background: var(--button-hover);
}

.pill-btn kbd {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 0.8em;
}

/* Small screens: the window fills the stage, the picker floats over its lower part */

@media (max-width: 760px) {
  .menubar .mb-item,
  .menubar .mb-sym {
    display: none;
  }
  .desk {
    display: block;
    min-height: 560px;
    padding: 16px 14px 76px;
  }
  .win--mail {
    min-height: 0;
  }
  .win-head {
    padding: 8px 16px;
  }
  .win-body {
    padding: 14px 16px 16px;
  }
  .picker,
  .preview {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    margin: 0;
  }
  .picker-list {
    max-height: 300px;
  }
  .keys-float {
    bottom: 14px;
  }
  .nudge {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: row;
    max-width: none;
    padding: 12px 14px;
    text-align: left;
  }
  .nudge .kc {
    min-width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* ---------- Hero download row: a button that works today, then "coming soon" ---------- */

.download--hero {
  max-width: none;
}

.download--hero .get {
  min-width: 0;
  padding: 11px 18px 11px 14px;
}

.get--try .icon {
  color: var(--on-button);
}

/* ---------- Wherever you type: one window, five situations ---------- */

.section--tight {
  padding-top: clamp(48px, 7vw, 80px);
}

.ev-head {
  display: grid;
  gap: 8px 48px;
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.ev-head h2 {
  margin: 0;
}

.ev-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (min-width: 900px) {
  .ev-head {
    grid-template-columns: 1fr 1fr;
  }
}

.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 22px;
  }
}

.sc-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 899px) {
  .sc-tabs {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sc-tabs::-webkit-scrollbar {
    display: none;
  }
  .sc-tab {
    flex: none;
  }
  .sc-keys {
    display: none !important;
  }
}

.sc-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sc-tab:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sc-tab.is-on {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.sc-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
}

.sc-tab.is-on .sc-ico {
  background: var(--accent-soft);
  color: var(--accent);
}

.sc-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.sc-txt strong {
  font-size: 1rem;
}

.sc-txt small {
  font-size: 0.85rem;
  color: var(--muted);
}

.sc-keys {
  display: flex;
  gap: 2px;
}

.sc-keys kbd {
  min-width: 22px;
  font-size: 0.78rem;
}

.sc-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #5b5de4;
  transform: scaleX(0);
  transform-origin: left;
}

.showcase.is-next .sc-tab.is-on .sc-progress {
  animation: progress 3.4s linear forwards;
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

.sc-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: clamp(26px, 5vw, 56px) clamp(16px, 4vw, 48px);
  border-radius: 22px;
  background: var(--wall);
  box-shadow: var(--stage-shadow);
  color: var(--win-text);
}

.sc-win {
  width: min(100%, 560px);
}

.sc-win .win-body {
  min-height: 150px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
}

.sc-text {
  margin: 0;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sc-text.is-selected,
.sc-sel.is-selected {
  background: var(--sel);
}

.sc-text.is-busy {
  animation: breathe 0.9s ease-in-out infinite;
}

.sc-sel {
  border-radius: 3px;
  transition: background 0.3s;
}

.sc-text code,
.win-body .sc-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.sc-win[data-mono] .sc-text {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #6a7f5a;
}

.sc-rec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(91, 93, 228, 0.12);
  color: var(--mode-ico-text);
  font-size: 14px;
  font-weight: 600;
}

.sc-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.sc-wave i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #5b5de4;
  animation: wave 0.8s ease-in-out infinite alternate;
  transform: scaleY(0.3);
}

.sc-wave i:nth-child(2n) {
  animation-duration: 0.6s;
}

.sc-wave i:nth-child(3n) {
  animation-delay: -0.3s;
}

.sc-pop {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass);
  box-shadow: 0 12px 30px rgba(20, 20, 50, 0.16);
  color: var(--glass-text);
  font-size: 14px;
  animation: pop-in 0.25s ease;
}

.sc-pop strong {
  display: block;
  margin-bottom: 4px;
  color: var(--mode-ico-text);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-pop p {
  margin: 0;
}

.sc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 5px;
  padding: 6px;
  border-radius: 13px;
  background: rgba(16, 16, 21, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0.55;
  transition: opacity 0.25s;
}

.sc-badge.is-on {
  opacity: 1;
}

.sc-badge .kc {
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  font-size: 15px;
}

/* ---------- Why: the usual way against ClipBirdy ---------- */

.versus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 820px) {
  .versus {
    grid-template-columns: 1fr 1.3fr;
  }
}

.vs-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
}

.vs-old {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.vs-new {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #6d74f5 0%, #5b5de4 45%, #403db0 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(91, 93, 228, 0.3);
}

.vs-new::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% 30%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.vs-label {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vs-old .vs-label {
  color: var(--muted);
}

.vs-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.vs-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  counter-increment: step;
}

.vs-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.vs-old .vs-steps li::before {
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.vs-old .vs-steps li {
  text-decoration: line-through;
  text-decoration-color: rgba(229, 72, 77, 0.55);
  text-decoration-thickness: 1.5px;
}

.vs-new .vs-steps li {
  font-size: 1.2rem;
  font-weight: 650;
}

.vs-new .vs-steps li::before {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.vs-new kbd {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.vs-keys {
  display: flex;
  gap: 10px;
  margin: 6px 0 24px;
}

.vs-keys .kc {
  min-width: 64px;
  height: 64px;
  font-size: 28px;
}

.is-in .vs-keys .kc {
  animation: key-tap 3.2s ease-in-out infinite;
}

.is-in .vs-keys .kc:nth-child(2) {
  animation-delay: 0.12s;
}

.is-in .vs-keys .kc:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes key-tap {
  0%,
  70%,
  100% {
    transform: none;
    box-shadow: 0 3px 0 #b4b5be, 0 4px 10px rgba(0, 0, 0, 0.25);
  }
  78%,
  86% {
    transform: translateY(3px);
    box-shadow: 0 0 0 #b4b5be, 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

.vs-sum {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
}

.vs-new .vs-sum {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.vs-old .vs-sum strong {
  color: var(--text);
}

/* ---------- Shortcuts (dark section) ---------- */

.section--ink {
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(91, 93, 228, 0.22) 0%, rgba(91, 93, 228, 0) 70%),
    var(--ink);
  color: var(--ink-text);
}

.section--ink .section-head p {
  color: var(--ink-muted);
}

.section--ink .kicker {
  color: #adb8fe;
}

.section--ink a {
  color: #adb8fe;
}

.section--ink :focus-visible {
  outline-color: #adb8fe;
}

.bigkeys-wrap {
  margin: 0 auto 40px;
  text-align: center;
}

.bigkeys {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 16px);
  margin-bottom: 22px;
}

.bk {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(70px, 11vw, 112px);
  height: clamp(70px, 11vw, 112px);
  border: 1px solid #33353b;
  border-radius: clamp(12px, 1.8vw, 20px);
  background: linear-gradient(180deg, #27282f 0%, #1c1d23 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 0 #09090d, 0 14px 30px rgba(0, 0, 0, 0.5);
  color: #eef0f9;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.2s, color 0.2s;
}

.bk-sym {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.bk-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  color: #9698a0;
  font-size: clamp(0.62rem, 1vw, 0.78rem);
}

.bk--wide {
  width: auto;
  padding-inline: clamp(14px, 2vw, 22px);
}

.bk.is-down {
  border-color: #5b5de4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #09090d, 0 0 0 4px rgba(91, 93, 228, 0.25), 0 0 40px rgba(91, 93, 228, 0.45);
  color: #c3cbff;
  transform: translateY(5px);
}

.bigkeys-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 34rem;
  min-height: 4.4em;
  margin: 0 auto;
  color: var(--ink-muted);
}

.bigkeys-caption strong {
  color: var(--ink-text);
  font-size: 1.3rem;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.key-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: var(--ink-2);
  color: var(--ink-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.key-item:hover {
  background: var(--ink-3);
}

.key-item.is-on {
  border-color: #5b5de4;
  background: linear-gradient(180deg, rgba(91, 93, 228, 0.16), rgba(91, 93, 228, 0.06)), var(--ink-2);
}

.key-item.is-flash {
  animation: flash 0.6s ease;
}

@keyframes flash {
  30% {
    transform: scale(1.03);
  }
}

.key-combo {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
  color: var(--ink-muted);
}

.key-combo kbd {
  min-width: 26px;
  border-color: #3f4148;
  border-bottom-color: #23242a;
  background: #25262c;
  color: var(--ink-text);
  font-size: 0.85rem;
}

.key-item strong {
  font-size: 1.02rem;
}

.key-desc {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.keys-note {
  margin: 0;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- Clipboard history demo ---------- */

.hist {
  position: relative;
  border-radius: 22px;
  background: var(--wall);
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  color: var(--win-text);
  font-size: 14px;
  line-height: 1.45;
}

.hist-desk {
  display: flex;
  justify-content: center;
  padding: clamp(22px, 4vw, 40px) clamp(14px, 4vw, 40px) 26px;
}

.win--notes {
  width: min(100%, 620px);
}

.paste-target {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
}

.paste-empty {
  margin: 0;
  color: var(--win-muted);
  text-align: center;
}

.pasted {
  animation: drop-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.pasted .card-body {
  min-height: 0;
}

.pasted .art {
  height: 130px;
  border-radius: 10px;
}

.pasted .card-text {
  -webkit-line-clamp: unset;
  font-size: 16px;
}

.pasted .card-code {
  font-size: 13px;
}

.pasted.is-color {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pasted.is-color::before {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #5b5de4;
}

.pasted.is-color .swatch-hex {
  color: var(--win-text);
  font-size: 22px;
}

.pasted.is-color .card-sub {
  color: var(--win-muted);
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
}

.hbar {
  margin: 0 clamp(8px, 1.5vw, 16px) clamp(8px, 1.5vw, 16px);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: 0 -10px 40px rgba(20, 20, 50, 0.16);
  color: var(--glass-text);
}

.hbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 10px 12px 4px;
}

.hbar-tabs {
  display: flex;
  gap: 4px;
}

.hbar-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--glass-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.hbar-tab.is-on {
  background: rgba(91, 93, 228, 0.16);
  color: var(--glass-text);
}

.hbar-tab .count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.hbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 220px);
  padding: 4px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--glass-muted);
}

.hbar-search:focus-within {
  border-color: #5b5de4;
}

.hbar-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--glass-text);
  font: inherit;
  font-size: 13px;
}

.hbar-search input:focus {
  outline: none;
}

.hbar-search input::placeholder {
  color: var(--glass-muted);
}

/* Controls on dark glass need their own grounds */
@media (prefers-color-scheme: dark) {
  .chip,
  .hbar-search,
  .preview-foot button {
    background: rgba(255, 255, 255, 0.07);
  }
  .hbar-tab .count,
  .mode kbd,
  .picker-foot kbd,
  .hbar-foot kbd {
    background: rgba(255, 255, 255, 0.12);
  }
  .card-pin {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(38, 39, 45, 0.94);
    color: #cfd1d9;
  }
  .card-main {
    border-color: rgba(255, 255, 255, 0.06);
  }
}

.hbar-filters {
  display: flex;
  gap: 6px;
  padding: 6px 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hbar-filters::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 3px 11px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--glass-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-on {
  border-color: #5b5de4;
  background: #5b5de4;
  color: #fff;
}

.cards {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 12px 14px 14px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 14px;
  scrollbar-width: thin;
}

.card {
  position: relative;
  flex: none;
  width: 168px;
  height: 178px;
  scroll-snap-align: start;
}

.card-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 9px 10px 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 13px;
  background: var(--win);
  box-shadow: 0 2px 8px rgba(20, 20, 50, 0.1);
  color: var(--win-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.card-main:hover,
.card-main:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(20, 20, 50, 0.18);
}

.card-main:focus-visible {
  outline: 3px solid #5b5de4;
  outline-offset: 2px;
}

.card.is-hit .card-main {
  border-color: #5b5de4;
  animation: hit 0.45s ease;
}

@keyframes hit {
  40% {
    transform: translateY(-10px) scale(1.03);
  }
}

.card-tag {
  align-self: flex-start;
  margin-bottom: 7px;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(107, 114, 128, 0.14);
  color: #6b7280;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card[data-type="link"] .card-tag {
  background: rgba(59, 130, 246, 0.14);
  color: #3b82f6;
}

.card[data-type="image"] .card-tag {
  background: rgba(20, 184, 166, 0.15);
  color: #0f9f90;
}

.card[data-type="code"] .card-tag {
  background: rgba(139, 92, 246, 0.14);
  color: #8b5cf6;
}

.card[data-type="table"] .card-tag {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.card[data-type="pdf"] .card-tag {
  background: rgba(239, 68, 68, 0.13);
  color: #ef4444;
}

.card[data-type="file"] .card-tag {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: hidden;
}

.card-title {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub {
  color: var(--win-muted);
  font-size: 11px;
}

.card-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font-size: 12.5px;
}

.card-code {
  display: block;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.07);
  font-size: 10px;
  line-height: 1.5;
  white-space: pre;
  overflow: hidden;
}

.card-code .k {
  color: #c026d3;
}

.card-code .s {
  color: #c2410c;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  color: var(--win-muted);
  font-size: 10px;
  white-space: nowrap;
}

.card--color .card-main {
  border-color: transparent;
  background: #5b5de4;
  color: #fff;
}

.card--color .card-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.card--color .card-body {
  align-items: center;
  justify-content: center;
}

.swatch-hex {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.card--color .card-sub,
.card--color .card-foot {
  color: rgba(255, 255, 255, 0.85);
}

/* Pinning needs the script; without it the button is not shown at all. */
.card-pin {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #707279;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.card:hover .card-pin,
.card:focus-within .card-pin,
.card-pin[aria-pressed="true"] {
  opacity: 1;
}

@media (hover: none) {
  .card-pin {
    opacity: 1;
  }
}

.card-pin[aria-pressed="true"] {
  border-color: #5b5de4;
  background: #5b5de4;
  color: #fff;
}

.js .card-pin {
  display: grid;
}

/* Card art, drawn in CSS */

.art {
  display: block;
  flex: none;
  height: 74px;
  border-radius: 8px;
  overflow: hidden;
}

.art--bird {
  background:
    radial-gradient(18px 12px at 58% 46%, #1f6f5c 0 60%, rgba(0, 0, 0, 0) 64%),
    radial-gradient(8px 8px at 70% 38%, #2b8a6e 0 60%, rgba(0, 0, 0, 0) 64%),
    linear-gradient(160deg, #cfe9d6 0%, #8fc7a5 55%, #4f9a78 100%);
}

.art--sunset {
  position: relative;
  height: 100%;
  min-height: 90px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 62%, #3a2350 62%, #3a2350 100%),
    linear-gradient(180deg, #f7b267 0%, #f27059 45%, #b5487a 100%);
}

.art--sunset .sun {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  background: #ffe9a8;
}

.art--page {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 58px;
  height: 76px;
  margin: 0 auto 2px;
  padding: 9px 8px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.art--page i {
  height: 3px;
  border-radius: 2px;
  background: #d1d2db;
}

.art--page i:first-child {
  width: 60%;
  background: #ef4444;
}

.art--page i:nth-child(3) {
  width: 80%;
}

.art--file {
  display: grid;
  place-items: center;
  height: 76px;
  color: #d97706;
}

.mini-table {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4px 6px;
  font-size: 10px;
}

.mini-table span:nth-child(-n + 3) {
  font-weight: 700;
}

.cards-empty {
  margin: 0;
  padding: 30px 16px 40px;
  color: var(--glass-muted);
  text-align: center;
}

.hbar-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 0 10px 10px;
  color: var(--glass-muted);
  font-size: 11px;
}

.tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tips li {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.tips strong {
  color: var(--text);
}

/* ---------- Features: the bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .tile--wide {
    grid-column: span 2;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}

.tile h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tile h3 kbd {
  font-size: 0.72em;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tile-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: -4px -6px 18px;
  border-radius: 16px;
  background: var(--bg-alt);
  overflow: hidden;
}

/* Modes: items move, the quick-key numbers stay */

.art-modes {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0 clamp(16px, 6vw, 80px);
}

.am-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
}

.am-row b {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 11px;
}

.am-item {
  flex: 1;
  padding: 3px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-item--own {
  border-color: rgba(91, 93, 228, 0.5);
  color: var(--accent);
}

.is-in .am-row:nth-child(2) .am-item {
  animation: swap-down 5s ease-in-out infinite;
}

.is-in .am-row:nth-child(3) .am-item {
  animation: swap-up 5s ease-in-out infinite;
}

@keyframes swap-down {
  0%,
  30%,
  100% {
    transform: none;
  }
  45%,
  85% {
    transform: translateY(34px);
    box-shadow: 0 6px 16px rgba(20, 20, 50, 0.16);
  }
}

@keyframes swap-up {
  0%,
  30%,
  100% {
    transform: none;
  }
  45%,
  85% {
    transform: translateY(-34px);
  }
}

/* Style profile chips */

.art-style {
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
  padding: 0 18px;
}

.art-style span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.is-in .art-style span {
  animation: chip-on 6s ease-in-out infinite;
}

.is-in .art-style span:nth-child(2) {
  animation-delay: 0.6s;
}

.is-in .art-style span:nth-child(3) {
  animation-delay: 1.2s;
}

.is-in .art-style span:nth-child(4) {
  animation-delay: 1.8s;
}

@keyframes chip-on {
  0%,
  100% {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--text);
  }
  12%,
  60% {
    border-color: #5b5de4;
    background: #5b5de4;
    color: #fff;
  }
}

/* Translate: one greeting, ten languages */

.art-translate {
  gap: 14px;
  font-size: 1.5rem;
  font-weight: 700;
}

.at-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

.at-to {
  height: 1.5em;
  overflow: hidden;
}

.at-roll {
  display: flex;
  flex-direction: column;
}

.at-roll span {
  height: 1.5em;
  line-height: 1.5em;
  color: var(--accent);
  white-space: nowrap;
}

.is-in .at-roll {
  animation: roll 18s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes roll {
  0%, 8% { transform: translateY(0); }
  11%, 19% { transform: translateY(-1.5em); }
  22%, 30% { transform: translateY(-3em); }
  33%, 41% { transform: translateY(-4.5em); }
  44%, 52% { transform: translateY(-6em); }
  55%, 63% { transform: translateY(-7.5em); }
  66%, 74% { transform: translateY(-9em); }
  77%, 85% { transform: translateY(-10.5em); }
  88%, 96% { transform: translateY(-12em); }
  100% { transform: translateY(-13.5em); }
}

/* Explain */

.art-explain {
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.ae-text {
  font-size: 1.05rem;
  font-weight: 600;
}

.ae-text mark {
  padding: 1px 3px;
  border-radius: 4px;
  background: var(--sel);
  color: inherit;
}

.ae-pop {
  max-width: 240px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.is-in .ae-pop {
  animation: pop-loop 5s ease-in-out infinite;
}

@keyframes pop-loop {
  0%,
  15% {
    opacity: 0;
    transform: translateY(8px);
  }
  25%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* Dictation waveform */

.art-wave {
  gap: 5px;
}

.art-wave i {
  width: 6px;
  height: 64px;
  border-radius: 3px;
  background: linear-gradient(#7a84f8, #5b5de4);
  transform: scaleY(0.25);
}

.is-in .art-wave i {
  animation: wave 1.1s ease-in-out infinite alternate;
}

.art-wave i:nth-child(3n + 1) {
  animation-duration: 0.9s;
}

.art-wave i:nth-child(3n + 2) {
  animation-duration: 1.3s;
  animation-delay: -0.4s;
}

.art-wave i:nth-child(4n) {
  animation-duration: 0.7s;
  animation-delay: -0.2s;
}

.art-wave i:nth-child(5n) {
  animation-delay: -0.7s;
}

@keyframes wave {
  to {
    transform: scaleY(1);
  }
}

/* Sync between Macs */

.art-sync {
  gap: 0;
  color: var(--muted);
}

.as-mac svg {
  display: block;
  width: 72px;
  height: 54px;
}

.as-track {
  position: relative;
  width: min(220px, 34%);
  height: 2px;
  margin: 0 12px 10px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, rgba(0, 0, 0, 0) 6px 12px);
}

.as-packet {
  position: absolute;
  top: -13px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #5b5de4;
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 93, 228, 0.45);
}

.is-in .as-packet {
  animation: travel 3.6s ease-in-out infinite;
}

@keyframes travel {
  0%,
  10% {
    left: 0;
  }
  45%,
  55% {
    left: calc(100% - 28px);
  }
  90%,
  100% {
    left: 0;
  }
}

/* Plain text */

.art-plain {
  flex-direction: column;
  gap: 10px;
  font-size: 1.1rem;
}

.ap-rich b {
  color: var(--accent);
}

.ap-rich u {
  text-decoration-color: #5b5de4;
  text-decoration-thickness: 2px;
  color: #8b5cf6;
}

.ap-plain {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
}

.is-in .ap-rich {
  animation: fade-out-in 4s ease-in-out infinite;
}

.is-in .ap-plain {
  animation: fade-in-out 4s ease-in-out infinite;
}

@keyframes fade-out-in {
  0%,
  35%,
  100% {
    opacity: 1;
  }
  50%,
  85% {
    opacity: 0.25;
  }
}

@keyframes fade-in-out {
  0%,
  35%,
  100% {
    opacity: 0.25;
  }
  50%,
  85% {
    opacity: 1;
  }
}

/* Lorem ipsum, typed */

.art-lorem {
  padding: 0 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.art-lorem span {
  display: block;
  clip-path: inset(0 0 0 0);
}

.is-in .art-lorem span {
  animation: type-in 5s steps(28) infinite;
}

@keyframes type-in {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  60%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* UI languages */

.art-langs {
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
  padding: 0 18px;
}

.art-langs span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}

.is-in .art-langs span {
  animation: chip-on 7.2s ease-in-out infinite;
}

.is-in .art-langs span:nth-child(2) { animation-delay: 1.2s; }
.is-in .art-langs span:nth-child(3) { animation-delay: 2.4s; }
.is-in .art-langs span:nth-child(4) { animation-delay: 3.6s; }
.is-in .art-langs span:nth-child(5) { animation-delay: 4.8s; }
.is-in .art-langs span:nth-child(6) { animation-delay: 6s; }

/* ---------- Privacy ---------- */

.privacy-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .privacy-top {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

.privacy-copy h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.privacy-lede {
  color: var(--muted);
  font-size: 1.12rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.pills li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
}

.vault {
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(91, 93, 228, 0.25) 0%, rgba(91, 93, 228, 0) 70%),
    var(--ink);
  color: var(--ink-text);
  box-shadow: var(--shadow-lg);
}

.vault p {
  margin: 0;
}

.vault-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px !important;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.vault-top svg {
  color: #adb8fe;
}

.vault-row {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--ink-line);
}

.vault-label {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vault-plain,
.vault-cipher {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  word-break: break-all;
}

.vault-cipher {
  color: #c3cbff;
}

.vault-foot {
  padding-top: 12px;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* ---------- Screenshots gallery ---------- */

.gallery {
  position: relative;
}

.gallery-track {
  --w: min(880px, 86vw);
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 6px calc((100% - var(--w)) / 2) 22px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - var(--w)) / 2);
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track:focus-visible {
  outline-offset: -3px;
}

.gallery-track li {
  flex: none;
  width: var(--w);
  scroll-snap-align: center;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.gallery figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}

.gallery figcaption strong {
  color: var(--text);
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.round-btn:hover {
  background: var(--surface-2);
}

/* ---------- FAQ: plain <details>, no script needed ---------- */

.faq-wrap {
  display: grid;
  gap: 24px 56px;
}

@media (min-width: 900px) {
  .faq-wrap {
    grid-template-columns: 1fr 1.7fr;
    align-items: start;
  }
  .faq-head {
    position: sticky;
    top: 96px;
  }
}

.faq-head h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.faq-head p:last-child {
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--border-strong);
}

.qa {
  border-bottom: 1px solid var(--border-strong);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 1.08rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover {
  color: var(--accent);
}

.qa-icon {
  flex: none;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.qa[open] .qa-icon {
  transform: rotate(45deg);
}

.qa-body {
  padding: 0 2px 20px;
  color: var(--muted);
}

.qa-body p {
  max-width: 44rem;
  margin: 0;
}

/* ---------- Final call ---------- */

.final {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(91, 93, 228, 0.22) 0%, rgba(91, 93, 228, 0) 70%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 30px rgba(91, 93, 228, 0.35));
}

.js .final.is-in .final-icon,
.final-icon:hover {
  animation: hop 2.8s ease-in-out infinite;
}

@keyframes hop {
  0%,
  60%,
  100% {
    transform: none;
  }
  70% {
    transform: translateY(-14px) rotate(-4deg);
  }
  80% {
    transform: none;
  }
  86% {
    transform: translateY(-6px) rotate(2deg);
  }
}

.final h2 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  letter-spacing: -0.035em;
}

.final-lede {
  max-width: 34rem;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------- Touch screens: no "press it on your keyboard" ---------- */

@media (hover: none) and (pointer: coarse) {
  .kbd-only {
    display: none;
  }
}

/* ---------- Motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.plan--pro {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
  box-shadow: var(--shadow-lg);
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.plan-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.plan-price {
  margin: 0;
  color: var(--muted);
}

.plan-amount {
  margin-right: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.plan-alt {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan .check-list {
  margin: 22px 0 0;
}

.plan .check-list li {
  margin: 0 0 9px;
}

.plan--pro .check-list li::before {
  border-color: var(--accent);
}

.plans-note {
  max-width: 44rem;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
