:root {
  color-scheme: light;
  --bg: #f2f6fb;
  --bg-deep: #e7eef7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: #f7fafd;
  --surface-tint: #edf4fa;
  --ink: #10273a;
  --muted: #64778a;
  --line: rgba(16, 39, 58, 0.1);
  --line-strong: rgba(16, 39, 58, 0.16);
  --blue-600: #2f6f98;
  --blue-700: #23597c;
  --blue-800: #173d59;
  --blue-900: #102739;
  --blue-soft: rgba(47, 111, 152, 0.1);
  --good: #1f7460;
  --warn: #8f7040;
  --danger: #b44e57;
  --shadow-xl: 0 28px 80px rgba(22, 54, 81, 0.12);
  --shadow-lg: 0 16px 40px rgba(22, 54, 81, 0.08);
  --shadow-md: 0 10px 24px rgba(22, 54, 81, 0.05);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(110, 162, 203, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(205, 224, 239, 0.55), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 34%, var(--bg-deep) 100%);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

a {
  color: var(--blue-700);
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 72px;
}

.embedded-shell {
  max-width: none;
  margin: 0;
  padding: 10px 10px 24px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-stack > * {
  animation: lift-in 420ms ease both;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(16, 39, 58, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.topbar-brand h1 {
  margin-bottom: 6px;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 700;
}

.topbar-profile {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.96rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.actions,
.primary-nav,
.section-head,
.recommendation-topline,
.wallet-card-head,
.comparison-topline,
.wallet-toolbar,
.hero-actions,
.wallet-grid-head,
.merchant-chip-row,
.signal-chip-row,
.guidance-grid,
.merchant-shell-header,
.refine-panel-head,
.freshness-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions,
.primary-nav,
.wallet-toolbar {
  flex-wrap: wrap;
}

.pwa-install-group {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.pwa-status {
  text-align: right;
}

.section-head,
.recommendation-topline,
.wallet-card-head,
.wallet-grid-head {
  justify-content: space-between;
  align-items: flex-start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 18px;
  border: 0;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(123, 190, 240, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(16, 39, 57, 0.98), rgba(27, 77, 111, 0.96));
  color: #eef7ff;
  box-shadow: var(--shadow-xl);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(138, 200, 247, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

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

.hero-copy .eyebrow {
  color: rgba(233, 245, 255, 0.74);
}

.hero-title {
  margin-bottom: 0;
  max-width: 8.8ch;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.93;
  font-weight: 750;
}

.hero-summary {
  margin-bottom: 0;
  max-width: 56ch;
  color: rgba(238, 247, 255, 0.82);
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 4px;
}

.hero-note {
  margin: 0;
  color: rgba(238, 247, 255, 0.7);
  font-size: 0.92rem;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.hero-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stat .wallet-meter-label,
.hero-stat .micro-copy {
  color: rgba(238, 247, 255, 0.72);
}

.hero-stat .wallet-meter-count {
  color: #ffffff;
}

.hero-stat .freshness-row {
  align-items: flex-start;
}

.primary-link-button,
.primary-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  text-decoration: none;
  border-radius: 14px;
}

.primary-link-button,
.primary-button,
button {
  border: none;
  color: white;
  cursor: pointer;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 10px 26px rgba(23, 61, 89, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-link-button:hover,
.primary-button:hover,
button:hover {
  transform: translateY(-1px);
  background: var(--blue-700);
  box-shadow: 0 14px 30px rgba(23, 61, 89, 0.2);
}

.primary-link-button {
  min-height: 48px;
  width: auto;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-button {
  min-height: 56px;
  width: 100%;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 1rem;
}

.ghost-button,
.ghost-link {
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 111, 152, 0.16);
  box-shadow: none;
}

.ghost-button:hover,
.ghost-link:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue-800);
  border-color: rgba(47, 111, 152, 0.24);
  box-shadow: none;
}

.ghost-link {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.ghost-link.is-active {
  background: var(--blue-soft);
}

.quick-panel,
.wallet-header-panel,
.recommendation-hero {
  background: var(--surface-strong);
}

.recommendation-hero {
  border-color: rgba(47, 111, 152, 0.16);
  background:
    linear-gradient(180deg, rgba(47, 111, 152, 0.04), transparent 26%),
    var(--surface-strong);
}

.recommendation-title {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  font-weight: 750;
}

.wallet-meter {
  min-width: 200px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(47, 111, 152, 0.12);
  background: var(--surface-soft);
}

.wallet-meter-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallet-meter-count,
.headline,
.headline-small {
  margin-bottom: 0;
  font-weight: 700;
}

.wallet-meter-count {
  font-size: 1.22rem;
}

.muted,
.micro-copy,
.next-step,
.comparison-reason,
.comparison-subvalue {
  color: var(--muted);
}

.micro-copy {
  margin-bottom: 0;
  font-size: 0.89rem;
}

.next-step {
  margin-bottom: 0;
}

.status-chip {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(143, 112, 64, 0.12);
  color: var(--warn);
}

.status-chip.good {
  background: rgba(31, 116, 96, 0.12);
  color: var(--good);
}

.status-chip.danger {
  background: rgba(180, 78, 87, 0.12);
  color: var(--danger);
}

.stack,
.compact-fields,
.everyday-grid,
.comparison-list,
.quarterly-list,
.wallet-grid,
.wallet-field-grid,
.recommendation-grid,
.notification-grid {
  display: grid;
  gap: 14px;
}

.recommendation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.decision-grid,
.guidance-grid {
  display: grid;
  gap: 14px;
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.compact-fields-tight {
  max-width: 280px;
}

.form-three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card,
.everyday-card,
.comparison-item,
.quarterly-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.comparison-item.is-best {
  border-color: rgba(31, 116, 96, 0.2);
}

.decision-card {
  padding: 18px;
  border: 1px solid rgba(16, 39, 58, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 253, 0.96));
}

.decision-card-accent {
  border-color: rgba(47, 111, 152, 0.18);
  background: linear-gradient(180deg, rgba(47, 111, 152, 0.08), rgba(255, 255, 255, 0.98));
}

.decision-card h3 {
  margin-bottom: 10px;
}

.decision-value {
  margin-bottom: 6px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.headline {
  font-size: 1.72rem;
  letter-spacing: -0.04em;
}

.headline-small {
  font-size: 1.06rem;
}

.input-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(16, 39, 58, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 253, 0.96));
}

.merchant-shell {
  gap: 16px;
  padding: 20px;
}

.merchant-shell-header {
  justify-content: space-between;
  align-items: flex-start;
}

.merchant-shell-title {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.merchant-shortcuts {
  display: grid;
  gap: 8px;
}

.shortcut-label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.merchant-chip-row,
.signal-chip-row {
  flex-wrap: wrap;
}

.merchant-chip,
.signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 111, 152, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-800);
  box-shadow: none;
}

.merchant-chip {
  min-height: 38px;
  font-weight: 600;
}

.merchant-chip:hover,
.signal-chip:hover {
  transform: none;
  background: rgba(47, 111, 152, 0.07);
  box-shadow: none;
}

.signal-chip {
  gap: 6px;
  color: var(--ink);
  background: rgba(47, 111, 152, 0.06);
}

.guidance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.guidance-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guidance-value {
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.merchant-intelligence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.merchant-intelligence .micro-copy {
  width: 100%;
}

.merchant-intel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 111, 152, 0.14);
  color: var(--blue-800);
  font-size: 0.84rem;
  font-weight: 600;
}

.refine-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(16, 39, 58, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(245, 249, 252, 0.85), rgba(255, 255, 255, 0.96));
}

.refine-panel-head {
  justify-content: space-between;
  align-items: flex-start;
}

.refine-panel-head h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.refine-grid {
  align-items: flex-start;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  border-radius: 14px;
  border: 1px solid rgba(16, 39, 58, 0.1);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #90a3b2;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
.primary-link-button:focus,
.ghost-link:focus {
  outline: 2px solid rgba(47, 111, 152, 0.16);
  outline-offset: 1px;
  border-color: rgba(47, 111, 152, 0.34);
  box-shadow: 0 0 0 4px rgba(47, 111, 152, 0.08);
}

.category-guidance,
.wallet-empty-banner,
.highlight-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--blue-soft);
  border: 1px solid rgba(47, 111, 152, 0.14);
}

.wallet-empty-banner a {
  color: var(--blue-700);
}

.form-details {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 39, 58, 0.08);
  border-radius: 18px;
  background: rgba(248, 251, 253, 0.82);
}

.form-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.form-details[open] summary {
  margin-bottom: 12px;
}

.details-stack {
  display: grid;
  gap: 12px;
}

.details-stack label {
  display: grid;
  gap: 4px;
}

.everyday-name,
.comparison-name {
  margin-bottom: 6px;
  font-weight: 700;
}

.everyday-answer,
.comparison-reason,
.comparison-subvalue {
  margin-bottom: 0;
}

.comparison-value {
  margin-bottom: 4px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: right;
}

.wallet-grid-head {
  margin-bottom: 16px;
}

.wallet-grid-head h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.wallet-discovery,
.wallet-results-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.wallet-discovery {
  margin-bottom: 14px;
}

.wallet-results-bar {
  margin-bottom: 18px;
}

.wallet-search-shell {
  flex: 1 1 320px;
}

.wallet-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-filter-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(47, 111, 152, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-700);
  box-shadow: none;
}

.wallet-filter-button.is-active {
  border-color: rgba(47, 111, 152, 0.24);
  background: rgba(47, 111, 152, 0.09);
  color: var(--blue-800);
}

.wallet-filter-button:hover {
  transform: none;
  background: rgba(47, 111, 152, 0.06);
  color: var(--blue-800);
  box-shadow: none;
}

.wallet-filter-button.is-active:hover {
  background: rgba(47, 111, 152, 0.11);
}

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

.wallet-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
  animation: lift-in 420ms ease both;
  animation-delay: var(--card-delay, 0ms);
}

.wallet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(22, 54, 81, 0.09);
}

