:root {
  --bg: #000000;
  --paper: #101010;
  --paper-strong: #151515;
  --card: #121212;
  --card-strong: #1a1a1a;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --ink: #ffffff;
  --muted: #c6c6c6;
  --muted-strong: #f0f0f0;
  --accent: #ffec44;
  --accent-soft: rgba(255, 236, 68, 0.14);
  --accent-strong: #fff15a;
  --accent-ink: #000000;
  --navy: #000000;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --sidebar-width: 320px;
  --specs-column-width: clamp(320px, 25vw, 470px);
  --arrow-mark: url("./assets/brand/arrow.svg");
  --stroke-mark: url("./assets/brand/stroke.png");
  --stroke-mark-dark: url("./assets/brand/stroke-dark.png");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Franklin", "Avenir Next", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 236, 68, 0.09), transparent 24%),
    linear-gradient(180deg, #0c0c0c 0%, #000000 100%);
}

body,
.shell,
.workspace,
.hero-grid > *,
.landing-home-grid > *,
.landing-browser-head > *,
.landing-browser-group-head > *,
.preview-layout > *,
.preview-main-column,
.stage-card,
.specs-card,
.preview-stage,
.preview-frame,
.preview-scale-stage,
.preview-scale-content,
.preview-live,
.ad-tag-preview,
.specs-head > * {
  min-width: 0;
}

button,
a {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.96);
}

