.home-page {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.home-nav {
  min-height: 50px;
  padding: 0;
}

.home-nav .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.home-nav .brand {
  font-size: 18px;
}

.home-nav .button {
  min-height: 36px;
  padding-inline: 15px;
}

.hero {
  padding: clamp(72px, 10vw, 108px) 0 clamp(68px, 9vw, 104px);
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 7.8vw, 60px);
  font-weight: 600;
  letter-spacing: -0.0065em;
  line-height: 0.98;
  text-wrap: balance;
}

.notes-lockup {
  display: inline-flex;
  align-items: center;
  /*gap: 0.16em;*/
  white-space: nowrap;
}

.hero-title-lead {
  white-space: nowrap;
}

.notes-icon {
  margin: 0 12px 0 4px;
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 auto;
  transform: translateY(0.045em);
}

.hero-lead {
  max-width: 590px;
  margin: 21px 0 0;
  color: var(--text);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions .button {
  min-height: 44px;
  padding-inline: 19px;
}

.release-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-figure {
  margin: clamp(54px, 8vw, 60px) 0 0;
}

.product-frame {
  overflow: hidden;
  border-radius: 16px;
  background: #e9e9e7;
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.08), 0 8px 22px rgb(20 20 20 / 0.09);
}

.product-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.hero-caption-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Shared replay control (hero + feature cards) */
.hero-video-replay,
.feature-video-replay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  line-height: 1;
  transition: background-color 120ms ease-out;
}

.hero-video-replay[hidden],
.feature-video-replay[hidden] {
  display: none;
}

.hero-video-replay:hover,
.feature-video-replay:hover {
  background: var(--soft);
}

.hero-video-replay:active,
.feature-video-replay:active {
  background: var(--line);
}

.hero-video-replay:focus-visible,
.feature-video-replay:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.hero-video-replay svg,
.feature-video-replay svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-video-replay .play-icon,
.feature-video-replay .play-icon {
  display: none;
  fill: currentColor;
  stroke: none;
}

.hero-video-replay.is-play .replay-icon,
.feature-video-replay.is-play .replay-icon {
  display: none;
}

.hero-video-replay.is-play .play-icon,
.feature-video-replay.is-play .play-icon {
  display: block;
}

.feature-video-replay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 30px;
  font-size: 12px;
}

/* Shared section titles + leads */
.feature-intro h2,
.assistant-intro h2,
.cross-app-heading h2,
.privacy-heading h2,
.pricing-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 48px);
  font-weight: 580;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.feature-intro p,
.assistant-intro p,
.cross-app-heading p,
.privacy-heading p,
.pricing-heading p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.feature-intro p,
.assistant-intro p,
.cross-app-heading p {
  color: var(--text);
}

.feature-section {
  padding: 0 0 96px;
}

.feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: end;
}

.feature-intro h2 {
  max-width: 16ch;
}

.feature-intro p {
  max-width: 56ch;
  margin-top: 18px;
}

.feature-groups {
  border-top: 1px solid var(--line);
}

