/* Yasa's website. Dark, like the store pictures: the Yasa gradient (indigo, purple, pink) on a deep night backdrop,
   with the leaf's yellow for the sun of My Day. */

:root {
  --bg: #0E0B1F;
  --bg-2: #130F2A;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #F2F0FF;
  --soft: #C4BFDC;
  --muted: #8E88AB;
  --brand-1: #8F8CFF;
  --brand-2: #C08BFF;
  --brand-3: #FF7AB8;
  --indigo: #4B48C8;
  --purple: #7537BF;
  --pink: #A8276A;
  --sun: #FFC145;
  --green: #3DDC97;
  --tint: rgba(143, 140, 255, 0.12);
  --tint-line: rgba(143, 140, 255, 0.35);
  --grad: linear-gradient(100deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  --radius: 18px;
  --wrap: 1160px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  /* The hero's tilted screenshot widens in perspective: cut it at the window's edge, and never let the page shift
     sideways (hidden would still let a focused menu scroll it) */
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: var(--mono); font-variant-ligatures: none; font-size: 0.88em; background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 6px; }
b { color: var(--text); font-weight: 600; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.leaf { filter: brightness(0) invert(1); flex: none; }

/* The glows behind everything, as in the store pictures */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 8% -10%, rgba(75, 72, 200, 0.45), transparent 70%),
    radial-gradient(45vw 40vw at 100% 5%, rgba(117, 55, 191, 0.28), transparent 70%),
    radial-gradient(50vw 45vw at 95% 100%, rgba(168, 39, 106, 0.22), transparent 70%),
    radial-gradient(40vw 40vw at 0% 100%, rgba(37, 99, 235, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(14, 11, 31, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(14, 11, 31, 0.8); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--soft); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

/* Language menu: a <details>, so it opens without JavaScript too */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px;
  color: var(--soft); font-size: 14.5px; font-weight: 500; padding: 8px 10px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--surface-2); }
.lang summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: rgba(24, 19, 46, 0.96); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.lang-list a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--soft); text-decoration: none; font-size: 14.5px; }
.lang-list a:hover { color: var(--text); background: var(--surface-2); }
.lang-list a[aria-current] { color: var(--text); font-weight: 600; background: var(--tint); }
.lang-list a[aria-current]::after { content: '✓'; float: right; color: var(--brand-2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5B57E6, var(--purple) 58%, var(--pink));
  box-shadow: 0 0 0 1px rgba(192, 139, 255, 0.35) inset, 0 8px 28px -8px rgba(117, 55, 191, 0.75);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(192, 139, 255, 0.55) inset, 0 12px 36px -8px rgba(117, 55, 191, 0.95); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-large { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.btn.soon { pointer-events: none; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); box-shadow: none; }
.btn.soon::after { content: attr(data-soon); font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 3px 7px; border-radius: 99px; background: var(--surface-2); color: var(--soft); }
.os-icon:empty { display: none; }
.os-icon svg { width: 18px; height: 18px; fill: currentColor; display: block; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 8px; }

/* ---- Hero ---- */
.hero { padding: clamp(56px, 9vw, 110px) 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--soft);
  padding: 6px 14px 6px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.hero h1 { overflow-wrap: break-word; font-size: clamp(36px, 8vw, 92px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.0; margin: 26px 0 24px; }
.lede { max-width: 660px; margin: 0 auto; color: var(--soft); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.fine { color: var(--muted); font-size: 13.5px; margin-top: 18px; }

.hero-shot { margin-top: clamp(48px, 7vw, 84px); perspective: 1800px; }
.shot-tilt {
  position: relative;
  transform: rotateX(calc(var(--tilt, 1) * 16deg)) scale(calc(1 - var(--tilt, 1) * 0.04));
  transform-origin: 50% 0%;
  transition: transform .1s linear;
  will-change: transform;
}
.shot-tilt img:not(.leaf) { border-radius: 12px; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05); width: 100%; }
.glow {
  position: absolute; inset: -6% 8% 20%; z-index: -1; filter: blur(70px); opacity: .8;
  background: radial-gradient(closest-side, rgba(117, 55, 191, 0.7), rgba(75, 72, 200, 0.3) 60%, transparent);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  padding: 10px 14px; border-radius: 12px;
  background: rgba(28, 22, 52, 0.74); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  animation: bob 6s ease-in-out infinite;
}
.float-card-a { right: -2%; top: 14%; }
.float-card-b { left: -2%; top: 52%; animation-delay: -3s; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

.kbd {
  display: inline-block; font: 500 0.78em/1 var(--mono); color: var(--text);
  padding: 4px 6px; margin: 0 2px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px;
  vertical-align: 0.08em;
}

.works-with { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 56px; color: var(--muted); font-size: 14px; }
.works-with ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.works-with li { color: var(--soft); font-weight: 600; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.works-with li:last-child { color: var(--muted); font-weight: 500; border-style: dashed; }

/* ---- Sections ---- */
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2, .connect-copy h2, .split-copy h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.section-head p:not(.kicker) { color: var(--soft); font-size: 18px; margin-top: 18px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 16px; }

.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, background .25s, transform .25s;
}
.problem:hover { border-color: var(--tint-line); background: var(--surface-2); transform: translateY(-2px); }
.problem h3 { font-size: 17px; font-weight: 600; color: var(--soft); letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.35; }
.problem p { color: var(--muted); font-size: 15.5px; }

/* The tour: steps on the left, the screenshot of the chosen one on the right */
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tour-steps { display: grid; gap: 8px; }
.tour-step {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  text-align: left; font: inherit; color: var(--soft); cursor: pointer;
  padding: 18px 20px; border-radius: 16px; border: 1px solid transparent; background: transparent;
  transition: background .25s, border-color .25s;
}
.tour-step:hover { background: var(--surface); }
.tour-step[aria-selected="true"] { background: var(--surface-2); border-color: rgba(143, 140, 255, 0.32); }
.tour-num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--brand-2); background: var(--surface-2); border: 1px solid var(--line);
  transition: background .25s, color .25s;
}
.tour-step[aria-selected="true"] .tour-num { background: var(--grad); color: #160F26; border-color: transparent; }
.tour-copy b { display: block; color: var(--text); font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin: 5px 0 4px; }
.tour-copy span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tour-step[aria-selected="true"] .tour-copy span { color: var(--soft); }
.tour-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.tour.playing .tour-step[aria-selected="true"] .tour-bar { animation: tour-fill var(--tour-time, 7s) linear forwards; }
@keyframes tour-fill { to { width: 100%; } }

.tour-stage { position: relative; aspect-ratio: 2360 / 1496; }
.tour-stage::before { content: ''; position: absolute; inset: 8% -4% -6% 8%; z-index: -1; filter: blur(70px); background: radial-gradient(closest-side, rgba(168, 39, 106, 0.45), transparent); }
.tour-panel { position: absolute; inset: 0; margin: 0; }
.tour-panel img { width: 100%; border-radius: 12px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85); }
.js .tour-panel { opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.js .tour-panel.active { opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) .tour-stage { aspect-ratio: auto; display: grid; gap: 20px; }
html:not(.js) .tour-panel { position: relative; }

/* Copy beside a picture, and the other way round */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }
/* Grid cells may shrink below their content's one-line width (the menu bar, the paired download buttons) */
.split > *, .connect > *, .platforms > *, .bento > *, .tour > * { min-width: 0; }
.split-flip .split-copy { order: 2; }
.split-copy p:not(.kicker) { color: var(--soft); font-size: 17.5px; margin-top: 20px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--soft); font-size: 15.5px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C08BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--tint-line);
}

