/*
 * File: public/assets/styles.css
 * Purpose: Global visual system for the CostCut.co website, including design
 * tokens, layout primitives, navigation, deal cards, forms, account panels,
 * price charts, responsive behavior, and route-specific page styling.
 * Prerequisites: public/index.html must load this stylesheet before app.js
 * renders route markup. CSS custom properties defined in :root are used across
 * the entire website.
 * Inputs: HTML classes/data attributes emitted by public/assets/app.js and the
 * static page shell.
 * Outputs: Responsive, accessible, branded visual presentation for the website.
 */

:root {
  color-scheme: light;
  --blue: #125fc2;
  --blue-dark: #0b3a7d;
  --ink: #172033;
  --muted: #5b6a82;
  --line: #dce6f4;
  --bg: #f5f8fc;
  --soft: #ecf4ff;
  --green: #15803d;
  --orange: #d65f00;
  --red: #dc2626;
  --white: #ffffff;
  --shadow: 0 16px 38px rgba(18, 95, 194, 0.12);
  --content-width: 1180px;
  --reading-width: 760px;
  --sticky-panel-offset: clamp(76px, 10vh, 108px);
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-page: 30px;
  --text-hero: 36px;
  --line-tight: 1.15;
  --line-heading: 1.22;
  --line-normal: 1.55;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: var(--line-normal);
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 10px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topline {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 16px;
  background: #e9f2ff;
  color: #234465;
  font-size: var(--text-sm);
}

.topline a {
  font-weight: 400;
}

.nav-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 190px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 400;
}

.brand-logo-mark {
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
}

.brand-logo-mark img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  flex: 1;
  gap: 6px;
  font-size: var(--text-md);
  font-weight: 400;
}

.nav-links a {
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 8px;
  color: #253b59;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
  color: var(--blue-dark);
}

.nav-links a.nav-disabled,
.nav-links a.nav-disabled:hover,
.nav-links a.nav-disabled.active {
  background: transparent;
  color: #9aa8ba;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-links .nav-cta {
  background: var(--blue);
  color: var(--white);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  background: var(--blue-dark);
  color: var(--white);
}

.nav-links .nav-cta.nav-disabled,
.nav-links .nav-cta.nav-disabled:hover,
.nav-links .nav-cta.nav-disabled.active {
  background: #d7dee8;
  color: #7b8796;
}

.nav-auth {
  flex: 0 0 auto;
  position: relative;
}

.nav-profile-button {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  min-height: 42px;
  padding: 4px 10px 4px 5px;
}

.nav-profile-button:hover,
.nav-profile-button[aria-expanded="true"] {
  background: var(--soft);
  border-color: #bcd3f0;
}

.nav-profile-avatar {
  background: var(--blue);
  border-radius: 50%;
  color: var(--white);
  display: grid;
  flex: 0 0 auto;
  font-size: var(--text-sm);
  font-weight: 400;
  height: 32px;
  place-items: center;
  width: 32px;
}

.nav-profile-copy {
  display: grid;
  line-height: 1.1;
  min-width: 0;
  text-align: left;
}

.nav-profile-copy strong {
  font-size: var(--text-sm);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-profile-copy small {
  color: var(--green);
  font-size: var(--text-2xs);
  font-weight: 400;
}

.nav-profile-menu {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  min-width: 240px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
}

.nav-profile-menu[hidden] {
  display: none;
}

.nav-profile-menu-head {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding: 4px 4px 10px;
}

.nav-profile-menu-head strong {
  color: var(--ink);
  font-size: var(--text-md);
}

.nav-profile-menu-head span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.nav-profile-menu a,
.nav-profile-menu button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #253b59;
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: 400;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
}

.nav-profile-menu a:hover,
.nav-profile-menu button:hover {
  background: var(--soft);
  color: var(--blue-dark);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 400;
}

.hero {
  background: linear-gradient(180deg, #166fd7 0%, #0d4fa8 100%);
  color: var(--white);
  padding: 24px 20px 18px;
}

.hero-inner,
.section,
.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: var(--text-hero);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
}

.hero-search-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-top: 12px;
  max-width: 940px;
  padding: 8px;
}

.hero-search-panel input {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--ink);
  font-size: var(--text-md);
  min-height: 40px;
  padding: 9px 12px;
  width: 100%;
}

.hero-search-button {
  background: var(--white);
  color: var(--blue-dark);
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
}

.hero-search-button:hover {
  background: #eaf3ff;
  color: var(--blue-dark);
}

.platform-strip {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 1020px;
}

.platform-strip-item {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 8px 3px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.platform-strip-item:hover,
.platform-strip-item:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.platform-strip-name {
  line-height: 1.1;
}

.platform-strip-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 400;
  overflow: hidden;
}

.platform-strip-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.platform-strip-logo.has-image span {
  display: none;
}

.popular-platforms-block {
  margin-bottom: 12px;
  position: relative;
}

.popular-platforms-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.popular-platforms-head h2 {
  font-size: var(--text-xl);
  line-height: 1.1;
  margin: 0;
}

.deals-platform-strip {
  flex-wrap: nowrap;
  margin: 0;
  max-width: none;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.deals-platform-strip::-webkit-scrollbar {
  display: none;
}

.deals-platform-strip .platform-strip-item {
  background: #eef5ff;
  border-color: #d9e7fb;
  box-shadow: none;
  color: var(--blue-dark);
  flex: 0 0 auto;
  font-size: var(--text-base);
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  padding: 5px 12px 5px 6px;
}

.deals-platform-strip .platform-strip-item:hover,
.deals-platform-strip .platform-strip-item:focus-visible {
  background: #eaf3ff;
  border-color: #bfd7f7;
}

.deals-platform-strip .platform-strip-logo {
  border: 1px solid #d9e7fb;
  border-radius: 8px;
  height: 32px;
  width: 32px;
}

.deals-platform-strip .platform-strip-logo img {
  padding: 5px;
}

.deals-platform-strip .platform-see-all-chip {
  background: #ffffff;
  border-color: #bfd7f7;
  color: var(--blue-dark);
  cursor: pointer;
  font-family: inherit;
  padding-right: 14px;
}

.deals-platform-strip .platform-see-all-chip:hover,
.deals-platform-strip .platform-see-all-chip:focus-visible,
.popular-platforms-block.is-open .platform-see-all-chip {
  background: #eaf3ff;
  border-color: #8fb9ef;
  color: var(--green);
}

.platform-see-all-icon {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #d9e7fb;
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--text-lg);
  font-weight: 700;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

.popular-platforms-block.is-open .platform-see-all-icon {
  background: #e9f9ef;
  border-color: #a9efbd;
  color: var(--green);
}

.platform-popover[hidden] {
  display: none;
}

.platform-popover {
  background: #ffffff;
  border: 1px solid #d6e4f6;
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18);
  left: var(--platform-popover-left, 0);
  margin-top: 8px;
  max-width: 100%;
  padding: 10px;
  position: absolute;
  top: 100%;
  width: var(--platform-popover-width, min(760px, calc(100vw - 40px)));
  z-index: 30;
}

.platform-popover::before {
  background: #ffffff;
  border-left: 1px solid #d6e4f6;
  border-top: 1px solid #d6e4f6;
  content: "";
  height: 12px;
  left: var(--platform-popover-caret-left, 24px);
  position: absolute;
  top: -7px;
  transform: rotate(45deg);
  width: 12px;
}

.platform-popover-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.platform-popover-head span {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 800;
}

.platform-popover-head button {
  background: #eef5ff;
  border: 1px solid #d9e7fb;
  border-radius: 999px;
  color: var(--blue-dark);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 5px 10px;
}

