/* OFF Browser — site design system */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-elevated: #0e0e11;
  --surface: #121214;
  --surface-2: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #8a8a8e;
  --faint: #5c5c62;
  --accent: #f5f5f5;
  --accent-ink: #0c0c0e;
  --ok: #9ae6b4;
  --warn: #f6c177;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --font: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 80px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(255, 255, 255, 0.03), transparent 50%),
    radial-gradient(ellipse 35% 25% at 10% 60%, rgba(255, 255, 255, 0.025), transparent 50%),
    var(--bg);
}

.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(calc(var(--max) + 24px), calc(100% - 24px));
  height: 56px;
  padding: 0 10px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), rgba(12, 12, 14, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled .wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), rgba(12, 12, 14, 0.82);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}

.site-header .brand {
  margin-right: 12px;
}

.nav-toggle {
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.brand-name {
  /* Identical face to FF in logo-wordmark.svg — lockup untouched */
  font-family: 'Helvetica Neue Condensed Black', HelveticaNeue-CondensedBlack, 'Helvetica Neue', sans-serif;
  font-size: 23px;
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 26px;
  height: 26px;
  white-space: nowrap;
  font-synthesis: none;
}

.off-lockup {
  display: block;
  width: 72px;
  height: 26px;
  background: var(--text);
  -webkit-mask: url('logo-wordmark.png') left center / contain no-repeat;
  mask: url('logo-wordmark.png') left center / contain no-repeat;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Language switcher (EN / RU / UA / ES — same as app panel) */
.lang-switch {
  position: relative;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 860px) {
  .lang-switch {
    display: block;
  }
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 0.2s var(--ease);
}

.lang-switch.is-open .lang-switch-chevron {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 72px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 80;
}

.lang-switch-menu[hidden] {
  display: none;
}

.lang-switch-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-switch-menu button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-switch-mobile {
  display: none;
}

/* Mobile: language inside nav sheet */
@media (max-width: 859px) {
  .nav .lang-switch-mobile {
    display: flex;
    gap: 6px;
    padding: 8px 4px 4px;
    flex-wrap: wrap;
  }
  .nav .lang-switch-mobile button {
    min-width: 44px;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .nav .lang-switch-mobile button.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-strong);
  }
}

.header-auth {
  display: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  flex-shrink: 0;
}

.header-auth:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Auth link lives in mobile nav; on desktop only .header-auth */
@media (min-width: 860px) {
  .nav a[data-auth-link] {
    display: none;
  }
}

.btn.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -5px;
}
.nav-toggle span::after {
  top: 5px;
}

.nav {
  position: fixed;
  inset: var(--header-h) 16px auto;
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 60;
}

body.nav-open .nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav a {
  padding: 12px 14px;
}

@media (min-width: 860px) {
  .header-auth {
    display: inline-flex;
    align-items: center;
  }

  .btn.header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    gap: 2px;
    margin: 0 auto;
  }

  .nav a {
    padding: 7px 12px;
  }

  .btn.header-cta {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 48px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: 104px 0 128px;
  overflow: hidden;
  text-align: center;
}

.hero-beams {
  position: absolute;
  z-index: -1;
  top: -260px;
  left: 50%;
  width: 1400px;
  height: 1100px;
  transform: translateX(-50%) rotate(-38deg);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent);
  mask-image: radial-gradient(closest-side, #000 35%, transparent);
}

.hero-beams span {
  position: absolute;
  top: 0;
  height: 100%;
  width: 90px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent 10%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0.05) 64%, transparent 88%);
  filter: blur(22px);
  animation: beam-drift 11s ease-in-out infinite alternate;
}

.hero-beams span:nth-child(1) { left: 34%; width: 70px; opacity: 0.55; animation-delay: -2s; }
.hero-beams span:nth-child(2) { left: 43%; width: 120px; opacity: 0.95; }
.hero-beams span:nth-child(3) { left: 52%; width: 56px; opacity: 0.7; animation-delay: -5s; }
.hero-beams span:nth-child(4) { left: 59%; width: 100px; opacity: 0.45; animation-delay: -7s; }
.hero-beams span:nth-child(5) { left: 27%; width: 40px; opacity: 0.3; animation-delay: -3s; }

@keyframes beam-drift {
  from {
    transform: translateY(-6%);
  }
  to {
    transform: translateY(6%);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.hero-badge:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 10px rgba(255, 255, 255, 0.7);
}

.hero-badge-arrow {
  transition: transform 0.25s var(--ease);
}

.hero-badge:hover .hero-badge-arrow {
  transform: translateX(3px);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .hero-h1-dim {
  background-image: linear-gradient(180deg, #9a9aa0 20%, #4e4e54);
}

.hero-lede {
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 34px;
}

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

.btn-apple {
  margin-top: -2px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 18px;
}

/* Hero stage: live OFF panel mockup */
.hero-stage {
  position: relative;
  margin-top: 88px;
  perspective: 1800px;
}

.app-window {
  --tilt: 16deg;
  position: relative;
  max-width: 1120px;
  padding: 10px;
  margin: 0 auto;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #141416;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 60px 140px -40px rgba(0, 0, 0, 0.95),
    0 0 160px -40px rgba(255, 255, 255, 0.12);
  transform: rotateX(var(--tilt)) scale(calc(1 - var(--tilt) / 400deg));
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.app-window::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.app-window-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, 0.06), transparent 45%);
}

.app-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.app-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a2a2e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-titlebar-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--faint);
}

.app-body {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 10px;
  min-height: 438px;
}

.app-side {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: rgba(8, 8, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.app-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 4px 10px 10px;
}

.app-side-logo {
  width: 54px;
  height: 20px;
}

.app-collapse {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--faint);
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1e1e20;
}