/* The menu bar with Yasa's item open, its popover hanging under it */
.mb-stage { position: relative; padding-bottom: 8px; }
.mb-stage::before { content: ''; position: absolute; inset: 10% 0 0 10%; z-index: -1; filter: blur(70px); background: radial-gradient(closest-side, rgba(117, 55, 191, 0.55), transparent); }
.menubar {
  display: flex; align-items: center; gap: 16px; height: 38px; padding: 0 16px; border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); border-bottom: 0;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden;
}
.mb-menus { display: flex; gap: 16px; color: var(--soft); }
.mb-menus b { color: var(--text); }
.mb-item { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.mb-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mb-item img, .mb-clock { flex: none; }
.mb-clock { color: var(--soft); font-variant-numeric: tabular-nums; }
.mb-popover { width: min(78%, 400px); margin: 6px 8px 0 auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }

/* Mini Yasa floating over an editor, see-through to it */
.mini-stage { position: relative; padding: 0 0 40px; }
.mini-stage::before { content: ''; position: absolute; inset: 10% 10% 0 0; z-index: -1; filter: blur(70px); background: radial-gradient(closest-side, rgba(75, 72, 200, 0.55), transparent); }
.editor { width: 86%; border-radius: 14px; background: #0D0B18; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85); }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.ed-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.ed-bar i:nth-child(2) { background: #FEBC2E; }
.ed-bar i:nth-child(3) { background: #28C840; }
.ed-bar span { margin: 0 auto; transform: translateX(-24px); color: var(--muted); font: 500 12.5px/1 var(--mono); }
.ed-body { display: grid; gap: 11px; padding: 22px 22px 34px; }
.ed-body span { display: block; height: 9px; width: var(--w); border-radius: 5px; background: var(--c, #2C2840); }
.mini-win { position: absolute; right: 0; bottom: 0; width: 50%; opacity: .94; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); animation: bob 7s ease-in-out infinite; }
.mini-badge {
  position: absolute; right: 30%; bottom: -6px; display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--text); padding: 7px 11px; border-radius: 99px;
  background: rgba(28, 22, 52, 0.85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mini-badge svg { width: 15px; height: 15px; fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-linecap: round; }

/* Quick add: a line typed into the box, what Yasa recognized popping up under it */
.qa { max-width: 860px; margin: 0 auto; }
.qa-stage { position: relative; }
.qa-stage::before { content: ''; position: absolute; inset: -30% 10%; z-index: -1; filter: blur(80px); background: radial-gradient(closest-side, rgba(117, 55, 191, 0.5), transparent); }
.qa-box {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 16px 22px; border-radius: 18px;
  background: rgba(30, 26, 48, 0.92); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.02);
  font-size: clamp(16px, 2.4vw, 22px); font-weight: 500; color: var(--text);
}
.qa-box svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.qa-typed { white-space: pre-wrap; overflow-wrap: anywhere; }
.qa-typed mark, .qa-line b { color: var(--brand-2); background: rgba(192, 139, 255, 0.14); border-radius: 5px; padding: 0 2px; font-weight: 600; }
.qa-caret { flex: none; display: inline-block; width: 2px; height: 1.15em; margin-left: -10px; background: var(--brand-2); animation: blink 1s steps(1) infinite; vertical-align: -0.2em; }
@keyframes blink { 50% { opacity: 0; } }
.qa-enter { margin-left: auto; flex: none; font: 500 13px/1 var(--mono); color: var(--muted); padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line-2); transition: color .2s, background .2s; }
.qa-enter.on { color: #fff; background: var(--purple); border-color: transparent; }
.qa-chips { list-style: none; margin: 16px 0 0; padding: 0 6px; display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text);
  padding: 7px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2);
}
.chip::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.chip-date { color: #FFB27A; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h11l-1.5 4L16 12H5'/%3E%3C/svg%3E"); }
.chip-prio { color: #FF8A8A; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 4v10M12 19.5v.5'/%3E%3C/svg%3E"); }
.chip-tag { color: var(--brand-1); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 3L7 21M17 3l-2 18M4 8.5h17M3 15.5h17'/%3E%3C/svg%3E"); }
.chip-list { color: #FF9F5A; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6' fill='black'/%3E%3C/svg%3E"); }
.chip-day { color: var(--sun); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.chip-tag, .chip-list, .chip-day, .chip-date, .chip-prio { border-color: color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); }
.qa-live .chip { animation: chip-in .35s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.qa-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.qa-line { padding: 16px 22px; border-radius: 16px; background: rgba(30, 26, 48, 0.92); border: 1px solid var(--line-2); font-size: 18px; }
/* With JavaScript the examples are typed into the box; the list stays for screen readers */
.js .qa-examples { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .qa-stage { display: none; }
.qa-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 40px 0 0; }
.qa-legend div { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.qa-legend dt { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-legend code { color: var(--brand-2); font-size: 13px; }
.qa-legend dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* The agents Yasa works with */
.agents { display: grid; gap: 16px; }
.agent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent-list li {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.agent-list small { color: var(--muted); font-weight: 500; font-size: 12px; }
.agent-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.agent-list .agent-any { color: var(--muted); border-style: dashed; justify-content: center; font-weight: 500; }
.agents-note { color: var(--muted); font-size: 13.5px; }
.connect-copy .agents-note { margin-top: 20px; font-size: 14.5px; }
.agents .term-line { margin: 0; font: 400 13px/1.6 var(--mono); font-variant-ligatures: none; }
.agents .term-line code { background: none; padding: 0; color: var(--text); font-size: inherit; overflow-wrap: anywhere; }
.asks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.asks li { font-size: 14.5px; font-style: italic; color: var(--soft); padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }

/* Connect */
.connect { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.connect-copy p:not(.kicker):not(.agents-note) { color: var(--soft); font-size: 17.5px; margin-top: 20px; }
.terminal { border-radius: 16px; background: #0D0B18; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 6px rgba(255, 255, 255, 0.02); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; }
.term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { margin-left: auto; margin-right: auto; color: var(--muted); font-size: 12.5px; transform: translateX(-24px); }
.term-body { padding: 20px 22px 24px; font: 400 14px/1.7 var(--mono); font-variant-ligatures: none; color: var(--soft); display: grid; gap: 6px; }
.term-body code { background: none; padding: 0; font-size: inherit; color: var(--text); overflow-wrap: anywhere; }
.terminal.in .term-body > p { animation: term-in .5s both; }
.terminal.in .term-body > p:nth-child(2) { animation-delay: .7s; }
.terminal.in .term-body > p:nth-child(3) { animation-delay: 1.3s; }
.terminal.in .term-body > p:nth-child(4) { animation-delay: 2s; }
.terminal.in .term-body > p:nth-child(5) { animation-delay: 2.7s; }
@keyframes term-in { from { opacity: 0; transform: translateY(6px); } }
.term-result { color: #6C6688; padding-left: 20px; font-size: 13px; }
.term-line { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.prompt { color: var(--brand-3); margin-right: 6px; }
.term-chat .you { color: #160F26; background: var(--brand-1); font-weight: 600; padding: 1px 7px; border-radius: 5px; margin-right: 8px; font-size: 12.5px; }
.term-tool span { color: var(--green); margin-right: 4px; }
.term-tool b { color: var(--brand-2); font-weight: 500; }
.term-out { color: var(--text); padding-left: 20px; }
.term-out u { text-decoration-color: var(--brand-2); text-underline-offset: 3px; }
.copy {
  font: 600 12.5px/1 var(--sans); color: var(--soft); cursor: pointer; flex: none;
  padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2);
  transition: color .2s, background .2s;
}
.copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.copy.done { color: var(--green); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: border-color .3s;
}
.tile:hover { border-color: rgba(143, 140, 255, 0.3); }
.tile-copy { padding: 28px 28px 24px; }
.tile h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.tile p { color: var(--soft); font-size: 15.5px; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile-wide .tile-copy { flex: 0 0 42%; }
.tile-flip { flex-direction: row-reverse; }
/* The little pictures of the app inside the tiles: drawn, in the app's dark colors */
.repeat-demo, .palette, .md-demo, .col-demo, .lock-demo, .switches {
  margin: auto 28px 28px; padding: 16px 18px; border-radius: 14px; background: #1E1D26; border: 1px solid var(--line);
  font-size: 14px; color: #D6D3E4;
}
.tile-wide .repeat-demo, .tile-wide .switches { flex: 1; margin: 28px; }

.repeat-demo { display: grid; gap: 12px; }
.rp-row { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.rp-row b { padding: 6px 12px; border-radius: 8px; background: #2A2935; border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.rp-days { display: flex; gap: 6px; }
.rp-days i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); background: #2A2935; border: 1px solid var(--line); }
.rp-days i.on { color: #fff; background: linear-gradient(135deg, #5B57E6, var(--purple)); border-color: transparent; }
.rp-says { color: var(--text) !important; font-size: 14.5px !important; font-weight: 500; padding-top: 10px; border-top: 1px solid var(--line); }
.rp-next { color: var(--brand-2) !important; font-size: 13.5px !important; }

.palette { padding: 10px; }
.pl-input { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; background: #2A2935; font-weight: 500; color: var(--text); }
.pl-input .qa-caret { margin-left: -11px; }
.palette ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.palette li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--soft); }
.palette li.on { background: var(--tint); color: var(--text); box-shadow: inset 2px 0 0 var(--brand-1); }
.palette em { font-style: normal; white-space: nowrap; font-size: 12px; }

.md-demo { line-height: 1.6; }
.md-demo ul { margin: 6px 0; padding-left: 20px; }
.md-demo i { color: var(--text); }
.md-demo u { color: var(--brand-1); text-underline-offset: 3px; }
.md-check { display: flex; align-items: center; gap: 8px; }
.box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--muted); }
.box.on { border-color: transparent; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

.col-demo { display: grid; gap: 8px; padding: 12px; }
.cd-head { display: flex; justify-content: space-between; padding: 2px 4px; }
.cd-head span { color: var(--muted); }
.cd-card { padding: 10px 12px; border-radius: 9px; background: #2A2935; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.cd-foot { text-align: center; font-size: 13px; color: var(--brand-2); padding: 6px; border-radius: 8px; border: 1px dashed var(--tint-line); }

.lock-demo { display: grid; justify-items: center; gap: 10px; padding: 20px 18px; text-align: center; }
.lock-demo svg { width: 34px; height: 34px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; }
.ld-field { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 220px; padding: 8px 12px; border-radius: 9px; background: #2A2935; border: 1px solid var(--tint-line); letter-spacing: 2px; text-align: left; }
.ld-field .qa-caret { margin-left: -11px; }
.ld-hint { font-size: 12.5px; color: var(--brand-1); }

.stats { margin: auto 0 0; padding: 0 28px 28px; display: grid; gap: 14px; }
/* One column for the numbers, as wide as the widest in this language, so the descriptions line up */
.stats { grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; }
.stats div { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.stats dt { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; min-width: 92px; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dt .kbd { font-size: 14px; color: var(--text); letter-spacing: 0; }
.stats dd { margin: 0; color: var(--muted); font-size: 14px; }

.switches { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; padding: 14px 18px; }
.switches li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--soft); border-bottom: 1px solid var(--line); }
.switches li::after { content: ''; flex: none; width: 34px; height: 20px; border-radius: 99px; background: #3A3848 radial-gradient(circle at 10px 50%, #C9C6D6 6px, transparent 6.5px); transition: background .3s; }
.switches li.on::after { background: radial-gradient(circle at 24px 50%, #fff 6px, transparent 6.5px), linear-gradient(90deg, #5B57E6, var(--purple)); }
.switches li.on { color: var(--text); }

/* Sync: two computers' changes meeting in one task */
.merge { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 960px; margin: 0 auto; }
.merge-side { display: grid; gap: 14px; }
.m-card { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.m-card p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 6px; font-size: 15.5px; color: var(--soft); }
.m-card s { color: var(--muted); }
.m-device { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); }
.m-what { font-size: 13px; color: var(--muted); }
.m-done { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.m-result { padding: 24px; background: linear-gradient(180deg, rgba(117, 55, 191, 0.18), rgba(255, 255, 255, 0.02)); border-color: var(--tint-line); box-shadow: 0 30px 80px -30px rgba(117, 55, 191, 0.6); }
.m-result p { font-size: 17px; }
.m-result .m-what { color: var(--green); font-weight: 600; }
.merge-arrow svg { width: 80px; height: 24px; fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.merge-note { max-width: 720px; margin: 32px auto 0; text-align: center; color: var(--soft); font-size: 16px; }
.values-sync { margin-top: clamp(40px, 5vw, 56px); }

/* Themes */
.theme-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.theme-picker button {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 14px/1 var(--sans); color: var(--soft); cursor: pointer;
  padding: 9px 14px 9px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  transition: color .2s, border-color .2s, background .2s;
}
.theme-picker button::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--p) 50%, var(--a) 50%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.theme-picker button:hover { color: var(--text); }
.theme-picker button[aria-selected="true"] { color: var(--text); border-color: rgba(143, 140, 255, 0.6); background: var(--tint); }
/* The color schemes: the gradients first, as the app lists them, then the solid colors in the theme's tone */
.color-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: -14px auto 32px; max-width: 760px; }
.color-label { display: inline-flex; gap: 8px; align-items: baseline; margin-right: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.color-label b { color: var(--soft); font-weight: 600; min-width: 9ch; }
.color-picker button {
  --c: var(--dark);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--g, var(--c)); border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  outline-offset: 3px; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.color-picker button:hover:not(:disabled) { transform: scale(1.12); }
.color-picker button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--soft); }
.color-picker button:disabled { opacity: 0.25; cursor: not-allowed; }
.color-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.color-note { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 13px; }
.color-pro { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.theme-stage { margin: 0 auto; max-width: 1000px; position: relative; }
.theme-stage::before { content: ''; position: absolute; inset: 8% 6% -2%; z-index: -1; filter: blur(70px); background: radial-gradient(closest-side, rgba(117, 55, 191, 0.45), transparent); }
.theme-img { border-radius: 12px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85); transition: opacity .25s; width: 100%; }
.theme-img.fading { opacity: 0.25; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value h3 { font-size: 19px; margin: 18px 0 8px; }
.value p { color: var(--soft); font-size: 15.5px; }
.v-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(143, 140, 255, 0.2), rgba(255, 122, 184, 0.12)); border: 1px solid rgba(143, 140, 255, 0.25); }
.v-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Download */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.platform {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.platform.current {
  background: linear-gradient(180deg, rgba(117, 55, 191, 0.16), rgba(255, 255, 255, 0.02));
  border-color: rgba(192, 139, 255, 0.45);
  box-shadow: 0 30px 80px -30px rgba(117, 55, 191, 0.6);
}
.p-head { display: flex; gap: 14px; align-items: flex-start; }
.p-head h3 { font-size: 22px; font-weight: 700; }
.p-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.p-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.p-icon svg { width: 22px; height: 22px; fill: var(--text); }
.platform[data-platform="linux"] .p-icon svg { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-badge { display: none; position: absolute; top: -11px; right: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; color: #160F26; background: var(--grad); }
.platform.current .p-badge { display: block; }
.p-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.p-actions .btn { width: 100%; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 11px; background: #0D0B18; border: 1px solid var(--line); }
.cmd code { background: none; padding: 0; color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.cmd code::before { content: '$ '; color: var(--brand-3); }
[hidden] { display: none !important; }
.p-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-pair .btn { padding-inline: 10px; font-size: 14px; }
.p-pair .btn.soon { flex-direction: column; gap: 6px; }
.p-help { border-top: 1px solid var(--line); padding-top: 14px; }
.p-help summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  color: var(--soft); font-size: 14px; font-weight: 600;
}
.p-help summary::-webkit-details-marker { display: none; }
.p-help summary::before {
  content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform .2s; margin-right: 2px;
}
.p-help[open] summary::before { transform: rotate(45deg); }
.p-help summary:hover { color: var(--text); }
.p-help p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.p-help p b { color: var(--soft); font-weight: 600; }
.p-help .cmd { margin-top: 10px; }
.p-note { color: var(--muted); font-size: 13.5px; margin-top: auto; }
.p-version { color: var(--muted); font-size: 12.5px; margin-top: -10px; opacity: 0.8; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--soft); padding: 0 0 24px; max-width: 680px; }

/* Final call */
.final { padding-bottom: clamp(72px, 10vw, 128px); }
.final-inner {
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
  padding: clamp(48px, 7vw, 80px) 24px; border-radius: 28px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(117, 55, 191, 0.38), transparent 70%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.final-inner img { filter: drop-shadow(0 16px 30px rgba(255, 193, 69, 0.35)); }
.final-inner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; max-width: 680px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer .brand { font-size: 16px; color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer nav a { color: var(--soft); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer-langs a[aria-current] { color: var(--text); font-weight: 600; }
.footer-inner > .footer-langs { flex-basis: 100%; order: 3; gap: 6px 16px; font-size: 13.5px; }
.footer-inner > p { margin-left: auto; }

/* Screenshots open full size */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 4px; }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 56px);
  border: 0; background: transparent; color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in .2s ease; }
.lightbox::backdrop { background: rgba(8, 6, 18, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: min(100%, 1600px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain;
  border-radius: 12px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9); cursor: default;
}
.lightbox figcaption { color: var(--soft); font-size: 14.5px; text-align: center; max-width: 760px; }
.lightbox button {
  position: fixed; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: rgba(28, 22, 52, 0.8); border: 1px solid var(--line-2);
  transition: background .2s;
}
.lightbox button:hover { background: rgba(52, 42, 90, 0.9); }
.lightbox button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@keyframes lb-in { from { opacity: 0; } }
@media (max-width: 720px) {
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lightbox img { max-height: calc(100vh - 180px); }
}

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Narrower screens ---- */
@media (max-width: 1000px) {
  .problems, .values, .platforms { grid-template-columns: 1fr 1fr; }
  .connect, .tour, .split { grid-template-columns: 1fr; }
  .split-flip .split-copy { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide, .tile-flip { grid-column: span 2; }
  .float-card-a { right: 2%; } .float-card-b { left: 2%; }
  .qa-legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner > .btn { margin-left: auto; }
  .lang + .btn { margin-left: 0; }
  .lang { margin-left: auto; }
  .lang-name { display: none; }
  .problems, .values, .platforms, .bento { grid-template-columns: 1fr; }
  .tour-step { padding: 14px 14px; }
  .tour-step:not([aria-selected="true"]) .tour-copy span { display: none; }
  .agent-list { grid-template-columns: 1fr 1fr; }
  .tile-wide, .tile-flip { grid-column: auto; flex-direction: column; align-items: stretch; }
  .tile-wide .tile-copy { flex: none; }
  .tile-wide .repeat-demo, .tile-wide .switches { margin: 0 20px 20px; }
  .switches { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .shot-tilt { transform: none; }
  .footer-inner > p { margin-left: 0; }
  .term-body { font-size: 12.5px; padding: 16px; }
  .term-line { flex-wrap: wrap; }
  .merge { grid-template-columns: 1fr; }
  .merge-arrow { justify-self: center; transform: rotate(90deg); }
  .qa-legend { grid-template-columns: 1fr 1fr; }
  .p-actions .btn { white-space: normal; text-align: center; flex-wrap: wrap; row-gap: 6px; }
  .platform { padding: 22px; }
  .qa-box { min-height: 60px; padding: 14px 16px; }
  .mini-win { width: 52%; }
  .mini-badge { right: auto; left: 0; }
  .mb-menus span { display: none; }
  /* Translations differ in length: keep these the same shape in every language */
  .cta .btn { flex: 1 1 auto; }
  .stats dt { font-size: 26px; }
  .agent-list li { flex-wrap: wrap; row-gap: 2px; }
  .agent-list small { margin-left: 18px; }
  .p-pair { grid-template-columns: minmax(0, 1fr); }
  .p-pair .btn { padding-inline: 20px; font-size: 15px; }
  .p-pair .btn.soon { flex-direction: row; gap: 10px; }
  .color-picker { display: grid; grid-template-columns: repeat(6, 26px); justify-content: center; gap: 12px; }
  .color-label, .color-note { grid-column: 1 / -1; justify-self: center; width: max-content; max-width: calc(100vw - 32px); margin: 0 0 2px; text-align: center; }
  .color-label b { min-width: 0; }
  .color-sep { grid-column: 1 / -1; width: 100%; height: 1px; margin: 0; }
}
@media (max-width: 480px) {
  .cta .btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .shot-tilt { transform: none; }
}