.hero-card,
.stage-card,
.specs-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-block {
  padding: 0 0 6px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-home-button {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: opacity 140ms ease;
}

.brand-home-button:hover,
.brand-home-button:focus-visible {
  opacity: 0.92;
  outline: none;
}

.brand-home-button:disabled {
  cursor: default;
  opacity: 1;
}

.brand-home-button:disabled:hover,
.brand-home-button:disabled:focus-visible {
  opacity: 1;
}

.brand-home-hint {
  margin-top: 14px;
  display: inline-grid;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-home-hint-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-home-hint-arrow {
  display: inline-block;
  transition: transform 140ms ease;
}

.brand-home-hint-arrow.is-nudging {
  animation: brand-home-arrow-nudge 280ms ease;
}

.brand-home-hint-stroke {
  width: 94px;
  height: 8px;
  background: left center / contain no-repeat var(--stroke-mark);
}

.brand-home-button:hover .brand-home-hint-arrow,
.brand-home-button:focus-visible .brand-home-hint-arrow {
  transform: translateX(2px);
}

@keyframes brand-home-arrow-nudge {
  0% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(4px);
  }

  70% {
    transform: translateX(-1px);
  }

  100% {
    transform: translateX(0);
  }
}

.eyebrow,
.section-label,
.note-label,
.preview-label,
.article-kicker {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow::before,
.section-label::before,
.note-label::before,
.preview-label::before,
.article-kicker::before {
  content: "";
  width: 11px;
  height: 12px;
  flex: 0 0 auto;
  background: center / contain no-repeat var(--arrow-mark);
}

.brand-block h1,
.hero-card h2 {
  margin: 0;
  font-family: "Franklin", "Avenir Next", Arial, Helvetica, sans-serif;
  line-height: 0.92;
}

.brand-block h1 {
  max-width: none;
  font-size: clamp(1.16rem, 2vw, 1.52rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}

.intro,
.sidebar-note p,
.hero-description,
.article-copy p,
.spec-list,
.copied-link {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.brand-block .intro {
  margin-top: 10px;
  max-width: 30ch;
  font-size: 0.87rem;
  line-height: 1.42;
}

.product-nav {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.sidebar-nav-shell {
  display: grid;
}

.sidebar-theme-shell {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.sidebar-theme-label {
  margin-bottom: 0;
}

.theme-toggle-group {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 0.66fr) minmax(0, 1.68fr);
  gap: 6px;
}

.theme-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.theme-option[aria-pressed="true"] {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-ink);
}

.theme-option:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.theme-option-system {
  font-size: 0.74rem;
  letter-spacing: -0.01em;
}

.sidebar-nav-toggle {
  display: none;
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.sidebar-nav-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-nav-toggle-label {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.15;
}

.sidebar-nav-toggle-meta {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.sidebar-nav-toggle-symbol {
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 140ms ease;
}

.sidebar-nav-toggle[aria-expanded="true"] .sidebar-nav-toggle-symbol {
  transform: rotate(45deg);
}

.recommendation-trigger {
  width: 100%;
  margin-top: 16px;
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.recommendation-trigger::after {
  content: "Answer a few quick questions";
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

.recommendation-trigger:hover,
.recommendation-trigger:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  outline: none;
}

.nav-section {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  overflow: hidden;
}

.nav-section-title,
.nav-group-title {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-section-title {
  padding: 18px 18px 14px;
  color: var(--ink);
}

.nav-section-label {
  min-width: 0;
  flex: 1 1 auto;
}

.nav-section-copy {
  display: grid;
  gap: 3px;
}

.nav-section-heading {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-section-subheading {
  font-size: 0.74rem;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle-symbol {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 500;
}

.nav-section.is-current {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-section.is-current .nav-section-title {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 72%);
}

.nav-section.is-current .nav-section-heading {
  color: var(--ink);
}

.nav-section.is-current .nav-section-subheading {
  color: rgba(255, 255, 255, 0.84);
}

.nav-section.is-current .nav-toggle-symbol {
  color: var(--accent);
}

.nav-section-body,
.nav-group-body {
  display: none;
}

.nav-section.is-open .nav-section-body,
.nav-group.is-open .nav-group-body {
  display: block;
}

.nav-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-group-title {
  padding: 12px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-group.is-current .nav-group-title {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-group-body {
  padding: 0;
}

.nav-group-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-group-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.nav-group-icon-video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Crect x='1.5' y='3.25' width='7.75' height='7' rx='1.4' stroke='%23FFEC44' stroke-width='1.3'/%3E%3Cpath d='M9.85 5.3 12.25 4v6l-2.4-1.3V5.3Z' stroke='%23FFEC44' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-group-icon-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Crect x='1.5' y='2.25' width='11' height='8.5' rx='1.4' stroke='%23FFEC44' stroke-width='1.3'/%3E%3Cpath d='M3.2 8.7 5.45 6.5l1.55 1.5 1.85-2 1.95 2.7' stroke='%23FFEC44' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4.35' cy='4.95' r='0.8' fill='%23FFEC44'/%3E%3C/svg%3E");
}

.product-list {
  display: grid;
  gap: 0;
  padding: 0;
}

.product-button {
  width: 100%;
  position: relative;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 16px 18px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.product-list .product-button:first-child {
  border-top: 0;
}

.product-button:hover,
.product-button:focus-visible {
  background: rgba(255, 236, 68, 0.12);
  outline: none;
}

.product-button.is-active {
  background: #ffffff;
}

.product-button.is-filter-match {
  background: linear-gradient(180deg, rgba(255, 236, 68, 0.08), rgba(255, 236, 68, 0.02));
}

.product-button.is-filter-match .product-name {
  color: var(--accent);
}

.product-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.product-button.is-active .product-name {
  color: var(--accent-ink);
}

.product-button.is-active .product-name::after {
  content: none;
}

.product-button.is-active .product-subtitle {
  color: rgba(0, 0, 0, 0.72);
}

.product-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

.workspace {
  padding: 28px;
}

.hero-card {
  padding: 12px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 236, 68, 0.12), transparent 26%),
    linear-gradient(145deg, #171717, #0c0c0c);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card.is-collection {
  padding: 14px 18px;
}

.hero-copy {
  display: grid;
  gap: 8px;
}

@media (min-width: 721px) {
  .hero-card:not(.is-collection) .hero-copy {
    grid-template-columns: minmax(280px, 0.96fr) minmax(0, 1.04fr);
    column-gap: clamp(10px, 1.3vw, 18px);
    align-items: stretch;
  }

  .hero-card:not(.is-collection) .hero-copy > .eyebrow {
    grid-column: 1;
    margin-bottom: 0;
    align-self: start;
  }

  .hero-card:not(.is-collection) .hero-grid {
    display: contents;
  }

  .hero-card:not(.is-collection) .hero-heading {
    grid-column: 1;
    align-content: start;
  }

  .hero-card:not(.is-collection) .hero-summary {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: min(100%, 50ch);
    justify-self: end;
    align-self: center;
  }
}

.hero-card .eyebrow,
.hero-card .hero-description,
.hero-card .hero-tagline {
  color: rgba(255, 255, 255, 0.8);
}

.hero-card h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  max-width: none;
  line-height: 0.98;
  letter-spacing: normal;
}

.hero-tagline {
  margin: 2px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--muted-strong);
  line-height: 1.28;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(14px, 1.8vw, 22px);
  align-items: start;
}

.hero-card.is-collection .hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.hero-heading {
  display: grid;
  align-content: start;
  gap: 5px;
}

.hero-card.is-collection .hero-heading {
  gap: 4px;
}

.hero-summary {
  max-width: 54ch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: start;
}

.hero-card.is-collection .hero-summary {
  display: none;
}

.hero-description {
  font-size: 0.92rem;
  line-height: 1.42;
}

.hero-card.is-collection .hero-description {
  font-size: 0.88rem;
  line-height: 1.38;
}

.hero-card.is-collection .hero-tagline {
  font-size: 0.95rem;
  margin-top: 2px;
}

.objective-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.objective-inline .preview-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  padding-top: 0;
}

.objective-inline .meta-pill-dark {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.objective-inline .pill-row,
.hero-heading .pill-row {
  margin-top: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.meta-pill-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.meta-pill-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.95;
}

.meta-pill-icon-video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.4' y='3.05' width='7.2' height='6.4' rx='1.3' stroke='%23FFEC44' stroke-width='1.2'/%3E%3Cpath d='M9.1 4.95 11.4 3.7v5.55L9.1 8V4.95Z' stroke='%23FFEC44' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.meta-pill-icon-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.35' y='2.15' width='10.3' height='7.95' rx='1.3' stroke='%23FFEC44' stroke-width='1.2'/%3E%3Cpath d='M3 8.2 5 6.2l1.35 1.3 1.65-1.8 1.75 2.4' stroke='%23FFEC44' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4.05' cy='4.6' r='0.72' fill='%23FFEC44'/%3E%3C/svg%3E");
}

.ghost-button {
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 11px 17px;
  background: #ffffff;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.landing-back-button:hover,
.landing-back-button:focus-visible,
.focus-button:hover,
.focus-button:focus-visible,
.focus-close:hover,
.focus-close:focus-visible,
.recommendation-edit:hover,
.recommendation-edit:focus-visible,
.recommendation-open:hover,
.recommendation-open:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  outline: none;
}

.copied-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.ghost-button-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

#share-button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-ink);
  box-shadow: none;
}

.ghost-button-light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-ink);
}

.hero-secondary-button {
  background: #ffffff;
  color: var(--accent-ink);
}

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

.landing-view {
  margin-top: 0;
}

.landing-home,
.landing-browser-panel {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 236, 68, 0.04), transparent 38%),
    rgba(18, 18, 18, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.landing-home {
  padding: 22px;
  min-height: calc(100vh - 56px);
  display: grid;
}

.landing-home-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: center;
  min-height: 100%;
}

.landing-home-actions {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-self: center;
  max-width: 410px;
  padding: 10px 8px 10px 0;
}

.landing-home-actions h3,
.landing-browser-head h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.landing-home-actions h3 {
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  line-height: 0.96;
}

.landing-browser-head h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1;
}

.landing-copy,
.landing-filter-label {
  font-size: 1rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.landing-home-buttons {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 8px;
}

.landing-home-buttons .ghost-button {
  min-width: 250px;
  padding: 14px 20px;
  font-size: 1.02rem;
}

.landing-home-buttons .hero-secondary-button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-ink);
}

.landing-home-buttons .hero-secondary-button:hover,
.landing-home-buttons .hero-secondary-button:focus-visible {
  transform: none;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-ink);
  outline: none;
}

.landing-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.landing-preview-card,
.landing-product-card,
.landing-browser-filter {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.landing-preview-card:hover,
.landing-preview-card:focus-visible,
.landing-product-card:hover,
.landing-product-card:focus-visible,
.landing-browser-filter:hover,
.landing-browser-filter:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  outline: none;
}

.landing-preview-card {
  padding: 16px 16px 14px;
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.landing-preview-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  width: 100%;
}

.landing-preview-card-note {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 28ch;
}

.landing-phone-shell {
  position: relative;
  width: min(100%, 232px);
  margin: 0 auto;
  padding: 9px 8px 9px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, #2f2f2f 0%, #181818 30%, #090909 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 3px rgba(0, 0, 0, 0.18);
}

.landing-phone-shell::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 35%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
  z-index: 3;
}

