/* fly — getfly.space
   Requestly-style dark SaaS landing page. Near-black ground, blue accent,
   product windows as the imagery. */

:root {
  --bg: #050505;
  --bg-2: #0a0a0b;
  --surface: #0f0f11;
  --surface-2: #141417;
  --surface-3: #1a1a1e;
  --ink: #f5f5f7;
  --muted: #a1a1aa;
  --muted-2: #7d7d86;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-strong: #2563eb;
  --accent-ink: #ffffff;
  --green: #34d399;
  --amber: #f5b942;
  --red: #ff6b6b;
  --line: #1f1f23;
  --line-strong: #2a2a30;
  --radius: 12px;
  --radius-lg: 16px;
  --font-display: "Stack Sans Headline", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Stack Sans Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace; /* taste-skill-ignore: ticket codes are literal code */
  --wrap: 1180px;
  --gutter: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-strong);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Type ---------- */

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.6;
  max-width: 62ch;
}

.small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

/* ---------- Announcement + header ---------- */

.announcement {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  padding: 9px 16px;
}

.announcement a {
  color: var(--accent-2);
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--muted);
}

.header-github:hover {
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #1d4ed8;
  color: var(--accent-ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.9375rem;
}

.btn-ghost {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.text-link:hover {
  color: var(--accent);
}

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

.hero {
  padding: clamp(64px, 9vw, 110px) 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.16), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
}

.hero .lede {
  margin: 22px auto 0;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.hero-shot {
  position: relative;
  margin: 56px auto 0;
  max-width: 1040px;
}

.hero-shot .app-window {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 30px 120px rgba(59, 130, 246, 0.18);
}

.float-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float-label strong {
  color: var(--ink);
  font-weight: 500;
}

.float-label .dot {
  width: 6px;
  height: 6px;
}

.float-label-1 {
  top: 30%;
  left: -46px;
}

.float-label-2 {
  top: 8%;
  right: -28px;
  animation-delay: -1.5s;
}

.float-label-3 {
  bottom: 22%;
  left: -46px;
  animation-delay: -3s;
}

.float-label-4 {
  bottom: 14%;
  right: -38px;
  animation-delay: -4.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- App window (data-ui) ---------- */

.app-window {
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1000 / 720;
  background:
    radial-gradient(600px 320px at 85% -60px, rgba(47, 123, 255, 0.14), transparent 70%),
    radial-gradient(500px 300px at -80px 105%, rgba(64, 86, 178, 0.1), transparent 70%),
    linear-gradient(180deg, #1a2233 0%, #0d1422 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  color: #f2f5f9;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.app-sidebar {
  width: 208px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-bottom: 26px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.app-brand img {
  width: 30px;
  height: 30px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #9aa7bd;
  font-size: 14px;
}

.app-nav-item svg {
  flex-shrink: 0;
}

.app-nav-item.active {
  background: rgba(47, 123, 255, 0.16);
  color: #7fb0ff;
}

.app-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 2px 0;
}

.app-storage {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
}

.app-storage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-storage-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa7bd;
}

.app-storage-size {
  margin-top: 2px;
  font-size: 12.5px;
  color: #66718a;
}

.app-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f2f5f9;
  font-size: 12.5px;
  font-weight: 500;
}

.app-diagnostics {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #f2f5f9;
  font-size: 12.5px;
  font-weight: 600;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 30px 34px 40px;
  overflow: hidden;
}

.app-view {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.app-sub {
  margin: -12px 0 4px;
  color: #9aa7bd;
  font-size: 14px;
  line-height: 1.5;
}

.app-card {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  padding: 18px;
}

.app-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.app-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(47, 123, 255, 0.16);
  color: #7fb0ff;
  flex-shrink: 0;
}

.app-file-meta {
  flex: 1;
  min-width: 0;
}

.app-file-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-file-sub {
  margin-top: 5px;
  color: #9aa7bd;
  font-size: 12.5px;
  line-height: 1.45;
}

.app-file-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.app-btn-primary {
  background: #2f7bff;
  color: #fff;
}

.app-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #f2f5f9;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.app-row-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa7bd;
}

.app-segmented {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}

.app-segmented > span {
  padding: 6px 14px;
  border-radius: 7px;
  color: #9aa7bd;
  font-size: 12.5px;
  font-weight: 600;
}

.app-segmented > span.active {
  background: rgba(255, 255, 255, 0.12);
  color: #f2f5f9;
}

.app-hint {
  flex-basis: 100%;
  color: #66718a;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Logo strip ---------- */

.logo-strip {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
}

.logo-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.logo-strip p {
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.logo-strip span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 9vw, 110px) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  max-width: 18ch;
  margin: 0 auto;
}

.section-head .lede {
  margin: 16px auto 0;
}

/* ---------- Why cards ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 1.0625rem;
}

.why-card p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Wide card ---------- */

.wide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.wide-card h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  max-width: 16ch;
}

.wide-card .lede {
  margin-top: 14px;
  font-size: 1rem;
}

