@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #070b14;
  --panel: #0f1522;
  --line: #2a3650;
  --text: #eef3fc;
  --muted: #8a9bb8;
  --accent: #4d9fff;
  --accent-2: #7ec8ff;
  --accent-deep: #2563eb;
  --topbar-h: 64px;
  --footer-h: 64px;
  --glass: #121a2cb8;
  --glass-border: #ffffff14;
  --glow: #4d9fff33;
  --radius-lg: 22px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 90% 60% at 100% -10%, #2563eb22, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, #0ea5e914, transparent 50%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(90px);
  border-radius: 50%;
  opacity: 0.16;
  z-index: -1;
}

.ambient-one {
  width: 480px;
  height: 480px;
  background: #2563eb;
  top: -180px;
  right: -140px;
}

.ambient-two {
  width: 400px;
  height: 400px;
  background: #0ea5e9;
  bottom: -160px;
  left: -150px;
}

.app-shell {
  max-width: 1180px;
  margin: auto;
  padding: 0 28px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff12;
}

.topbar-glass {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #070b14cc;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  text-decoration: none;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: min(52vw, 22rem);
}

.brand-icon {
  color: var(--accent);
  font-size: 24px;
  vertical-align: -2px;
  margin-right: 8px;
}

.brand-light {
  color: var(--muted);
  font-weight: 500;
}

.top-pill {
  max-width: min(52vw, 28rem);
  min-width: 0;
}

.top-pill.price-feed {
  max-width: min(100%, 52rem);
  width: max-content;
}

.top-pill--muted {
  color: var(--muted);
  font-size: 11px;
  border: 1px solid #2e3d58;
  border-radius: 100px;
  padding: 7px 14px;
  background: #0f152280;
}

.auth-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vh, 48px) 0;
  min-height: calc(100dvh - var(--topbar-h) - var(--footer-h) - 24px);
}

.auth-card {
  width: min(100%, 26rem);
  padding: clamp(24px, 4vh, 32px);
}

.auth-title {
  font: 700 clamp(28px, 4vw, 36px) / 1.1 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
}

.auth-lead {
  margin: 0 0 20px;
  color: #a8b4cc;
  font-size: 14px;
  line-height: 1.65;
}

.auth-lead strong {
  color: #c5d8f5;
  font-weight: 600;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #9bb8e8;
  letter-spacing: 0.04em;
}

.auth-field input {
  width: 100%;
  border: 1px solid #334560;
  border-radius: 12px;
  padding: 12px 14px;
  background: #0a101c;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #4d9fff33;
  outline: none;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.auth-msg {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-msg--error {
  background: #3a1824;
  border: 1px solid #ff6b6b66;
  color: #ffc9c9;
}

.footer-logout {
  border: 1px solid #334560;
  background: transparent;
  color: #9bb8e8;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.footer-logout:hover {
  background: #1a2438;
  border-color: #5a7ab0;
}

.price-feed-wrap {
  position: relative;
  flex: 1 1 12rem;
  min-width: 0;
  max-width: min(100%, 52rem);
  display: flex;
  justify-content: flex-end;
  margin-inline: clamp(6px, 1.5vw, 14px);
}

.price-feed-wrap--has-details .price-feed:not(:disabled) {
  cursor: pointer;
}

.price-feed.price-feed--ticker {
  max-width: min(100%, 28rem);
}

.price-feed {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
  border: 1px solid #334560;
  border-radius: 100px;
  padding: 7px 14px;
  background: #0f1522cc;
  color: #b8c8e0;
  font-size: 11px;
  line-height: 1.35;
  flex-shrink: 1;
  max-width: 100%;
  outline: none;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.price-feed:disabled {
  opacity: 0.85;
  cursor: default;
}

.price-feed-wrap--has-details .price-feed:not(:disabled):hover,
.price-feed-wrap--has-details .price-feed:not(:disabled):focus-visible {
  border-color: #5a7ab0;
  background: #141e32ee;
}

.price-feed-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.price-feed-modal[hidden] {
  display: none !important;
}

.price-feed-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.price-feed-modal-card {
  position: relative;
  z-index: 1;
  width: min(38rem, 100%);
  max-height: min(88vh, 40rem);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.35rem;
  overflow: hidden;
}

.price-feed-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid #3d4f6e;
  border-radius: 50%;
  background: #121a2c;
  color: #c5d4ec;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.price-feed-modal-close:hover,
.price-feed-modal-close:focus-visible {
  border-color: #5a7ab0;
  background: #1a2438;
  outline: none;
}

.price-feed-modal-title {
  margin: 0 2rem 0 0;
  font: 600 1.15rem 'Space Grotesk', sans-serif;
}

.price-feed-modal-lead {
  margin: 8px 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.price-feed-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
  flex: 1 1 auto;
  min-height: 0;
}

.price-feed-modal-actions {
  flex-shrink: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a3850;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-feed-modal-actions-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.price-feed-modal-actions .secondary {
  width: 100%;
  justify-content: center;
}

.price-feed-audit-panel {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a3850;
  background: #0a101c;
  font-size: 11px;
  line-height: 1.45;
  color: #c5d4ec;
  max-height: 10rem;
  overflow-y: auto;
}

.price-feed-audit-panel ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
}

.price-feed-audit-ok {
  color: #6ecfff;
  margin: 6px 0 0;
}

.price-feed-audit-warn {
  color: #ffb89a;
  margin: 6px 0 0;
}

.price-feed-audit-error {
  color: #ff8a8a;
  margin: 0;
}

.price-feed-audit-loading {
  margin: 0;
  color: var(--muted);
}

body.price-feed-modal-open,
body.answer-edit-modal-open {
  overflow: hidden;
}

.answer-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 195;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.answer-edit-modal[hidden] {
  display: none !important;
}

.answer-edit-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.answer-edit-modal-card {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(88vh, 40rem);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.25rem;
  overflow: hidden;
}

.answer-edit-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid #3d4f6e;
  border-radius: 50%;
  background: #121a2c;
  color: #c5d4ec;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.answer-edit-modal-close:hover,
.answer-edit-modal-close:focus-visible {
  border-color: #5a7ab0;
  background: #1a2438;
  outline: none;
}

.answer-edit-modal-tag {
  margin: 0 2rem 6px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8aa8d8;
}

.answer-edit-modal-title {
  margin: 0 2rem 8px 0;
  font: 600 clamp(1.1rem, 2.5vw, 1.35rem) 'Space Grotesk', sans-serif;
  line-height: 1.25;
}

.answer-edit-modal-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.answer-edit-choices {
  overflow-y: auto;
  max-height: min(50vh, 22rem);
  margin-bottom: 12px;
  padding-right: 4px;
}

.answer-edit-cancel {
  align-self: flex-start;
}

.answers-review {
  padding: clamp(18px, 2.2vh, 24px) clamp(20px, 3vw, 26px);
}

.answers-review-lead {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}

.answers-review-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.answers-review-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 14px;
  text-align: left;
  border: 1px solid #2a3850;
  border-radius: 14px;
  padding: 12px 14px;
  background: #0c121fee;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s var(--ease-out);
}

.answers-review-item:hover,
.answers-review-item:focus-visible {
  border-color: #4d6a9a;
  background: #121c30ee;
  outline: none;
  transform: translateY(-1px);
}

.answers-review-num {
  font: 600 12px 'Space Grotesk', sans-serif;
  color: #6e8cb8;
  min-width: 1.75rem;
}

.answers-review-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.answers-review-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a94bc;
}

.answers-review-question {
  font-size: 13px;
  color: #a8b8d4;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.answers-review-answer {
  font-size: 14px;
  font-weight: 600;
  color: #e8f0ff;
  line-height: 1.35;
}

.answers-review-edit {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6eb5ff;
  white-space: nowrap;
}

.answers-review--loading {
  opacity: 0.72;
  pointer-events: none;
}

.price-feed-popover-section h4,
.price-feed-modal-section h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb8f0;
}