.landing-phone-shell::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

.landing-phone-screen {
  position: relative;
  aspect-ratio: 23 / 50;
  border-radius: 34px;
  overflow: hidden;
  background: #111111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.landing-phone-reference {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-phone-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.landing-phone-stage.is-cover-width {
  overflow: hidden;
}

.landing-phone-stage.is-align-top {
  align-items: start;
  justify-items: center;
}

.landing-phone-slot {
  position: absolute;
  top: var(--landing-slot-top);
  left: var(--landing-slot-left);
  width: var(--landing-slot-width);
  height: var(--landing-slot-height);
  padding: 0;
  border-radius: var(--landing-slot-radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.landing-phone-content {
  position: relative;
  transform-origin: top center;
  will-change: transform;
  z-index: 1;
}

.landing-phone-content .ad-tag-preview {
  width: 100%;
  height: 100%;
}

.landing-phone-content .ad-tag-preview__frame {
  border-radius: 0;
}

.landing-browser-panel {
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
}

.landing-browser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.landing-back-button {
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 9px 14px;
  background: #ffffff;
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.landing-browser-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-browser-filter {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-width: min(280px, 100%);
}

.landing-browser-filter.is-active {
  background: linear-gradient(180deg, rgba(255, 236, 68, 0.08), rgba(255, 236, 68, 0.03));
  border-color: var(--accent);
}

.landing-card-visual,
.landing-product-visual {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 236, 68, 0.96), rgba(255, 236, 68, 0.78));
  border: 1px solid rgba(255, 236, 68, 0.4);
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.landing-card-visual {
  width: 42px;
  height: 42px;
  font-size: 0.7rem;
}

.landing-product-visual {
  width: 46px;
  height: 46px;
  font-size: 0.74rem;
}

.landing-card-copy,
.landing-product-copy {
  min-width: 0;
}

.landing-card-title,
.landing-product-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.landing-card-subtitle,
.landing-product-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.84rem;
}

.landing-card-note {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.landing-browser-groups {
  display: grid;
  gap: 14px;
}

.landing-browser-group {
  display: grid;
  gap: 10px;
}

.landing-browser-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.landing-browser-group-head h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.landing-browser-group-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.landing-product-card {
  min-height: 100%;
  padding: 14px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.landing-product-card .pill-row {
  margin-top: 7px;
  gap: 5px;
}

.landing-product-card .meta-pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 0.69rem;
  padding: 4px 8px;
}

.landing-product-subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-product-card .meta-pill-icon-video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.4' y='3.05' width='7.2' height='6.4' rx='1.3' stroke='%23FFEC44' stroke-width='1.2'/%3E%3Cpath d='M9.1 4.95 11.4 3.7v5.55L9.1 8V4.95Z' stroke='%23FFEC44' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.landing-product-card .meta-pill-icon-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.35' y='2.15' width='10.3' height='7.95' rx='1.3' stroke='%23FFEC44' stroke-width='1.2'/%3E%3Cpath d='M3 8.2 5 6.2l1.35 1.3 1.65-1.8 1.75 2.4' stroke='%23FFEC44' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4.05' cy='4.6' r='0.72' fill='%23FFEC44'/%3E%3C/svg%3E");
}

.landing-filter-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

.preview-layout {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, var(--specs-column-width));
  gap: 24px;
  align-items: start;
}