.feature-group {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.feature-group h3,
.feature-group ul {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.feature-group h3 {
  color: var(--muted);
  font-weight: 500;
}

.feature-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 560;
}

.feature-group li {
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
}

.feature-bento {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 24px;
  row-gap: 56px;
  margin: clamp(40px, 6vw, 64px) 0 0;
}

.feature-card {
  display: flex;
  overflow: hidden;
  grid-column: span 4;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.feature-media {
  position: relative;
  background: var(--soft);
}

.feature-shot {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--soft);
  padding: 8px;
}

.feature-card-copy {
  flex: 1;
  padding: 18px 20px 22px;
  background: var(--soft);
}

.feature-card-heading {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-card-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 540;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-card-copy p {
  max-width: 42ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
  text-wrap: pretty;
}

.feature-info-action {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.feature-info-action::before {
  position: absolute;
  inset: -12px;
  content: "";
}

.feature-info-action:hover {
  color: var(--ink);
}

.feature-info-action:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 50%;
  color: var(--ink);
}

.feature-info-action svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.35;
}

.feature-info-action .feature-info-dot {
  fill: currentColor;
  stroke: none;
}

.syntax-dialog {
  width: min(760px, calc(100% - 36px));
  max-height: min(760px, calc(100dvh - 36px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgb(20 20 20 / 0.22);
  color: var(--ink);
}

.syntax-dialog::backdrop {
  background: rgb(20 20 20 / 0.38);
  backdrop-filter: blur(3px);
}

.syntax-dialog-inner {
  overflow: auto;
  max-height: min(760px, calc(100dvh - 36px));
  padding: clamp(24px, 5vw, 42px);
}

.syntax-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.syntax-dialog-header h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.syntax-dialog-header p {
  max-width: 55ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.syntax-dialog-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.syntax-dialog-close:hover {
  background: var(--soft);
}

.syntax-dialog-close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.syntax-dialog-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.syntax-dialog-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(32px, 6vw, 64px);
  margin-top: clamp(34px, 6vw, 54px);
}

.syntax-dialog-sections h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.syntax-dialog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}

.syntax-dialog th,
.syntax-dialog td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.syntax-dialog th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.syntax-dialog th:last-child,
.syntax-dialog td:last-child {
  padding-left: 20px;
}

.syntax-dialog code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.syntax-hint {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.syntax-dialog-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

.assistant {
  padding: clamp(76px, 10vw, 112px) 0;
  overflow: visible;
  background: var(--soft);
}

.assistant-inner {
  overflow: visible;
}

/* Copy on top, panel showcase below — full width for dual popovers */
.assistant-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  justify-items: center;
  overflow: visible;
}

.assistant-intro {
  width: 100%;
  max-width: 40rem;
  justify-self: start;
}

.assistant-intro h2 {
  max-width: 18ch;
}

.assistant-intro p {
  max-width: 38ch;
  margin-top: clamp(14px, 2vw, 22px);
}

/* Assistant empty-state panel mock (HTML frame of assistant-hero-panel.png) */
.assistant-panel-figure {
  /* Extra room so @ / model popovers can float outside the panel chrome */
  margin: 0;
  width: min(100%, 480px);
  max-width: 480px;
  justify-self: center;
  overflow: visible;
  padding: 20px 56px 28px 48px;
}

.assistant-panel-mock {
  --panel-ink: rgb(25 25 25 / 0.88);
  --panel-muted: rgb(25 25 25 / 0.42);
  --panel-faint: rgb(25 25 25 / 0.08);
  --panel-hairline: rgb(25 25 25 / 0.08);
  --panel-soft: rgb(255 255 255 / 0.72);

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Taller than the source screenshot so empty + dual popovers breathe */
  aspect-ratio: 552 / 780;
  min-height: 520px;
  /* Popovers intentionally escape the panel bounds */
  overflow: visible;
  container-type: inline-size;
  border: 1px solid rgb(25 25 25 / 0.06);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.92) 0%, rgb(248 248 246 / 0.96) 100%);
  box-shadow:
    0 1px 0 rgb(20 20 20 / 0.04),
    0 18px 48px rgb(20 20 20 / 0.12),
    0 4px 14px rgb(20 20 20 / 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--panel-ink);
  user-select: none;
}

.assistant-panel-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 0;
}

.assistant-panel-topbar-spacer {
  flex: 1 1 auto;
}

.assistant-panel-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: rgb(25 25 25 / 0.55);
  background: rgb(25 25 25 / 0.06);
}

.assistant-panel-icon-btn.is-plain {
  background: transparent;
}

.assistant-panel-icon-btn svg {
  width: 15px;
  height: 15px;
}

.assistant-panel-control-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgb(25 25 25 / 0.05);
}

.assistant-panel-empty {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px 8px;
  text-align: center;
  transition: opacity 0.28s ease;
}

.assistant-panel-mark {
  width: clamp(52px, 18%, 72px);
  height: auto;
  margin-bottom: 4px;
  color: rgb(25 25 25 / 0.42);
  opacity: 0.9;
}