.platform-popover-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  max-height: min(308px, 48vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.platform-popover-item {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #dbe7f7;
  border-radius: 8px;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: var(--text-sm);
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 5px 8px;
  text-decoration: none;
}

.platform-popover-item:hover,
.platform-popover-item:focus-visible {
  background: #eaf3ff;
  border-color: #bfd7f7;
}

.platform-popover-item .platform-strip-logo {
  border: 1px solid #d9e7fb;
  border-radius: 8px;
  height: 30px;
  width: 30px;
}

.platform-popover-item .platform-strip-logo img {
  padding: 5px;
}

.section {
  padding: 38px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h2,
.page-title h1 {
  margin: 0;
  font-size: var(--text-page);
  line-height: var(--line-tight);
}

.section-header p,
.page-title p {
  color: var(--muted);
  margin: 6px 0 0;
}

.section-link {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-md);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--blue-strong);
  text-decoration: underline;
}

.button,
button.button {
  border: 1px solid transparent;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: var(--text-md);
  min-height: 42px;
  padding: 10px 15px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-dark);
}

.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
}

.button-light {
  background: var(--white);
  color: var(--blue-dark);
}

.button-light:hover {
  background: #eaf3ff;
}

.filter-search,
.filter-reset {
  align-self: end;
  font-size: var(--text-sm);
  justify-self: start;
  min-height: 38px;
  min-width: 76px;
  padding: 8px 13px;
}

.filter-reset {
  background: #f8fbff;
  border-color: var(--line);
  color: var(--blue-dark);
}

.filter-reset:hover {
  background: #eaf3ff;
}

.button-dark {
  background: var(--ink);
}

.button-dark:hover {
  background: #0a1220;
}

.filter-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 0.8fr) auto auto;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-bar .field {
  gap: 4px;
}

.filter-bar .field label {
  font-size: var(--text-xs);
}

.filter-bar .field input,
.filter-bar .field select {
  min-height: 38px;
  padding: 8px 10px;
}

.home-filter-state {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.home-category-panel {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dbe7f7;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 6px 8px;
}

.hero-category-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 8px;
  max-width: 940px;
  padding: 0;
}

.hero-category-panel .home-category-rail {
  gap: 6px;
}

.hero-category-panel .home-category-chip {
  min-height: 28px;
  padding: 0 10px;
}

.home-category-label {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.home-category-rail {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-category-rail::-webkit-scrollbar {
  display: none;
}

.home-category-chip {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #d9e7fb;
  border-radius: 999px;
  color: var(--blue-dark);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  white-space: nowrap;
}

.home-category-chip span {
  font-size: var(--text-xs);
  font-weight: 700;
}

.home-category-chip small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.home-category-chip.selected {
  background: #eaf7ef;
  border-color: #bfe6cc;
  color: var(--green);
}

.home-category-chip.selected small {
  color: var(--green);
}

.hero-category-panel .home-category-chip {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 3px 10px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.hero-category-panel .home-category-chip small {
  color: rgba(255, 255, 255, 0.76);
}

.hero-category-panel .home-category-chip:hover,
.hero-category-panel .home-category-chip:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.hero-category-panel .home-category-chip.selected {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: #23b15b;
}

.hero-category-panel .home-category-chip.selected small {
  color: #23b15b;
}

.home-category-chip:focus-visible {
  outline: 3px solid rgba(45, 99, 204, 0.22);
  outline-offset: 2px;
}

.hero-category-panel .home-category-chip:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.56);
  outline-offset: 2px;
}

.home-category-select-proxy {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.home-deals-section {
  padding-top: 18px;
}

.top-deals-section,
.free-courses {
  padding-top: 18px;
}

.home-deals-header {
  align-items: center;
  margin-bottom: 6px;
}

.home-deals-header h2 {
  font-size: var(--text-xl);
  line-height: 1.1;
}

.home-deals-header .section-link {
  font-size: var(--text-sm);
}

.price-history-filter {
  align-items: end;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(145px, 0.8fr)) auto auto;
}

.price-history-command-workbench {
  padding-top: 30px;
}

.price-history-filter-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  padding: 18px;
}

.price-history-filter-heading {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.price-history-filter-heading span {
  color: var(--blue);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-history-filter-heading strong {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: var(--line-heading);
  text-align: right;
}

.price-history-filter-card .price-history-filter {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.price-history-filter .filter-reset {
  background: #f8fbff;
  border-color: var(--line);
  color: var(--blue-dark);
}

.price-history-filter .filter-reset:hover {
  background: #eaf3ff;
}

.price-history-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.9fr);
}

.price-history-list-panel {
  min-width: 0;
}

.price-history-list-panel .table-card {
  overflow-x: auto;
}

.price-history-trend-panel {
  align-self: start;
  min-width: 0;
  position: sticky;
  top: var(--sticky-panel-offset);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #33445c;
  font-size: var(--text-sm);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--white);
  font-size: var(--text-md);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

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

.recommended-section .deal-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.deal-results-header {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
}

.deal-results-header p {
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pagination-pages {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-dark);
  border-radius: 8px;
  min-height: 40px;
  min-width: 72px;
  font-size: var(--text-md);
  padding: 9px 12px;
  font-weight: 400;
  cursor: pointer;
}

.pagination-pages .pagination-button {
  min-width: 42px;
}

.pagination-ellipsis {
  color: var(--muted);
  font-weight: 400;
  min-width: 22px;
  text-align: center;
}

.pagination-button:hover:not(:disabled),
.pagination-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.deal-card,
.info-card,
.form-card,
.table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.deal-card {
  display: grid;
  gap: 10px;
  isolation: isolate;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.deal-card > * {
  position: relative;
  z-index: 1;
}

.deal-card.has-card-watermark::before {
  background-image: var(--deal-card-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  filter: saturate(0.9);
  height: 150px;
  opacity: 0.075;
  pointer-events: none;
  position: absolute;
  right: -22px;
  top: -18px;
  width: 150px;
  z-index: 0;
}

.platform-filter-summary {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  margin: 10px 0 12px;
  padding: 10px 12px;
}

.platform-filter-summary h2 {
  font-size: var(--text-lg);
  line-height: var(--line-heading);
  margin: 4px 0 2px;
}

.platform-filter-summary p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
  margin: 0;
}

.platform-coupon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.platform-coupon-chip {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--red);
  display: grid;
  gap: 1px;
  min-width: 104px;
  padding: 6px 8px;
}

.platform-coupon-chip strong {
  font-size: var(--text-sm);
}

.platform-coupon-chip small {
  color: #7f1d1d;
  font-size: var(--text-2xs);
  font-weight: 400;
}

.deal-card.inactive-recent {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: none;
}

.deal-card.inactive-recent .platform-logo,
.price-history-row.inactive-recent .platform-logo {
  filter: grayscale(1);
  opacity: 0.72;
}

.deal-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.platform-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 400;
  flex: 0 0 auto;
  overflow: hidden;
}

.platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: var(--white);
}

.platform-logo.has-image .platform-logo-text {
  display: none;
}

.eyebrow {
  color: var(--muted);
  line-height: 1;
  margin: 0 0 3px;
  text-transform: uppercase;
  font-size: var(--text-2xs);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.deal-card h3,
.info-card h3 {
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--line-heading);
}

.deal-card h3 {
  font-size: var(--text-base);
  line-height: 1.18;
}

.deal-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.deal-meta span,
.badge {
  background: #eef5ff;
  color: #174f9f;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: var(--text-xs);
  font-weight: 400;
}

.deal-meta .deal-badge {
  align-items: center;
  background: var(--white);
  border: 1px solid #d8e2f0;
  border-radius: 6px;
  color: #37516f;
  display: inline-flex;
  font-size: var(--text-2xs);
  font-weight: 400;
  line-height: 1.1;
  padding: 2px 6px;
}

.deal-meta .verified-badge {
  background: var(--white);
  border-color: #bbf7d0;
  color: #166534;
}

.deal-meta .soft-badge {
  background: var(--white);
  border-color: #e2e8f0;
  color: #64748b;
}

.deal-meta span.inactive-status,
.inactive-link-note {
  background: var(--white);
  color: #64748b;
}