.app-side-title {
  margin: 14px 8px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.app-nav,
.app-folder {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.app-nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.app-nav b {
  margin-left: auto;
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--faint);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.app-nav.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.app-folder i {
  width: 9px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: 0.7;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 8px;
}

.app-tags span,
.app-tr em {
  font-style: normal;
  font-size: 10.5px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.app-account {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 7px 1px;
  border-top: 1px solid var(--line);
}

.app-account > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #141416;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  background: #f2f2f4;
}

.app-account b,
.app-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-account b {
  color: var(--text);
  font-size: 9px;
  font-weight: 500;
}

.app-account small {
  color: var(--faint);
  font-size: 8px;
}

.app-account > i {
  color: var(--faint);
  font-style: normal;
}

.app-main {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 140px), #0a0a0c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.app-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  margin-bottom: 0;
  padding: 15px 17px 13px;
  border-bottom: 1px solid var(--line);
}

.app-crumb {
  font-size: 11px;
  color: var(--faint);
}

.app-crumb b {
  font-weight: 500;
  color: var(--muted);
}

.app-h {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-search {
  display: flex;
  align-items: center;
  width: 170px;
  height: 30px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 999px;
  background: #2a2a2c;
}

.app-search-text:empty::before {
  content: 'Search name, notes, ID…';
  color: var(--faint);
}

.app-caret {
  width: 1px;
  height: 14px;
  margin-left: 1px;
  background: #fff;
  animation: caret-blink 1s steps(1) infinite;
}

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

.app-btn {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-weight: 600;
  color: var(--accent-ink);
  border-radius: 999px;
  background: var(--accent);
  white-space: nowrap;
}

.app-tool {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1e1e20;
  white-space: nowrap;
}

.app-tool b {
  font-size: 9px;
  font-weight: 500;
}

.app-stats {
  height: 30px;
  padding: 10px 18px 0;
  color: var(--faint);
  font-size: 9px;
}

.app-table {
  margin: 8px 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0c;
}

.app-tr {
  display: grid;
  grid-template-columns: 18px 2.1fr 0.75fr 1.5fr 0.7fr 0.7fr 0.65fr;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 11px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
  transition: opacity 0.45s var(--ease), background 0.45s var(--ease);
}

.app-tr > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-th {
  height: 34px;
  border-top: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.02);
}

.app-prof {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  color: var(--text);
}

.app-check {
  color: var(--faint);
  font-size: 10px;
}

.app-note {
  color: var(--faint);
  font-size: 10px;
}

.app-profile-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.app-pin,
.app-more {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--faint);
  font-size: 10px;
  font-style: normal;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.app-pin.is-on {
  color: #e6c35c;
  border-color: #4a4030;
  background: rgba(230, 195, 92, 0.08);
}

.app-profile-meta {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.app-profile-meta b,
.app-profile-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-meta b {
  color: var(--text);
  font-size: 9px;
  font-weight: 600;
}

.app-profile-meta b em {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 4px;
  color: var(--muted);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.02em;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  vertical-align: 1px;
}

.app-profile-meta small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 7px;
}

.app-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.app-launch {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  color: #3fb950;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  border: 1px solid rgba(63, 185, 80, 0.42);
  border-radius: 999px;
  background: rgba(46, 160, 67, 0.13);
}

.app-launch u {
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid currentColor;
  text-decoration: none;
}

.app-launch.is-stop,
.app-launch.is-run {
  color: #f85149;
  border-color: rgba(248, 81, 73, 0.4);
  background: rgba(248, 81, 73, 0.1);
}

.app-launch.is-stop u,
.app-launch.is-run u {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 1px;
  background: currentColor;
}

.app-launch.is-starting {
  color: var(--muted);
  border-color: var(--line-strong);
  background: var(--bg-elevated);
}

.app-launch.is-starting u {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: app-launch-spin 0.7s linear infinite;
}

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

.app-more {
  width: 24px;
  font-size: 13px;
}

.app-proxy-cell {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.app-proxy-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
}

.app-proxy-tools b {
  font-size: 7px;
  font-weight: 400;
}

.app-proxy-cell > span {
  min-width: 0;
}

.app-proxy-cell > span > b,
.app-proxy-cell > span > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-proxy-cell > span > b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
}

.app-proxy-cell > span > small {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
}

.app-proxy-cell > span > small i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 3px;
  border-radius: 50%;
  background: #3ddc84;
}

.app-proxy-cell > em {
  padding: 2px 4px;
  color: var(--faint);
  font-size: 6px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.app-folder {
  color: var(--muted);
  font-size: 8px;
}

.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  padding: 2px 5px;
  color: var(--text);
  font-size: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.app-tag > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8a8a8f;
}

.app-tag > b {
  margin-left: 2px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 400;
}

.app-state {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.eng {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  border-radius: 6px;
}

.eng-c {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #fff, #c9c9ce);
}

.eng-s {
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.eng-i {
  color: var(--text);
  background: #2a2a2e;
}

.app-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  transition: color 0.45s var(--ease);
}

.app-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45454b;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.app-status.is-run {
  color: #f85149;
}

.app-status.is-run i {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 0 10px rgba(255, 255, 255, 0.6);
}

.app-status.is-starting i {
  background: #bdbdc2;
  animation: dot-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes dot-pulse {
  to {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
  }
}

.app-window[data-scope='chromium'] .app-tr:not(.app-th):not([data-engine='chromium']),
.app-window[data-scope='webkit'] .app-tr:not(.app-th):not([data-engine='webkit']),
.app-window[data-scope='iphone'] .app-tr:not(.app-th):not([data-engine='iphone']) {
  opacity: 0.25;
}

.app-window[data-scope='chromium'] .app-tr[data-engine='chromium'],
.app-window[data-scope='webkit'] .app-tr[data-engine='webkit'],
.app-window[data-scope='iphone'] .app-tr[data-engine='iphone'] {
  background: rgba(255, 255, 255, 0.025);
}

.app-window[data-scope='proxy'] .app-mono {
  color: var(--text);
}

.fp-card {
  position: absolute;
  z-index: 4;
  left: -44px;
  bottom: -56px;
  width: 268px;
  padding: 14px 16px 8px;
  font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(22, 22, 25, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transform: translateZ(60px);
}

.fp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.fp-head b {
  margin-left: auto;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.fp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.fp-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.fp-card dt {
  color: var(--faint);
}

.fp-card dd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
}

.hero-dock {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 72px auto 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.dock-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  cursor: pointer;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.dock-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-btn:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.dock-btn.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #2c2c31, #17171a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px -6px rgba(0, 0, 0, 0.8), 0 0 24px -8px rgba(255, 255, 255, 0.35);
  transform: translateY(-3px) scale(1.06);
}

.dock-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.hero-caption {
  min-height: 1.6em;
  margin: 20px auto 0;
  max-width: 34rem;
  font-size: 15px;
  color: var(--muted);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-caption b {
  font-weight: 600;
  color: var(--text);
}

.hero-caption.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}

@media (max-width: 900px) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .app-side {
    display: none;
  }

  .app-tr {
    grid-template-columns: 18px 1.4fr 1.2fr 0.9fr;
  }

  .app-tr > :nth-child(3),
  .app-tr > :nth-child(5),
  .app-tr > :nth-child(6) {
    display: none;
  }

  .app-tool {
    display: none;
  }

  .fp-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 0 20px 20px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 96px;
  }

  .app-search {
    display: none;
  }

  .app-tr {
    grid-template-columns: 1.3fr 0.9fr;
  }

  .app-tr > :nth-child(1),
  .app-tr > :nth-child(3),
  .app-tr > :nth-child(4),
  .app-tr > :nth-child(5),
  .app-tr > :nth-child(6) {
    display: none;
  }

  .fp-card {
    display: none;
  }
}

/* Sections */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 18ch;
}