.wide-card .btn {
  margin-top: 22px;
}

.share-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.share-method {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.share-method .icon-box {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
}

.share-method h3 {
  font-size: 0.9375rem;
}

.share-method p {
  margin-top: 5px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Download card ---------- */

.download-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  box-shadow: 0 0 80px rgba(59, 130, 246, 0.1);
}

.os-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.os-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
}

.os-tabs button.active {
  background: var(--surface-3);
  color: var(--ink);
}

.os-tabs button:hover:not(.active) {
  color: var(--ink);
}

.os-tabs button:disabled {
  color: var(--muted-2);
  cursor: default;
}

.download-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.25rem;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-2);
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.channel-badge.alpha {
  background: rgba(245, 185, 66, 0.12);
  color: var(--amber);
}

.download-card .small {
  margin-top: 6px;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.download-meta {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.download-other {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.download-other a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-other a:hover {
  color: var(--ink);
}

.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
}

.feature-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-shot {
  order: 1;
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 16ch;
}

.feature-copy p {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.feature-copy .text-link {
  margin-top: 18px;
}

.feature-shot {
  position: relative;
}

.feature-shot .ui,
.feature-shot .path-demo {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 20px 80px rgba(59, 130, 246, 0.1);
}

/* ---------- Demo ---------- */

.demo-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 0 100px rgba(59, 130, 246, 0.12);
}

.demo-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0b0d;
  border: 1px solid var(--line);
}

.demo-stage .ui {
  border: 0;
  border-radius: 0;
  padding: 24px;
}

.demo-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-play:hover {
  background: var(--accent);
}

.demo-play:disabled {
  opacity: 0.65;
  cursor: default;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.demo-caption .ui-badge {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-2);
}

/* ---------- Security grid ---------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.security-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.security-card h3 {
  font-size: 1rem;
}

.security-card p {
  margin-top: 7px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.security-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Field notes ---------- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-mark {
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.note-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}

.note-source {
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

/* ---------- Final CTA ---------- */

.final-cta {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px) 32px;
  text-align: center;
  box-shadow: 0 0 100px rgba(59, 130, 246, 0.14);
}

.final-cta h2 {
  max-width: 18ch;
  margin: 0 auto;
}

.final-cta .lede {
  margin: 14px auto 0;
}

.final-cta .hero-actions {
  margin-top: 26px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 28ch;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.footer-social a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.footer-col h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 10px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted-2);
}

/* ---------- UI fragments (data-ui) ---------- */

.ui {
  background: #0b0b0d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--ink);
  font-family: var(--font-text);
}

.ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ui-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.ui-brand img {
  width: 20px;
  height: 20px;
}

.ui-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.ui-title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ui-sub {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.ui-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.ui-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
}

.ui-file-meta {
  min-width: 0;
  flex: 1;
}

.ui-file-name {
  font-size: 0.8125rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-file-size {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.ui-ticket {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.ui-ticket code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono); /* taste-skill-ignore: ticket code is literal code */
  color: var(--ink);
}

.ui-copy {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.8125rem;
  cursor: pointer;
}

.ui-copy:hover {
  background: var(--surface-2);
}

.ui-qr {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: 9px;
  background: #fff;
  margin: 14px auto;
}

.ui-qr img {
  width: 100%;
  height: 100%;
}

.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ui-row + .ui-row {
  margin-top: 9px;
}

.ui-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ui-value {
  font-size: 0.8125rem;
  color: var(--ink);
}

code.ui-value {
  font-family: var(--mono); /* taste-skill-ignore: match code is literal code */
  font-size: inherit;
}

.ui-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(245, 185, 66, 0.1);
  color: var(--amber);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.ui-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ui-btn {
  flex: 1;
  border: 0;
  border-radius: 7px;
  padding: 9px 10px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.ui-btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.ui-progress {
  margin-top: 14px;
}

.ui-track {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.ui-fill {
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s linear;
}

.ui-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 500;
}

.ui-badge-relay {
  background: rgba(245, 185, 66, 0.12);
  color: var(--amber);
}

.ui-divider {
  height: 1px; /* taste-skill-ignore: product interface divider */
  background: var(--line);
  margin: 12px 0;
}

.ui-stopped .ui-ticket,
.ui-stopped .ui-qr,
.ui-stopped .ui-warning {
  opacity: 0.35;
}

/* ---------- Path demo ---------- */

.path-demo {
  width: 100%;
  background: #0b0b0d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--ink);
}

.path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.path-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.path-title img {
  width: 18px;
  height: 18px;
}

.path-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 7px;
  background: var(--surface);
}

.path-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.path-toggle button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--ink);
}

.path-canvas {
  position: relative;
  height: 250px;
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.path-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.path-demo[data-path="direct"] .path-line-direct,
.path-demo[data-path="relayed"] .path-line-relayed {
  opacity: 1;
  animation: dash 1.1s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -24;
  }
}

.path-node {
  position: absolute;
  width: 118px;
  padding: 12px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: center;
}