.inactive-link-note {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: var(--text-2xs);
  font-weight: 400;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-row.current-only {
  justify-content: flex-end;
}

.price-row span {
  color: var(--muted);
  font-size: var(--text-sm);
  text-decoration: line-through;
}

.price-row strong {
  color: var(--green);
  font-size: var(--text-lg);
}

.deal-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 0;
}

.deal-details div {
  min-width: 0;
}

.deal-details dt {
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: 400;
}

.deal-details dd {
  font-size: var(--text-sm);
  line-height: 1.25;
  margin: 1px 0 0;
  font-weight: 400;
}

.deal-details dd.coupon-code {
  color: var(--red);
}

.deal-details dd.muted-detail {
  color: var(--muted);
}

.deal-actions {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr;
  gap: 6px;
}

.deal-primary-action {
  font-size: var(--text-sm);
  min-height: 38px;
  padding: 8px 12px;
}

.marketplace-primary-action {
  grid-template-columns: 1fr;
}

.marketplace-secondary-link {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
  justify-self: center;
  padding: 2px 4px;
  text-decoration: none;
}

.marketplace-secondary-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.copy-code {
  align-items: center;
  border: 1px solid #bfd3f1;
  color: var(--blue-dark);
  background: #ffffff;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  font-size: var(--text-md);
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.deal-primary-action {
  background: var(--blue);
  border-color: var(--blue);
  min-height: 40px;
  padding: 9px 12px;
  white-space: nowrap;
}

.deal-primary-action:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.copy-code.copied {
  border-color: var(--green);
  color: var(--green);
  background: #f0fdf4;
}

.copy-code:disabled {
  border-color: #cbd5e1;
  color: #64748b;
  background: #f8fafc;
  cursor: not-allowed;
}

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

.proof-section {
  padding-top: 12px;
  padding-bottom: 6px;
}

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

.proof-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 9px 12px;
}

.proof-card strong {
  color: var(--blue-dark);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.proof-card span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.trust-badges span {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #14532d;
  font-size: var(--text-xs);
  padding: 4px 9px;
}

.home-extra-discount-band {
  padding-top: 12px;
  padding-bottom: 6px;
}

.home-extra-discount-panel {
  align-items: center;
  background: linear-gradient(135deg, #125fc2 0%, #103f86 100%);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--white);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 1fr) auto;
  padding: 14px 16px;
}

.home-extra-kicker {
  color: #dbeafe;
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.home-extra-discount-panel h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: var(--line-heading);
  margin: 0;
}

.home-extra-discount-panel p {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-sm);
  line-height: var(--line-normal);
  margin: 4px 0 0;
  max-width: 720px;
}

.home-extra-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.home-extra-signals span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  font-size: var(--text-2xs);
  padding: 4px 8px;
}

.home-extra-score {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: grid;
  height: 76px;
  justify-items: center;
  padding: 8px 12px;
  text-align: center;
  width: 94px;
}

.home-extra-score strong {
  font-size: 26px;
  line-height: 1;
}

.home-extra-score span {
  color: #dbeafe;
  font-size: var(--text-2xs);
}

.faq-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.faq-item summary {
  color: var(--ink);
  cursor: pointer;
  font-size: var(--text-base);
}

.faq-item p {
  color: var(--muted);
  margin: 8px 0 0;
}

.home-section-kicker {
  color: var(--blue);
  display: inline-block;
  font-size: var(--text-xs);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.home-checkout-section {
  padding-top: 30px;
}

.home-checkout-layout {
  align-items: start;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.86fr) minmax(360px, 1.14fr);
  padding: 30px 0;
}

.home-checkout-layout h2 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 32px);
  line-height: var(--line-tight);
  margin: 0;
}

.home-checkout-layout > div:first-child > p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  margin: 12px 0 0;
  max-width: 520px;
}

.home-checkout-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.home-checkout-list {
  display: grid;
  gap: 0;
}

.home-checkout-item {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 16px 0;
}

.home-checkout-item:first-child {
  padding-top: 0;
}

.home-checkout-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-checkout-mark {
  align-items: center;
  background: #edf4ff;
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: var(--text-sm);
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.home-checkout-item h3 {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: var(--line-heading);
  margin: 0;
}

.home-checkout-item p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-normal);
  margin: 5px 0 0;
}

.home-faq-section {
  padding-top: 20px;
}

.home-faq-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(240px, 0.75fr) minmax(420px, 1.25fr);
}

.home-faq-head {
  padding-top: 8px;
}

.home-faq-head h2 {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: var(--line-heading);
  margin: 0;
}

.home-faq-head p {
  color: var(--muted);
  font-size: var(--text-base);
  margin: 8px 0 0;
}

.home-faq-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.home-faq-item {
  background: var(--white);
  border: 1px solid #e3ebf7;
  border-radius: 8px;
}

.home-faq-item summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  min-height: 54px;
  padding: 13px 16px;
}

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

.home-faq-plus {
  align-items: center;
  background: #edf4ff;
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  flex: 0 0 28px;
  font-size: var(--text-lg);
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.home-faq-item[open] .home-faq-plus {
  background: var(--blue);
  color: var(--white);
}

.home-faq-item p {
  border-top: 1px solid #e3ebf7;
  color: var(--muted);
  margin: 0;
  padding: 0 16px 14px;
}

.free-course-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px;
}

.free-course-action-card {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px 8px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 10px;
}

.free-course-action-media {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #d8e6fb;
  border-radius: 8px;
  color: var(--blue-dark);
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.free-course-action-media svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.free-course-action-saved .free-course-action-media {
  background: #eef7ff;
  border-color: #cfe3ff;
  color: var(--blue-dark);
}

.free-course-action-opened .free-course-action-media {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--green);
}

.free-course-action-alerts .free-course-action-media {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--orange);
}

.free-course-action-copy {
  display: grid;
  gap: 3px;
  grid-column: 2;
  min-width: 0;
}

.free-course-action-title-row {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 0;
}

.free-course-action-badge {
  background: #eef4ff;
  border-radius: 999px;
  color: var(--blue-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--text-xs);
  font-weight: 700;
  justify-self: start;
  min-height: 24px;
  padding: 3px 8px;
}