.price-feed-popover-section + .price-feed-popover-section,
.price-feed-modal-section + .price-feed-modal-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a3548;
}

.price-feed-popover-section ul,
.price-feed-modal-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-feed-popover-section ul {
  max-height: 11rem;
  overflow-y: auto;
}

.price-feed-popover-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-feed-popover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.75rem, auto);
  gap: 8px 14px;
  align-items: start;
}

.price-feed-popover-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 5.75rem;
  white-space: nowrap;
}

.price-feed-popover-source {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a9bb8;
}

.price-feed-popover-source--live {
  color: #6ecfff;
}

.price-feed-popover-config {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: #8aa0c4;
}

.price-feed-modal-section-note {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.price-feed-store-block {
  margin-bottom: 12px;
}

.price-feed-store-block h5 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #c5d4ec;
}

.price-feed-store-amounts {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #a8b8d4;
  font-variant-numeric: tabular-nums;
}

.price-feed-store-dot {
  margin: 0 0.35em;
  color: #4a5d7a;
}

.price-feed-modal-section--store {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #2a3850;
}

.price-feed-popover-section li:not(.price-feed-popover-row),
.price-feed-modal-section li:not(.price-feed-popover-row) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 11px;
  line-height: 1.35;
  color: #c5d4ec;
}

.price-feed-modal-section li.price-feed-popover-row {
  padding: 6px 0;
  font-size: 11px;
  line-height: 1.35;
  color: #c5d4ec;
}

.price-feed-popover-name {
  min-width: 0;
}

.price-feed-popover-price {
  flex-shrink: 0;
  font-weight: 600;
  color: #eef3fc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-feed-signal {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.price-feed-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  position: relative;
}

.price-feed-ticker {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 1.35em;
  overflow: hidden;
}

.price-feed-ticker[hidden] {
  display: none !important;
}

.price-feed-ticker-track {
  display: block;
}

.price-feed-ticker-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 1.35em;
  line-height: 1.35;
  color: #e2ebfc;
  font-weight: 600;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease-out;
}

.price-feed-ticker-line--show {
  transform: translateY(0);
  opacity: 1;
}

.price-feed-text {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  min-width: 0;
  color: #c5d4ec;
  flex: 0 1 auto;
  font-variant-numeric: tabular-nums;
}

.price-feed-text--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-button {
  border: 1px solid var(--line);
  background: #121a28;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.picker-section {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(20px, 3vh, 36px) 0 clamp(24px, 4vh, 40px);
  min-height: calc(100dvh - var(--topbar-h) - var(--footer-h));
  overflow: hidden;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.picker-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}