.preview-main-column {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.stage-card,
.specs-card {
  border-radius: var(--radius-xl);
  background: transparent;
}

.stage-card {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.stage-card.is-sticky {
  align-self: start;
  position: sticky;
  top: var(--stage-sticky-top, 20px);
}

.specs-card {
  background: var(--card);
  min-width: 300px;
}

.preview-stage {
  border-radius: 26px;
  padding: 18px 18px 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 236, 68, 0.08), transparent 22%),
    linear-gradient(180deg, #141414, #050505);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.preview-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.device-frame-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.preview-stage-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.focus-button,
.focus-close {
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 9px 14px;
  background: #ffffff;
  color: var(--accent-ink);
  cursor: pointer;
}

.preview-scale-note,
.focus-scale-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
}

.preview-frame {
  min-height: 340px;
  display: grid;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
}

.preview-scale-stage {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 304px;
}

.preview-scale-content {
  position: relative;
  transform-origin: top center;
  will-change: transform;
  max-width: 100%;
  overflow: hidden;
}

.preview-live {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.ad-tag-preview {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.ad-tag-preview__frame {
  width: var(--tag-target-width, 100%);
  height: var(--tag-target-height, 100%);
  display: block;
  border: 0;
  background: transparent;
  transform: scale(var(--tag-scale, 1));
  transform-origin: top left;
}

.preview-frame img,
.focus-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-fallback {
  display: grid;
  place-items: center;
  padding: 40px;
  min-height: 320px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.device-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.device-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.device-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.benchmark-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

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

.benchmark-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benchmark-item {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.benchmark-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.benchmark-label-text {
  display: inline-block;
}

.benchmark-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.benchmark-info {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}

.benchmark-info:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.benchmark-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(220px, 52vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  color: var(--muted-strong);
  font-size: 0.76rem;
  line-height: 1.38;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 2;
}

.benchmark-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: translate(-50%, -55%) rotate(45deg);
}

.benchmark-info-wrap:hover .benchmark-tooltip,
.benchmark-info-wrap:focus-within .benchmark-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.benchmark-value {
  font-size: 1.02rem;
  color: var(--accent);
}

.device-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  min-height: 42px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.device-chip:hover,
.device-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  outline: none;
}

.device-chip.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.device-chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
  background: #ffffff;
  color: var(--accent-ink);
  border-color: #ffffff;
}

.device-chip-link-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.96;
  transform: translateY(-0.5px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.device-chip-link:hover,
.device-chip-link:focus-visible {
  background: var(--accent);
}

.specs-card {
  padding: 20px 24px 24px;
  display: grid;
  gap: 18px;
  container-type: inline-size;
  background:
    linear-gradient(180deg, rgba(255, 236, 68, 0.04), transparent 38%),
    var(--paper-strong);
}

@media (min-width: 1481px) {
  .preview-main-column {
    align-self: stretch;
    min-height: 100%;
    align-content: start;
  }

  .hero-card:not(.is-collection) .hero-summary {
    margin-left: auto;
  }
}

.specs-head {
  display: grid;
  gap: 15px;
}

.specs-head-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, max-content);
  align-items: center;
  column-gap: 16px;
}

.specs-head-top > .section-label {
  margin-bottom: 0;
  align-self: center;
}

.specs-head h3 {
  min-width: 0;
}

.specs-head-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  align-self: center;
  justify-self: end;
  min-width: 132px;
}

#share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 6px;
  min-width: 124px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

#share-button::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect x='1.4' y='3.2' width='5.6' height='6' rx='1' stroke='%23000' stroke-width='1.1'/%3E%3Crect x='4.9' y='1.3' width='5.7' height='6' rx='1' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect x='1.4' y='3.2' width='5.6' height='6' rx='1' stroke='%23000' stroke-width='1.1'/%3E%3Crect x='4.9' y='1.3' width='5.7' height='6' rx='1' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

#share-button.is-copied {
  background: #2f6df6;
  border-color: #2f6df6;
  color: #ffffff;
}

.focus-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 2vh 2vw;
}

.focus-modal[hidden],
.recommendation-modal[hidden] {
  display: none !important;
}

.focus-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.focus-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1680px);
  max-height: calc(100vh - 24px);
  margin: 0;
  padding: 20px;
  border-radius: 26px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  overflow: auto;
}

.focus-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--ink);
}

.focus-frame {
  border-radius: 20px;
  overflow: hidden;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  display: grid;
  place-items: center;
}

.preview-scale-stage-focus {
  min-height: min(62vh, 640px);
  align-items: center;
  align-content: center;
  justify-items: center;
}

body.focus-open {
  overflow: hidden;
}

.recommendation-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.recommendation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.recommendation-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1380px);
  max-height: min(90vh, 920px);
  margin: 4vh auto;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 236, 68, 0.08), transparent 24%),
    linear-gradient(180deg, #151515, #090909);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.recommendation-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.recommendation-header-main {
  min-width: 0;
}

.recommendation-header h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: var(--ink);
}

.recommendation-intro {
  margin: 10px 0 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.5;
}

.recommendation-close-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.recommendation-summary {
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  display: none;
}

.recommendation-summary-copy {
  display: grid;
  gap: 5px;
}

.recommendation-summary-label {
  margin-bottom: 2px;
}

.recommendation-summary-line {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  font-size: 0.92rem;
  font-weight: 700;
}

