:root {
  color-scheme: light;
  --ink: #211930;
  --midnight: #1a1428;
  --muted: #625970;
  --purple: #5f319e;
  --pale: #eee5fa;
  --orange: #ff8b57;
  --paper: #f8f6fb;
  --line: #e4ddeb;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #9959dd; outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 71rem); margin-inline: auto; }
.skip, .visually-hidden { position: absolute; }
.skip { top: .5rem; left: .5rem; z-index: 10; transform: translateY(-200%); background: #fff; color: var(--ink); padding: .7rem 1rem; }
.skip:focus { transform: none; }
.visually-hidden { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: .65rem; padding: .55rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; text-decoration: none; }
.brand img { width: 33px; height: 33px; border-radius: .5rem; }
.brand span, .wordmark { font-size: .84rem; font-weight: 850; letter-spacing: .095em; white-space: nowrap; }
.brand b, .wordmark b { color: #c64d1e; }
.site-header nav { display: flex; align-items: center; gap: .1rem; }
.site-header nav a { display: grid; place-items: center; min-height: 44px; padding: 0 .54rem; font-size: .9rem; font-weight: 680; text-decoration: none; border-radius: .6rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--purple); background: var(--pale); }

.hero { color: white; background: radial-gradient(ellipse at 92% 0%, #402461, transparent 58%), var(--midnight); }
.hero-layout { display: grid; gap: 1.65rem; padding-block: 2.8rem; }
.eyebrow { margin: 0; color: var(--purple); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.hero .eyebrow { color: #d9b9fa; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.12; }
.hero h1, .subpage h1 { margin: .55rem 0 .85rem; font-size: clamp(2.5rem, 7.4vw, 5.1rem); letter-spacing: -.065em; }
.hero h1 em { font-style: normal; color: #e5bbff; }
.hero-copy > p:not(.eyebrow) { max-width: 30rem; margin-bottom: 1.45rem; color: #ddd1e9; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .62rem 1rem; border: 1px solid transparent; border-radius: .62rem; color: #28132f; background: var(--orange); text-align: center; text-decoration: none; font-weight: 780; font-size: .92rem; cursor: pointer; }
.button:hover { background: #ffad83; }
.button-ghost { color: #f3e8ff; background: transparent; border-color: #80639a; }
.button-ghost:hover { background: #47345b; }
.button-small { font-size: .88rem; }
.button-neutral { color: #4e2c78; background: var(--pale); }
.button-neutral:hover { background: #e0d1f3; }
.hero-feature { display: grid; border: 1px solid #725584; border-radius: 1rem; background: #2b1e3d; overflow: hidden; }
.feature-media { display: block; overflow: hidden; aspect-ratio: 1.7; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.feature-copy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .8rem 1rem; gap: .65rem; }
.feature-copy h2 { font-size: 1.22rem; margin: .25rem 0 0; }
.feature-copy h2 a { text-decoration: none; }

.catalog { padding-block: 2.75rem 3.5rem; scroll-margin: 1.25rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; margin-bottom: 1rem; }
.section-heading h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.045em; margin: 0; }
.result-count { margin: 0; color: var(--muted); font-size: .9rem; }
.filters { display: flex; align-items: start; flex-direction: column-reverse; gap: .8rem; margin-bottom: 1rem; }
.pills { display: flex; align-items: center; gap: .42rem; flex-wrap: wrap; }
.pills button { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 99px; min-height: 44px; padding: .35rem .78rem; cursor: pointer; font-size: .86rem; }
.pills button:hover, .pills button[aria-pressed="true"] { background: var(--pale); border-color: #cfb6e9; color: var(--purple); font-weight: 700; }
.search { width: min(100%, 20rem); }
input { width: 100%; min-height: 44px; border: 1px solid #c7bccf; border-radius: .6rem; background: #fff; color: var(--ink); padding: .55rem .7rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.product-card { min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; box-shadow: 0 3px 10px #27123408; }
.product-photo { display: block; aspect-ratio: 1.24; overflow: hidden; }
.product-photo:focus-visible { outline-offset: -4px; }
.product-photo img, .detail-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.image-missing { height: 100%; min-height: 100%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 25% 18%, #e5cff8 0%, #f3ebf9 44%, #f8f1f8 85%); color: #65418b; font-size: .82rem; font-weight: 700; }
.image-missing span { border: 1px solid #b99fcb; border-radius: 99px; padding: .3rem .65rem; }
.product-content { display: flex; flex-direction: column; height: 100%; padding: .75rem; }
.meta-line { color: var(--purple); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 .5rem; font-size: .79rem; font-weight: 690; }
.product-content h3 { margin: .4rem 0; font-size: 1.06rem; }
.product-content h3 a { text-decoration: none; }
.product-content h3 a:hover, .feature-copy h2 a:hover { text-decoration: underline; }
.product-content p { flex: 1; margin: .1rem 0 .65rem; color: var(--muted); font-size: .89rem; }
.card-actions { display: flex; align-items: center; min-height: 44px; }
.pending { font-size: .86rem; color: var(--muted); }
.site-footer { color: #f1e9f8; background: var(--midnight); padding: 1.75rem 0; }
.footer-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
.footer-row a { text-decoration: none; }
.footer-row nav { display: flex; flex-wrap: wrap; column-gap: .9rem; }
.footer-row nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; }
.footer-row a:hover { text-decoration: underline; }
.site-footer p { margin: .65rem 0 0; color: #d0c3db; font-size: .86rem; }

.subpage { min-height: 67vh; padding-block: 1.9rem 3rem; }
.subpage h1 { font-size: clamp(2.05rem, 6.6vw, 4.3rem); }
.lead { max-width: 42rem; font-size: 1.05rem; color: var(--muted); margin-block: .5rem 1.35rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a, .text-link { color: var(--purple); font-weight: 700; text-underline-offset: .2em; }
.product-layout { display: grid; gap: 1.25rem; }
.detail-media { aspect-ratio: 1.3; overflow: hidden; border-radius: 1rem; border: 1px solid var(--line); }
.detail-copy h2, .comparison h2 { margin: 1.15rem 0 .5rem; font-size: 1.25rem; }
.checks { padding-inline-start: 1.15rem; margin: .6rem 0 1.3rem; }
.checks li { padding-inline-start: .2rem; margin-bottom: .25rem; }
.checks li::marker { color: var(--purple); }
.offers { display: grid; gap: .65rem; margin-bottom: .85rem; }
.offer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .7rem; background: white; border: 1px solid var(--line); border-radius: .8rem; }
.offer-row span { display: block; color: var(--muted); font-size: .9rem; }
.offers > a { justify-self: start; }
.empty, .compare-feedback:not(:empty) { margin: 0 0 .8rem; background: var(--pale); color: #4d3962; padding: 1rem; border-radius: .75rem; }

.comparison { margin-top: 1.7rem; }
.comparison-grid, .compare-totals { display: grid; gap: .8rem; }
.comparison fieldset { margin: 0; min-inline-size: 0; border: 1px solid var(--line); border-radius: .8rem; background: white; padding: .8rem; }
.comparison legend { font-weight: 750; padding: 0 .35rem; }
.comparison label { display: grid; gap: .3rem; margin-top: .7rem; font-size: .9rem; font-weight: 650; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.comparison button { margin-block: 1rem; }
.compare-totals > div { display: grid; }
.compare-totals strong { font-size: 1.65rem; }
.compare-totals small { font-weight: 760; color: #4f257e; }
.compare-feedback p { margin-bottom: 0; }
.stats-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.stats-summary > div, .stat-product { padding: .85rem; border-radius: .8rem; background: white; border: 1px solid var(--line); }
.stats-summary strong { display: block; font-size: 1.7rem; color: var(--purple); }
.stats-summary span { font-size: .87rem; }
.stat-product { margin-bottom: .55rem; }
.stat-product summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: .6rem; font-weight: 750; cursor: pointer; }
.stat-product summary span::before { content: '+'; color: var(--purple); margin-right: .55rem; }
.stat-product[open] summary span::before { content: '−'; }
.stat-offers > div { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; border-top: 1px solid var(--line); padding-top: .55rem; margin-top: .55rem; }
.stat-offers small { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }

@media (max-width: 350px) { .product-grid { grid-template-columns: 1fr; } }
@media (min-width: 40rem) {
  .wrap { width: min(100% - 3rem, 71rem); }
  .header-row { padding-block: .75rem; }
  .brand img { width: 38px; height: 38px; }
  .brand span, .wordmark { font-size: 1rem; }
  .site-header nav { gap: .4rem; }
  .site-header nav a { padding-inline: .85rem; }
  .hero-layout { grid-template-columns: 1.13fr 1fr; gap: 1.75rem; align-items: center; padding-block: 3.3rem; }
  .feature-media { aspect-ratio: 1.33; }
  .filters { flex-direction: row; justify-content: space-between; }
  .search { max-width: 28%; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .product-content { padding: .9rem; }
  .product-content h3 { font-size: 1.21rem; }
  .product-layout { grid-template-columns: .92fr 1fr; align-items: start; gap: 2.1rem; }
  .detail-media { aspect-ratio: .99; }
  .comparison-grid, .compare-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 63rem) {
  .hero-layout { gap: 4.8rem; padding-block: 3.75rem; }
  .feature-media { aspect-ratio: 1.52; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-content p { font-size: .94rem; }
  .subpage { padding-block: 2.6rem 4.4rem; }
}