.assistant-panel-greeting {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.assistant-panel-greeting-title {
  color: rgb(20 20 20 / 0.92);
  font-size: clamp(22px, 5.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.assistant-panel-greeting-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgb(25 25 25 / 0.38);
  transform: translateY(-1px);
}

.assistant-panel-greeting-help svg {
  width: 15px;
  height: 15px;
}

.assistant-panel-subtitle {
  margin: 0;
  color: rgb(25 25 25 / 0.52);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.assistant-panel-composer-wrap {
  position: relative;
  z-index: 2;
  padding: 0 14px 14px;
  overflow: visible;
}

/*
 * Dual-popover mount above the composer.
 * Popovers intentionally hang outside the panel chrome (left / right / up).
 */
.assistant-panel-popover-slot {
  position: absolute;
  right: 10px;
  bottom: calc(100% - 4px);
  left: 10px;
  z-index: 4;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.assistant-panel-popover {
  display: none;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(25 25 25 / 0.08);
  border-radius: 16px;
  background: rgb(252 252 250 / 0.97);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.75) inset,
    0 18px 42px rgb(20 20 20 / 0.16),
    0 4px 12px rgb(20 20 20 / 0.08);
  backdrop-filter: blur(18px);
}

.assistant-panel-mock.is-showcase .assistant-panel-popover {
  display: flex;
}

.assistant-panel-popover.is-mention {
  position: absolute;
  right: auto;
  bottom: 8px;
  left: -172px;
  z-index: 2;
  width: 280px;
  max-height: none;
  padding: 10px 8px 8px;
}

.assistant-panel-popover.is-model {
  position: absolute;
  right: -172px;
  bottom: 64px;
  left: auto;
  z-index: 3;
  width: 280px;
  max-height: none;
  padding: 8px 0 6px;
}



.assistant-panel-note-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel-mock.is-showcase .assistant-panel-mention-list li {
  min-height: 32px;
  padding-block: 6px;
}

.assistant-panel-mock.is-showcase .assistant-panel-model-list li {
  min-height: 32px;
  padding-block: 5px;
}

.assistant-panel-model-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.assistant-panel-note-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  /*margin: 0 4px 8px;*/
  padding: 8px 10px;
  border-radius: 10px;
  background: rgb(25 25 25 / 0.05);
  color: rgb(25 25 25 / 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.assistant-panel-note-chip img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 3px;
  object-fit: contain;
}

.assistant-panel-popover-label {
  margin: 0;
  padding: 4px 12px 6px;
  color: rgb(25 25 25 / 0.42);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.assistant-panel-popover.is-mention .assistant-panel-popover-label {
  padding-inline: 10px;
}

.assistant-panel-mention-list,
.assistant-panel-model-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-panel-mention-list li,
.assistant-panel-model-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  color: rgb(25 25 25 / 0.88);
}

.assistant-panel-mention-list li.is-active,
.assistant-panel-model-list li.is-active {
  background: rgb(25 25 25 / 0.07);
}

.assistant-panel-skill-icon {
  display: inline-flex;
  width: 16px;
  flex: 0 0 16px;
  justify-content: center;
  color: #2f7cf6;
  font-size: 12px;
  line-height: 1;
}

.assistant-panel-mention-copy,
.assistant-panel-model-list-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.assistant-panel-mention-copy strong,
.assistant-panel-model-list-copy strong {
  overflow: hidden;
  color: rgb(20 20 20 / 0.9);
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel-mention-copy small,
.assistant-panel-model-list-copy small {
  overflow: hidden;
  color: rgb(25 25 25 / 0.4);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel-model-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 10px 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgb(25 25 25 / 0.05);
  color: rgb(25 25 25 / 0.36);
  font-size: 12px;
  line-height: 1;
}

.assistant-panel-model-search svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.assistant-panel-model-list {
  padding: 0 6px 4px;
}

.assistant-panel-model-list img {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  object-fit: contain;
}

.assistant-panel-check {
  color: rgb(25 25 25 / 0.55);
  font-size: 11px;
  font-weight: 600;
}

.assistant-panel-composer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 10px;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.78), rgb(250 250 248 / 0.9));
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.7) inset,
    0 8px 20px rgb(20 20 20 / 0.05),
    0 1px 2px rgb(20 20 20 / 0.04);
  backdrop-filter: blur(14px);
}