.recommendation-edit {
  justify-self: start;
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: minmax(450px, 468px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 auto;
}

.recommendation-controls,
.recommendation-results-pane {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: grid;
  align-content: start;
  padding: 18px;
  overflow: auto;
  min-height: 0;
  height: 100%;
  max-height: none;
}

.recommendation-controls {
  width: 100%;
  max-width: 468px;
  justify-self: start;
}

.recommendation-questions {
  display: grid;
  gap: 16px;
}

.recommendation-question {
  display: grid;
  gap: 10px;
}

.recommendation-question h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.recommendation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommendation-option {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.recommendation-option.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.recommendation-reset {
  margin-top: 18px;
  justify-self: start;
  width: min(100%, 236px);
  border: 1px solid #ffffff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  padding: 10px 14px;
}

.recommendation-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.recommendation-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.recommendation-results {
  display: grid;
  gap: 14px;
}

.recommendation-empty {
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.5;
}

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  display: grid;
  gap: 16px;
  align-items: stretch;
  position: relative;
}

.recommendation-card.has-mock {
  grid-template-columns: 1fr;
  padding-right: calc(clamp(220px, 28vw, 340px) + 34px);
}

.recommendation-card-layout-standard {
  padding-right: calc(clamp(176px, 17vw, 232px) + 34px);
}

.recommendation-card-layout-standard-square {
  padding-right: calc(clamp(156px, 15vw, 196px) + 34px);
}

.recommendation-card-layout-vertical-xl {
  min-height: 420px;
  padding-right: calc(clamp(180px, 14vw, 220px) + 42px);
}

.recommendation-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.recommendation-card-layout-xl .recommendation-card-copy,
.recommendation-card-layout-vertical-xl .recommendation-card-copy {
  gap: 6px;
}

.recommendation-card h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.recommendation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.recommendation-card-tagline {
  font-size: 0.94rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.recommendation-card-description {
  max-width: 44ch;
}

.recommendation-card-media {
  min-width: 0;
  width: clamp(220px, 28vw, 340px);
  display: grid;
  place-items: center;
  align-self: auto;
  justify-self: auto;
  overflow: hidden;
  background: transparent;
  position: absolute;
  top: 50%;
  right: 18px;
  height: calc(100% - 48px);
  box-sizing: border-box;
  transform: translateY(-50%);
}

.recommendation-card-media-standard {
  width: clamp(176px, 17vw, 232px);
  height: calc(100% - 24px);
  min-height: 0;
  padding: 10px;
}

.recommendation-card-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.recommendation-card-media-standard img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.recommendation-card-media-standard-square {
  width: clamp(156px, 15vw, 196px);
  height: calc(100% - 24px);
  min-height: 0;
  padding: 10px;
}

.recommendation-card-media-standard-square img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.recommendation-card-media-xl {
  height: auto;
  padding: 0;
}

.recommendation-card-media-xl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.recommendation-card-media-vertical-xl {
  width: clamp(180px, 14vw, 220px);
  height: calc(100% - 24px);
  padding: 0;
}

.recommendation-card-media-vertical-xl img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.recommendation-open {
  justify-self: start;
  margin-top: 14px;
  border: 1px solid #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
}

.recommendation-card-layout-xl .recommendation-open,
.recommendation-card-layout-vertical-xl .recommendation-open {
  margin-top: 8px;
}

.specs-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.specs-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.specs-card h3 {
  font-size: 1.8rem;
  margin: 0;
  font-family: "Franklin", "Avenir Next", Arial, Helvetica, sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.spec-list {
  padding-left: 18px;
}

.spec-list li + li {
  margin-top: 10px;
}

.spec-grid {
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.spec-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.spec-row dt {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.spec-row dd {
  margin: 0;
  font-family: inherit;
  color: var(--muted-strong);
  line-height: 1.5;
}

.spec-detail-list,
.spec-detail-sublist {
  margin: 0;
  padding-left: 20px;
}

.spec-detail-list {
  display: grid;
  gap: 8px;
}

.spec-detail-item,
.spec-detail-sublist li {
  margin: 0;
}

.spec-detail-item::marker,
.spec-detail-sublist li::marker {
  color: var(--accent);
}

.spec-detail-sublist {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

@container (min-width: 360px) {
  .specs-head-actions {
    justify-items: end;
  }

  .spec-row {
    grid-template-columns: minmax(104px, 126px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .spec-row dt {
    font-size: 0.95rem;
  }

  .spec-row dd {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .spec-detail-list {
    gap: 6px;
  }

  .spec-detail-sublist {
    gap: 3px;
  }
}

body[data-theme="light"] {
  --bg: #ffffff;
  --paper: #f6f6f6;
  --paper-strong: #ffffff;
  --card: #f5f5f5;
  --card-strong: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.22);
  --ink: #111111;
  --muted: #5a5a5a;
  --muted-strong: #222222;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.08), transparent 24%),
    linear-gradient(180deg, #fffef7 0%, #f5f5f5 100%);
}

body[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.96);
}

body[data-theme="light"] .brand-block {
  background: transparent;
}

body[data-theme="light"] .brand-home-hint,
body[data-theme="light"] .copied-link-accent,
body[data-theme="light"] .landing-filter-label {
  color: var(--ink);
}

body[data-theme="light"] .brand-home-hint-stroke {
  background-image: var(--stroke-mark-dark);
}

body[data-theme="light"] .eyebrow,
body[data-theme="light"] .section-label,
body[data-theme="light"] .note-label,
body[data-theme="light"] .preview-label,
body[data-theme="light"] .article-kicker {
  color: rgba(17, 17, 17, 0.62);
}

body[data-theme="light"] .eyebrow::before,
body[data-theme="light"] .section-label::before,
body[data-theme="light"] .note-label::before,
body[data-theme="light"] .preview-label::before,
body[data-theme="light"] .article-kicker::before {
  filter: brightness(0) saturate(100%);
}

body[data-theme="light"] .sidebar-nav-toggle,
body[data-theme="light"] .theme-option {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .theme-option {
  border-color: rgba(17, 17, 17, 0.12);
}

body[data-theme="light"] .theme-option[aria-pressed="true"] {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

body[data-theme="light"] .theme-option-system[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

body[data-theme="light"] .nav-toggle-symbol {
  color: #111111;
}

body[data-theme="light"] .nav-section .nav-toggle-symbol,
body[data-theme="light"] .nav-group .nav-toggle-symbol {
  color: #111111;
}

body[data-theme="light"] .product-button.is-filter-match .product-name {
  color: var(--ink);
}

body[data-theme="light"] .nav-section,
body[data-theme="light"] .nav-section.is-current,
body[data-theme="light"] .landing-home,
body[data-theme="light"] .landing-browser-panel,
body[data-theme="light"] .landing-preview-card,
body[data-theme="light"] .landing-product-card,
body[data-theme="light"] .landing-browser-filter,
body[data-theme="light"] .benchmark-card,
body[data-theme="light"] .benchmark-item,
body[data-theme="light"] .recommendation-summary,
body[data-theme="light"] .recommendation-controls,
body[data-theme="light"] .recommendation-results-pane,
body[data-theme="light"] .recommendation-card {
  background: #ffffff;
}

body[data-theme="light"] .nav-section.is-current {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .nav-section.is-current .nav-section-title {
  background: #111111;
}

body[data-theme="light"] .nav-section.is-current .nav-section-heading,
body[data-theme="light"] .nav-section.is-current .nav-section-title {
  color: #ffffff;
}

body[data-theme="light"] .nav-section.is-current .nav-section-subheading {
  color: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .nav-section.is-current > .nav-section-title .nav-toggle-symbol {
  color: #ffffff;
}

body[data-theme="light"] .nav-group {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .nav-group-title {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.035), rgba(17, 17, 17, 0.01));
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .nav-group.is-current .nav-group-title {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.07), rgba(17, 17, 17, 0.02));
  box-shadow: inset 3px 0 0 #111111;
}

body[data-theme="light"] .nav-group-icon-video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Crect x='1.5' y='3.25' width='7.75' height='7' rx='1.4' stroke='%23111111' stroke-width='1.3'/%3E%3Cpath d='M9.85 5.3 12.25 4v6l-2.4-1.3V5.3Z' stroke='%23111111' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body[data-theme="light"] .nav-group-icon-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Crect x='1.5' y='2.25' width='11' height='8.5' rx='1.4' stroke='%23111111' stroke-width='1.3'/%3E%3Cpath d='M3.2 8.7 5.45 6.5l1.55 1.5 1.85-2 1.95 2.7' stroke='%23111111' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4.35' cy='4.95' r='0.8' fill='%23111111'/%3E%3C/svg%3E");
}

body[data-theme="light"] .product-button {
  border-top-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .product-button:hover,
body[data-theme="light"] .product-button:focus-visible {
  background: rgba(255, 236, 68, 0.42);
}

body[data-theme="light"] .product-button.is-active {
  background: var(--accent);
  box-shadow: inset 3px 0 0 #111111;
}

body[data-theme="light"] .product-button.is-filter-match {
  background: rgba(255, 236, 68, 0.26);
}

body[data-theme="light"] .product-button.is-active .product-name,
body[data-theme="light"] .product-button.is-active .product-subtitle {
  color: var(--ink);
}

body[data-theme="light"] .landing-home-buttons .hero-secondary-button,
body[data-theme="light"] .landing-home-buttons .hero-secondary-button:hover,
body[data-theme="light"] .landing-home-buttons .hero-secondary-button:focus-visible {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  transform: none;
}

body[data-theme="light"] .hero-card {
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff, #f5f5f5);
}

body[data-theme="light"] .hero-card .eyebrow,
body[data-theme="light"] .hero-card .hero-description,
body[data-theme="light"] .hero-card .hero-tagline,
body[data-theme="light"] .objective-inline .preview-label {
  color: rgba(17, 17, 17, 0.68);
}

body[data-theme="light"] .hero-summary {
  background: rgba(17, 17, 17, 0.03);
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .meta-pill {
  background: rgba(17, 17, 17, 0.04);
  color: var(--ink);
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .meta-pill-dark {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

body[data-theme="light"] .meta-pill-icon-video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.4' y='3.05' width='7.2' height='6.4' rx='1.3' stroke='%23111111' stroke-width='1.2'/%3E%3Cpath d='M9.1 4.95 11.4 3.7v5.55L9.1 8V4.95Z' stroke='%23111111' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body[data-theme="light"] .meta-pill-icon-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.35' y='2.15' width='10.3' height='7.95' rx='1.3' stroke='%23111111' stroke-width='1.2'/%3E%3Cpath d='M3 8.2 5 6.2l1.35 1.3 1.65-1.8 1.75 2.4' stroke='%23111111' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4.05' cy='4.6' r='0.72' fill='%23111111'/%3E%3C/svg%3E");
}

body[data-theme="light"] .recommendation-trigger,
body[data-theme="light"] .ghost-button,
body[data-theme="light"] .landing-back-button,
body[data-theme="light"] .focus-button,
body[data-theme="light"] .focus-close,
body[data-theme="light"] .recommendation-edit,
body[data-theme="light"] .recommendation-open,
body[data-theme="light"] .device-chip-link {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  box-shadow: none;
}

body[data-theme="light"] .recommendation-trigger::after {
  color: rgba(255, 255, 255, 0.76);
}

body[data-theme="light"] .ghost-button-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

body[data-theme="light"] .landing-preview-card:hover,
body[data-theme="light"] .landing-preview-card:focus-visible,
body[data-theme="light"] .landing-product-card:hover,
body[data-theme="light"] .landing-product-card:focus-visible,
body[data-theme="light"] .landing-browser-filter:hover,
body[data-theme="light"] .landing-browser-filter:focus-visible {
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .landing-phone-shell {
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.4), transparent 18%),
    linear-gradient(180deg, #585858 0%, #3b3b3b 30%, #222222 100%);
}

body[data-theme="light"] .landing-phone-screen {
  background: #fafafa;
}

body[data-theme="light"] .landing-product-card .meta-pill,
body[data-theme="light"] .recommendation-controls,
body[data-theme="light"] .recommendation-results-pane,
body[data-theme="light"] .recommendation-option,
body[data-theme="light"] .recommendation-reset {
  color: var(--ink);
}

body[data-theme="light"] .landing-product-card .meta-pill {
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .landing-product-card .meta-pill-icon-video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.4' y='3.05' width='7.2' height='6.4' rx='1.3' stroke='%23111111' stroke-width='1.2'/%3E%3Cpath d='M9.1 4.95 11.4 3.7v5.55L9.1 8V4.95Z' stroke='%23111111' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body[data-theme="light"] .landing-product-card .meta-pill-icon-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Crect x='1.35' y='2.15' width='10.3' height='7.95' rx='1.3' stroke='%23111111' stroke-width='1.2'/%3E%3Cpath d='M3 8.2 5 6.2l1.35 1.3 1.65-1.8 1.75 2.4' stroke='%23111111' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='4.05' cy='4.6' r='0.72' fill='%23111111'/%3E%3C/svg%3E");
}

body[data-theme="light"] .preview-stage,
body[data-theme="light"] .focus-panel,
body[data-theme="light"] .recommendation-panel {
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff, #f4f4f4);
  color: var(--ink);
  border-color: rgba(17, 17, 17, 0.1);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .preview-scale-note,
body[data-theme="light"] .focus-scale-note,
body[data-theme="light"] .preview-fallback,
body[data-theme="light"] .recommendation-card-tagline {
  color: rgba(17, 17, 17, 0.62);
}

body[data-theme="light"] .preview-frame,
body[data-theme="light"] .focus-frame {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .benchmark-label {
  color: rgba(17, 17, 17, 0.56);
}

body[data-theme="light"] .benchmark-info {
  border-color: rgba(0, 0, 0, 0.18);
  background: #ffffff;
  color: var(--ink);
}

body[data-theme="light"] .benchmark-tooltip {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  color: var(--muted-strong);
}

body[data-theme="light"] .benchmark-tooltip::after {
  border-right-color: rgba(0, 0, 0, 0.14);
  border-bottom-color: rgba(0, 0, 0, 0.14);
}

body[data-theme="light"] .benchmark-value {
  display: inline-flex;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}

body[data-theme="light"] .device-chip {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.1);
  color: var(--ink);
}

body[data-theme="light"] .device-chip:hover,
body[data-theme="light"] .device-chip:focus-visible {
  background: rgba(255, 236, 68, 0.16);
  border-color: rgba(17, 17, 17, 0.18);
}

body[data-theme="light"] .device-chip.is-active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

body[data-theme="light"] .device-chip.device-chip-link,
body[data-theme="light"] .device-chip.device-chip-link:hover,
body[data-theme="light"] .device-chip.device-chip-link:focus-visible {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

body[data-theme="light"] .device-chip-link:hover,
body[data-theme="light"] .device-chip-link:focus-visible {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

body[data-theme="light"] .specs-card {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.06), transparent 28%),
    #ffffff;
}

body[data-theme="light"] .spec-row dd {
  color: #222222;
}

body[data-theme="light"] .spec-detail-item::marker,
body[data-theme="light"] .spec-detail-sublist li::marker {
  color: #111111;
}

body[data-theme="light"] #share-button {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

body[data-theme="light"] #share-button.is-copied {
  background: #2f6df6;
  border-color: #2f6df6;
  color: #ffffff;
}

body[data-theme="light"] .focus-backdrop,
body[data-theme="light"] .recommendation-backdrop {
  background: rgba(17, 17, 17, 0.22);
}

body[data-theme="light"] .recommendation-summary,
body[data-theme="light"] .recommendation-controls,
body[data-theme="light"] .recommendation-results-pane,
body[data-theme="light"] .recommendation-card,
body[data-theme="light"] .recommendation-empty {
  border-color: rgba(17, 17, 17, 0.1);
  box-shadow: none;
}

body[data-theme="light"] .recommendation-empty {
  background: #ffffff;
  color: var(--muted);
}

body[data-theme="light"] .recommendation-option {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.12);
}

body[data-theme="light"] .recommendation-option.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

body[data-theme="light"] .recommendation-reset {
  background: #ffffff;
  border-color: #111111;
}

@media (max-width: 1480px) {
  :root {
    --sidebar-width: 296px;
    --specs-column-width: clamp(310px, 24vw, 410px);
  }

  .sidebar {
    padding: 24px 18px;
  }

  .workspace {
    padding: 24px;
  }

  .landing-home {
    min-height: auto;
    padding: 20px;
  }

  .landing-home-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .landing-home-actions {
    max-width: none;
    justify-self: stretch;
    padding: 0;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "eyebrow actions"
      "title actions"
      "copy actions";
    column-gap: 18px;
    align-items: start;
  }

  .landing-home-actions > .section-label {
    grid-area: eyebrow;
    align-self: end;
  }

  .landing-home-actions > h3 {
    grid-area: title;
  }

  .landing-home-actions > .landing-copy {
    grid-area: copy;
    max-width: 46ch;
  }

  .landing-home-buttons {
    grid-area: actions;
    display: grid;
    align-content: start;
    align-self: end;
    justify-items: stretch;
    gap: 12px;
    margin-top: 0;
    min-width: 248px;
  }

  .landing-home-buttons .ghost-button {
    min-width: 0;
    width: 100%;
  }

  .landing-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .landing-preview-card {
    padding: 14px 14px 12px;
    gap: 12px;
  }

  .landing-preview-card-title {
    font-size: 1rem;
  }

  .landing-preview-card-note {
    font-size: 0.86rem;
  }

  .landing-phone-shell {
    width: min(100%, 210px);
  }

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

}

@media (max-width: 1260px) {
  .preview-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stage-card.is-sticky {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .specs-card {
    min-width: 0;
  }
}

@media (max-width: 1120px) {
  .landing-home-grid,
  .landing-preview-strip,
  .landing-product-grid {
    grid-template-columns: 1fr;
  }

  .landing-home {
    min-height: auto;
  }

  .landing-home-actions {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "copy"
      "actions";
    column-gap: 0;
    row-gap: 14px;
  }

  .landing-home-actions > .landing-copy {
    max-width: none;
  }

  .landing-home-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    margin-top: 2px;
  }

  .landing-home-buttons .ghost-button {
    width: auto;
  }

  .preview-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stage-card.is-sticky {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

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

  .recommendation-controls {
    width: 100%;
    max-width: none;
  }

  .recommendation-card.has-mock {
    padding-right: calc(clamp(220px, 30vw, 300px) + 34px);
  }

}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .recommendation-trigger {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav-shell {
    margin-top: 16px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  }

  .sidebar-nav-toggle {
    display: flex;
    margin-top: 0;
    padding: 2px 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sidebar-nav-shell .product-nav {
    margin-top: 0;
  }

  .workspace {
    padding-top: 20px;
  }

  .landing-browser-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-theme="light"] .sidebar-nav-shell {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }

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

@media (max-width: 860px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .brand-block {
    padding: 0 0 4px 18px;
  }

  .brand-block h1 {
    font-size: clamp(1.02rem, 7.4vw, 1.2rem);
  }

  .brand-block .intro {
    font-size: 0.82rem;
  }

  .hero-card {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-card h2 {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .hero-summary {
    padding: 12px;
  }

  .landing-home,
  .landing-browser-panel {
    border-radius: 22px;
  }

  .landing-home {
    padding: 18px;
  }

  .landing-home-actions {
    max-width: none;
    padding: 0;
    gap: 14px;
  }

  .landing-home-buttons {
    justify-items: stretch;
  }

  .landing-home-buttons .ghost-button,
  .landing-back-button,
  .focus-button,
  .recommendation-open,
  .device-actions .device-chip-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .landing-preview-strip {
    gap: 14px;
  }

  .landing-preview-card {
    padding: 14px;
  }

  .landing-phone-shell {
    width: min(100%, 208px);
  }

  .preview-layout {
    margin-top: 18px;
    gap: 18px;
  }

  .preview-stage {
    padding: 14px;
    border-radius: 22px;
  }

  .preview-frame {
    min-height: 0;
    padding: 12px;
  }

  .preview-scale-stage {
    min-height: clamp(220px, 52vh, 320px);
  }

  .preview-fallback {
    min-height: 220px;
    padding: 24px;
  }

  .landing-products-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .preview-stage-header,
  .focus-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-stage-tools,
  .objective-inline .pill-row {
    justify-content: flex-start;
  }

  .objective-inline .preview-label {
    padding-top: 0;
  }

  .device-toolbar {
    align-items: flex-start;
    margin-top: 14px;
  }

  .device-bar,
  .device-actions {
    width: 100%;
  }

  .device-actions .device-chip-link {
    background: #111111;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  }

  .device-actions .device-chip-link:hover,
  .device-actions .device-chip-link:focus-visible {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.14);
  }

  .device-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .device-chip {
    white-space: nowrap;
  }

  .benchmark-card {
    padding: 14px;
  }

  .specs-head {
    gap: 14px;
  }

  .specs-head-top {
    grid-template-columns: minmax(0, 1fr) minmax(132px, max-content);
    column-gap: 12px;
  }

  .specs-head-actions {
    justify-items: end;
    align-self: start;
  }

  .specs-card {
    padding: 16px 18px 18px;
    gap: 16px;
  }

  .specs-card h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }

  .benchmark-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .recommendation-panel {
    width: 100vw;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 12px 12px 16px;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .recommendation-header {
    display: block;
    position: relative;
    margin: 0 0 12px;
    padding: 14px 14px 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(24, 24, 24, 0.985), rgba(18, 18, 18, 0.95) 78%, rgba(10, 10, 10, 0.92));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  }

  .recommendation-header h3 {
    font-size: clamp(1.95rem, 8vw, 2.55rem);
    line-height: 0.98;
  }

  .recommendation-header-main {
    padding-right: 54px;
  }

  .recommendation-intro {
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .recommendation-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  .recommendation-grid {
    gap: 12px;
    overflow: visible;
  }

  .recommendation-controls,
  .recommendation-results-pane {
    padding: 14px;
    border-radius: 18px;
    overflow: visible;
    max-height: none;
  }

  .recommendation-controls {
    gap: 14px;
  }

  .recommendation-questions {
    gap: 14px;
  }

  .recommendation-question {
    gap: 8px;
  }

  .recommendation-option {
    padding: 9px 11px;
  }

  .recommendation-reset {
    margin-top: 2px;
    width: 100%;
  }

  .recommendation-summary {
    margin-top: 10px;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .recommendation-edit {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }

  .recommendation-results-pane {
    margin-top: -2px;
  }

  .recommendation-results {
    gap: 10px;
  }

  .recommendation-card {
    padding: 14px;
    gap: 12px;
  }

  .recommendation-card.has-mock {
    grid-template-columns: 1fr;
    padding-right: 14px;
  }

  .recommendation-card-media {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    order: -1;
  }

  .recommendation-card-media-standard,
  .recommendation-card-media-standard-square,
  .recommendation-card-media-xl {
    height: 168px;
  }

  .recommendation-card-media-vertical-xl {
    height: 220px;
  }

  .recommendation-results-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .recommendation-count {
    font-size: 0.86rem;
  }

  .recommendation-panel.is-condensed .recommendation-header {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .recommendation-panel.is-condensed .recommendation-header-main {
    display: none;
  }

  .recommendation-panel.is-condensed .recommendation-summary {
    display: grid !important;
  }

  .recommendation-panel.is-condensed .recommendation-controls {
    display: none;
  }

  .focus-panel {
    width: 100vw;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 16px;
    border-radius: 0;
  }

  .focus-frame {
    padding: 12px;
    border-radius: 16px;
  }

  .preview-scale-stage-focus {
    min-height: min(62vh, 560px);
  }

  .stage-card,
  .specs-card {
    border-radius: 24px;
  }

  body[data-theme="light"] .recommendation-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 246, 246, 0.95) 78%, rgba(240, 240, 240, 0.92));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }
}