.picker-orb-one {
  width: 320px;
  height: 320px;
  background: #2563eb;
  top: -80px;
  left: -60px;
}

.picker-orb-two {
  width: 280px;
  height: 280px;
  background: #0ea5e9;
  bottom: -100px;
  right: 10%;
  opacity: 0.22;
}

.picker-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.picker-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  width: 100%;
}

.picker-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}

.picker-hero-eyebrow {
  justify-content: center;
}

.picker-hero-title {
  font: 700 clamp(36px, 5.2vw, 62px) / 1.05 'Space Grotesk', sans-serif;
  letter-spacing: -0.055em;
  margin: 14px 0 12px;
  max-width: none;
  white-space: nowrap;
}

.picker-copy {
  max-width: 40rem;
  margin: 0 0 18px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: #a8b4cc;
}

.picker-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}

.picker-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #c5d4ec;
}

.picker-feature-icon {
  color: var(--accent);
  font-size: 10px;
}

.picker-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 36px);
  padding: 16px 24px;
  border: 1px solid #2e3d58;
  border-radius: 16px;
  background: linear-gradient(145deg, #121a2caa, #0c1220bb);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
}

.picker-catalog {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.picker-grid-head {
  text-align: center;
  margin-bottom: 18px;
}

.picker-grid-title {
  font: 600 clamp(20px, 2.4vw, 26px) / 1.2 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: #eef3fc;
}

.picker-grid-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.picker-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.picker-stats strong {
  font: 600 22px 'Space Grotesk', sans-serif;
  color: #eef3fc;
}

.picker-stats small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

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

.picker-card {
  position: relative;
  cursor: pointer;
  text-align: left;
  border: 1px solid #334560;
  background: linear-gradient(155deg, #1a2848e6, #0d1324f0);
  border-radius: 20px;
  padding: 18px 18px 16px;
  padding-right: 72px;
  color: inherit;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.picker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent, #4d9fff), transparent);
  opacity: 0.85;
}

.picker-card-shine {
  position: absolute;
  width: 140px;
  height: 140px;
  top: -50px;
  right: -40px;
  background: radial-gradient(circle, var(--card-glow, #4d9fff33), transparent 70%);
  pointer-events: none;
}

.picker-card--iphone {
  --card-accent: #6eb5ff;
  --card-glow: #4d9fff44;
}

.picker-card--ipad {
  --card-accent: #7ec8ff;
  --card-glow: #0ea5e944;
}

.picker-card--macbook {
  --card-accent: #5a9fff;
  --card-glow: #2563eb55;
}

.picker-card--watch {
  --card-accent: #ff6b8a;
  --card-glow: #ff4d6d44;
}

.picker-card--imac {
  --card-accent: #8ec8ff;
  --card-glow: #38bdf844;
}

.picker-card--airpods {
  --card-accent: #c4b5fd;
  --card-glow: #8b5cf644;
}

.picker-card:hover,
.picker-card:focus-visible {
  border-color: var(--card-accent, #4d9fff);
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 20px 50px #00000055,
    0 0 0 1px #4d9fff22,
    0 0 40px var(--card-glow, #4d9fff22);
}

.picker-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9bb8e8;
  margin-bottom: 14px;
}

.picker-device {
  position: absolute;
  top: 18px;
  right: 14px;
  margin: 0;
  opacity: 0.92;
  pointer-events: none;
}

.picker-device--phone {
  width: 44px;
  height: 80px;
  border: 4px solid #3d4f66;
  border-radius: 12px;
  background: linear-gradient(160deg, #5a8fd4, #1e2838);
  box-shadow: 8px 10px 24px #0006;
  transform: rotate(-8deg);
}

.picker-device--phone::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 6px;
  top: 5px;
  left: calc(50% - 9px);
  border-radius: 6px;
  background: #0d1324;
}

.picker-device--tablet {
  width: 58px;
  height: 76px;
  border: 4px solid #3d4f66;
  border-radius: 10px;
  background: linear-gradient(160deg, #6ecfff, #1e2838);
  box-shadow: 8px 10px 24px #0006;
  transform: rotate(-4deg);
}

.picker-device--laptop {
  width: 88px;
  height: 56px;
  border: 4px solid #3d4f66;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(160deg, #4a5568, #1e2838);
  box-shadow: 8px 10px 24px #0006;
}

.picker-device--watch {
  width: 52px;
  height: 62px;
  border: 4px solid #3d4f66;
  border-radius: 14px;
  background: linear-gradient(160deg, #ff8fa8, #1e2838);
  box-shadow: 8px 10px 24px #0006;
  transform: rotate(-6deg);
}

.picker-device--watch::before {
  content: '';
  position: absolute;
  inset: 8px 6px 10px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, #ffffff55, transparent 70%);
}

.picker-device--imac {
  width: 72px;
  height: 58px;
  border: 4px solid #3d4f66;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(160deg, #a8c8e8, #1e2838);
  box-shadow: 8px 10px 24px #0006;
}

.picker-device--imac::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 56px;
  height: 8px;
  margin-left: -28px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #3d4f66, #2a3548);
}

.picker-device--airpods {
  width: 52px;
  height: 48px;
}

.picker-device--airpods::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 28px;
  left: 2px;
  top: 8px;
  border: 3px solid #3d4f66;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(160deg, #c4b5fd, #1e2838);
  box-shadow: 6px 8px 16px #0005;
  transform: rotate(-12deg);
}

.picker-device--airpods::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 28px;
  right: 2px;
  top: 8px;
  border: 3px solid #3d4f66;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(160deg, #a78bfa, #1e2838);
  box-shadow: 6px 8px 16px #0005;
  transform: rotate(12deg);
}

.picker-device--laptop::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 100px;
  height: 4px;
  margin-left: -50px;
  border-radius: 0 0 4px 4px;
  background: #2a3548;
}

.picker-title {
  display: block;
  font: 600 19px 'Space Grotesk', sans-serif;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.picker-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1 1 auto;
}

.picker-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--card-accent, #7ec8ff);
  letter-spacing: 0.04em;
  margin-top: auto;
}

.picker-card:hover .picker-cta span {
  transform: translateX(4px);
  transition: transform 0.2s;
}

.stage-view {
  position: relative;
  isolation: isolate;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stage-backdrop--subtle {
  opacity: 0.55;
}

.stage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.stage-orb-a {
  width: 360px;
  height: 360px;
  background: #2563eb;
  top: -120px;
  right: -80px;
  opacity: 0.28;
}

.stage-orb-b {
  width: 280px;
  height: 280px;
  background: #0ea5e9;
  bottom: -80px;
  left: 10%;
  opacity: 0.18;
}

.stage-animate .hero-content,
.stage-animate .hero-visual,
.stage-animate .stage-rise,
.stage-animate .question-panel,
.stage-animate .sidebar,
.stage-animate .results-head,
.stage-animate .answers-review,
.stage-animate .budget-panel,
.stage-animate .phone-card {
  animation: riseIn 0.55s var(--ease-out) both;
}

.stage-animate .stage-rise:nth-child(2) {
  animation-delay: 0.06s;
}

.stage-animate .stage-rise:nth-child(3) {
  animation-delay: 0.12s;
}

.stage-animate .hero-visual {
  animation-delay: 0.18s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.glass-surface {
  background: linear-gradient(155deg, #152238d9, #0c1224e6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 60px #00000045,
    inset 0 1px 0 #ffffff0a;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero {
  flex: 1;
  padding: clamp(16px, 2.5vh, 28px) 0;
  min-height: calc(100dvh - var(--topbar-h) - var(--footer-h));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.75fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  min-height: calc(100dvh - var(--topbar-h) - var(--footer-h) - 40px);
}

.hero-grid--intro {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: clamp(18px, 3vh, 28px);
  min-height: calc(100dvh - var(--topbar-h) - var(--footer-h) - 32px);
}

.intro-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(16px, 4vw, 40px);
  align-items: start;
}

.intro-headline {
  margin: 0;
  text-align: right;
  justify-self: end;
  max-width: 16ch;
}

.intro-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.intro-copy {
  margin-top: 4px;
}

.intro-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intro-actions {
  flex-wrap: wrap;
  margin-top: 16px;
}

.intro-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2vh, 20px);
  margin-top: auto;
  padding-top: clamp(8px, 2vh, 16px);
}

.intro-bottom .stats-glass {
  margin-top: 0;
  width: fit-content;
}

.intro-bottom .hero-visual {
  min-height: clamp(220px, 32vh, 320px);
  margin-top: -8px;
}

.stage-grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent 75%);
  opacity: 0.35;
}