.assistant-panel-prompt {
  position: relative;
  min-height: 2.6em;
  padding: 2px 4px 0;
  color: rgb(25 25 25 / 0.88);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.assistant-panel-placeholder {
  color: rgb(25 25 25 / 0.34);
}

.assistant-panel-typed {
  display: none;
  align-items: center;
  color: rgb(20 20 20 / 0.9);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.assistant-panel-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  border-radius: 1px;
  background: rgb(47 124 246 / 0.95);
  vertical-align: -0.12em;
  animation: assistant-panel-caret 1s steps(1) infinite;
}

@keyframes assistant-panel-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.assistant-panel-mock.is-showcase .assistant-panel-placeholder {
  display: none;
}

.assistant-panel-mock.is-showcase .assistant-panel-typed {
  display: inline-flex;
}

.assistant-panel-mock.is-showcase .assistant-panel-model {
  background: rgb(25 25 25 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(25 25 25 / 0.06);
}

/* Keep empty-state readable behind open pickers — only a light dim */
.assistant-panel-mock.is-showcase .assistant-panel-empty {
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  .assistant-panel-caret {
    animation: none !important;
    opacity: 1;
  }
}

.assistant-panel-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.assistant-panel-toolbar-spacer {
  flex: 1 1 auto;
}

.assistant-panel-add,
.assistant-panel-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
}

.assistant-panel-add {
  color: rgb(25 25 25 / 0.62);
  background: rgb(25 25 25 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(25 25 25 / 0.05);
}

.assistant-panel-add svg,
.assistant-panel-send svg {
  width: 16px;
  height: 16px;
}

.assistant-panel-model,
.assistant-panel-web {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(25 25 25 / 0.07);
  color: rgb(25 25 25 / 0.78);
  font-size: 11.5px;
  font-weight: 450;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.assistant-panel-model {
  max-width: min(58%, 13rem);
  flex: 0 1 auto;
  min-width: 0;
}

.assistant-panel-model-effort[hidden] {
  display: none;
}

.assistant-panel-model img {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  object-fit: contain;
}

.assistant-panel-model-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-panel-model-effort {
  color: rgb(25 25 25 / 0.42);
  font-size: 11px;
}

.assistant-panel-web {
  gap: 4px;
  max-width: none;
  color: rgb(25 25 25 / 0.52);
  background: rgb(25 25 25 / 0.05);
}

.assistant-panel-web svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.assistant-panel-send {
  color: rgb(255 255 255 / 0.88);
  background: rgb(25 25 25 / 0.16);
}

/* Compact toolbar when panel is narrow */
@container (max-width: 300px) {
  .assistant-panel-model-name {
    max-width: 7.5ch;
  }
}

.assistant-pairs {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(48px, 7vw, 72px);
}

.assistant-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.assistant-pair-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 2.8vw, 28px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgb(20 20 20 / 0.05);
}

.assistant-pair-copy h3 {
  max-width: 16ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.assistant-pair-copy p {
  max-width: 36ch;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.assistant-pair-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 260px;
  margin-top: clamp(22px, 3vw, 28px);
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / 0.9), transparent 62%),
    var(--soft);
}

.assistant-pair-stage-panel {
  padding: 12px;
}

/* Compact assistant panel mocks inside pair cards */
.assistant-pair-stage-mock {
  align-items: flex-end;
  justify-content: center;
  min-height: 300px;
  padding: 16px 16px 0;
  overflow: visible;
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(255 255 255 / 0.95), transparent 62%),
    var(--soft);
}

.assistant-pair-stage-mock .assistant-panel-mock.is-compact {
  width: min(100%, 300px);
  max-width: 300px;
  min-height: 0;
  aspect-ratio: auto;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgb(20 20 20 / 0.04),
    0 12px 32px rgb(20 20 20 / 0.12);
}

.assistant-panel-mock.is-compact .assistant-panel-topbar {
  padding: 12px 12px 0;
}

.assistant-panel-mock.is-compact .assistant-panel-icon-btn {
  width: 26px;
  height: 26px;
}

.assistant-panel-compact-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 0;
  padding: 10px 12px 12px;
}

/* Point with @: short crop — note chip + skills + @ composer only */
.assistant-pair-stage-mock.is-mention-stage {
  min-height: 240px;
  align-items: center;
  padding: 18px 16px;
}

.assistant-pair-stage-mock.is-mention-stage .assistant-panel-mock.is-compact {
  width: min(100%, 268px);
  max-width: 268px;
}