.path-node-left {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.path-node-right {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.path-node svg {
  margin: 0 auto 6px;
  color: var(--muted);
}

.path-node strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.path-node span {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.path-relay {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(8px);
  width: 96px;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.path-demo[data-path="relayed"] .path-relay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.path-relay strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.path-relay span {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.path-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.path-status strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.path-demo[data-path="relayed"] .dot {
  background: var(--amber);
}

.path-note {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Download page ---------- */

.download-hero {
  padding: clamp(64px, 8vw, 100px) 0 40px;
  text-align: center;
}

.download-hero h1 {
  max-width: 16ch;
  margin: 0 auto;
}

.download-hero .lede {
  margin: 18px auto 0;
}

.download-hero .small {
  margin-top: 12px;
}

.download-section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.download-grid h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

.download-grid p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 48ch;
}

.download-grid ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.download-grid li + li {
  margin-top: 8px;
}

.platform-notes {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.platform-notes h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.platform-notes p {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.checksum {
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.checksum summary {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink);
}

.checksum code {
  display: block;
  margin-top: 10px;
  font-family: var(--mono); /* taste-skill-ignore: checksums are literal code */
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.checksum-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.checksum-row {
  display: grid;
  gap: 3px;
}

.checksum-row code:first-child {
  margin-top: 0;
  color: var(--ink);
}

.checksum-row code:last-child {
  margin-top: 0;
  font-size: 0.8125rem;
}

.download-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.download-panel .ui {
  height: 100%;
}

/* ---------- Prose (privacy) ---------- */

.prose {
  max-width: 760px;
  padding: clamp(64px, 8vw, 100px) 0 clamp(80px, 9vw, 120px);
}

.prose h1 {
  max-width: 12ch;
}

.prose h2 {
  margin-top: 48px;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}

.prose p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 64ch;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Share page ---------- */

.share-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.share-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 80px;
}

.share-card {
  width: min(100%, 540px);
  padding: 34px 30px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(59, 130, 246, 0.12);
  animation: share-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes share-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.share-card h1 {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  max-width: 16ch;
}

.share-card .lede {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted-light, #b8c4d6);
}

.share-ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.share-ticket code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono); /* taste-skill-ignore: ticket code is literal code */
  font-size: 0.875rem;
  color: var(--muted-light, #b8c4d6);
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.share-actions .btn {
  width: 100%;
}

.share-auto {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--muted-light, #b8c4d6);
}

.share-fallback {
  margin-top: 26px;
}

.share-fallback h2 {
  font-size: 1.0625rem;
  font-family: var(--font-text);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.share-fallback p {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--muted-light, #b8c4d6);
}

.share-paste {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.share-paste input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--mono); /* taste-skill-ignore: ticket input is literal code */
  font-size: 0.875rem;
}

.share-paste input::placeholder {
  color: var(--muted-2);
}

.share-error {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--red);
}

.share-privacy {
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-light, #b8c4d6);
}

.hidden {
  display: none !important;
}

/* ---------- Reveal / motion ---------- */

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

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.06s;
}

.reveal-delay-2 {
  transition-delay: 0.12s;
}

.reveal-delay-3 {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  :root {
    --gutter: 24px;
  }

  .nav {
    display: none;
  }

  .hero-shot {
    margin-top: 40px;
  }

  .float-label {
    display: none;
  }

  .app-window {
    display: block;
    aspect-ratio: auto;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    padding: 24px;
  }

  .security-grid,
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-shot {
    order: initial;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-panels {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  .site-header .wrap {
    padding: 12px 0;
  }

  .header-github {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 1.6rem + 4vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-shot {
    margin-top: 32px;
  }

  .why-grid,
  .security-grid,
  .notes-grid,
  .share-methods {
    grid-template-columns: 1fr;
  }

  .logo-strip .wrap {
    gap: 12px 18px;
  }

  .logo-strip p {
    width: 100%;
    text-align: center;
  }

  .os-tabs {
    display: flex;
    width: 100%;
  }

  .os-tabs button {
    flex: 1;
    padding: 7px 8px;
    white-space: nowrap;
  }

  .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-actions .btn {
    width: 100%;
  }

  .app-main {
    padding: 18px;
  }

  .app-title {
    font-size: 24px;
  }

  .app-sub {
    font-size: 13px;
  }

  .app-file-card {
    flex-wrap: wrap;
  }

  .app-file-actions {
    flex-direction: row;
    width: 100%;
  }

  .app-file-actions .app-btn {
    flex: 1;
  }

  .app-row {
    gap: 8px;
  }

  .app-segmented > span {
    padding: 6px 10px;
  }

  .path-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .path-toggle {
    width: 100%;
  }

  .path-toggle button {
    flex: 1;
    white-space: nowrap;
  }

  .path-canvas {
    height: 230px;
  }

  .path-node {
    width: 104px;
  }

  .path-node-left {
    left: 10px;
  }

  .path-node-right {
    right: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-card {
    padding: 26px 20px 24px;
  }
}
