/* Duo site: styles for What is new, How it works, Download, More from us.
   The base look (tokens, nav, hero, stage) lives inline in index.html. */

/* ---------- hero: what is new pill ---------- */
.new-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  font-size: 13.5px; color: var(--muted);
  transition: box-shadow 200ms ease, color 200ms ease;
}
.new-pill b { color: var(--ink); font-weight: 600; }
.new-pill .go {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(41, 151, 255, 0.16); color: var(--link);
  font-size: 12.5px; font-weight: 600;
}
.new-pill .go svg { width: 11px; height: 11px; transition: transform 200ms var(--ease-out); }
.new-pill:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.new-pill:hover .go svg { transform: translateX(2px); }

/* ---------- what is new in 1.2 ---------- */
.new-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.new-card {
  position: relative;
  padding: 30px 28px;
  border-radius: 26px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.new-card::before {
  content: ""; position: absolute; top: -45%; right: -25%; width: 75%; height: 95%;
  background: radial-gradient(closest-side, rgba(122, 199, 255, 0.13), transparent);
  pointer-events: none;
}
.new-card.warm::before { background: radial-gradient(closest-side, rgba(196, 139, 255, 0.14), transparent); }
.new-card > * { position: relative; }
.new-card .k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.new-card h3 { margin: 8px 0 8px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.new-card p { margin: 0; font-size: 15px; color: var(--muted); }

.timing { margin: 26px 0 0; display: grid; gap: 12px; }
.t-bars { display: grid; gap: 12px; }
.t-row { display: grid; grid-template-columns: 34px 1fr 58px; align-items: center; gap: 12px; }
.t-ver { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-track { position: relative; height: 12px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.t-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
/* 1.1: a 1.25 s snap, then 2 s before the live screen came back (3.25 s is the full track) */
.t-old .t-fill {
  width: 100%;
  background:
    linear-gradient(90deg, #6e6e74 0 38.46%, transparent 38.46%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 4px, rgba(255, 255, 255, 0.06) 4px 8px);
}
/* 1.2: about half a second in all */
.t-new .t-fill { width: 15.4%; background: linear-gradient(90deg, #7ac7ff, #c48bff); box-shadow: 0 0 16px rgba(122, 199, 255, 0.55); }
.t-val { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
/* armed by release.js so the bars start empty and fill once they come into view */
.timing.armed:not(.play) .t-fill { clip-path: inset(0 100% 0 0); }
.timing.play .t-old .t-fill { animation: t-fill 3.25s linear both; }
.timing.play .t-new .t-fill { animation: t-fill 0.5s linear both; }
@keyframes t-fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.t-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 2px; }
.t-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--dim); }
.t-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 3px; margin-right: 6px; }
.t-legend .snap-old { background: #6e6e74; }
.t-legend .wait { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 2px, rgba(255, 255, 255, 0.06) 2px 4px); }
.t-legend .snap-new { background: linear-gradient(90deg, #7ac7ff, #c48bff); }
.replay {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--ink);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--ease-out);
}
.replay:hover { background: rgba(255, 255, 255, 0.14); }
.replay:active { transform: scale(0.96); }
.replay svg { width: 11px; height: 11px; }
.replay[hidden] { display: none; }
.grab {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline);
  font-size: 14.5px; color: var(--muted);
}
.grab svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #7ac7ff; }
.grab b { color: var(--ink); font-weight: 600; }

.where { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.where li {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 14px 13px;
  border-radius: 16px;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.where svg { width: 26px; height: 26px; color: #c48bff; }
.where b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.where span { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- how it works: side view diagrams ---------- */
.tile .fig { display: block; width: 100%; max-width: 240px; height: auto; margin: -4px 0 16px; }
.tile .fig .deck { fill: #3a3b41; }
.tile .fig .lid { stroke: #8e8e93; }
.tile .fig .ghost { stroke: rgba(196, 139, 255, 0.35); }
.tile .fig .arc { stroke: rgba(255, 255, 255, 0.5); }
.tile .fig text { fill: var(--muted); font: 600 10px var(--sans); }

/* ---------- under the hood ---------- */
.code {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #000;
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}
.code .c { color: var(--dim); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  padding: 26px 24px 28px;
  border-radius: 24px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.step .k { font-family: var(--mono); font-size: 12px; color: var(--link); }
.step h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- requirements and download ---------- */
.download { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.dl-card {
  padding: 30px 28px;
  border-radius: 26px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.dl-card h3 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.dl-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.dl-card p:last-child { margin-bottom: 0; }
.dl-card h4 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.dl-row { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center; }
.dl-note { font-size: 12.5px; color: var(--dim); }
.dl-note code, .dl-card li code {
  font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.1); color: var(--ink);
}
.req { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.req li { display: flex; gap: 12px; align-items: flex-start; }
.req li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #34c759; }
.req li b { color: var(--ink); font-weight: 600; }

.dl-main { display: grid; gap: 24px; }
.dl-top { display: flex; gap: 18px; align-items: center; }
.dl-top .app-icon svg { width: 84px; height: 84px; margin: -6px; }
.dl-top h3 { margin: 0 0 4px; }
.dl-top p { margin: 0; }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.big svg { width: 15px; height: 15px; }
.facts-list { margin: 0; display: grid; border-top: 1px solid var(--hairline); }
.facts-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.facts-list > div[hidden] { display: none; }
.facts-list dt { color: var(--dim); font-weight: 600; font-size: 13px; padding-top: 1px; }
.facts-list dd { margin: 0; color: var(--ink); min-width: 0; }
.facts-list .soft { color: var(--muted); }
.sha-line { display: flex; gap: 12px; align-items: flex-start; }
.hash { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink); word-break: break-all; }
.copy {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: var(--ink);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--ease-out);
}
.copy:hover { background: rgba(255, 255, 255, 0.16); }
.copy:active { transform: scale(0.95); }
.copy[hidden] { display: none; }
.copy.done { background: rgba(52, 199, 89, 0.2); color: #7ee2a0; }
.copy svg { width: 12px; height: 12px; }
.check-note { margin: 0; font-size: 13px; color: var(--dim); }
.check-note code { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: var(--ink); white-space: nowrap; }
.update-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(41, 151, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(41, 151, 255, 0.26);
  font-size: 14px; color: var(--muted);
}
.update-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--link); }
.update-note b { color: var(--ink); font-weight: 600; }

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-grid .dl-card { padding: 26px 24px; }
.notes-list, .install-steps { margin: 0; padding-left: 20px; display: grid; gap: 9px; font-size: 14.5px; color: var(--muted); }
.notes-list li::marker { color: var(--link); }
.install-steps li::marker { color: var(--dim); font-weight: 600; }
.install-steps b { color: var(--ink); font-weight: 600; }
.json-link { display: inline-block; margin-top: 14px; font-size: 13px; }

.open-steps { padding: 26px 24px; border-radius: 26px; background: rgba(255, 179, 92, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.28); }
.open-steps h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.open-steps p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); }
.open-steps p:last-child { margin: 0; }
.open-steps b { color: var(--ink); font-weight: 600; }
.open-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.open-opt { padding: 16px 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.16); font-size: 14px; color: var(--muted); }
.open-opt .k { margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #ffc98a; }
.open-opt ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.open-opt p { margin: 0; font-size: 14px; }
.cmd { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.cmd code {
  align-self: stretch; min-width: 0; display: block; white-space: normal; overflow-wrap: break-word; line-height: 1.5;
  padding: 8px 10px; border-radius: 9px; background: #000;
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-family: var(--mono); font-size: 12px; color: var(--ink);
}

.perm { background: rgba(41, 151, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(41, 151, 255, 0.28); }
.perm h3 { font-size: 22px; }
.perm ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.perm li b { color: var(--ink); font-weight: 600; }

/* ---------- more from us ---------- */
.more-card {
  display: flex; align-items: center; gap: 22px;
  max-width: 860px; margin: 0 auto;
  padding: 24px 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 179, 92, 0.09), rgba(255, 122, 89, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.22);
  color: var(--ink);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease;
}
.more-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.45), 0 20px 50px rgba(0, 0, 0, 0.45); }
.more-card .ico { flex: none; width: 64px; height: 64px; }
.more-card .k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.more-card h3 { margin: 2px 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.more-card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 52ch; }
.more-card .with-duo { margin-top: 8px; max-width: none; font-size: 13.5px; color: #ffc98a; }
.more-card:focus-visible { outline-offset: 4px; border-radius: 26px; }
.more-card .go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #ffb35c; font-weight: 600; font-size: 15px; white-space: nowrap; }
.more-card .go svg { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
.more-card:hover .go svg { transform: translateX(3px); }

@media (max-width: 860px) {
  .new-grid, .dl-grid { grid-template-columns: 1fr; }
  .open-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .dl-top { align-items: flex-start; }
  .dl-top .app-icon svg { width: 64px; height: 64px; }
  .more-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .more-card .go { margin-left: 0; }
  .new-card, .dl-card, .open-steps { padding: 24px 20px; }
}
@media (max-width: 460px) {
  .where { grid-template-columns: 1fr; }
  .facts-list > div { grid-template-columns: 1fr; gap: 4px; }
  .dl-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .timing.play .t-fill { animation: none; }
  .new-pill, .new-pill .go svg, .more-card, .more-card .go svg, .replay, .copy, .skip { transition: none; }
  .more-card:hover { transform: none; }
}