.assistant-panel-mock.is-mention-focus {
  min-height: 0;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-compact-body {
  gap: 8px;
  padding: 10px 10px 10px;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-popover.is-static {
  position: relative;
  display: flex;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-height: none;
  z-index: 1;
  padding: 8px 6px 6px;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.7) inset,
    0 8px 20px rgb(20 20 20 / 0.1);
}

.assistant-panel-mock.is-mention-focus .assistant-panel-note-chip {
  margin: 0 2px 6px;
  padding: 7px 9px;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-popover-label {
  padding: 2px 10px 4px;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-mention-list li {
  min-height: 28px;
  padding: 5px 8px;
  gap: 7px;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-mention-copy small {
  display: none;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-composer {
  z-index: 1;
  gap: 6px;
  padding: 8px 10px 8px;
  border-radius: 16px;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-prompt {
  min-height: 1.15em;
  padding: 0 2px;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-typed {
  display: inline-flex;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-placeholder,
.assistant-panel-mock.is-mention-focus .assistant-panel-model,
.assistant-panel-mock.is-mention-focus .assistant-panel-web {
  display: none;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-toolbar {
  min-height: 28px;
  gap: 6px;
}

.assistant-panel-mock.is-mention-focus .assistant-panel-add,
.assistant-panel-mock.is-mention-focus .assistant-panel-send {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

/* Write back: conversation inside the same panel chrome */
.assistant-panel-mock.is-writeback {
  min-height: 300px;
}

.assistant-panel-mock.is-writeback .assistant-writeback-mock {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px 12px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.assistant-panel-mock.is-writeback .assistant-writeback-thread {
  gap: 14px;
}

.assistant-panel-mock.is-writeback .assistant-writeback-context-card,
.assistant-panel-mock.is-writeback .assistant-writeback-user,
.assistant-panel-mock.is-writeback .assistant-writeback-assistant {
  max-width: none;
  width: auto;
}

.assistant-panel-mock.is-writeback .assistant-writeback-row.is-user {
  align-items: flex-end;
}

.assistant-panel-mock.is-writeback .assistant-writeback-user {
  max-width: 92%;
}

.assistant-panel-mock.is-writeback .assistant-writeback-assistant {
  max-width: 96%;
}

/* Skill chips — reused for cross-app Skills launcher */
.assistant-skill-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-skill-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.04);
}

.assistant-skill-chips li.is-active {
  border-color: var(--line-strong);
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.assistant-skill-chips li.is-faded {
  opacity: 0.48;
}

.assistant-skill-mark {
  display: inline-flex;
  width: 1em;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.assistant-skill-chips li.is-active .assistant-skill-mark {
  color: rgb(255 255 255 / 0.72);
}

/* Apple Notes–style Skills folder mock */
.assistant-pair-stage-notes {
  align-items: stretch;
  justify-content: center;
  min-height: 280px;
  padding: 14px;
  overflow: hidden;
}

.notes-skills-mock {
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr);
  width: 100%;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgb(25 25 25 / 0.08);
  border-radius: 14px;
  background: #fbfbfa;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.8) inset,
    0 10px 28px rgb(20 20 20 / 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.notes-skills-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  border-right: 1px solid rgb(25 25 25 / 0.06);
  background: linear-gradient(180deg, #f3f3f1 0%, #efefed 100%);
}

.notes-skills-traffic {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
  padding-left: 2px;
}

.notes-skills-traffic span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d8d8d4;
}

.notes-skills-traffic span:nth-child(1) { background: #ff5f57; }
.notes-skills-traffic span:nth-child(2) { background: #febc2e; }
.notes-skills-traffic span:nth-child(3) { background: #28c840; }

.notes-skills-sidebar-label {
  margin: 0;
  padding: 0 6px;
  color: rgb(25 25 25 / 0.4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.notes-skills-folders {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-skills-folders li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 7px;
  color: rgb(25 25 25 / 0.62);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.notes-skills-folders li::before {
  width: 12px;
  flex: 0 0 12px;
  font-size: 10px;
  line-height: 1;
  text-align: center;
  content: "📁";
  filter: grayscale(1);
  opacity: 0.5;
}

.notes-skills-folders li.is-active {
  background: #f4b43a;
  color: rgb(40 28 4 / 0.92);
  font-weight: 600;
  box-shadow: 0 1px 0 rgb(180 120 20 / 0.12);
}

.notes-skills-folders li.is-active::before {
  filter: none;
  opacity: 0.9;
}

.notes-skills-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 10px;
  background: #fff;
}

.notes-skills-main-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.notes-skills-main-header strong {
  color: rgb(20 20 20 / 0.9);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.notes-skills-main-header small {
  color: rgb(25 25 25 / 0.4);
  font-size: 11px;
  font-weight: 500;
}

.notes-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.notes-skills-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  padding: 10px 10px 8px;
  border: 1px solid rgb(25 25 25 / 0.06);
  border-radius: 10px;
  background: #fafaf8;
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.03);
}

.notes-skills-card h4 {
  margin: 0;
  color: rgb(20 20 20 / 0.9);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.notes-skills-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: rgb(25 25 25 / 0.48);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.assistant-models {
  width: 100%;
  margin: 12px 36px 0;
  list-style: none;
}

.assistant-models {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  border: 0px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: var(--surface);
  box-shadow: 0 6px 16px rgb(20 20 20 / 0.05);
}

.assistant-models li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 9px;
}

.assistant-models li.is-selected {
  background: var(--soft);
}

.assistant-models img,
.assistant-openrouter-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.assistant-openrouter-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #27241d;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: -0.05em;
}

.assistant-models li > span:last-child,
.assistant-models strong,
.assistant-models small {
  display: block;
}

.assistant-models strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.assistant-models small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.assistant-pair-stage-panel .assistant-models {
  min-height: 100%;
}

/*
 * Conversation surface inside compact writeback panel:
 * message spacing, user soft bubble, context card, copy actions.
 */
.assistant-writeback-mock {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.assistant-writeback-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.assistant-writeback-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.assistant-writeback-row.is-user {
  align-items: flex-end;
  gap: 8px;
}

.assistant-writeback-row.is-assistant {
  align-items: flex-start;
  gap: 6px;
}

.assistant-writeback-context-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 260px);
  padding: 10px 12px;
  border: 1px solid rgb(25 25 25 / 0.05);
  border-radius: 14px;
  background: rgb(25 25 25 / 0.07);
  backdrop-filter: blur(8px);
}

.assistant-writeback-notes-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 6px;
  object-fit: contain;
}

.assistant-writeback-context-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.assistant-writeback-context-card strong {
  overflow: hidden;
  color: rgb(0 0 0 / 0.85);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-writeback-context-card small {
  color: rgb(0 0 0 / 0.45);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.assistant-writeback-user {
  max-width: min(100%, 260px);
  padding: 10px 12px;
  border-radius: 18px;
  background: rgb(25 25 25 / 0.07);
  color: rgb(0 0 0 / 0.88);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
  text-wrap: pretty;
  backdrop-filter: blur(8px);
}

.assistant-writeback-user p {
  margin: 0;
}

.assistant-writeback-assistant {
  max-width: min(100%, 280px);
  color: rgb(0 0 0 / 0.88);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-wrap: pretty;
}

.assistant-writeback-assistant p {
  margin: 0;
}

.assistant-writeback-assistant ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.assistant-writeback-assistant li {
  position: relative;
  padding-left: 1.05em;
}

.assistant-writeback-assistant li::before {
  position: absolute;
  left: 0.15em;
  color: rgb(0 0 0 / 0.55);
  content: "•";
}

.assistant-writeback-assistant li + li {
  margin-top: 4px;
}

.assistant-writeback-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.assistant-writeback-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: rgb(0 0 0 / 0.48);
  background: transparent;
}

.assistant-writeback-icon-btn.is-active {
  color: rgb(0 0 0 / 0.72);
  background: rgb(25 25 25 / 0.08);
}

.assistant-writeback-icon-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-writeback-icon-btn svg circle {
  fill: currentColor;
  stroke: none;
}

.assistant-writeback-hint {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.assistant-writeback-hint::before {
  margin-right: 5px;
  color: rgb(0 0 0 / 0.28);
  content: "↓";
}


.cross-app {
  padding: clamp(76px, 10vw, 112px) 0;
  background: var(--surface);
}

.cross-app-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(40px, 8vw, 104px);
  align-items: end;
}

.cross-app-heading h2 {
  max-width: 12ch;
}

.cross-app-heading p {
  max-width: 48ch;
}

.cross-app-showcase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(20px, 3vw, 28px);
  margin-top: clamp(40px, 6vw, 64px);
}

.cross-app-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-self: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.cross-app-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.72fr);
  gap: clamp(28px, 4.5vw, 48px);
  align-items: center;
}

.cross-app-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out,
    box-shadow 160ms ease-out;
}

.cross-app-tab:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 0.7);
}

.cross-app-tab.is-active {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.06), 0 4px 12px rgb(20 20 20 / 0.05);
}

.cross-app-tab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.cross-app-tab-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.72;
}

.cross-app-tab.is-active .cross-app-tab-icon {
  opacity: 1;
}

.cross-app-stage {
  --cross-app-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 14px;
  background: var(--line);
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.08), 0 8px 22px rgb(20 20 20 / 0.09);
}

.cross-app-shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 280ms var(--cross-app-ease);
}

.cross-app-shot.is-active:not([hidden]) {
  opacity: 1;
}

.cross-app-shot[hidden] {
  display: none !important;
}

.cross-app-media {
  position: absolute;
  inset: 0;
  background: var(--soft);
}

.cross-app-shot img,
.cross-app-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cross-app-shot img {
  transform: scale(1.02);
}

.cross-app-video-replay {
  z-index: 2;
}

.cross-app-meta {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  text-align: left;
}

.cross-app-meta-panel {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 32ch;
}

.cross-app-meta-panel[hidden] {
  display: none !important;
}

.cross-app-meta-panel p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.5;
  text-wrap: pretty;
}

.cross-app-enhance {
  color: var(--muted) !important;
  font-size: 13px !important;
}

.cross-app-enhance a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(25 25 25 / 0.28);
  text-underline-offset: 0.18em;
}

.cross-app-enhance a:hover {
  text-decoration-color: var(--ink);
}

.cross-app-meta-panel kbd {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.08);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 620;
  line-height: 1;
}