.wallet-card.is-owned {
  border-color: rgba(47, 111, 152, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 251, 255, 0.98));
  box-shadow: 0 18px 38px rgba(22, 54, 81, 0.1);
}

.wallet-card.needs-setup {
  border-color: rgba(143, 112, 64, 0.28);
  box-shadow: 0 16px 34px rgba(143, 112, 64, 0.08);
}

.wallet-card-summary {
  display: grid;
  gap: 8px;
}

.wallet-card-summary h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
  font-weight: 720;
}

.wallet-card-issuer {
  margin-bottom: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.wallet-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf5fb;
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 600;
}

.wallet-chip-accent {
  background: rgba(16, 39, 58, 0.05);
  color: var(--ink);
}

.wallet-chip-selected {
  background: rgba(31, 116, 96, 0.1);
  color: var(--good);
}

.wallet-chip-warning {
  background: rgba(143, 112, 64, 0.14);
  color: var(--warn);
}

.wallet-card-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.toggle-row {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: auto;
  accent-color: var(--blue-600);
}

.wallet-select-toggle {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 111, 152, 0.14);
  border-radius: 999px;
  background: #f4f9fd;
  color: var(--blue-700);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.wallet-card.is-owned .wallet-select-toggle {
  border-color: rgba(47, 111, 152, 0.24);
  background: rgba(47, 111, 152, 0.09);
  color: var(--blue-800);
}

