/* Piaz Switch landing page. Light, airy, sky-blue — one accent, glass surfaces. */

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #333a48;
  --quiet: #64748b;
  --line: #e3e8ef;
  --line-soft: #edf1f6;
  --accent: #3466e2;
  --accent-hi: #5588f0;
  --accent-soft: #e6efff;
  --accent-ink: #2154b4;
  --orange: #f07a2b;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(20 36 65 / 0.05);
  --shadow: 0 4px 22px rgb(20 36 65 / 0.08);
  --shadow-lg: 0 30px 80px -20px rgb(20 50 110 / 0.35);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- language ---------- */
:root[data-lang="vi"] body [lang="en"],
:root[data-lang="en"] body [lang="vi"] {
  display: none !important;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p a,
.dl-foot a,
.lede a,
.faq a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--line-soft);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
}
svg use {
  pointer-events: none;
}
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 8px;
}
main:focus {
  outline: none;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- buttons ---------- */
.brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  background: linear-gradient(var(--accent-hi) 0%, var(--accent) 100%);
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  transition: filter 0.2s ease-out, transform 0.2s ease-out;
  box-shadow: inset 0 1px #fff9, inset 0 0 0 1px #ffffff29, inset 0 -1px 1px #0000001f, 0 6px 16px -6px rgb(52 102 226 / 0.6);
}
.brand-button:hover {
  filter: brightness(1.1);
}
.brand-button:active {
  filter: brightness(0.95);
  transform: scale(0.985);
}
.brand-button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.brand-button.compact {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}
.brand-button.regular {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
}
.brand-button.full,
.ghost-button.full {
  width: 100%;
}
.brand-button.glass {
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px #ffffff55, 0 8px 24px rgb(0 0 0 / 0.12);
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s;
}
.ghost-button:hover {
  background: var(--bg);
  border-color: #cfd8e3;
}

/* ---------- nav ---------- */
.site-header {
  position: fixed;
  z-index: 80;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1160px;
}
.nav-surface {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 9px 12px 9px 20px;
  border: 1px solid #e3e3e3;
  border-radius: 36px;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 22px rgb(20 36 65 / 0.08);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.wordmark img {
  border-radius: 8px;
}
.desktop-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.desktop-links a {
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.desktop-links a:hover {
  background: var(--line-soft);
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.icon-link,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  color: var(--quiet);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.icon-link:hover,
.menu-toggle:hover {
  color: var(--ink);
  background: var(--line-soft);
}
.icon-link svg,
.menu-toggle svg {
  width: 19px;
  height: 19px;
}
.nav-actions .brand-button {
  margin-left: 6px;
}
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  margin-right: 4px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.lang-opt {
  padding: 4px 9px;
  border-radius: 9999px;
  color: var(--quiet);
  transition: background 0.2s, color 0.2s;
}
:root[data-lang="vi"] .lang-opt[data-opt="vi"],
:root[data-lang="en"] .lang-opt[data-opt="en"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}
.menu-toggle {
  display: none;
}
.mobile-menu {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.mobile-menu > a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 17px;
}
.mobile-menu > a:hover {
  background: var(--line-soft);
}
.mobile-social {
  display: flex;
  gap: 8px;
  padding: 10px 6px 4px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.mobile-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.mobile-social svg {
  width: 16px;
  height: 16px;
}

/* ---------- hero ---------- */
.hero {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 148px;
}
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
  grid-template-areas:
    "headline actions"
    "proof actions";
  gap: 28px 96px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px 48px;
}
.hero h1 {
  grid-area: headline;
  max-width: 760px;
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero-actions {
  grid-area: actions;
  align-self: end;
}
.hero-actions > p {
  max-width: 460px;
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
}
.hero-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.fine-print {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--quiet);
}
.version-chip {
  padding: 1px 8px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 12px;
}
.social-proof {
  grid-area: proof;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.author-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--quiet);
}
.author-proof strong {
  color: var(--ink);
  font-weight: 600;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--accent-soft);
}
.proof-links {
  display: flex;
  gap: 6px;
}
.proof-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}
.proof-links a:hover {
  border-color: #c7d2e0;
  color: var(--ink);
}
.proof-links svg {
  width: 15px;
  height: 15px;
}
.proof-links a:first-child svg {
  color: #ff0033;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--quiet);
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--line-soft);
}
.trust-badge svg {
  width: 13px;
  height: 13px;
}