.privacy {
  padding: clamp(76px, 10vw, 80px) 0;
  background: #08090A;
  color: #d0d6e0;
}

.privacy-inner {
  /*display: grid;*/
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(56px, 10vw, 128px);
  align-items: start;
}

.privacy-heading {
  margin-bottom: 24px;
}

.privacy-heading h2 {
  max-width: 11ch;
  margin: 0 120px;
  color: #f6f5f0;
}

.privacy-heading p {
  max-width: 48ch;
  margin: 22px 120px 0;
  /* Inherits light-on-dark color from .privacy */
}

.privacy-heading a {
  display: inline-flex;
  align-items: start;
  gap: 7px;
  margin-top: 28px;
  color: #f6f5f0;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(246 245 240 / 0.45);
  text-underline-offset: 0.24em;
}

.privacy-heading a:hover {
  color: #ffffff;
}

.privacy-heading a:focus-visible {
  outline: 2px solid #f6f5f0;
  outline-offset: 5px;
  border-radius: 3px;
}

.privacy-principles article {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 24px 120px 24px;
}

.privacy-principles h3,
.privacy-principles p {
  margin: 0;
}

.privacy-principles h3 {
  /*color: #f6f5f0;*/
  font-size: 15px;
  font-weight: 510;
  line-height: 1.42;
  text-wrap: balance;
}