.free-course-action-card h2 {
  color: var(--ink);
  font-size: var(--text-base);
  line-height: var(--line-heading);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-course-action-card p {
  color: #5d6b80;
  display: -webkit-box;
  font-size: var(--text-sm);
  line-height: 1.35;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.free-course-action-card a {
  color: var(--blue-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-top: 0;
  text-decoration: none;
  white-space: nowrap;
}

.free-course-action-card a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.seo-section {
  padding-top: 0;
}

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

.seo-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.seo-panel h2 {
  font-size: var(--text-xl);
  line-height: var(--line-heading);
  margin: 0;
}

.seo-panel p {
  color: var(--muted);
  margin: 10px 0 0;
}

.free-course-summary,
.top-deal-summary {
  margin-bottom: 8px;
}

.page-metric-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.page-metric-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 54px;
  padding: 8px 12px;
}

.page-metric-tile strong,
.page-metric-tile span {
  display: block;
}

.page-metric-tile strong {
  color: var(--blue-dark);
  font-size: 20px;
  line-height: var(--line-tight);
}

.page-metric-tile:nth-child(2) strong {
  color: var(--orange);
}

.page-metric-tile:nth-child(3) strong {
  color: var(--green);
}

.page-metric-tile span {
  color: #5d6b80;
  font-size: var(--text-xs);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-card-icon {
  align-items: center;
  background: transparent;
  border: 0;
  color: #3169d6;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.alert-card-icon svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 28px;
}

.alert-preferences-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
}

.alert-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: var(--sticky-panel-offset);
}

.alert-summary-card {
  display: grid;
  gap: 12px;
}

.alert-summary-card h2 {
  margin: 0;
}

.alert-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alert-summary-list span {
  background: #eef5ff;
  border: 1px solid #d8e6fb;
  border-radius: 999px;
  color: #174f9f;
  font-size: var(--text-xs);
  font-weight: 400;
  padding: 6px 9px;
}

.alert-guide-card {
  display: grid;
  gap: 10px;
}

.alert-guide-card h2 {
  font-size: var(--text-xl);
  line-height: var(--line-heading);
  margin: 0;
}

.alert-guide-list {
  display: grid;
  gap: 12px;
}

.alert-guide-item {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.alert-guide-item .alert-card-icon {
  height: 30px;
  width: 30px;
}

.alert-guide-item .alert-card-icon svg {
  height: 22px;
  width: 22px;
}

.alert-guide-item h3 {
  color: var(--ink);
  font-size: var(--text-base);
  line-height: var(--line-heading);
  margin: 0 0 2px;
}

.alert-guide-item p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 0;
}

.alert-preferences-form {
  display: grid;
  gap: 16px;
  max-width: none;
}

.alert-form-head {
  display: grid;
  gap: 6px;
}

.alert-form-head h2 {
  margin: 0;
}

.field-hint {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
  margin: -2px 0 0;
}

.optional-label {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

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

.bundle-path-section {
  padding-bottom: 0;
}

.bundle-path-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bundle-path-row {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1fr) minmax(180px, 0.7fr);
  padding: 22px;
}

.bundle-path-row + .bundle-path-row {
  border-top: 1px solid var(--line);
}

.bundle-path-row h2 {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: var(--line-heading);
  margin: 0;
}

.bundle-path-row p {
  color: #385173;
  font-size: var(--text-base);
  margin: 0;
}

.bundle-path-row strong {
  color: var(--orange);
  font-size: var(--text-lg);
  justify-self: start;
}

.bundle-tool-section {
  padding-top: 24px;
}

.bundle-tool {
  display: grid;
  gap: 16px;
  max-width: none;
}

.bundle-tool-controls {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.bundle-build-button {
  min-width: 180px;
  white-space: nowrap;
}

.info-card {
  padding: 18px;
}

.info-card h2,
.form-card h2 {
  color: var(--ink);
  font-size: var(--text-2xl);
  line-height: var(--line-heading);
  margin: 0;
}

.info-card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.page-title {
  background: #eaf3ff;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.page-title h1 {
  font-size: clamp(22px, 2.1vw, 28px);
}

.page-title p {
  font-size: var(--text-sm);
  max-width: 900px;
}

.page-title > div {
  max-width: var(--content-width);
  margin: 0 auto;
}

.price-history-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-history-overview {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.price-history-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.price-history-metric-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 64px;
  padding: 10px 14px;
}

.price-history-metric-tile strong,
.price-history-metric-tile span {
  display: block;
}

.price-history-metric-tile strong {
  color: var(--blue-dark);
  font-size: 22px;
  line-height: var(--line-tight);
}

.price-history-metric-tile:nth-child(2) strong {
  color: var(--orange);
}

.price-history-metric-tile:nth-child(3) strong {
  color: var(--green);
}

.price-history-metric-tile span {
  color: #5d6b80;
  font-size: var(--text-sm);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-md);
}

th {
  background: #f0f6ff;
  color: #253b59;
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.price-history-row {
  cursor: pointer;
}

.price-history-results-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 14px;
}

.price-history-results-head span {
  color: var(--blue);
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-history-results-head h2 {
  font-size: var(--text-3xl);
  line-height: var(--line-tight);
  margin: 5px 0 0;
}

.price-history-results-head p {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0 0 2px;
  white-space: nowrap;
}

.price-history-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  background: transparent;
  padding: 0 8px 8px;
}

.price-history-table th {
  background: transparent;
  border-bottom: 0;
  color: #65748c;
  padding-bottom: 4px;
}

.price-history-table td {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.price-history-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.price-history-table td:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid var(--line);
}

.price-history-row:hover td {
  background: #f8fbff;
}

.price-history-row.selected td {
  background: #eaf3ff;
  border-bottom-color: #91bdf5;
  border-top-color: #91bdf5;
}

.price-history-row.inactive-recent td {
  background: #f8fafc;
  color: #64748b;
}

.price-history-row.inactive-recent strong {
  color: #475569;
}

.price-history-row.selected td:first-child {
  border-left-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.price-history-row.selected td:last-child {
  border-right-color: #91bdf5;
}

.price-history-row.selected .price-history-course strong {
  color: var(--blue-dark);
}

.price-history-row:focus-visible td {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.price-history-course {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.price-history-course .platform-logo {
  height: 38px;
  width: 38px;
}

.price-history-course strong,
.price-history-course span {
  display: block;
}

.price-history-submeta {
  color: #6b7890;
  font-size: var(--text-xs);
  font-weight: 400;
  margin-top: 3px;
}

.price-history-current-price {
  color: var(--ink);
}

.price-history-highest-price {
  color: #5d6b80;
  white-space: nowrap;
}

.price-history-lowest-price {
  color: var(--blue-dark);
  white-space: nowrap;
}

.price-history-drop-percent {
  background: #eaf8f0;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: var(--text-sm);
  line-height: 1;
  min-width: 58px;
  padding: 7px 10px;
  justify-content: center;
  white-space: nowrap;
}

.price-sample-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 22px;
}

.price-history-trend-panel .price-sample-card {
  padding: 18px;
}

.price-command-card {
  border-color: #cfe0f7;
}

.price-sample-heading {
  border-top: 2px solid var(--blue);
  margin: 0 0 12px;
  padding-top: 14px;
  text-align: left;
}

.price-sample-kicker {
  color: var(--blue-dark);
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 400;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.price-sample-heading h2 {
  color: #10285a;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: var(--line-heading);
  margin: 0;
}

.price-history-trend-panel .price-sample-heading h2 {
  font-size: var(--text-xl);
}

.price-sample-title-price {
  color: var(--orange);
  display: block;
  font-size: var(--text-3xl);
  margin: 0 0 8px;
  white-space: normal;
}

.price-sample-course-title {
  display: block;
}

.price-sample-heading p {
  color: #385173;
  font-size: var(--text-md);
  font-weight: 400;
  margin: 7px 0 0;
}

.price-sample-stat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 10px;
}

.price-sample-stat-grid span {
  background: #f6f9ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #5d6b80;
  display: block;
  font-size: var(--text-xs);
  line-height: var(--line-tight);
  padding: 10px;
}

.price-sample-stat-grid strong {
  color: var(--ink);
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 4px;
}

.price-sample-chart {
  aspect-ratio: 8 / 3;
  display: block;
  height: auto;
  width: 100%;
}

.price-history-trend-panel .price-sample-chart {
  aspect-ratio: 16 / 7;
}

.price-sample-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.price-alert-inline {
  border-color: #cbdcf2;
  min-width: 132px;
  padding-inline: 13px;
}

.price-sample-cta {
  min-width: 142px;
  padding-inline: 14px;
}

.price-sample-alert-status .notice {
  margin-top: 10px;
}

.price-sample-grid line {
  stroke: #e4edf9;
  stroke-width: 1;
}

.price-sample-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.price-sample-dot {
  fill: var(--orange);
}

.price-sample-axis,
.price-sample-note,
.price-sample-now {
  fill: #10285a;
  font-size: var(--text-base);
  font-weight: 400;
}

.price-sample-now {
  fill: var(--orange);
}

.price-sample-note {
  font-size: var(--text-sm);
}

.handoff-section {
  align-items: start;
  padding-top: 16px;
}

.handoff-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.handoff-course-card,
.handoff-coupon-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.handoff-course-card {
  align-self: start;
  background:
    linear-gradient(135deg, rgba(236, 244, 255, 0.72), rgba(255, 255, 255, 0.92) 34%),
    var(--white);
  display: grid;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.handoff-back-link {
  color: var(--blue-dark);
  font-size: var(--text-sm);
  text-decoration: none;
  width: fit-content;
}

.handoff-back-link::before {
  content: "← ";
}

.handoff-back-link:hover {
  text-decoration: underline;
}

.handoff-course-poster {
  align-items: center;
  background: #eef5ff;
  border: 1px solid #d9e7fb;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  min-height: 156px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.handoff-course-poster.has-image {
  display: block;
  min-height: 190px;
  padding: 0;
}

.handoff-course-poster > img {
  display: block;
  height: 100%;
  max-height: 260px;
  min-height: 190px;
  object-fit: cover;
  width: 100%;
}

.handoff-poster-logo .platform-logo {
  height: 72px;
  width: 72px;
}

.handoff-poster-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.handoff-poster-copy span,
.handoff-poster-overlay span {
  color: var(--blue-dark);
  font-size: var(--text-sm);
  text-transform: uppercase;
}

.handoff-poster-copy strong {
  color: var(--ink);
  font-size: var(--text-2xl);
  line-height: var(--line-heading);
  overflow-wrap: anywhere;
}

.handoff-poster-copy small {
  color: var(--muted);
  font-size: var(--text-sm);
}

.handoff-poster-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 231, 251, 0.95);
  border-radius: 8px;
  bottom: 14px;
  display: inline-flex;
  gap: 10px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  position: absolute;
}

.handoff-coupon-panel {
  align-self: start;
}

.handoff-course-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-page));
  line-height: var(--line-heading);
  margin: 0;
  overflow-wrap: anywhere;
}