.hero-content {
  padding: clamp(22px, 3vh, 34px);
}

.hero--iphone {
  --hero-accent: #6eb5ff;
  --hero-glow: #4d9fff44;
}

.hero--ipad {
  --hero-accent: #7ec8ff;
  --hero-glow: #0ea5e944;
}

.hero--macbook {
  --hero-accent: #5a9fff;
  --hero-glow: #2563eb55;
}

.hero--watch {
  --hero-accent: #ff8fa8;
  --hero-glow: #ff4d6d44;
}

.hero--imac {
  --hero-accent: #8ec8ff;
  --hero-glow: #38bdf855;
}

.hero--airpods {
  --hero-accent: #c4b5fd;
  --hero-glow: #8b5cf655;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.hero-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c5d8f5;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid #3d4f6e;
  background: #0f152280;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero-chip:hover {
  border-color: #6a9fff88;
  box-shadow: 0 0 20px var(--hero-glow, #4d9fff33);
  transform: translateY(-1px);
}

.hero-micro {
  margin: 14px 0 0;
}

.stats-glass {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #2e3d58;
  background: #0a101c88;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero-visual-ring {
  position: absolute;
  width: min(320px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #4d9fff22;
  background: radial-gradient(circle, var(--hero-glow, #4d9fff22), transparent 68%);
  animation: pulseRing 5s ease-in-out infinite;
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.eyebrow,
.sidebar-label {
  color: #9bb8e8;
  letter-spacing: 0.19em;
  font-weight: 700;
  font-size: 10px;
}

.line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-2);
  vertical-align: middle;
  margin-right: 9px;
}

.hero h1,
.hero-content h1,
.intro-headline {
  font: 700 clamp(34px, 4.5vw, 56px) / 1.06 'Space Grotesk', sans-serif;
  letter-spacing: -0.05em;
  margin: 14px 0 10px;
  max-width: 14ch;
}

.gradient-text {
  background: linear-gradient(100deg, var(--hero-accent, #6eb5ff), #d4ecff 55%, var(--hero-accent, #6eb5ff));
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

.hero-copy {
  max-width: 480px;
  color: #a8b4cc;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.primary {
  position: relative;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  background: linear-gradient(110deg, #3b8bff, #6ecfff);
  color: #061018;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), filter 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.primary-glow:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 36px #4d9fff44,
    0 0 0 1px #ffffff22 inset;
}

.primary-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, #ffffff55 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}

.primary-glow:hover:not(:disabled)::after {
  transform: translateX(120%);
}

.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.secondary {
  border: 1px solid #3d4f6e;
  background: #121a28;
  color: #e8edf7;
  padding: 12px 18px;
  border-radius: 13px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.secondary-glass {
  background: #0f1522aa;
  backdrop-filter: blur(8px);
}

.secondary:hover {
  background: #1a2438;
  border-color: #5a7ab0;
  transform: translateY(-1px);
}

.micro {
  color: #7f8fa8;
  font-size: 11px;
}

.stats {
  display: flex;
  gap: 36px;
  margin-top: clamp(20px, 4vh, 36px);
}

.stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats strong {
  font: 600 24px 'Space Grotesk', sans-serif;
}

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

.hero-device {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 400px;
  border: 8px solid #3d4f66;
  border-radius: 42px;
  background: linear-gradient(145deg, #1a2438, #0a0e18);
  transform: rotate(8deg);
  box-shadow:
    0 30px 70px #00000088,
    0 0 0 1px #ffffff12 inset,
    0 0 60px var(--hero-glow, #4d9fff33);
  padding: 7px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.hero-device-float {
  animation: deviceFloat 5.5s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(5deg) translateY(-10px);
  }
}

.hero-device--tablet.hero-device-float {
  animation-name: deviceFloatTablet;
}

@keyframes deviceFloatTablet {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(-8px);
  }
}

.hero-device--mac.hero-device-float {
  animation-name: deviceFloatMac;
}

@keyframes deviceFloatMac {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-grid:hover .hero-device:not(.hero-device-float) {
  transform: rotate(4deg) translateY(-4px);
}

.device-camera {
  position: absolute;
  width: 72px;
  height: 20px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  top: 7px;
  left: calc(50% - 36px);
  z-index: 2;
}

.device-screen {
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(150deg, #1a2848, #10182a 52%, #070b14);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.device-screen > span {
  font: 700 28px / 1.02 'Space Grotesk', sans-serif;
  text-align: center;
  letter-spacing: -0.05em;
  z-index: 1;
}

.device-screen > small {
  color: #a8b8d4;
  font-size: 10px;
  z-index: 1;
  margin-top: 12px;
}

.screen-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 40% 30%, #7ec8ff, #3b6fd4 50%, transparent 70%);
  filter: blur(18px);
  top: 30px;
  opacity: 0.65;
  animation: orbDrift 8s ease-in-out infinite;
}

.screen-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #ffffff12 0%, transparent 42%, transparent 58%, #ffffff08 100%);
  pointer-events: none;
  z-index: 2;
}

@keyframes orbDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-8px, 6px) scale(1.05);
  }
}

.hidden,
[hidden] {
  display: none !important;
}

.quiz-section,
.results-section {
  flex: 1;
  padding: clamp(16px, 2.5vh, 28px) 0 clamp(20px, 3vh, 32px);
  min-height: calc(100dvh - var(--topbar-h) - var(--footer-h));
}

.results-section {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vh, 40px);
}

.quiz-section {
  display: flex;
  flex-direction: column;
}

.quiz-section > :not(.stage-backdrop),
.results-section > :not(.stage-backdrop) {
  position: relative;
  z-index: 1;
}

.pill-counter {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid #3d4f6e;
  background: #0f1522aa;
  font-size: 12px !important;
}

.question-panel.glass-surface {
  padding: clamp(20px, 3vh, 28px);
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.counter {
  font: 600 13px 'Space Grotesk', sans-serif;
  color: #c5d0e4;
}

.progress-track {
  margin: 12px 0 20px;
  background: #1e2838;
  border-radius: 20px;
  height: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.progress-track--glow {
  height: 6px;
  background: #141c2c;
  box-shadow: inset 0 0 0 1px #ffffff08;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #4d9fff, #7ec8ff, #a8e4ff);
  transition: width 0.45s var(--ease-out);
  box-shadow: 0 0 16px #4d9fff88;
  border-radius: 20px;
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.question-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.question-tag {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.question-panel h2 {
  font: 700 clamp(24px, 3.2vw, 38px) / 1.15 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  margin: 10px 0 8px;
}

.question-panel > p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 14px;
  flex-shrink: 0;
}

.question-tag,
.question-panel h2 {
  flex-shrink: 0;
}

.choices {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: linear-gradient(155deg, #10182ae6, #0c1224f2);
  border: 1px solid #2e3d58;
  border-radius: 14px;
  color: #e6ebf5;
  padding: 13px 15px;
  transition:
    background 0.22s var(--ease-out),
    border-color 0.22s,
    transform 0.22s,
    box-shadow 0.22s;
}

.choice:hover {
  border-color: #5a8fd9;
  transform: translateX(4px);
  box-shadow: 0 8px 24px #00000040;
}

.choice.selected {
  background: linear-gradient(155deg, #1a2e4ae6, #122038);
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px #4d9fff50,
    0 10px 28px #4d9fff22;
}

.choice-letter {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #414d66;
  border-radius: 8px;
  color: #b9c8e0;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 13px;
}

.selected .choice-letter {
  background: var(--accent);
  color: #061018;
  border-color: var(--accent);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  flex-shrink: 0;
}

.sidebar {
  padding: 22px;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media (min-height: 720px) {
  .sidebar {
    max-height: none;
    height: auto;
  }
}

@media (max-height: 719px) {
  .sidebar {
    max-height: min(40vh, 320px);
  }

  .choices {
    overflow-y: auto;
  }
}

.sidebar-glow {
  box-shadow:
    0 20px 50px #00000050,
    0 0 40px #4d9fff0f;
}

.sidebar-icon {
  font-size: 32px;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.sidebar h3 {
  font: 600 20px / 1.2 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.sidebar p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
  margin: 0;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.profile-tags span {
  border: 1px solid #3d4f6e;
  border-radius: 20px;
  color: #b8d0f0;
  padding: 5px 9px;
  font-size: 10px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
}

.results-head h2 {
  font: 700 clamp(28px, 4vw, 48px) 'Space Grotesk', sans-serif;
  letter-spacing: -0.05em;
  margin: 8px 0;
}

.results-head p,
.comparison-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.budget-panel {
  padding: clamp(20px, 2.5vh, 26px) clamp(22px, 3vw, 28px);
  margin-bottom: 0;
  transition: opacity 0.2s;
}

.budget-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
}

.budget-panel-hint {
  font-size: 11px;
  color: var(--muted);
  max-width: 14rem;
  line-height: 1.4;
  text-align: right;
}

.budget-panel--loading {
  opacity: 0.72;
  pointer-events: none;
}

.recommendations--loading {
  opacity: 0.55;
  transition: opacity 0.2s;
}

.budget-panel h3 {
  font: 600 28px 'Space Grotesk', sans-serif;
  margin: 8px 0 14px;
}

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

.budget-panel input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.range-ends {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}

.results-budget-empty {
  grid-column: 1 / -1;
  padding: clamp(22px, 3vw, 28px);
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.results-budget-empty h3 {
  margin: 0 0 10px;
  font: 600 clamp(1.1rem, 2.5vw, 1.35rem) 'Space Grotesk', sans-serif;
}

.results-budget-empty p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.results-budget-empty-cheapest {
  color: #c5d4ec !important;
}

.results-budget-empty-hint {
  font-size: 13px !important;
  margin-bottom: 0 !important;
}

.phone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(160deg, #152238e8, #0c1220f5);
  border: 1px solid #2e3d58;
  border-radius: 20px;
  padding: clamp(20px, 2.5vw, 26px);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}

.phone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px #00000055;
}

.phone-card:first-child {
  border-color: #6a9fff;
  box-shadow:
    0 0 32px #4d9fff28,
    inset 0 1px 0 #ffffff12;
}

.phone-card:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4d9fff, #7ec8ff, transparent);
}

.rank {
  color: #8eb8f0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.phone-art {
  height: 120px;
  display: grid;
  place-items: center;
}

.tablet-silhouette {
  width: 96px;
  height: 118px;
  border: 5px solid #3a403d;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--phone-color), #1e2838);
  box-shadow: 10px 11px 28px #0008;
  transform: rotate(-4deg);
  position: relative;
}

.tablet-silhouette::before {
  content: '';
  position: absolute;
  inset: 8px 7px 10px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 20%, #ffffff45, transparent 65%);
}

.hero-device--tablet {
  width: 200px;
  height: 260px;
  border-radius: 18px;
  transform: rotate(0deg);
}

.hero-device--tablet .device-screen > span {
  font-size: 22px;
}

.macbook-silhouette {
  width: 118px;
  height: 78px;
  border: 5px solid #3a403d;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(145deg, var(--phone-color), #1e2838);
  box-shadow: 10px 11px 28px #0008;
  transform: rotate(-6deg);
  position: relative;
}

.macbook-silhouette::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6px;
  bottom: 14px;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 20%, #ffffff45, transparent 65%);
}

.macbook-silhouette::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 36px;
  height: 3px;
  margin-left: -18px;
  border-radius: 2px;
  background: #2a3548;
}

.hero-device--mac {
  width: 240px;
  height: 150px;
  border-radius: 14px 14px 8px 8px;
  transform: rotate(0deg);
}

.hero-device--mac .device-camera {
  display: none;
}

.hero-device--mac .device-screen {
  border-radius: 8px;
}

.hero-device--mac .device-screen > span {
  font-size: 18px;
}

.airpods-silhouette {
  width: 88px;
  height: 56px;
  position: relative;
  transform: rotate(-4deg);
}

.airpods-silhouette::before,
.airpods-silhouette::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 34px;
  height: 44px;
  border: 4px solid #3a403d;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(145deg, var(--phone-color), #1e2838);
  box-shadow: 8px 10px 24px #0008;
}

.airpods-silhouette::before {
  left: 4px;
  transform: rotate(-14deg);
}

.airpods-silhouette::after {
  right: 4px;
  transform: rotate(14deg);
}

.watch-silhouette {
  width: 72px;
  height: 88px;
  border: 5px solid #3a403d;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--phone-color), #1e2838);
  box-shadow: 10px 11px 28px #0008;
  transform: rotate(-6deg);
  position: relative;
}

.watch-silhouette::before {
  content: '';
  position: absolute;
  inset: 10px 8px 12px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 25%, #ffffff45, transparent 65%);
}

.imac-silhouette {
  width: 108px;
  height: 72px;
  border: 5px solid #3a403d;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(145deg, var(--phone-color), #1e2838);
  box-shadow: 10px 11px 28px #0008;
  transform: rotate(-4deg);
  position: relative;
}

.imac-silhouette::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6px;
  bottom: 10px;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 20%, #ffffff45, transparent 65%);
}

.imac-silhouette::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 48px;
  height: 8px;
  margin-left: -24px;
  border-radius: 0 0 6px 6px;
  background: #2a3548;
}

.phone-silhouette {
  width: 70px;
  height: 128px;
  border: 5px solid #3a403d;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--phone-color), #1e2838);
  box-shadow: 10px 11px 28px #0008;
  transform: rotate(-11deg);
  position: relative;
}

.phone-silhouette::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 10px;
  left: calc(50% - 15px);
  top: 6px;
  border-radius: 10px;
  background: #121a28;
}

.phone-silhouette::after {
  content: '';
  position: absolute;
  inset: 20px 8px 9px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 20%, #ffffff55, transparent 60%);
}

.phone-card h3 {
  font: 700 20px 'Space Grotesk', sans-serif;
  margin: 6px 0;
}

.phone-card .sub {
  color: var(--muted);
  font-size: 12px;
}

.score-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 6px;
}

.score-line strong {
  font: 700 26px 'Space Grotesk', sans-serif;
}

.score-line small {
  color: var(--muted);
}

.score-track {
  height: 6px;
  border-radius: 20px;
  background: #2a3548;
  overflow: hidden;
}

.score-track div {
  height: 100%;
  background: linear-gradient(90deg, #4d9fff, #7ec8ff);
}

.phone-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.phone-facts span {
  font-size: 10px;
  padding: 5px 8px;
  border: 1px solid #3d4f66;
  border-radius: 8px;
  color: #d4dbe8;
}

.card-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid #2e3d58;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  width: 100%;
}

.price-row-leading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.price-config-label {
  font-size: 9px;
  line-height: 1.35;
  color: var(--muted);
}

.price-feed-popover-name small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 400;
  color: #8a9bb0;
}

.price-row-amount {
  font: 600 clamp(17px, 1.6vw, 20px) 'Space Grotesk', sans-serif;
  white-space: nowrap;
  line-height: 1.2;
}

.price-row .price-source {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  padding: 4px 7px;
  letter-spacing: 0.03em;
}

.price-row .status {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.3;
}

.status {
  font-size: 10px;
  color: #8ec4ff;
}

.status.over {
  color: #ffb89a;
}

.card-description {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  flex: 1 1 auto;
  margin: 4px 0 12px;
}

.comparison {
  margin-top: 0;
}

.comparison-head {
  margin-bottom: 14px;
}

.comparison h3 {
  font: 600 22px 'Space Grotesk', sans-serif;
  margin-bottom: 8px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c122488;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px #00000035;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 590px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #283448;
  font-size: 12px;
}

th {
  background: #121a2c;
  color: #e6ebf5;
}

td {
  color: #b5c4dc;
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: #fff;
  font-weight: 600;
}

.disclaimer {
  margin: 0;
  color: #8a9bb0;
  line-height: 1.65;
  font-size: 11px;
  border-left: 2px solid #4d7fd4;
  padding: 0 0 0 14px;
}

.end-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  padding: clamp(8px, 1.5vh, 16px) 0 clamp(16px, 2.5vh, 28px);
}

.end-actions .primary,
.end-actions .secondary {
  min-height: 48px;
  padding: 12px 22px;
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid #ffffff12;
  padding: 14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  color: #6f7f9a;
  font-size: 11px;
  line-height: 1.5;
  background: linear-gradient(180deg, transparent, #070b1488);
}

.footer-legal {
  max-width: min(52rem, 100%);
  color: #5f708a;
  flex: 1 1 16rem;
}

.ampel-lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a3548;
  opacity: 0.35;
  transition: opacity 0.25s, box-shadow 0.25s, background 0.25s, transform 0.25s;
}

.price-ampel--green .ampel-lamp--green {
  background: #3dd68c;
  opacity: 1;
  box-shadow: 0 0 10px #3dd68c99;
}

.price-ampel--red .ampel-lamp--red {
  background: #ff6b6b;
  opacity: 1;
  box-shadow: 0 0 10px #ff6b6b99;
}

.price-ampel--loading .ampel-lamp--red {
  background: #ff6b6b;
  opacity: 0.85;
  animation: ampelPulse 1.2s ease-in-out infinite;
}

@keyframes ampelPulse {
  0%,
  100% {
    opacity: 0.35;
    box-shadow: none;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 10px #ff6b6b88;
  }
}

@media (max-width: 420px) {
  .picker-hero-title {
    white-space: normal;
    font-size: clamp(28px, 8.5vw, 36px);
  }
}

@media (max-height: 820px) {
  .picker-hero-title {
    font-size: clamp(28px, 4vw, 42px);
  }

  .picker-features {
    gap: 6px;
    margin-bottom: 14px;
  }

  .picker-stats {
    padding: 12px 16px;
  }

  .picker-stats strong {
    font-size: 18px;
  }

  .picker-card {
    padding: 16px;
  }

  .picker-device {
    margin-bottom: 10px;
  }

  .picker-meta {
    margin-bottom: 8px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(32px, 4.2vw, 48px);
  }

  .hero-device {
    width: 160px;
    height: 320px;
  }

  .device-screen > span {
    font-size: 22px;
  }

  .stats {
    gap: 24px;
  }

  .stats strong {
    font-size: 20px;
  }

  .question-panel h2 {
    font-size: clamp(22px, 2.8vw, 32px);
  }

}

@media (max-width: 950px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-top,
  .intro-mid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro-headline {
    text-align: left;
    justify-self: start;
    max-width: none;
  }

  .hero-grid:not(.hero-grid--intro) .hero-visual {
    order: -1;
    min-height: 240px;
  }

  .hero-device {
    width: 160px;
    height: 320px;
  }

  .hero-device:not(.hero-device-float) {
    transform: rotate(6deg);
  }

  .question-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

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

  .quiz-section,
  .results-section {
    min-height: auto;
  }
}

@media (max-width: 650px) {
  .app-shell {
    padding: 0 16px;
  }

  .top-pill {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .stats {
    gap: 22px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .question-panel h2 {
    font-size: 26px;
  }

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

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

  .end-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .end-actions .primary,
  .end-actions .secondary {
    width: 100%;
    justify-content: center;
  }

  footer {
    gap: 8px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
    animation: none !important;
  }

  .stage-animate .hero-content,
  .stage-animate .hero-visual,
  .stage-animate .question-panel,
  .stage-animate .sidebar,
  .stage-animate .results-head,
  .stage-animate .answers-review,
  .stage-animate .budget-panel,
  .stage-animate .phone-card {
    animation: none !important;
  }

  .price-feed-ticker-line {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.card-reasons {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-muted, #9eb0c8);
  font-size: 0.88rem;
  line-height: 1.5;
}

.card-footer .store-link {
  margin-top: 12px;
  margin-bottom: 2px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #7ec8ff);
  text-decoration: none;
}

.store-link:hover,
.store-link:focus-visible {
  text-decoration: underline;
}

.price-source {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.price-source--live {
  color: #8ce8b0;
  border-color: rgba(140, 232, 176, 0.35);
}

.price-source--catalog {
  color: #e8c98c;
  border-color: rgba(232, 201, 140, 0.35);
}

.auth-helper-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted, #9eb0c8);
}

.auth-helper-links a {
  color: var(--accent, #7ec8ff);
  text-decoration: none;
}

.auth-helper-links a:hover,
.auth-helper-links a:focus-visible {
  text-decoration: underline;
}

.picker-how {
  margin: 14px auto 0;
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.picker-how summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #3d4f6e;
  background: #0f1522cc;
  font-weight: 600;
  font-size: 13px;
  color: #c5d8f4;
  transition: border-color 0.2s, background 0.2s;
}

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

.picker-how summary::marker {
  content: '';
}

.picker-how summary::before {
  content: '▸';
  font-size: 11px;
  line-height: 1;
  color: var(--accent-2);
  transition: transform 0.2s var(--ease-out);
}

.picker-how[open] summary::before {
  transform: rotate(90deg);
}

.picker-how summary:hover,
.picker-how summary:focus-visible {
  border-color: #5a7ab0;
  background: #141e32ee;
  outline: none;
}

.picker-how p {
  margin: 12px 0 0;
  padding: 0 4px;
  width: 100%;
  text-align: center;
  color: var(--text-muted, #9eb0c8);
  font-size: 0.92rem;
  line-height: 1.55;
}

.session-expired {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}

.session-expired-card {
  max-width: 26rem;
  padding: 1.5rem;
  text-align: center;
}

.session-expired-card h2 {
  margin: 0 0 0.5rem;
}

.session-expired-card p {
  margin: 0 0 1rem;
  color: var(--text-muted, #9eb0c8);
}

.choice:focus-visible {
  outline: 2px solid var(--accent, #7ec8ff);
  outline-offset: 2px;
}

.app-shell {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.topbar {
  padding-top: env(safe-area-inset-top, 0px);
}

@media (max-width: 720px) {
  .top-pill.price-feed {
    width: 100%;
    max-width: 100%;
  }

  .price-feed {
    border-radius: 12px;
    padding: 8px 12px;
  }

  .price-feed-text {
    white-space: normal;
    line-height: 1.35;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .ambient,
  .topbar,
  .budget-panel,
  .end-actions,
  .session-expired,
  .picker-section,
  .hero,
  .quiz-section,
  footer {
    display: none !important;
  }

  .results-section {
    display: block !important;
  }

  .phone-card {
    break-inside: avoid;
    background: #fff;
    color: #111;
  }

  .phone-card * {
    color: #222 !important;
  }

  .recommendations {
    grid-template-columns: repeat(3, 1fr);
  }
}