.privacy-principles p {
  color: #8a8f98;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.58;
  text-wrap: pretty;
}

.pricing {
  padding: clamp(64px, 8vw, 88px) 0 clamp(48px, 6vw, 64px);
}

.pricing-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.pricing-heading {
  max-width: 32rem;
}

.pricing-heading h2 {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(30px, 4vw, 38px);
}

.pricing-heading > p:not(.pricing-kicker) {
  max-width: 46ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.pricing-kicker {
  margin: 10px auto 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.pricing-card {
  position: relative;
  display: grid;
  justify-items: stretch;
  width: min(100%, 360px);
  margin-top: 28px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.04), 0 10px 28px rgb(20 20 20 / 0.05);
  color: var(--text);
  text-align: left;
}

.pricing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pricing-card-top strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pricing-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 48px;
  height: 48px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(12deg);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.pricing-amount {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 40px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.pricing-was {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: line-through;
}

.pricing-scope {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.pricing-features {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.pricing-features li::before {
  content: "✓";
  margin-top: -1px;
  color: #2f9e54;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.pricing-cta {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.pricing-cta:hover {
  background: #37352f;
  color: #ffffff;
}

.pricing-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.pricing-foot {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  justify-items: center;
  text-align: center;
}

.pricing-foot a {
  color: var(--muted);
  font-size: 12.5px;
  text-underline-offset: 0.2em;
}

.pricing-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.pricing .release-meta {
  margin-top: 16px;
  font-size: 12px;
}

.faq {
  display: grid;
  grid-template-columns: minmax(180px, 0.52fr) 1fr;
  gap: clamp(40px, 9vw, 112px);
  padding: 0 56px 56px;
}

.faq h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.025em;
}

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

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  color: var(--muted);
  content: "+";
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: -3px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-figure {
    animation: hero-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-figure {
    animation-delay: 0.08s;
  }

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

@media (max-width: 820px) {
  .home-page {
    width: min(100% - 36px, 1120px);
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .feature-intro,
  .faq {
    grid-template-columns: 1fr;
  }

  .feature-intro {
    gap: 32px;
  }

  .assistant-heading,
  .assistant-pair,
  .cross-app-heading,
  .privacy-inner {
    grid-template-columns: 1fr;
  }

  .cross-app-heading {
    align-items: start;
  }

  .cross-app-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cross-app-meta {
    justify-items: center;
    text-align: center;
  }

  .cross-app-meta-panel {
    justify-items: center;
    max-width: 42ch;
  }

  .privacy-inner {
    gap: 48px;
  }

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

  .feature-card {
    grid-column: span 1;
  }

}

@media (max-width: 720px) {
  .feature-bento {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .feature-card {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .home-nav {
    min-height: 60px;
  }

  .hero {
    padding-top: 52px;
  }


  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-title-lead {
    white-space: normal;
  }

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

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

  .feature-group {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .syntax-dialog {
    width: min(100% - 20px, 760px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .syntax-dialog-inner {
    max-height: calc(100dvh - 20px);
    padding: 24px 20px 28px;
  }

  .syntax-dialog-header {
    gap: 18px;
  }

  .syntax-dialog-sections {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }

  .hero-caption {
    align-items: center;
    gap: 10px;
  }

  .hero-caption-end > span:first-child {
    display: none;
  }

  .hero-video-replay {
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
  }

  .hero-video-replay > span {
    display: none;
  }

  .product-frame,
  .feature-card,
  .assistant-panel-mock,
  .assistant-pair-card,
  .assistant-models {
    border-radius: 10px;
  }

  .assistant-pair-stage-mock .assistant-panel-mock.is-compact {
    width: min(100%, 280px);
    max-width: 280px;
    border-radius: 18px;
  }

  .assistant {
    padding: 68px 0;
  }

  .assistant-heading {
    gap: 22px;
  }

  .assistant-panel-figure {
    width: min(100%, 360px);
    max-width: 360px;
    justify-self: center;
    padding: 12px 28px 20px 24px;
  }

  .assistant-panel-mock {
    min-height: 480px;
    border-radius: 22px;
  }

  .assistant-panel-popover.is-mention {
    left: -18px;
    width: min(220px, 70%);
  }

  .assistant-panel-popover.is-model {
    right: -20px;
    bottom: 40px;
    width: min(196px, 66%);
  }

  .assistant-pairs,
  .assistant-pair {
    gap: 14px;
  }

  .assistant-pair-stage {
    min-height: 220px;
  }

  .assistant-pair-copy h3 {
    max-width: none;
  }

  .assistant-pair-copy p {
    max-width: none;
  }

  .cross-app {
    padding: 68px 0;
  }

  .cross-app-heading {
    gap: 24px;
  }

  .cross-app-showcase {
    gap: 16px;
    margin-top: 32px;
  }

  .cross-app-tab {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .cross-app-stage {
    border-radius: 10px;
  }

  .cross-app-meta {
    width: 100%;
  }

  .cross-app-meta-panel {
    max-width: none;
  }

  .cross-app-meta-panel p {
    font-size: 14px;
  }

  .privacy {
    padding: 68px 0;
  }

  .privacy-heading h2,
  .privacy-heading p {
    margin-inline: 0;
  }

  .privacy-principles article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-inline: 0;
  }

  .pricing {
    padding: 56px 0 40px;
  }

  .pricing-card {
    width: min(100%, 340px);
    padding: 20px 18px 18px;
    border-radius: 14px;
  }

  .pricing-amount {
    font-size: 36px;
  }

  .pricing-seal {
    min-width: 44px;
    height: 44px;
    font-size: 8px;
  }

  .faq {
    padding-bottom: 72px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-figure {
    animation: none;
  }

  .cross-app-shot {
    transition: none;
  }
}

/* Home footer — multi-column layout */
.home-footer {
  display: block;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  flex-wrap: nowrap;
  padding: 48px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.35fr) repeat(3, minmax(100px, 0.7fr)) minmax(180px, 1.1fr);
  gap: 32px 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 220px;
}

.footer-brand-link {
  font-size: 16px;
}

.footer-brand-link img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-footer .footer-social-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--soft);
}

.footer-social-link svg {
  width: 15px;
  height: 15px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-heading {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.15s ease;
}

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

.footer-loop {
  max-width: 240px;
}

.footer-loop-copy {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.footer-follow {
  margin-top: 4px;
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 999px;
}

.footer-meta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-loop {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .home-footer {
    padding: 36px 0 32px;
  }

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

  .footer-meta {
    margin-top: 28px;
  }
}