.handoff-course-meta {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
  margin: 7px 0 0;
}

.handoff-course-top {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 4px 0 14px;
}

.handoff-course-top .platform-logo {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #e4edf8;
  box-shadow: 0 10px 24px rgba(18, 95, 194, 0.08);
  height: 64px;
  width: 64px;
}

.handoff-course-top .platform-logo img {
  padding: 7px;
}

.handoff-course-heading {
  display: grid;
  gap: 10px;
  min-width: 0;
  position: relative;
}

.handoff-course-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.handoff-course-platform {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handoff-price-tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.handoff-price-tile {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.handoff-price-tile.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.handoff-price-tile span,
.handoff-price-tile small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.handoff-price-tile strong {
  color: var(--ink);
  font-size: var(--text-2xl);
  line-height: var(--line-tight);
  overflow-wrap: anywhere;
}

.handoff-price-tile.highlight strong {
  color: var(--green);
}

.handoff-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.handoff-price-actions,
.handoff-title-actions {
  align-items: center;
  justify-content: flex-start;
  margin-top: -2px;
}

.handoff-title-actions {
  justify-content: flex-end;
  margin-top: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.handoff-utility-action {
  align-items: center;
  appearance: none;
  background: var(--white);
  border: 1px solid #b9d2f3;
  border-radius: 8px;
  color: var(--blue-dark);
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  font-size: var(--text-md);
  font-weight: 400;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}

.handoff-utility-action:hover {
  background: var(--soft);
  border-color: var(--blue);
}

.handoff-utility-action.saved,
.handoff-utility-action.saved:hover {
  background: #eefbf2;
  border-color: #b8e2c5;
  color: #14532d;
  cursor: default;
}

.handoff-utility-action span {
  align-items: center;
  background: #e7f0ff;
  border-radius: 50%;
  display: inline-flex;
  font-size: var(--text-xs);
  height: 20px;
  justify-content: center;
  width: 20px;
}

.handoff-utility-action.saved span {
  background: #d8f5df;
  color: #14532d;
}

.handoff-price-actions .handoff-utility-action,
.handoff-title-actions .handoff-utility-action {
  border-radius: 999px;
  font-size: var(--text-sm);
  min-height: 34px;
  padding: 6px 12px;
}

.handoff-title-actions .handoff-utility-action {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.handoff-title-actions .handoff-utility-action:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.handoff-title-actions .handoff-utility-action span {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.handoff-price-actions .handoff-utility-action span,
.handoff-title-actions .handoff-utility-action span {
  height: 18px;
  width: 18px;
}

.handoff-save-status .notice {
  margin-top: 0;
}

.handoff-save-status:empty {
  display: none;
}

.handoff-alert-panel {
  background: #f8fbff;
  border: 1px solid #cbdcf2;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 14px;
}

.handoff-alert-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.handoff-alert-head h3 {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: var(--line-heading);
  margin: 8px 0 0;
}

.handoff-alert-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.handoff-alert-grid input[readonly] {
  background: #eef5ff;
  color: #33445c;
}

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

.handoff-course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.handoff-fact-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #cbdcf2;
  border-radius: 999px;
  color: #284668;
  display: inline-flex;
  font-size: var(--text-md);
  line-height: 1.1;
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.handoff-fact-chip.status {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.handoff-conversion-summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d9e4f5;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  padding: 8px 10px;
}

.handoff-conversion-summary.is-selected {
  background: rgba(240, 253, 244, 0.96);
  border-color: #bbf7d0;
  color: #14532d;
}

.handoff-conversion-summary span {
  color: #174f9f;
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
}

.handoff-conversion-summary strong {
  color: var(--red);
  font-size: var(--text-md);
  line-height: var(--line-tight);
  overflow-wrap: anywhere;
}

.handoff-conversion-summary p {
  flex-basis: 100%;
  color: #33445c;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  max-width: 620px;
}

.handoff-conversion-summary small {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.handoff-conversion-summary.is-selected span,
.handoff-conversion-summary.is-selected small {
  color: #166534;
}

.marketplace-extra-discount {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.handoff-decision-panel {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.handoff-decision-panel .muted-note {
  color: #1e3a5f;
  font-size: var(--text-sm);
  margin: 0;
}

.handoff-next-steps,
.handoff-interest-region {
  display: grid;
  gap: 10px;
}

.handoff-next-step {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.handoff-costcut-offer {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.handoff-step-index {
  align-items: center;
  background: #e7f0ff;
  border-radius: 50%;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.handoff-step-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.handoff-step-copy h3 {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: var(--line-tight);
  margin: 0;
}

.handoff-step-copy p {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.handoff-savings-math {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #c7eed4;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 8px 10px;
}

.handoff-savings-math > span {
  color: #166534;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.handoff-savings-math div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.handoff-savings-math b {
  color: #53647d;
  font-size: var(--text-xs);
  font-weight: 400;
}

.handoff-savings-math strong {
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: var(--line-tight);
  text-align: right;
}

.handoff-next-step .button {
  grid-column: 1 / -1;
}

.button.handoff-primary-cta {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  width: 100%;
}

.button.handoff-primary-cta:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button.handoff-interest-button {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  min-width: 220px;
  text-align: center;
  width: 100%;
}

.button.handoff-interest-button:hover {
  background: #15803d;
  border-color: #15803d;
}

.button.handoff-interest-button.sent,
.button.handoff-interest-button.sent:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: default;
  opacity: 1;
}

.handoff-interest-status {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
  grid-column: 1 / -1;
  line-height: 1.35;
  margin: -2px 4px 0;
  text-align: center;
}

.handoff-interest-status.error {
  color: #b42318;
}

.handoff-interest-status.success {
  background: rgba(220, 252, 231, 0.84);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #14532d;
  padding: 8px 10px;
}

.handoff-interest-status.success strong {
  color: #15803d;
  font-weight: 400;
}

.handoff-coupon-panel {
  display: grid;
  gap: 14px;
}

.handoff-course-card .button,
.handoff-course-card button,
.handoff-coupon-panel .button,
.handoff-coupon-panel button {
  font-weight: 700;
}

.handoff-panel-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.handoff-panel-heading h2 {
  font-size: var(--text-xl);
  line-height: var(--line-heading);
  margin: 8px 0 0;
}

.handoff-panel-heading > strong {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-size: var(--text-2xl);
  height: 52px;
  justify-content: center;
  min-width: 52px;
  padding: 0 12px;
}

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

.coupon-card {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.coupon-card.costcut-coupon {
  background: #f8fbff;
  border-color: var(--line);
}

.coupon-card.marketplace-prompt-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.coupon-card.applied-coupon {
  background: #f0fdf4;
  border-color: #b8e2c5;
  box-shadow: none;
}

.coupon-card.applied-coupon > div:first-child,
.coupon-card.applied-coupon .coupon-meta {
  opacity: 0.88;
}

.coupon-card strong {
  color: var(--red);
  display: block;
  font-size: var(--text-xl);
  line-height: var(--line-tight);
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.coupon-card p {
  color: var(--muted);
  font-weight: 400;
  margin: 6px 0 0;
}

.coupon-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.apply-coupon {
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: 700;
  min-height: 42px;
  padding: 10px;
}

.apply-coupon:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.apply-coupon.applied-status-action:disabled {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
  cursor: default;
}

.remove-coupon-action {
  background: #ffffff;
  border-color: #fdba74;
  color: #9a3412;
}

.remove-coupon-action:hover {
  background: #ffedd5;
  border-color: #fb923c;
  color: #9a3412;
}

.marketplace-card-cta {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.apply-coupon:disabled {
  background: #d7dee8;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.coupon-meta {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  font-weight: 400;
  gap: 8px 14px;
  grid-column: 1 / -1;
  padding-top: 10px;
}

.form-card {
  padding: 18px;
  max-width: 780px;
}

.marketplace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
  align-items: start;
}

.marketplace-quiz {
  max-width: none;
}

.marketplace-quiz h2 {
  margin: 10px 0 14px;
}

.marketplace-course-context {
  align-items: center;
  background: #f8fbff;
  border-block: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 14px 0 4px;
  padding: 12px 0;
}

.marketplace-course-context .platform-logo {
  height: 42px;
  width: 42px;
}

.marketplace-course-context h3 {
  color: var(--ink);
  font-size: var(--text-base);
  line-height: var(--line-heading);
  margin: 7px 0 0;
}

.marketplace-course-context p {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 3px 0 0;
}

.marketplace-course-context-empty {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.marketplace-course-context-empty .button {
  min-height: 36px;
  white-space: nowrap;
}

.marketplace-question-title {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: var(--line-heading);
  margin: 18px 0 8px;
}

.marketplace-quiz-locked {
  border-color: #c7d7ee;
  background: #f8fbff;
}

.marketplace-quiz-locked .quiz-question,
.marketplace-quiz-locked .field {
  opacity: 0.76;
}

.marketplace-quiz-locked .quiz-question label {
  cursor: not-allowed;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.quiz-question {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  background: #f8fbff;
}

.quiz-question legend {
  color: #263b57;
  font-size: var(--text-sm);
  font-weight: 400;
  padding: 0 4px;
}

.quiz-question label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
  font-size: var(--text-md);
  font-weight: 400;
  color: #33445c;
}

.marketplace-side {
  display: grid;
  gap: 10px;
}

.marketplace-stats {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.marketplace-stats div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.marketplace-stats dt {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.marketplace-stats dd {
  margin: 2px 0 0;
  font-weight: 400;
}

.marketplace-result {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.score-panel {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.score-panel p {
  margin: 4px 0 0;
  color: #d8e5f8;
  font-weight: 400;
}

.score-number {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 0.95;
  font-weight: 400;
}

.marketplace-deal {
  box-shadow: var(--shadow);
}

.verified-coupon {
  border: 1px dashed var(--green);
  background: #effbf3;
  color: #14532d;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.verified-coupon span {
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
}

.verified-coupon strong {
  color: var(--red);
  font-size: var(--text-lg);
}

.score-reasons {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 400;
}

.marketplace-used-card {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.marketplace-used-card h2 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.notice {
  border: 1px solid #b8e2c5;
  background: #eefbf2;
  color: #14532d;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
  font-weight: 400;
}

.auth-gate-notice {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.auth-gate-notice .button {
  min-height: 36px;
  padding: 8px 11px;
}

.auth-page-title {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 30px 20px 24px;
}

.auth-page-title h1 {
  font-size: var(--text-page);
}

.auth-section {
  padding-bottom: 42px;
  padding-top: 22px;
}

.auth-layout {
  display: grid;
  max-width: 560px;
  margin: 0 auto;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card {
  background: var(--white);
  display: grid;
  gap: 14px;
  max-width: none;
  padding: 26px;
}

.auth-panel-head h2 {
  color: var(--ink);
  font-size: var(--text-2xl);
  line-height: var(--line-tight);
  margin: 12px 0 8px;
}

.auth-panel-head p {
  font-weight: 400;
  line-height: 1.6;
  max-width: 460px;
}

.auth-benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-benefit-row span {
  background: #f8fbff;
  border: 1px solid #cbdcf2;
  border-radius: 8px;
  color: #34516f;
  font-size: var(--text-xs);
  font-weight: 400;
  padding: 7px 10px;
}

.auth-trust-note {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
  margin: 0;
  padding: 10px 12px;
}

.auth-choice-label {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 400;
  margin: 4px 0 -2px;
}

.firebaseui-host {
  margin-top: 6px;
}

.firebaseui-host .firebaseui-container {
  background: transparent;
  box-shadow: none;
  margin: 0;
  max-width: none;
}

.firebaseui-host .firebaseui-card-content {
  padding: 0;
}

.firebaseui-host .firebaseui-list-item {
  margin-bottom: 10px;
}

.firebaseui-host .firebaseui-idp-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  font-size: var(--text-md);
  font-weight: 400;
  max-width: none;
  min-height: 42px;
  padding: 10px 15px;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: 100%;
}

.firebaseui-host .firebaseui-idp-button:hover {
  border-color: var(--blue);
}

.firebaseui-host .firebaseui-idp-google {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
}

.firebaseui-host .firebaseui-idp-google:hover {
  background: var(--blue-dark) !important;
  border-color: var(--blue-dark) !important;
}

.firebaseui-host .firebaseui-idp-password {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
}

.firebaseui-host .firebaseui-idp-password:hover {
  background: var(--blue-dark) !important;
  border-color: var(--blue-dark) !important;
}

.firebaseui-host .firebaseui-idp-text {
  font-weight: 400;
}

.firebaseui-host .firebaseui-idp-google .firebaseui-idp-text {
  color: var(--white) !important;
}

.firebaseui-host .firebaseui-idp-password .firebaseui-idp-text {
  color: var(--white) !important;
}

.firebaseui-host .firebaseui-idp-icon-wrapper {
  margin-right: 12px;
}

.firebaseui-host .firebaseui-tos {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.45;
  margin-top: 12px;
}

.auth-avatar {
  background: var(--blue);
  border-radius: 12px;
  color: var(--white);
  display: grid;
  font-weight: 400;
  height: 46px;
  place-items: center;
  width: 46px;
}

.auth-setup-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
}

.auth-setup-card p {
  margin: 0;
  font-weight: 400;
}

.auth-setup-card pre {
  background: #10223d;
  border-radius: 8px;
  color: #eef5ff;
  margin: 0;
  overflow-x: auto;
  padding: 12px;
}

.account-section {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.account-hero-card {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding: 18px;
}

.account-hero-card h2,
.account-hero-card p {
  margin: 0;
}

.account-hero-card p {
  color: var(--muted);
  font-weight: 400;
}

.account-avatar {
  height: 56px;
  width: 56px;
}

.account-signout {
  min-height: 38px;
  padding: 8px 12px;
}

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

.account-stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.account-stat span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
}

.account-stat strong {
  color: var(--ink);
  font-size: var(--text-2xl);
  line-height: 1;
}

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

.account-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.account-panel-head {
  appearance: none;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.account-panel-head-static {
  cursor: default;
}

.account-panel-head > span:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-panel-head .badge {
  justify-self: start;
}

.account-panel-head h3 {
  color: var(--blue-dark);
  font-size: var(--text-lg);
  line-height: var(--line-heading);
  margin: 0;
}

.account-panel-chevron {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-dark);
  display: grid;
  flex: 0 0 auto;
  font-size: var(--text-xl);
  font-weight: 400;
  height: 28px;
  line-height: 1;
  place-items: center;
  width: 28px;
}

.account-panel.is-open .account-panel-chevron {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.account-panel:not(.is-open) > :not(.account-panel-head) {
  display: none;
}

.account-grid > .account-panel:nth-child(2) .account-panel-head {
  border-left-color: var(--green);
}

.account-grid > .account-panel:nth-child(2) .account-panel-head h3 {
  color: #14532d;
}

.account-grid > .account-panel:nth-child(3) .account-panel-head {
  border-left-color: var(--red);
}

.account-grid > .account-panel:nth-child(3) .account-panel-head h3 {
  color: #991b1b;
}

.account-grid > .account-panel:nth-child(4) .account-panel-head {
  border-left-color: #7c3aed;
}

.account-grid > .account-panel:nth-child(4) .account-panel-head h3 {
  color: #5b21b6;
}

.account-grid > .account-panel:nth-child(5) .account-panel-head {
  border-left-color: var(--orange);
}

.account-grid > .account-panel:nth-child(5) .account-panel-head h3 {
  color: #9a3412;
}

.account-grid > .account-panel:nth-child(6) .account-panel-head {
  border-left-color: #0f766e;
}

.account-grid > .account-panel:nth-child(6) .account-panel-head h3 {
  color: #115e59;
}

.account-watchlist-panel .account-panel-head {
  border-left-color: var(--green);
}

.account-watchlist-panel .account-panel-head h3 {
  color: #14532d;
}

.account-alerts-panel .account-panel-head {
  border-left-color: var(--orange);
}

.account-alerts-panel .account-panel-head h3 {
  color: #9a3412;
}

.account-purchases-panel .account-panel-head {
  border-left-color: #0f766e;
}

.account-purchases-panel .account-panel-head h3 {
  color: #115e59;
}

.account-rewards-panel .account-panel-head {
  background: #fffaf2;
  border-left-color: #f59e0b;
}

.account-rewards-panel .account-panel-head h3 {
  color: #9a3412;
}

.account-list {
  display: grid;
  gap: 9px;
}

.account-list-item {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.account-course-item {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.account-alert-item {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.account-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.account-list-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-remove-button {
  background: var(--white);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 400;
  padding: 6px 9px;
}

.account-remove-button:hover {
  background: #fff7ed;
  border-color: #fdba74;
}

.account-inline-link {
  background: var(--white);
  border: 1px solid #cbdcf2;
  border-radius: 8px;
  color: var(--blue-dark);
  font-size: var(--text-xs);
  font-weight: 400;
  padding: 6px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.account-inline-link:hover {
  background: var(--soft);
  border-color: var(--blue);
}

.account-list-item span,
.account-empty {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
}

.account-empty {
  background: #f8fbff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  margin: 0;
  padding: 12px;
}

.account-rewards-panel {
  background: #fff7ed;
  border-color: #fed7aa;
}

.account-reward-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-reward-grid div {
  background: var(--white);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.account-reward-grid span {
  color: #9a3412;
  font-size: var(--text-2xs);
  font-weight: 400;
  text-transform: uppercase;
}

.account-reward-grid strong {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: var(--line-tight);
}

.account-login-required {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.account-login-required h2,
.account-login-required p {
  margin: 0;
}

.muted-note {
  color: var(--muted);
  font-size: var(--text-md);
}

.no-results-message {
  color: var(--red);
  font-size: var(--text-md);
  font-weight: 400;
  margin: 10px 0 0;
}

.bundle-result {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.bundle-result.is-empty {
  color: var(--muted);
}

.bundle-result.is-empty p {
  margin: 4px 0 0;
}

.bundle-result-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bundle-result-head span {
  background: #eef5ff;
  border-radius: 999px;
  color: #174f9f;
  font-size: var(--text-xs);
  font-weight: 400;
  padding: 5px 9px;
}

.bundle-course-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.bundle-course-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.bundle-course-list span {
  color: var(--ink);
  font-weight: 400;
}

.bundle-course-list small {
  color: var(--muted);
  font-weight: 400;
}

.site-footer {
  background: #10223d;
  border-top: 1px solid var(--line);
  color: #dce8fa;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 26px 20px;
}

.site-footer p {
  margin: 4px 0 0;
  color: #b9c6d8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.footer-links a {
  color: #eef5ff;
  text-decoration: none;
  font-weight: 400;
  font-size: var(--text-md);
}

.footer-copyright {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 400;
  margin: 0;
  padding: 12px 20px 18px;
  text-align: center;
}

.content-page {
  padding-top: 28px;
}

.content-page-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 980px;
}

.content-page-aside,
.content-section-card,
.content-contact-card,
.content-cta-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-page-aside {
  display: grid;
  gap: 12px;
  padding: 18px;
  position: sticky;
  top: var(--sticky-panel-offset);
}

.content-page-aside p {
  color: #33445c;
  font-weight: 400;
  margin: 0;
}

.content-page-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.content-section-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.content-section-card,
.content-contact-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.content-section-card {
  box-shadow: none;
}

.content-section-card h2,
.content-contact-card h2,
.content-cta-card h2 {
  color: var(--ink);
  font-size: var(--text-lg);
  line-height: var(--line-heading);
  margin: 0;
}

.content-section-card p,
.content-contact-card p,
.content-cta-card p {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
}

.content-section-card ul {
  display: grid;
  gap: 6px;
  list-style: disc;
  margin: 0;
  padding: 0 0 0 18px;
}

.content-section-card li {
  color: #33445c;
  font-size: var(--text-sm);
  font-weight: 400;
  padding: 0;
}

.content-contact-card {
  background: #f8fbff;
  border-color: #cbdcf2;
}

.content-contact-card h2 {
  color: var(--blue-dark);
  overflow-wrap: anywhere;
}

.content-contact-card .button {
  justify-self: start;
}

.content-cta-card {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.content-cta-card h2,
.content-cta-card p {
  color: var(--white);
}

.content-cta-card .badge {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.content-cta-card .button {
  background: var(--white);
  color: var(--blue-dark);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .home-route {
    display: flex;
    flex-direction: column;
  }

  .home-route > .hero {
    order: 1;
  }

  .home-route > .proof-section {
    order: 2;
  }

  .home-route > .home-deals-section {
    order: 3;
  }

  .home-route > .recommended-section {
    order: 4;
  }

  .home-route > .home-checkout-section {
    order: 5;
  }

  .home-route > .home-faq-section {
    order: 6;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-auth {
    justify-self: end;
  }

  .nav-profile-copy {
    display: none;
  }

  .nav-profile-button {
    min-height: 40px;
    padding: 4px;
  }

  .nav-profile-menu {
    right: 0;
  }

  .filter-bar,
  .deal-grid,
  .home-checkout-layout,
  .proof-grid,
  .faq-grid,
  .home-faq-layout,
  .home-faq-grid,
  .seo-layout,
  .pricing-grid,
  .alert-preferences-layout,
  .bundle-path-row,
  .platform-filter-summary,
  .content-page-layout,
  .content-section-grid,
  .content-cta-card,
  .bundle-tool-controls,
  .auth-layout,
  .account-grid,
  .account-stats,
  .account-reward-grid,
  .handoff-layout,
  .handoff-alert-grid,
  .price-history-layout,
  .marketplace-layout,
  .marketplace-result,
  .quiz-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .proof-grid::-webkit-scrollbar {
    display: none;
  }

  .price-history-list-panel {
    order: 1;
  }

  .price-history-trend-panel {
    order: 2;
    position: static;
  }

  .top-deals-section,
  .free-courses,
  .price-history-command-workbench {
    display: flex;
    flex-direction: column;
  }

  .top-deals-section > .filter-bar,
  .free-course-filter,
  .price-history-filter-card {
    order: 1;
  }

  .top-deals-section > .top-deal-summary,
  .free-courses > [data-deals-region],
  .price-history-layout {
    order: 2;
  }

  .top-deals-section > [data-platform-summary-region],
  .free-courses > [data-free-course-stats-region],
  .price-history-overview {
    order: 3;
  }

  .top-deals-section > [data-deals-region],
  .free-course-action-grid {
    order: 4;
  }

  .free-courses > .muted-note {
    order: 5;
  }

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

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

  .free-course-action-grid {
    grid-template-columns: 1fr;
  }

  .price-history-overview {
    grid-template-columns: 1fr;
  }

  .price-history-overview-actions {
    justify-content: flex-start;
  }

  .price-history-filter-heading {
    align-items: start;
    display: grid;
  }

  .price-history-filter-heading strong {
    text-align: left;
  }

  .alert-sidebar {
    order: 2;
    position: static;
  }

  .alert-preferences-form {
    order: 1;
  }

  .content-page-aside {
    position: static;
  }

  .section-header,
  .site-footer {
    display: block;
  }

  .hero-search-panel {
    grid-template-columns: minmax(180px, 1fr) auto;
    margin-top: 10px;
    padding: 6px;
  }

  .hero-search-panel input,
  .hero-search-button {
    min-height: 36px;
  }

  .home-extra-discount-panel {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .home-extra-discount-panel p {
    display: none;
  }

  .home-extra-signals {
    margin-top: 6px;
  }

  .home-extra-signals span:nth-child(n + 3) {
    display: none;
  }

  .home-extra-score {
    height: 58px;
    padding: 6px;
    width: 74px;
  }

  .home-extra-score strong {
    font-size: 22px;
  }

  .footer-links {
    justify-content: start;
    margin-top: 16px;
  }

  .footer-copyright {
    text-align: center;
  }

  .platform-coupon-list {
    justify-content: flex-start;
  }

}

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

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

@media (max-width: 760px) {
  .home-extra-discount-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .price-history-metrics {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-metric-summary {
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-history-metric-tile {
    min-height: auto;
    padding: 8px 10px;
  }

  .page-metric-tile {
    min-height: auto;
    padding: 8px 10px;
  }

  .price-history-metric-tile strong,
  .page-metric-tile strong {
    font-size: var(--text-lg);
  }

  .price-history-metric-tile span,
  .page-metric-tile span {
    font-size: var(--text-xs);
  }

  .free-course-action-card {
    align-items: center;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 10px;
  }

  .free-course-action-media {
    height: 32px;
    width: 32px;
  }

  .free-course-action-media svg {
    height: 19px;
    width: 19px;
  }

  .free-course-action-copy {
    grid-column: 2;
  }

  .free-course-action-title-row {
    gap: 5px;
  }

  .free-course-action-badge {
    font-size: var(--text-2xs);
    min-height: 20px;
    padding: 2px 6px;
  }

  .free-course-action-card p {
    display: none;
  }

  .free-course-action-card a {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .price-history-filter-card {
    padding: 14px;
  }

  .price-history-results-head {
    align-items: start;
    display: grid;
  }

  .price-history-results-head p {
    white-space: normal;
  }

  .price-history-table thead {
    display: none;
  }

  .price-history-table,
  .price-history-table tbody,
  .price-history-table tr,
  .price-history-table td {
    display: block;
    width: 100%;
  }

  .price-history-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .price-history-table td {
    background: transparent;
    border: 0;
    border-bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 7px 0;
  }

  .price-history-table td:first-child,
  .price-history-table td:last-child {
    border: 0;
    border-radius: 0;
  }

  .price-history-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: var(--text-xs);
    font-weight: 400;
    text-transform: uppercase;
  }

  .price-history-table td:first-child {
    display: block;
  }

  .price-history-table td:first-child::before {
    display: none;
  }

  .price-history-table th:last-child,
  .price-history-table td:last-child {
    text-align: left;
  }

  .price-sample-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --text-page: 24px;
    --text-hero: 28px;
  }

  .topline {
    display: none;
  }

  .nav-wrap {
    padding: 10px 16px;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .hero {
    padding: 14px 16px 12px;
  }

  .hero p {
    margin-top: 6px;
  }

  .platform-strip {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 8px;
    max-width: none;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .platform-strip-item {
    flex: 0 0 auto;
    gap: 6px;
    min-height: 28px;
    padding: 3px 8px 3px 4px;
  }

  .platform-strip-logo {
    height: 20px;
    width: 20px;
  }

  .section {
    padding: 18px 16px;
  }

  .proof-section {
    padding-top: 12px;
    padding-bottom: 4px;
  }

  .proof-card {
    min-height: 66px;
    padding: 9px 10px;
  }

  .trust-badges {
    display: none;
  }

  .home-deals-section {
    padding-top: 14px;
  }

  .page-title {
    padding: 22px 16px;
  }

  .section-header {
    margin-bottom: 12px;
  }

  .filter-bar {
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px;
  }

  .field {
    gap: 4px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 38px;
    padding: 8px 10px;
  }

  .filter-search,
  .filter-reset {
    min-height: 36px;
    padding: 7px 12px;
  }

  .free-course-summary,
  .top-deal-summary {
    margin-bottom: 8px;
  }

  .price-history-command-workbench {
    padding-top: 18px;
  }

  .price-history-filter-card {
    margin-bottom: 14px;
    padding: 12px;
  }

  .price-history-filter-heading {
    display: none;
  }

  .marketplace-course-context,
  .marketplace-course-context-empty {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .marketplace-course-context:not(.marketplace-course-context-empty) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .marketplace-course-context-empty .button {
    justify-self: start;
  }

  .price-history-results-head {
    gap: 4px;
    margin-bottom: 8px;
  }

  .price-history-results-head span {
    display: none;
  }

  .price-history-results-head h2 {
    font-size: var(--text-xl);
    margin-top: 0;
  }

  .price-history-results-head p {
    font-size: var(--text-xs);
  }

  .deal-actions,
  .handoff-utility-actions,
  .coupon-card,
  .price-sample-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-sample-card {
    padding: 16px;
  }

  .home-checkout-section {
    padding-top: 22px;
  }

  .home-checkout-layout {
    gap: 22px;
    padding: 24px 0;
  }

  .home-checkout-layout h2,
  .home-faq-head h2 {
    font-size: var(--text-page);
  }

  .home-checkout-layout > div:first-child > p,
  .home-faq-head p {
    font-size: var(--text-base);
  }

  .home-checkout-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-sample-heading {
    text-align: left;
  }

  .price-sample-title-price {
    display: block;
    margin: 0 0 4px;
    white-space: normal;
  }

  .price-sample-chart {
    aspect-ratio: 4 / 3;
  }

  .price-sample-axis,
  .price-sample-note,
  .price-sample-now {
    font-size: var(--text-base);
  }

  .account-hero-card {
    grid-template-columns: auto 1fr;
  }

  .account-signout {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .deal-details {
    grid-template-columns: 1fr;
  }

  .handoff-course-poster {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .handoff-poster-logo .platform-logo {
    height: 58px;
    width: 58px;
  }

  .handoff-course-top {
    padding-right: 0;
  }

  .handoff-price-tiles {
    grid-template-columns: 1fr;
  }

  .handoff-course-facts {
    gap: 6px;
  }

  .handoff-price-actions,
  .handoff-title-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    grid-template-columns: none;
  }

  .handoff-title-actions {
    justify-content: flex-start;
    position: static;
  }

  .handoff-price-actions .handoff-utility-action,
  .handoff-title-actions .handoff-utility-action {
    width: auto;
  }
}

body,
body *,
body *::before,
body *::after {
  font-weight: 400 !important;
}

.handoff-course-card .button,
.handoff-course-card button,
.handoff-coupon-panel .button,
.handoff-coupon-panel button {
  font-weight: 700 !important;
}