.section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.feature-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
  }
  .feature-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat-dense {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .feat-dense {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feat-dense {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat-dense-card {
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.feat-dense-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feat-dense-card .tag {
  margin: 0;
}

.feat-dense-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.feat-dense-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature {
  padding: 28px 28px 30px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

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

.bridge {
  text-align: center;
  padding: 72px 0 96px;
}

.bridge h2 {
  margin-left: auto;
  margin-right: auto;
}

.bridge .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Marketing homepage */
.marketing-section {
  position: relative;
  padding: 124px 0;
}

.anchor-target {
  position: absolute;
  top: -90px;
}

.marketing-section .section-kicker,
.marketing-section > .wrap > h2,
.marketing-section > .wrap > .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.marketing-section > .wrap > h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
}

.section-lead-wide {
  max-width: 48rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.proof-strip > div {
  min-width: 0;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.proof-strip > div:first-child {
  border-left: 0;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

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

.compare-card,
.benefit-card,
.engine-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.compare-card:hover,
.benefit-card:hover,
.engine-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.compare-card {
  min-height: 340px;
  padding: 30px;
}

.compare-index {
  margin-bottom: 76px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

.compare-card .tag,
.benefit-card .tag,
.engine-card .tag,
.team-callout .tag {
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.compare-card h3,
.benefit-card h3,
.engine-card h3,
.team-callout h3,
.trust-grid h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.compare-card p:last-child,
.benefit-card p:last-child,
.engine-card p:last-child,
.team-callout > p,
.trust-grid p {
  color: var(--muted);
  font-size: 0.96rem;
}

.benefit-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.benefit-card {
  min-height: 310px;
  padding: 30px;
}

.benefit-card-wide {
  min-height: 350px;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 76px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 34px -20px #000;
}

.benefit-card-wide .benefit-icon {
  margin-bottom: 116px;
}

.iphone-lab {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  min-height: 720px;
  margin-top: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(80% 90% at 72% 50%, rgba(255, 255, 255, 0.055), transparent 60%),
    #0b0b0d;
  box-shadow: 0 50px 120px -70px rgba(255, 255, 255, 0.12);
}

.iphone-demo-nav {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border-right: 1px solid var(--line);
  background: #101013;
}

.off-demo-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #0d0d10;
}

.off-demo-titlebar .off-lockup {
  width: 42px;
  height: 15px;
}

.off-demo-titlebar > span:nth-child(2) {
  color: var(--faint);
  font-size: 10px;
}

.off-demo-titlebar > i {
  justify-self: end;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

.off-demo-profile {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  margin: 18px 18px 12px;
}

.off-demo-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #111;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #a9a9ae);
}

.off-demo-profile b,
.off-demo-profile small {
  display: block;
}

.off-demo-profile b {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.off-demo-profile small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 8px;
}

.off-demo-profile small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.65);
}

.off-demo-profile > button {
  color: var(--muted);
  border: 0;
  background: transparent;
}

.off-demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 0 18px 16px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b0b0d;
}

.iphone-demo-tab {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 7px 4px;
  text-align: center;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.iphone-demo-tab + .iphone-demo-tab {
  margin-top: 0;
}

.iphone-demo-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.iphone-demo-tab.is-active {
  color: var(--text);
  border-color: var(--line);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: none;
}

.off-panel-scene {
  display: none;
  flex: 1;
  padding: 2px 18px 18px;
  opacity: 0;
  transform: translateY(5px);
}

.off-panel-scene.is-active {
  display: block;
  opacity: 1;
  transform: none;
  animation: off-panel-in 0.42s var(--ease) both;
}

@keyframes off-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.off-panel-label {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.off-panel-hint {
  margin: -5px 0 12px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.45;
}

.off-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.off-panel-row .off-panel-label {
  margin-bottom: 0;
}

.off-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.off-form-grid label {
  display: block;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0c0f;
}

.off-form-grid span,
.off-form-grid b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.off-form-grid span {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 8px;
}

.off-form-grid b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.off-info-box {
  display: flex;
  gap: 9px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.off-info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.off-info-box p {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.off-readiness {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
}

.off-readiness b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
}

.off-readiness > i {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #29292e;
}

.off-readiness > i em {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #d8d8db;
  animation: readiness-fill 1.1s var(--ease) both;
}

@keyframes readiness-fill {
  from { width: 0; }
}

.off-toggle {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: #6c746e;
}

.off-toggle i {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
}

.off-mini-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
}

.off-mini-toolbar button {
  min-height: 28px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c0c0f;
}

.off-wifi-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.off-wifi-table > div {
  display: grid;
  grid-template-columns: 1fr 1.35fr 38px;
  align-items: center;
  min-height: 36px;
  padding: 0 9px;
  border-top: 1px solid var(--line);
}

.off-wifi-table > div:first-child {
  border-top: 0;
}

.off-wifi-table .off-wifi-head {
  min-height: 27px;
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.off-wifi-table b,
.off-wifi-table code,
.off-wifi-table div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.off-wifi-table b {
  font-size: 8px;
  font-weight: 500;
}

.off-wifi-table code {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
}

.off-wifi-table div > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: right;
}

.off-signal-rotation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.off-signal-rotation span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.off-signal-rotation i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: signal-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes signal-pulse {
  to { opacity: 0.35; box-shadow: 0 0 8px #fff; }
}

.off-signal-rotation b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 8px;
}

.off-segment {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0b0d;
}

.off-segment b,
.off-segment i {
  padding: 4px 7px;
  font-size: 7px;
  font-style: normal;
  font-weight: 500;
  border-radius: 4px;
}

.off-segment b {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.off-segment i {
  color: var(--faint);
}

.off-geo-preview {
  position: relative;
  height: 160px;
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(28deg, transparent 48%, rgba(255, 255, 255, 0.055) 49% 51%, transparent 52%),
    linear-gradient(118deg, transparent 47%, rgba(255, 255, 255, 0.045) 48% 51%, transparent 52%),
    #181a18;
  background-size: 56px 56px, 75px 75px, auto;
}

.off-map-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(75deg, transparent 38%, rgba(200, 200, 190, 0.13) 38.5% 40%, transparent 40.5%),
    linear-gradient(-28deg, transparent 50%, rgba(200, 200, 190, 0.12) 50.5% 52%, transparent 52.5%);
}

.off-map-pin {
  position: absolute;
  top: 55px;
  left: 54%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.045);
}

.off-map-pin i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.off-geo-preview > div:last-child {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(8, 8, 10, 0.82);
}

.off-geo-preview b,
.off-geo-preview small {
  display: block;
}

.off-geo-preview b {
  margin-bottom: 2px;
  font-size: 8px;
}

.off-geo-preview small {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
}

.off-ready-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.off-ready-list span,
.off-ready-list > b {
  padding: 5px 7px;
  color: var(--muted);
  font-size: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.off-ready-list span i {
  margin-right: 3px;
  color: var(--text);
  font-style: normal;
}

.off-ready-list > b {
  margin-left: auto;
  color: var(--text);
  font-weight: 500;
}

.off-camera-source {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c0c0f;
}

.off-camera-source img {
  width: 52px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.off-camera-source b,
.off-camera-source small {
  display: block;
}

.off-camera-source b {
  margin-bottom: 4px;
  font-size: 8px;
}

.off-camera-source small {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
}

.off-camera-source button {
  min-height: 26px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #161619;
}

.off-camera-source + .off-form-grid {
  margin-top: 9px;
}

.off-camera-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0c0f;
}

.off-camera-option span,
.off-camera-option small {
  font-size: 8px;
}

.off-camera-option span i {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  color: #111;
  font-size: 8px;
  font-style: normal;
  border-radius: 4px;
  background: #fff;
}

.off-camera-option small {
  color: var(--faint);
}

.off-apply-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  color: #111;
  font-size: 9px;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  background: #f1f1f2;
}

.iphone-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 250px;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 42px 34px 38px;
  overflow: hidden;
}

.iphone-showcase::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 28%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(90px);
  pointer-events: none;
}

.iphone-device {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.iphone-hardware {
  position: relative;
  width: 286px;
  height: 620px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 48px;
  background: linear-gradient(145deg, #66666b 0%, #17171a 12%, #08080a 55%, #46464b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 0 0 5px #050506,
    0 55px 90px -36px rgba(0, 0, 0, 0.95),
    0 0 80px -45px rgba(255, 255, 255, 0.45);
  transform: none;
  transition: transform 0.7s var(--ease);
}

.iphone-lab:hover .iphone-hardware {
  transform: translateY(-3px);
}

.iphone-button {
  position: absolute;
  z-index: -1;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: #45454a;
}

.iphone-button-action {
  top: 106px;
  left: -4px;
  height: 28px;
}

.iphone-button-volume {
  top: 150px;
  left: -4px;
  height: 68px;
}

.iphone-button-power {
  top: 156px;
  right: -4px;
  height: 82px;
  border-radius: 0 2px 2px 0;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #f7f7fa;
  border-radius: 40px;
  background: #111216;
}

.iphone-status {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 22px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
}

.iphone-status-icons {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.iphone-status-icons i {
  display: block;
  width: 8px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.iphone-status-icons i:first-child {
  width: 10px;
  border: 0;
  background: linear-gradient(90deg, transparent 10%, currentColor 10% 22%, transparent 22% 35%, currentColor 35% 51%, transparent 51% 64%, currentColor 64% 84%);
}

.iphone-status-icons i:nth-child(2) {
  border-width: 0 0 1px;
  border-radius: 50%;
}

.dynamic-island {
  position: absolute;
  z-index: 22;
  top: 10px;
  left: 50%;
  width: 82px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.dynamic-island span {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #27304a, #05050a 70%);
}

.phone-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985) translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

.phone-scene.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.ios-settings-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 82px;
  padding: 28px 15px 0;
  background: #1c1c1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.ios-settings-head span {
  color: #8aa9c8;
  font-size: 10px;
}

.ios-settings-head b {
  font-size: 13px;
  font-weight: 600;
}

.ios-device-card {
  padding: 24px 18px 18px;
  text-align: center;
  background: #1c1c1e;
}

.ios-device-glyph {
  position: relative;
  display: block;
  width: 42px;
  height: 70px;
  margin: 0 auto 11px;
  border: 2px solid #a5a5aa;
  border-radius: 10px;
  background: linear-gradient(150deg, #31343a, #0b0b0d);
  box-shadow: inset 0 0 0 3px #111;
}

.ios-device-glyph::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 15px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #050506;
}

.ios-device-glyph i {
  position: absolute;
  top: 21px;
  left: 9px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.ios-device-card h4 {
  font-size: 14px;
  font-weight: 600;
}

.ios-device-card p {
  margin-top: 3px;
  color: #8e8e93;
  font-size: 9px;
}

.ios-settings-group {
  margin: 20px 10px 0;
  overflow: hidden;
  border-radius: 11px;
  background: #1c1c1e;
}

.ios-settings-group > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 13px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  font-size: 9px;
}

.ios-settings-group > div:first-child {
  border-top: 0;
}

.ios-settings-group span {
  color: #f2f2f7;
}

.ios-settings-group b {
  max-width: 145px;
  overflow: hidden;
  color: #8e8e93;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-off-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 10px 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
}

.ios-off-status span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ios-off-status span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.65);
}

.ios-off-status b {
  color: #8e8e93;
  font-weight: 400;
}

.ios-wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 65% at 15% 20%, #323844, transparent 72%),
    radial-gradient(90% 80% at 100% 100%, #2b2130, transparent 68%),
    #121317;
}

.ios-orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 46% 54% 63% 37% / 42% 41% 59% 58%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.005));
  filter: blur(0.2px);
  animation: ios-orb 10s ease-in-out infinite alternate;
}

.ios-orb-a {
  top: 120px;
  left: -50px;
  width: 240px;
  height: 280px;
}

.ios-orb-b {
  right: -90px;
  bottom: 60px;
  width: 260px;
  height: 250px;
  animation-delay: -4s;
}

@keyframes ios-orb {
  to {
    transform: translate(14px, -16px) rotate(7deg) scale(1.06);
  }
}

.ios-widget {
  position: absolute;
  z-index: 2;
  top: 68px;
  left: 16px;
  right: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(5, 5, 7, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ios-widget-mark {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
}

.ios-widget-mark i {
  display: block;
  width: 13px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}

.ios-widget b,
.ios-widget small {
  display: block;
}

.ios-widget b {
  margin-bottom: 2px;
  font-size: 13px;
}

.ios-widget small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.ios-app-grid {
  position: absolute;
  z-index: 2;
  top: 202px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 22px;
  text-align: center;
}

.ios-app-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.ios-app-grid span {
  font-size: 8px;
  text-shadow: 0 1px 4px #000;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 7px 16px -9px #000;
}

.app-icon-safari { background: radial-gradient(circle, #fff 0 10%, #347ca3 12% 38%, #102c4b 65%); }
.app-icon-maps { background: linear-gradient(135deg, #91aa81, #d8d0b7); color: #263b32; }
.app-icon-camera { background: linear-gradient(145deg, #5a5a60, #141418); }
.app-icon-settings { background: linear-gradient(145deg, #8b8b91, #323238); font-size: 16px; }
.app-icon-mail { background: linear-gradient(145deg, #7297b5, #23445f); }
.app-icon-store { background: linear-gradient(145deg, #5c88b5, #233b5d); }
.app-icon-phone { background: linear-gradient(145deg, #65a47a, #28583d); }
.app-icon-messages { background: linear-gradient(145deg, #6baa7a, #2c5f40); }

.ios-dock {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 20px;
  display: flex;
  justify-content: space-around;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ios-dock .app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.ios-page-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 86px;
  padding: 30px 16px 0;
  background: #17171b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-page-head span {
  color: #8aa8c5;
  font-size: 10px;
}

.ios-page-head b {
  font-size: 13px;
}

.wifi-toggle-row,
.wifi-network,
.wifi-detail {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  background: #1b1b20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.wifi-toggle-row {
  justify-content: space-between;
  margin-top: 22px;
  border-radius: 11px;
}

.ios-switch {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #3a3a40;
}

.ios-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.45s var(--ease);
}

.phone-scene.is-active .ios-switch.is-on {
  background: #717b74;
}

.phone-scene.is-active .ios-switch.is-on i {
  transform: translateX(16px);
}

.ios-group-label {
  margin: 18px 15px 7px;
  color: #73737a;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.wifi-network {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
}

.wifi-network:first-of-type {
  border-radius: 11px 11px 0 0;
}

.wifi-network b,
.wifi-network small {
  display: block;
}

.wifi-network b {
  font-size: 11px;
  font-weight: 500;
}

.wifi-network small {
  margin-top: 2px;
  color: #77777e;
  font-size: 8px;
}

.wifi-check {
  color: #9fb3c7;
  font-size: 12px;
}

.wifi-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.wifi-bars i {
  display: block;
  width: 3px;
  background: #b8c3ce;
  border-radius: 1px;
  transform-origin: bottom;
  animation: wifi-bars 1.6s ease-in-out infinite alternate;
}

.wifi-bars i:nth-child(1) { height: 5px; }
.wifi-bars i:nth-child(2) { height: 9px; animation-delay: -0.4s; }
.wifi-bars i:nth-child(3) { height: 13px; animation-delay: -0.8s; }
.wifi-bars.is-mid i:nth-child(3),
.wifi-bars.is-low i:nth-child(n + 2) { opacity: 0.2; }

@keyframes wifi-bars {
  to { transform: scaleY(0.72); opacity: 0.65; }
}

.wifi-detail {
  justify-content: space-between;
  margin-top: 20px;
  border-radius: 11px;
  color: #77777e;
  font-size: 9px;
}

.wifi-detail b {
  color: #c7c7ca;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(25deg, transparent 48%, rgba(255, 255, 255, 0.06) 49% 51%, transparent 52%),
    linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, 0.05) 48% 51%, transparent 52%),
    #20221f;
  background-size: 68px 68px, 90px 90px, auto;
}

.map-block {
  position: absolute;
  border-radius: 10px;
  background: #2d302c;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.map-block-a { top: 88px; left: 22px; width: 82px; height: 102px; transform: rotate(-12deg); }
.map-block-b { top: 68px; right: 18px; width: 102px; height: 72px; transform: rotate(8deg); }
.map-block-c { top: 215px; left: 70px; width: 130px; height: 82px; transform: rotate(4deg); }

.map-road {
  position: absolute;
  z-index: 2;
  height: 5px;
  border-top: 1px solid #6e7169;
  border-bottom: 1px solid #6e7169;
  opacity: 0.5;
}

.map-road-a { top: 190px; left: -25px; width: 360px; transform: rotate(-18deg); }
.map-road-b { top: 110px; left: 70px; width: 280px; transform: rotate(68deg); }
.map-road-c { top: 275px; left: -30px; width: 350px; transform: rotate(24deg); }

.map-label {
  position: absolute;
  z-index: 3;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
}

.map-label-a { top: 130px; left: 36px; }
.map-label-b { top: 205px; right: 18px; }
.map-label-c { top: 76px; left: 125px; font-size: 10px; color: rgba(255, 255, 255, 0.7); }

.gps-pin {
  position: absolute;
  z-index: 5;
  top: 154px;
  left: 132px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: gps-pulse 2s ease-out infinite;
}

.gps-pin::before,
.gps-pin::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  animation: gps-wave 2s ease-out infinite;
}

.gps-pin::after {
  animation-delay: 0.8s;
}

.gps-pin span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes gps-wave {
  from { transform: scale(0.45); opacity: 0.8; }
  to { transform: scale(1.5); opacity: 0; }
}

@keyframes gps-pulse {
  50% { transform: scale(1.08); }
}

.gps-card {
  position: absolute;
  z-index: 8;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 10px 15px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px 22px 34px 34px;
  background: rgba(20, 20, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gps-grabber {
  display: block;
  width: 34px;
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 99px;
  background: #525258;
}

.gps-card > p {
  color: #77777e;
  font-size: 8px;
}

.gps-card h4 {
  margin: 2px 0 8px;
  font-size: 14px;
}

.gps-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 8px;
}

.gps-card dt { color: #77777e; }
.gps-card dd { font-family: var(--font-mono); color: #c8c8cc; }

.gps-consistent {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 9px;
  color: #d7d7da;
  font-size: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.gps-consistent i,
.camera-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.phone-camera-scene {
  background: #050506;
}

.virtual-camera-feed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 466px;
  overflow: hidden;
  background:
    radial-gradient(80% 55% at 50% 28%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(145deg, #24272a, #111217 60%, #302a2c);
}

.virtual-camera-feed > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.9) contrast(1.03);
}

.camera-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background:
    linear-gradient(90deg, transparent 33%, #fff 33.2% 33.5%, transparent 33.7% 66%, #fff 66.2% 66.5%, transparent 66.7%),
    linear-gradient(180deg, transparent 33%, #fff 33.2% 33.5%, transparent 33.7% 66%, #fff 66.2% 66.5%, transparent 66.7%);
}

.camera-person {
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: 210px;
  height: 390px;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
}

.camera-head {
  position: absolute;
  top: 36px;
  left: 66px;
  width: 80px;
  height: 104px;
  border-radius: 44% 44% 50% 50%;
  background:
    radial-gradient(circle at 32% 48%, rgba(0, 0, 0, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 48%, rgba(0, 0, 0, 0.32) 0 2px, transparent 3px),
    linear-gradient(145deg, #b5aaa2, #665d5e);
  box-shadow: inset 0 18px 0 -5px #29272a;
}

.camera-head::after {
  content: '';
  position: absolute;
  left: 29px;
  bottom: 22px;
  width: 24px;
  height: 6px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

.camera-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 260px;
  border-radius: 48% 48% 12px 12px;
  background: linear-gradient(145deg, #2c2c32, #111116);
}

.camera-live,
.camera-source {
  position: absolute;
  z-index: 4;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 7px;
}

.camera-live {
  top: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
}

.camera-source {
  bottom: 12px;
  padding: 5px 7px;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.48);
}

.camera-focus {
  position: absolute;
  z-index: 4;
  top: 176px;
  left: 101px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 3px;
  animation: camera-focus 3.5s var(--ease) infinite;
}

@keyframes camera-focus {
  0%, 15% { transform: scale(1.2); opacity: 0; }
  25%, 75% { transform: scale(1); opacity: 1; }
  90%, 100% { opacity: 0; }
}

.camera-scan {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  animation: camera-scan 3.8s linear infinite;
}

@keyframes camera-scan {
  from { top: 70px; opacity: 0; }
  10%, 90% { opacity: 1; }
  to { top: 420px; opacity: 0; }
}

.camera-mode-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 7px;
  color: #77777e;
}

.camera-mode-row b {
  color: #d7d0bb;
  font-weight: 600;
}

.camera-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.camera-thumb,
.camera-flip {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #29292e;
}

.camera-flip {
  border-radius: 50%;
  font-size: 15px;
}

.camera-shutter {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.camera-shutter i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #9b4545;
}

.iphone-home-indicator {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 6px;
  width: 92px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
}

.persona-live {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(20, 20, 23, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -35px #000;
}

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

.persona-live-head > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}

.persona-live-head > span > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.persona-live-head > b {
  padding: 3px 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.persona-live dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.persona-live dt {
  color: var(--faint);
}

.persona-live dd {
  max-width: 130px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.persona-consistency {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.consistency-ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(#d9d9dc 0 94%, #35353a 94%);
  animation: consistency-spin 1.1s var(--ease) both;
}

.consistency-ring i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #17171a;
}

@keyframes consistency-spin {
  from { transform: rotate(-120deg); opacity: 0; }
}

.persona-consistency b,
.persona-consistency small {
  display: block;
}

.persona-consistency b {
  font-size: 13px;
}

.persona-consistency small {
  color: var(--faint);
  font-size: 9px;
}

.iphone-mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.iphone-mini-features article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.iphone-mini-features article:first-child {
  border-left: 0;
}

.iphone-mini-features article > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.iphone-mini-features h3 {
  margin-bottom: 7px;
  font-size: 0.98rem;
  font-weight: 600;
}

.iphone-mini-features p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.network-flow {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr;
  align-items: center;
  margin: 8px 0 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-elevated);
}

.flow-node span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}

.flow-node b {
  font-size: 13px;
  font-weight: 500;
}

.flow-node.is-final {
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 28px -16px rgba(255, 255, 255, 0.5);
}

.network-flow > i {
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(255, 255, 255, 0.35), var(--line));
}

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

.engine-card {
  min-height: 370px;
  padding: 30px;
}

.engine-letter {
  display: block;
  margin-bottom: 105px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.audience-grid span {
  padding: 11px 17px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.audience-grid span:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.team-callout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 60px;
  max-width: 920px;
  margin: 54px auto 0;
  padding: 34px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.team-callout h3 {
  margin-bottom: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-grid article {
  min-height: 235px;
  padding: 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.trust-grid article:nth-child(-n + 2) {
  border-top: 0;
}

.trust-grid article:nth-child(odd) {
  border-left: 0;
}

.trust-grid article > span {
  display: block;
  margin-bottom: 58px;
  color: var(--faint);
  font-size: 22px;
}

.faq-section {
  padding: 124px 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.faq-layout h2 {
  max-width: 12ch;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 42px 22px 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: '+';
  position: absolute;
  top: 19px;
  right: 6px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.faq-list details[open] summary::after {
  color: var(--text);
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 42rem;
  padding: 0 42px 22px 0;
  color: var(--muted);
}

.bridge {
  position: relative;
  margin-top: 32px;
  margin-bottom: 80px;
  padding: 96px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(60% 150% at 50% 110%, rgba(255, 255, 255, 0.1), transparent 65%),
    rgba(255, 255, 255, 0.015);
}

.bridge h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
}

@media (max-width: 900px) {
  .iphone-lab {
    grid-template-columns: 1fr;
  }

  .iphone-demo-nav {
    min-height: 500px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .iphone-showcase {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .persona-live {
    display: none;
  }

  .iphone-mini-features {
    grid-template-columns: 1fr;
  }

  .iphone-mini-features article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .iphone-mini-features article:first-child {
    border-top: 0;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip > div:nth-child(3) {
    border-left: 0;
  }

  .proof-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .compare-grid,
  .engine-grid {
    grid-template-columns: 1fr;
  }

  .compare-card,
  .engine-card {
    min-height: auto;
  }

  .compare-index,
  .engine-letter {
    margin-bottom: 48px;
  }

  .network-flow {
    grid-template-columns: 1fr 28px 1fr 28px 1fr;
    padding: 18px;
  }

  .flow-node {
    justify-content: center;
    padding: 0 8px;
  }

  .flow-node span {
    display: none;
  }

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

  .faq-layout h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .marketing-section,
  .faq-section {
    padding: 84px 0;
  }

  .iphone-lab {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 34px;
  }

  .iphone-demo-nav {
    display: flex;
    min-height: 500px;
    overflow: visible;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .iphone-demo-tab + .iphone-demo-tab {
    margin-top: 0;
  }

  .iphone-demo-tab.is-active {
    transform: none;
  }

  .iphone-showcase {
    min-height: 650px;
    padding: 26px 8px;
  }

  .iphone-hardware {
    width: 270px;
    height: 584px;
    border-radius: 44px;
  }

  .iphone-screen {
    border-radius: 36px;
  }

  .virtual-camera-feed {
    height: 450px;
  }

  .camera-mode-row {
    bottom: 74px;
  }

  .iphone-mini-features article {
    padding: 20px;
  }

  .proof-strip {
    width: min(var(--max), calc(100% - 32px));
  }

  .proof-strip > div {
    padding: 18px 16px;
  }

  .benefit-bento,
  .trust-grid,
  .team-callout {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .benefit-card-wide {
    min-height: auto;
  }

  .benefit-icon,
  .benefit-card-wide .benefit-icon {
    margin-bottom: 48px;
  }

  .network-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .network-flow > i {
    width: 1px;
    height: 22px;
    margin: 0 auto;
  }

  .trust-grid article,
  .trust-grid article:nth-child(-n + 2),
  .trust-grid article:nth-child(odd) {
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-grid article:first-child {
    border-top: 0;
  }

  .trust-grid article > span {
    margin-bottom: 38px;
  }

  .team-callout {
    gap: 20px;
    padding: 28px;
  }

  .bridge {
    width: calc(100% - 32px);
    margin-bottom: 56px;
    padding: 72px 20px;
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 56px 0 40px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
}

/* Pricing */
.pr-hero {
  position: relative;
  isolation: isolate;
  padding: 96px 0 64px;
  overflow: hidden;
  text-align: center;
}

.pr-hero-glow {
  position: absolute;
  z-index: -1;
  top: -180px;
  left: 50%;
  width: 900px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent 72%);
  transform: translateX(-50%);
  animation: pr-glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pr-glow {
  from {
    opacity: 0.7;
    transform: translateX(-54%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-46%) scale(1.04);
  }
}

.pr-hero h1 {
  max-width: 16ch;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pr-hero-lede {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.pr-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  list-style: none;
}

.pr-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.pr-hero-points i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Plan cards */
.pr-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pr-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pr-card::before,
.pr-addon::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 60%);
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.pr-card:hover::before,
.pr-addon:hover::before {
  opacity: 1;
}

.pr-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.pr-card.is-featured {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 80px -40px rgba(255, 255, 255, 0.18);
}

.pr-card.is-featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.pr-card.is-selected {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.pr-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pr-card h3 em {
  padding: 3px 8px;
  color: var(--text);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.pr-card-pitch {
  min-height: 2.8em;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.pr-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
}

.pr-card-price b {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pr-card-price span {
  color: var(--muted);
  font-size: 14px;
}

.pr-card-meta {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pr-card-cta {
  width: 100%;
  min-height: 40px;
  margin: 20px 0;
  font-size: 13px;
}

.pr-card ul {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pr-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.pr-card li::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23f5f5f7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.pr-card li.is-off {
  color: var(--faint);
}

.pr-card li.is-off::before {
  background: rgba(255, 255, 255, 0.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 8h5' fill='none' stroke='%235c5c62' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* iPhone add-on */
.pr-addon {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(60% 140% at 100% 50%, rgba(255, 255, 255, 0.06), transparent 60%),
    rgba(255, 255, 255, 0.015);
}

.pr-addon-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pr-addon-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.pr-addon-kicker {
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pr-addon h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pr-addon-copy p:last-child {
  max-width: 34rem;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pr-addon-tiers {
  display: flex;
  gap: 8px;
}

.pr-addon-tiers > div {
  display: grid;
  justify-items: center;
  min-width: 92px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.pr-addon-tiers b {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.pr-addon-tiers span {
  color: var(--faint);
  font-size: 11px;
}

.pr-addon-tiers strong {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

/* Builder */
.pr-builder {
  padding: 124px 0 24px;
  scroll-margin-top: 80px;
}

.pr-builder-head {
  margin-bottom: 40px;
  text-align: center;
}

.pr-builder-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.pr-builder-head p:last-child {
  max-width: 34rem;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.pr-builder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  box-shadow: 0 50px 120px -70px rgba(255, 255, 255, 0.14);
}

.pr-config {
  min-width: 0;
  padding: 28px 30px 30px;
}

.pr-config-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.pr-config-label b {
  font-weight: 600;
}

.pr-config-label-gap {
  margin-top: 30px;
  margin-bottom: 4px;
}

.pr-step {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.pr-seg {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
}

.pr-seg-glow {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, #2a2a2f, #1a1a1e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px -8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.pr-seg.is-ready .pr-seg-glow {
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease);
}

.pr-seg button {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 6px;
  color: var(--muted);
  text-align: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.pr-seg button:hover {
  color: var(--text);
}

.pr-seg button[aria-checked='true'] {
  color: var(--text);
}

.pr-seg button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.pr-seg button b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-seg button span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: color 0.3s var(--ease);
}

.pr-seg button[aria-checked='true'] span {
  color: var(--muted);
}

.pr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s var(--ease);
}

.pr-row.is-disabled {
  opacity: 0.4;
}

.pr-row-copy {
  min-width: 0;
}

.pr-row-copy b,
.pr-row-copy small {
  display: block;
}

.pr-row-copy b {
  font-size: 14.5px;
  font-weight: 500;
}

.pr-row-copy small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12.5px;
}

.pr-stepper {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.pr-stepper button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--text);
  font-size: 16px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.pr-stepper button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.pr-stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pr-stepper output {
  min-width: 56px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.is-bump {
  animation: pr-bump 0.38s var(--ease);
}

@keyframes pr-bump {
  40% {
    transform: scale(1.12);
  }
}

.pr-switch {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}

.pr-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.pr-switch span {
  display: block;
  width: 46px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #222226;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pr-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8a8a8e;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}

.pr-switch input:checked + span {
  border-color: rgba(255, 255, 255, 0.5);
  background: #f5f5f7;
}

.pr-switch input:checked + span::after {
  background: #0c0c0e;
  transform: translateX(18px);
}

.pr-switch input:focus-visible + span {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.pr-switch input:disabled {
  cursor: not-allowed;
}

.pr-vm {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s var(--ease);
}

.pr-vm.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.pr-vm-inner {
  min-height: 0;
  overflow: hidden;
}

.pr-vm-inner .pr-seg {
  margin-top: 14px;
}

/* Summary */
.pr-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(100% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    rgba(0, 0, 0, 0.25);
}

.pr-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.pr-summary-head b {
  padding: 4px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.pr-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pr-summary-stats > div {
  padding: 10px 12px;
}

.pr-summary-stats > div + div {
  border-left: 1px solid var(--line);
}

.pr-summary-stats small,
.pr-summary-stats b {
  display: block;
}

.pr-summary-stats small {
  color: var(--faint);
  font-size: 11px;
}

.pr-summary-stats b {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
}

.pr-summary-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.pr-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  animation: pr-line-in 0.4s var(--ease) both;
  animation-delay: calc(var(--i) * 40ms);
}

.pr-line b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
}

@keyframes pr-line-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.pr-summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pr-summary-lines + .pr-summary-total {
  margin-top: 22px;
}

.pr-summary-total > span {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pr-summary-total strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pr-summary-total output {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.pr-summary-total small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.pr-summary-cta {
  width: 100%;
  margin-top: 20px;
}

.pr-summary-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1000px) {
  .pr-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pr-addon {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pr-addon-tiers {
    grid-column: 1 / -1;
  }

  .pr-addon-tiers > div {
    flex: 1;
  }

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

  .pr-summary {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pr-summary-total {
    margin-top: 22px;
  }
}

@media (max-width: 640px) {
  .pr-hero {
    padding: 64px 0 44px;
  }

  .pr-plans {
    grid-template-columns: 1fr;
  }

  .pr-card-pitch {
    min-height: 0;
  }

  .pr-addon {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .pr-builder {
    padding-top: 84px;
  }

  .pr-config {
    padding: 22px 18px;
  }

  .pr-seg-plans {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pr-summary {
    padding: 22px 18px;
  }
}

.pr-summary-note a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.pr-summary-note a:hover {
  color: var(--text);
}

/* Checkout */
.co-main {
  padding-bottom: 120px;
}

.co-head {
  padding-top: 72px;
  padding-bottom: 28px;
  text-align: center;
}

.co-head h1 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.co-layout {
  max-width: 940px;
}

.co-loading {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

.co-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 52px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.co-empty h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

.co-empty p {
  max-width: 420px;
  margin-bottom: 8px;
  color: var(--muted);
}

.co-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  box-shadow: 0 50px 120px -70px rgba(255, 255, 255, 0.14);
  animation: co-in 0.5s var(--ease) both;
}

[hidden].co-card,
[hidden].co-empty,
.co-step[hidden] {
  display: none;
}

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

.co-summary {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(100% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    rgba(0, 0, 0, 0.25);
}

.co-summary-head,
.co-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.co-summary h2,
.co-pay h2 {
  font-size: 15px;
  font-weight: 600;
}

.co-link {
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

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

.co-link[hidden] {
  display: none;
}

.co-dl {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.co-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
}

.co-dl > div + div {
  border-top: 1px solid var(--line);
}

.co-dl dt {
  color: var(--muted);
}

.co-dl dd {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.co-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.co-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.co-total > span {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.co-total p {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.co-total output {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.co-total small {
  color: var(--muted);
  font-size: 14px;
}

.co-account {
  margin-top: auto;
  padding-top: 22px;
  color: var(--faint);
  font-size: 12px;
}

.co-account b {
  color: var(--muted);
  font-weight: 500;
  word-break: break-all;
}

.co-pay {
  min-width: 0;
  padding: 28px 30px 26px;
}

.co-step {
  display: flex;
  flex-direction: column;
  animation: co-in 0.4s var(--ease) both;
}

.co-coins {
  display: grid;
  gap: 8px;
  max-height: 392px;
  margin-top: 16px;
  padding: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.co-coin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  color: var(--text);
  font: inherit;
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.co-coin:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.co-coin:active {
  transform: scale(0.995);
}

.co-coin:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.co-coin[aria-checked='true'] {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.co-radio {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.co-coin[aria-checked='true'] .co-radio {
  border-color: var(--text);
  box-shadow: inset 0 0 0 3.5px var(--bg), inset 0 0 0 8px var(--text);
}

.co-coin-copy b,
.co-coin-copy small {
  display: block;
}

.co-coin-copy b {
  font-size: 14px;
  font-weight: 600;
}

.co-coin-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.co-coin code {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.co-coin-fee {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.co-coin-fee.is-free {
  color: var(--faint);
  border-color: transparent;
}

.co-nocoins {
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--warn);
  font-size: 13px;
  border: 1px solid rgba(246, 193, 119, 0.25);
  border-radius: 12px;
}

.co-cta {
  width: 100%;
  margin-top: 18px;
}

.co-cta[aria-busy='true'] {
  opacity: 0.6;
  pointer-events: none;
}

.co-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

#co-error {
  margin-top: 14px;
}

.co-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.co-status i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  animation: co-pulse 1.6s ease-in-out infinite;
}

.co-status[data-state='confirming'],
.co-status[data-state='underpaid'] {
  color: var(--warn);
  border-color: rgba(246, 193, 119, 0.3);
}

.co-status[data-state='expired'] {
  color: var(--faint);
}

.co-status[data-state='expired'] i {
  animation: none;
}

@keyframes co-pulse {
  50% {
    opacity: 0.25;
  }
}

.co-invoice {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.co-qr {
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
}

.co-qr[hidden] {
  display: none;
}

.co-invoice:has(.co-qr[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.co-qr img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.co-fields {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.co-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.co-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.co-copy code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 13px;
}

.co-copy em {
  color: var(--muted);
  font-style: normal;
}

.co-copy button {
  flex: none;
  padding: 7px 11px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.co-copy button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.co-copy button.is-done {
  color: var(--ok);
}

.co-field small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}

.co-warn,
.co-hint {
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.co-hint {
  margin-top: 10px;
  color: var(--warn);
  border-color: rgba(246, 193, 119, 0.25);
}

.co-hint[hidden] {
  display: none;
}

.co-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.co-meta .co-link {
  font-family: var(--font);
}

.co-done {
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px 0;
  text-align: center;
}

.co-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 24px no-repeat,
    rgba(255, 255, 255, 0.05);
  animation: co-pop 0.6s var(--ease) both;
}

@keyframes co-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

.co-done h2 {
  font-size: 1.35rem;
}

.co-done p {
  max-width: 360px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.co-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.auth-intent {
  margin-bottom: 16px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-intent[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .co-card {
    grid-template-columns: 1fr;
  }

  .co-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .co-head {
    padding-top: 48px;
  }

  .co-summary,
  .co-pay {
    padding: 22px 18px;
  }

  .co-invoice {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .co-fields {
    width: 100%;
  }
}

/* Download */
.download-panel {
  display: grid;
  gap: 24px;
  padding-bottom: 88px;
}

@media (min-width: 800px) {
  .download-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.download-card {
  padding: 32px;
  background: linear-gradient(165deg, #18181c 0%, var(--surface) 100%);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.download-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

.download-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}

.side-list {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-list h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.side-list ul {
  list-style: none;
}

.side-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.side-list li:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* Support / FAQ */
.faq {
  display: grid;
  gap: 10px;
  padding-bottom: 48px;
  max-width: 720px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
  transition: border-color 0.25s var(--ease);
}

.faq details[open] {
  border-color: var(--line-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.faq summary::after {
  content: '+';
  float: right;
  color: var(--faint);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq details a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.support-cta {
  max-width: 720px;
  padding: 28px;
  margin-bottom: 88px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support-cta h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.support-cta p {
  color: var(--muted);
  margin-bottom: 18px;
}

.support-cta a.mail {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 18, 20, 0.92);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cookie-banner-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner-text strong {
  color: var(--text);
  font-weight: 600;
}

.cookie-banner-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.cookie-banner-text a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.cookie-banner-btn {
  flex-shrink: 0;
  min-width: 120px;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 88px;
  max-width: 760px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 12px;
}

.legal-meta {
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-notice {
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 193, 119, 0.28);
  background: rgba(246, 193, 119, 0.06);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

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

.legal-body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 32px 0 12px;
}

.legal-body p {
  margin-bottom: 14px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.legal-body a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Features showcase (screenshot slots) */
.feat-showcase {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
}

.feat-showcase .section-lead {
  max-width: 540px;
}

.feat-grid {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.feat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feat-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.feat-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat-shot-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.feat-shot-empty::before {
  content: '';
  width: 40px;
  height: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.feat-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.feat-card-body .tag {
  margin: 0;
}

.feat-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feat-card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Footer mega */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 24px;
}

.footer-mega {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 36px;
}

@media (min-width: 720px) {
  .footer-mega {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .footer-mega {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  line-height: 1.35;
}

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

.footer-col .soon {
  color: var(--faint);
  font-size: 13px;
  cursor: default;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand .off-lockup {
  width: 52px;
  height: 18px;
  opacity: 0.85;
}

.footer-copy {
  font-size: 12px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--faint);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

/* Motion helpers */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay='1'] {
  transition-delay: 0.08s;
}
[data-reveal-delay='2'] {
  transition-delay: 0.16s;
}
[data-reveal-delay='3'] {
  transition-delay: 0.24s;
}

.hero-anim .hero-badge,
.hero-anim h1,
.hero-anim .hero-lede,
.hero-anim .hero-actions,
.hero-anim .hero-note {
  animation: hero-in 0.9s var(--ease) both;
}

.hero-anim h1 {
  animation-delay: 0.08s;
}
.hero-anim .hero-lede {
  animation-delay: 0.16s;
}
.hero-anim .hero-actions {
  animation-delay: 0.24s;
}
.hero-anim .hero-note {
  animation-delay: 0.3s;
}

.hero-anim .hero-stage {
  animation: stage-in 1.4s var(--ease) 0.35s both;
}

.hero-anim .hero-beams {
  animation: beams-in 2.2s var(--ease) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes beams-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Auth / cabinet */
.auth-shell {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 80px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-brand .off-lockup {
  width: 88px;
  height: 32px;
}

.auth-brand-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.auth-card {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.auth-card .auth-lede {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder {
  color: var(--faint);
}

.field input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--text);
  cursor: pointer;
}

.auth-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.auth-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.auth-form .btn {
  width: 100%;
  margin-top: 4px;
}

.auth-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(246, 193, 119, 0.08);
  border: 1px solid rgba(246, 193, 119, 0.28);
  color: var(--warn);
  font-size: 13px;
  line-height: 1.4;
}

.auth-error[hidden] {
  display: none;
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-foot a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.auth-foot a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.account-shell {
  padding: 48px 0 96px;
}

.account-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 720px) {
  .account-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

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

.account-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.account-dl {
  display: grid;
  gap: 12px;
}

.account-dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.account-dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.account-dl dd {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.username-field {
  position: relative;
}

.username-field input {
  padding-left: 34px;
}

.username-at {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.username-status {
  margin: 8px 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.username-status.is-ok {
  color: #86efac;
}

.username-status.is-error {
  color: #f87171;
}

.account-dl dd.username-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.username-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.account-dl div.username-edit {
  display: block;
}

.account-dl .username-edit div {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-dl .username-edit .username-field {
  display: block;
}

.account-dl .username-edit .username-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.account-dl .username-edit .username-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.account-loading {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.account-loading[hidden] {
  display: none;
}

.account-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

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

  .hero-beams span,
  .app-caret,
  .app-status.is-starting i,
  .ios-orb,
  .wifi-bars i,
  .gps-pin,
  .gps-pin::before,
  .gps-pin::after,
  .camera-focus,
  .camera-scan,
  .consistency-ring,
  .off-panel-scene.is-active,
  .off-readiness > i em,
  .off-signal-rotation i {
    animation: none;
  }

  .app-window {
    --tilt: 0deg;
  }

  .iphone-hardware,
  .phone-scene,
  .iphone-demo-tab,
  .persona-live-head > b {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-anim .hero-badge,
  .hero-anim h1,
  .hero-anim .hero-lede,
  .hero-anim .hero-actions,
  .hero-anim .hero-note,
  .hero-anim .hero-stage,
  .hero-anim .hero-beams {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn:hover,
  .feature:hover,
  .pr-card:hover,
  .feat-card:hover {
    transform: none;
  }

  .pr-hero-glow,
  .co-status i {
    animation: none;
  }
}

/* Support chat FAB (bottom-right) */
.off-chat {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.off-chat > * {
  pointer-events: auto;
}

.off-chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #2a2a2e;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.off-chat-fab:hover {
  background: #343438;
  transform: translateY(-1px);
}

.off-chat-fab-bubble,
.off-chat-fab-close {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.off-chat-fab-close {
  opacity: 0;
  transform: scale(0.6);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.off-chat.is-open .off-chat-fab-bubble {
  opacity: 0;
  transform: scale(0.6);
}

.off-chat.is-open .off-chat-fab-close {
  opacity: 1;
  transform: scale(1);
}

.off-chat-panel {
  display: none;
  width: min(340px, calc(100vw - 40px));
  max-height: min(520px, calc(100vh - 100px));
  background: #161618;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  flex-direction: column;
}

.off-chat.is-open .off-chat-panel {
  display: flex;
  animation: off-chat-in 0.22s var(--ease);
}

.off-chat-panel[hidden],
.off-chat-menu[hidden],
.off-chat-thread[hidden],
.off-chat-opt[hidden] {
  display: none !important;
}

@keyframes off-chat-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.off-chat-menu {
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.off-chat-menu[hidden] {
  display: none !important;
}

.off-chat-menu-title {
  margin: 0 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.off-chat-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.off-chat-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.off-chat-opt strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.off-chat-opt small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.off-chat-opt-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.off-chat-thread {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  max-height: min(520px, calc(100vh - 100px));
}

.off-chat-thread[hidden] {
  display: none !important;
}

.off-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.off-chat-head strong {
  display: block;
  font-size: 14px;
}

.off-chat-status {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.off-chat-back {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}

.off-chat-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

.off-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.off-chat-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.off-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.off-chat-bubble.is-system {
  align-self: center;
  max-width: 100%;
  background: transparent;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  padding: 4px 8px;
}

.off-chat-bubble.is-visitor {
  align-self: flex-end;
  background: #2f2f34;
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.off-chat-bubble.is-agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.off-chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.off-chat-compose input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.off-chat-compose input:focus {
  outline: none;
  border-color: var(--line-strong);
}

.off-chat-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.off-chat-send:hover {
  opacity: 0.92;
}

@media (max-width: 520px) {
  .off-chat {
    right: 14px;
    bottom: 14px;
  }
  .off-chat-panel {
    width: min(100vw - 28px, 340px);
  }
}