.wallet-select-toggle span {
  margin: 0;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.wallet-card-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 39, 58, 0.08);
}

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

.wallet-detail-block {
  padding: 14px 16px;
  border: 1px solid rgba(16, 39, 58, 0.08);
  border-radius: 16px;
  background: var(--surface-soft);
}

.wallet-detail-block h4 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.discover-setup-block {
  border-color: rgba(47, 111, 152, 0.14);
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.discover-setup-block-urgent {
  border-color: rgba(143, 112, 64, 0.22);
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.95), rgba(255, 255, 255, 0.98));
}

.discover-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.discover-setup-head h4 {
  margin-bottom: 4px;
}

.discover-setup-copy {
  margin-bottom: 12px;
}

.discover-setup-grid {
  align-items: flex-start;
}

.wallet-empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(47, 111, 152, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(247, 250, 253, 0.92);
  text-align: center;
}

.wallet-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.notification-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.wallet-step {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(16, 39, 58, 0.08);
}

.notification-setting input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  accent-color: var(--blue-600);
}

.reminder-panel .wallet-toolbar {
  margin-top: 16px;
}

.wallet-step-number {
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.wallet-step-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.compact-toggle-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(16, 39, 58, 0.08);
  border-radius: 14px;
  background: #fbfdff;
}

.portal-insight {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(47, 111, 152, 0.05);
}

.freshness-row {
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

.freshness-row .micro-copy {
  flex: 1 1 220px;
}

.warning,
.error {
  margin-bottom: 0;
  color: var(--danger);
}

.is-hidden {
  display: none !important;
}

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

@media (max-width: 900px) {
  .hero-shell,
  .wallet-steps,
  .form-three-up,
  .wallet-grid,
  .wallet-field-grid,
  .recommendation-grid,
  .decision-grid,
  .guidance-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .recommendation-topline,
  .wallet-card-head,
  .comparison-topline,
  .wallet-grid-head,
  .wallet-discovery,
  .wallet-results-bar,
  .merchant-shell-header,
  .refine-panel-head,
  .discover-setup-head {
    flex-direction: column;
  }

  .hero-title {
    max-width: none;
  }

  .compact-fields-tight,
  #subcategory-shell {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px 12px 40px;
  }

  .actions,
  .primary-nav,
  .wallet-toolbar,
  .hero-actions {
    width: 100%;
  }

  .pwa-install-group,
  .pwa-status {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

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

  .hero-note {
    width: 100%;
  }

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

  .ghost-link,
  .primary-link-button {
    width: 100%;
  }

  .comparison-value,
  .comparison-subvalue {
    text-align: left;
  }
}