/* ---------- sky stage ---------- */
.demo-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 16px;
  border-radius: var(--radius-lg);
  min-height: 720px;
}
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, #1a5fe0 0%, rgb(26 95 224 / 0) 60%),
    linear-gradient(180deg, #1d68e6 0%, #3b8ff0 28%, #79bdf6 52%, #c4e5fc 72%, #eef8ff 88%, #ffffff 100%);
}
.sky-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 18% at 12% 8%, rgb(186 140 255 / 0.45), transparent 70%),
    radial-gradient(30% 14% at 70% 62%, rgb(255 170 230 / 0.25), transparent 70%),
    radial-gradient(60% 30% at 50% 42%, rgb(170 240 255 / 0.35), transparent 70%);
}
.waves {
  position: absolute;
  left: 0;
  top: 14%;
  width: 100%;
  height: 60%;
}
.wave {
  stroke-dasharray: 1400 600;
  animation: drift 14s linear infinite;
}
.w2 {
  animation-duration: 19s;
  animation-direction: reverse;
  opacity: 0.85;
}
.w3 {
  animation-duration: 24s;
  opacity: 0.7;
}
@keyframes drift {
  to {
    stroke-dashoffset: -2000;
  }
}
.float-chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: rgb(255 255 255 / 0.18);
  border: 1px solid rgb(255 255 255 / 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgb(10 60 160 / 0.2);
  animation: bob 7s ease-in-out infinite;
}
.float-chip svg {
  width: 18px;
  height: 18px;
}
.c1 { left: 6%; top: 34%; }
.c2 { left: 13%; top: 52%; animation-delay: -2s; width: 32px; height: 32px; }
.c3 { left: 19%; top: 28%; animation-delay: -4s; }
.c4 { right: 7%; top: 30%; animation-delay: -1s; }
.c5 { right: 15%; top: 50%; animation-delay: -3s; width: 32px; height: 32px; }
.c6 { right: 21%; top: 24%; animation-delay: -5s; }
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0%, rgb(255 255 255 / 0.85) 45%, rgb(255 255 255 / 0) 100%);
  filter: blur(2px);
}
.cl1 { width: 520px; height: 260px; left: -120px; bottom: -40px; }
.cl2 { width: 600px; height: 300px; right: -160px; bottom: 20px; }
.cl3 { width: 380px; height: 200px; right: 10%; bottom: -90px; }

.demo-wrap {
  position: relative;
  padding: 64px 28px 72px;
}
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 560px;
  margin: 0 auto 18px;
  padding: 6px;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgb(31 78 148 / 0.08);
}
.demo-tabs [role="tab"] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  border: 0;
  border-radius: 9999px;
  font: inherit;
  font-size: 15px;
  color: #2c4a7a;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.demo-tabs [role="tab"] svg {
  width: 16px;
  height: 16px;
}
.demo-tabs [role="tab"]:hover {
  background: rgb(255 255 255 / 0.5);
}
.demo-tabs [role="tab"][aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tab-progress {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 60px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: rgb(52 102 226 / 0.15);
  overflow: hidden;
  opacity: 0;
}
.tab-progress > span {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
}
[aria-selected="true"] .tab-progress {
  opacity: 1;
}
.demo-stage.playing [aria-selected="true"] .tab-progress > span {
  animation: progress var(--tab-ms, 7000ms) linear forwards;
}
@keyframes progress {
  to {
    width: 100%;
  }
}
.app-window {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgb(255 255 255 / 0.25);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #f5f6f8;
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.window-title {
  margin: 0 auto;
  padding-right: 50px;
  font-size: 12.5px;
  color: var(--quiet);
  font-weight: 500;
}
.app-window img {
  width: 100%;
  height: auto;
  aspect-ratio: 1720 / 1280;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.35s ease;
}
.app-window img.fading {
  opacity: 0;
}
.window-caption {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--quiet);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

/* ---------- sections ---------- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 28px 0;
}
.section.narrow {
  max-width: 820px;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: 18px;
  color: var(--quiet);
}
.lede strong {
  color: var(--ink);
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--quiet);
  font-size: 15.5px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.oss-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(120deg, #0f172a 0%, #1b2a4a 60%, #22407e 100%);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.oss-card:hover {
  transform: translateY(-2px);
}
.oss-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.1);
}
.oss-mark svg {
  width: 28px;
  height: 28px;
}
.oss-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: #c4cfe0;
}
.oss-text strong {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.oss-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.1);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.stat svg {
  width: 15px;
  height: 15px;
  color: #fbbf24;
}
.stat + .stat svg {
  color: #93c5fd;
}
.oss-go {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.oss-go svg {
  width: 18px;
  height: 18px;
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.bento-wide .bento-copy h3 {
  font-size: 24px;
}
.mock-menu {
  padding: 8px;
  border-radius: 12px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgb(20 50 110 / 0.35);
  font-size: 13.5px;
}
.mm-head {
  padding: 6px 10px 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--quiet);
}
.mm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 30px;
  border-radius: 7px;
  position: relative;
}
.mm-item svg {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.mm-item em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}
.mm-item.on {
  background: var(--accent-soft);
  font-weight: 500;
}
.mm-item.plain svg {
  color: var(--ink-2);
}
.mm-sep {
  height: 1px;
  margin: 5px 6px;
  background: var(--line);
}
.mock-bars {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.bar {
  display: grid;
  grid-template-columns: 42px 1fr 38px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--quiet);
}
.pct {
  text-align: right;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.track {
  position: relative;
  height: 6px;
  border-radius: 9999px;
  background: var(--line-soft);
}
.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
}
.fill.ok { background: #34a853; }
.fill.warn { background: #ff9f0a; }
.pace {
  position: absolute;
  left: var(--p);
  top: -4px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: #5b6475;
}
.card.dark {
  background: linear-gradient(140deg, #0f172a, #182543);
  border-color: #1e2b48;
  color: #fff;
}
.card.dark p {
  color: #b8c4d8;
}
.card.dark .card-icon {
  background: rgb(255 255 255 / 0.08);
  color: #8bb7ff;
}
.card.dark code {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}
.mock-term {
  margin: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0a0f1c;
  border: 1px solid #22304d;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #d7deea;
  overflow-x: auto;
}
.mock-term .p { color: #8bb7ff; }
.mock-term .m { color: #fbbf24; }
.mock-term .g { color: #4ade80; }

.bento-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 22px;
}
.bento-strip h3 {
  margin-top: 0;
}
.bento-strip .bento-copy {
  flex: 1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 460px;
}
.chip {
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.chip.on {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: rgb(52 102 226 / 0.25);
}
.chip.dark {
  color: #fff;
  background: #1c1c1e;
  border-color: #1c1c1e;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(var(--accent-hi), var(--accent));
  box-shadow: inset 0 1px #fff9, 0 6px 14px -6px rgb(52 102 226 / 0.7);
}

/* ---------- download ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-card h3 {
  margin: 6px 0 0;
  font-size: 24px;
}
.dl-card h3 small {
  font-size: 15px;
  color: var(--quiet);
  font-weight: 500;
  margin-left: 4px;
}
.dl-os {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.dl-os svg {
  width: 26px;
  height: 26px;
}
.dl-card[data-os="windows"] .dl-os {
  color: #0078d4;
}
.dl-req {
  margin: -4px 0 6px !important;
  font-size: 14px !important;
}
.dl-note {
  margin-top: auto !important;
  padding-top: 6px;
  font-size: 13.5px !important;
}
.dl-card.suggested {
  border-color: rgb(52 102 226 / 0.55);
  box-shadow: 0 0 0 4px rgb(52 102 226 / 0.1), var(--shadow);
}
.dl-card.suggested::after {
  content: attr(data-suggest);
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
}
/* First launch on a Mac: Gatekeeper blocks an app not notarized by Apple. */
.mac-guide {
  margin-top: 18px;
  padding: 32px;
  scroll-margin-top: 110px;
}
.mac-guide-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.mac-guide-head .dl-os {
  flex: none;
}
.mac-guide-head h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}
.mac-guide-head p {
  margin: 0;
  max-width: 760px;
}
.mac-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.mac-steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line-soft);
}
.mac-steps .step-n {
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.mac-steps p {
  margin: 0;
  font-size: 14.5px;
}
.mac-steps .mac-warn {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #9a3412;
  background: #fff1e6;
}
.mac-alt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mac-alt p {
  margin: 0;
  font-size: 14.5px;
}
.mac-cmd {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px 10px 16px;
  border-radius: 12px;
  background: #0f172a;
}
.mac-cmd code {
  flex: 1;
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: #e2e8f0;
  background: none;
  user-select: all;
}
.mac-copy {
  flex: none;
  padding: 6px 14px;
  font-size: 13px;
}
.mac-copy.done {
  color: #15803d;
}

.dl-foot {
  max-width: 760px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--quiet);
}

/* Install guide shown when a download starts. */
.install-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  overflow-y: auto;
}
/* Browsers without <dialog> would show it inline at the end of the page. */
.install-dialog:not([open]) {
  display: none;
}
.install-dialog[open] {
  animation: install-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.install-dialog::backdrop {
  background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@keyframes install-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
.install-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--quiet);
  background: var(--bg);
  cursor: pointer;
}
.install-close:hover {
  color: var(--ink);
  background: var(--line-soft);
}
.install-close svg {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}
.install-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 36px;
}
.install-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(var(--accent-hi), var(--accent));
  box-shadow: inset 0 1px #fff9, 0 8px 18px -8px rgb(52 102 226 / 0.8);
}
.install-badge svg {
  width: 24px;
  height: 24px;
  animation: install-drop 1.4s ease-in-out infinite;
}
@keyframes install-drop {
  50% {
    transform: translateY(2px);
  }
}
.install-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.install-head p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--quiet);
}
.install-dialog h3 {
  margin: 22px 0 12px;
  font-size: 16px;
  color: var(--ink);
}
.install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}
.install-steps li {
  position: relative;
  padding: 12px 14px 12px 50px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  counter-increment: install;
}
.install-steps li::before {
  content: counter(install);
  position: absolute;
  top: 11px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(var(--accent-hi), var(--accent));
}
.install-steps .mac-cmd {
  margin-top: 10px;
}
.install-dialog .mac-cmd code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.install-foot {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.install-foot p {
  margin: 0;
  font-size: 13.5px;
  color: var(--quiet);
}
.install-foot .brand-button {
  flex: none;
}
@media (max-width: 520px) {
  .install-dialog {
    padding: 22px 18px;
  }
  .install-foot {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .install-dialog[open],
  .install-badge svg {
    animation: none;
  }
}

/* ---------- author ---------- */
.author-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(85 136 240 / 0.14), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgb(240 122 43 / 0.1), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.author-photo {
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px -10px rgb(20 50 110 / 0.35);
  background: var(--accent-soft);
}
.author-copy h2 {
  font-size: clamp(30px, 3vw, 40px);
}
.author-copy > p:not(.eyebrow) {
  margin: 12px 0 22px;
  max-width: 620px;
  font-size: 17px;
  color: var(--ink-2);
}
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.social-button em {
  font-style: normal;
  font-weight: 400;
  color: var(--quiet);
  font-size: 14px;
}
.social-button svg {
  width: 19px;
  height: 19px;
}
.social-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: #cfd8e3;
}
.social-button.yt svg { color: #ff0033; }
.social-button.yt {
  background: #fff5f6;
  border-color: #ffd9de;
}

/* ---------- faq ---------- */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] {
  border-color: #cfd8e3;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--quiet);
  border-bottom: 2px solid var(--quiet);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--quiet);
}

/* ---------- final cta ---------- */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 120px 16px 0;
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
}
.sky.small {
  background: linear-gradient(180deg, #1d68e6 0%, #3b8ff0 45%, #8cc7f7 80%, #cfeafd 100%);
}
.final-inner {
  position: relative;
  padding: 96px 24px 104px;
}
.final-inner img {
  margin: 0 auto 22px;
  border-radius: 18px;
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.35);
}
.final-inner h2 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.final-inner p {
  margin: 14px auto 30px;
  max-width: 520px;
  font-size: 18px;
  color: rgb(255 255 255 / 0.9);
}

/* ---------- footer ---------- */
.site-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 28px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand p {
  margin: 14px 0 18px;
  max-width: 340px;
  color: var(--quiet);
  font-size: 14.5px;
}
.footer-brand p a {
  color: var(--ink);
  font-weight: 600;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  color: var(--ink);
  border-color: #c7d2e0;
}
.footer-social svg {
  width: 18px;
  height: 18px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--quiet);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--quiet);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .desktop-links {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .hero-intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "actions"
      "proof";
    gap: 24px;
    max-width: 800px;
    padding: 0 32px 40px;
  }
  .hero-download {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .card-grid.three,
  .steps,
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .mac-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .mac-guide {
    padding: 24px;
  }
  .oss-card {
    flex-wrap: wrap;
  }
  .oss-stats {
    margin-left: 0;
  }
  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  .author-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }
  .author-links {
    justify-content: center;
  }
}
@media (max-width: 680px) {
  .mac-steps {
    grid-template-columns: 1fr;
  }
  .mac-guide-head .dl-os {
    display: none;
  }
  .mac-cmd code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hide-sm,
  .nav-actions .brand-button {
    display: none;
  }
  .nav-surface {
    padding: 8px 8px 8px 16px;
  }
  .wordmark {
    font-size: 19px;
  }
  .hero {
    padding-top: 112px;
  }
  .hero-intro {
    padding: 0 20px 30px;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.035em;
  }
  .hero-actions > p {
    font-size: 16.5px;
  }
  .hero-download {
    flex-direction: column;
    align-items: stretch;
  }
  .demo-stage {
    margin: 0 8px;
    min-height: 0;
    border-radius: 20px;
  }
  .demo-wrap {
    padding: 28px 12px 36px;
  }
  .demo-tabs [role="tab"] {
    font-size: 13px;
    height: 38px;
  }
  .demo-tabs [role="tab"] svg {
    display: none;
  }
  .float-chip {
    display: none;
  }
  .window-bar {
    height: 28px;
  }
  .section {
    padding: 88px 20px 0;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .bento-strip {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  .chips {
    justify-content: flex-start;
  }
  .card {
    padding: 22px;
  }
  .final-cta {
    margin: 88px 8px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
