@font-face{font-family:Bricolage;src:url('assets/bricolage.woff2') format('woff2');font-weight:200 800;font-display:swap}
@font-face{font-family:DM Sans;src:url('assets/dm-sans.woff2') format('woff2');font-weight:100 1000;font-display:swap}

:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #22172f;
  --muted: #665e70;
  --purple: #4b27cd;
  --deep: #26134f;
  --lime: #d5ff50;
  --line: #e4dfe8;
  --display: Bricolage, 'Arial', sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7858f4; outline-offset: 4px; }
::selection { color: var(--deep); background: var(--lime); }
.shell { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .6rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-icon] svg { display: block; width: 1.16rem; height: 1.16rem; }

.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 85px; padding-block: .75rem; gap: 1.5rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(1.4rem, 3.5vw, 3.4rem); font-size: .92rem; font-weight: 700; }
.site-header nav a, .footer-link { transition: color .2s; }
.site-header nav a:hover, .footer-link:hover { color: var(--purple); }
.brand { display: inline-flex; justify-self: start; align-items: center; font: 800 2.43rem/.9 var(--display); letter-spacing: -.085em; }
.brand-mark { width: 2.02rem; height: 2.02rem; margin-right: .64rem; display: grid; place-items: center; border-radius: 10px; background: var(--lime); font: 800 1.37rem/1 'Segoe UI', sans-serif; letter-spacing: 0; transform: rotate(-8deg); }
.brand-dot { color: var(--purple); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .53rem; min-height: 51px; padding: .73rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-size: .94rem; font-weight: 800; line-height: 1.2; transition: background .23s, color .23s, transform .23s, border-color .23s, box-shadow .23s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--purple); box-shadow: 0 7px 20px #4b27cd28; }
.button-outline { background: transparent; border-color: #c9c2ce; color: var(--ink); }
.button-outline:hover { background: white; border-color: var(--ink); }
.button-small { min-height: 42px; padding: .57rem .9rem; justify-self: end; }
.count { display: grid; place-items: center; min-width: 1.4rem; min-height: 1.4rem; padding-inline: .2rem; border-radius: 999px; background: var(--lime); font-size: .78rem; }

.hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; min-height: 530px; border: 1px solid #e6def4; border-radius: 32px; background: #eee9fa; overflow: hidden; isolation: isolate; }
.hero-copy { align-self: center; padding: clamp(2.1rem, 4.2vw, 4.5rem); padding-right: 1.1rem; }
.eyebrow { display: flex; align-items: center; gap: .48rem; font-size: .875rem; font-weight: 850; letter-spacing: .108em; color: var(--purple); }
.spark { font-size: 1.35rem; line-height: 1; }
.hero h1 { margin: .76rem 0 1.25rem; font: 800 clamp(4.1rem, 7.45vw, 7.4rem)/.9 var(--display); letter-spacing: -.085em; }
.hero h1 em { position: relative; display: inline-block; color: var(--purple); font-style: normal; white-space: nowrap; }
.hero h1 em::after { position: absolute; z-index: -1; content: ''; width: 94%; height: .16em; border-radius: 65% 45% 51% 39%; bottom: .015em; left: .035em; rotate: -3deg; background: var(--lime); }
.hero-description { max-width: 29ch; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.5; color: #554c62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .64rem; margin-top: 1.68rem; }
.hero-note { margin-top: 1rem; font-size: .89rem; color: var(--muted); }
.hero-art { position: relative; min-width: 0; min-height: 100%; overflow: hidden; isolation: isolate; background: #37139a; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.025) translate(var(--shift-x, 0), var(--shift-y, 0)); transition: transform .32s ease-out; }
.art-cross { position: absolute; right: 7.5%; top: 7%; color: var(--lime); font-size: 2.65rem; line-height: 1; animation: twinkle 5s ease-in-out infinite; }
.orbit-dot { position: absolute; left: 16%; top: 24%; width: 8px; height: 8px; border-radius: 50%; background: #e6dbff; box-shadow: 0 0 20px 3px #d2aaffc9; animation: twinkle 4s 1s ease-in-out infinite; }
.art-caption { position: absolute; left: 5%; bottom: 6%; display: flex; align-items: center; gap: .68rem; padding: .56rem .85rem .56rem .58rem; border: 1px solid #ffffff9c; border-radius: 16px; background: #f6f1ffed; color: var(--deep); line-height: 1.12; box-shadow: 0 12px 30px #20065d55; animation: float 5s ease-in-out infinite; }
.art-caption-icon { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 10px; background: var(--lime); }
.art-caption strong, .art-caption small { display: block; }
.art-caption strong { font-size: .91rem; }
.art-caption small { margin-top: .2rem; color: #635473; font-size: .77rem; }
@keyframes twinkle { 0%,100% { opacity: .8; transform: scale(.83) rotate(-10deg); } 50% { opacity: 1; transform: scale(1.1) rotate(9deg); } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

.section { margin-top: clamp(4rem, 7vw, 7rem); scroll-margin-top: 1.4rem; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 1.4rem; }
h2 { margin-top: .42rem; font: 800 clamp(2.7rem, 5.6vw, 5.35rem)/.98 var(--display); letter-spacing: -.072em; }
.section-intro > p { max-width: 34ch; margin-bottom: .2rem; color: var(--muted); }
.catalog-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.55rem 0 1.15rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter { min-height: 42px; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .91rem; font-weight: 750; transition: background .2s, border-color .2s, color .2s; }
.filter:hover { border-color: var(--purple); }
.filter[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: white; }
.search { display: flex; align-items: center; gap: .6rem; width: min(100%, 244px); min-height: 44px; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); }
.search:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.product-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: .55rem; background: white; animation: enter .37s ease-out both; animation-delay: calc(var(--index, 0) * 50ms); transition: box-shadow .25s, transform .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 13px 34px #321e5020; }
@keyframes enter { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.product-art { position: relative; overflow: hidden; border-radius: 14px; background: #eee8f8; }
.product-art img { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; transition: scale .4s ease; }
.product-card:hover img { scale: 1.047; }
.save-button { position: absolute; right: .55rem; top: .55rem; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #fff; border-radius: 50%; background: #fffdf7f5; color: var(--ink); transition: background .2s, scale .2s; }
.save-button:hover { scale: 1.07; background: var(--lime); }
.save-button[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); }
.save-button[aria-pressed='true'] svg { fill: currentColor; }
.product-info { padding: .75rem .35rem .4rem; }
.product-category { font-size: .875rem; font-weight: 750; color: var(--muted); }
.product-info h3 { margin: .18rem 0 .68rem; font: 800 clamp(1.1rem, 1.65vw, 1.55rem)/1.13 var(--display); letter-spacing: -.04em; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: .4rem; border-top: 1px solid #eee9f0; padding-top: .63rem; }
.product-price { font: 800 clamp(1.05rem, 1.55vw, 1.37rem)/1 var(--display); white-space: nowrap; }
.product-link { border: 0; background: none; color: var(--purple); font-weight: 800; font-size: .89rem; padding: .35rem 0; line-height: 1.15; }
.product-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-note { margin-top: .83rem; color: var(--muted); font-size: .9rem; }
.empty { grid-column: 1 / -1; padding: 1.8rem; border: 1px dashed #bdb3c8; border-radius: 18px; color: var(--muted); }

.price-panel { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(1.7rem, 4vw, 4rem); align-items: center; padding: clamp(1.7rem, 4.4vw, 4.7rem); border-radius: 30px; color: #fff; background: radial-gradient(ellipse at 95% 5%, #5330a6 0, transparent 48%), var(--deep); }
.price-copy .eyebrow { color: var(--lime); }
.price-copy h2 { margin-top: .69rem; font-size: clamp(2.65rem, 4.85vw, 4.9rem); }
.price-copy p:not(.eyebrow) { max-width: 37ch; color: #e7dcf7; margin: 1rem 0 1.3rem; }
.select-label { display: block; font-size: .875rem; margin-bottom: .37rem; color: #f1eafa; font-weight: 700; }
.select-shell { position: relative; width: min(100%, 275px); }
.select-shell::after { content: ''; position: absolute; right: 1.03rem; top: 43%; width: .52rem; height: .52rem; border: solid #eadcff; border-width: 0 2px 2px 0; rotate: 45deg; pointer-events: none; }
.select-shell select { width: 100%; appearance: none; padding: .64rem 2rem .64rem .85rem; border: 1px solid #aa92cf; border-radius: 12px; background: #3c2563; color: #fff; font-weight: 700; }
.chart-card { min-width: 0; padding: clamp(1rem, 2.6vw, 2rem); border-radius: 22px; color: var(--ink); background: #fffeff; box-shadow: 0 15px 36px #160c3a60; }
.chart-top { display: flex; gap: .75rem; align-items: start; justify-content: space-between; }
.chart-label { display: block; color: var(--muted); font-size: .88rem; font-weight: 700; }
.chart-top strong { display: block; margin-top: .13rem; font: 800 clamp(1.8rem, 3.2vw, 3rem)/1 var(--display); letter-spacing: -.055em; }
.ranges { display: flex; gap: .15rem; padding: .25rem; border-radius: 999px; background: #f1ebfa; }
.ranges button { min-width: 39px; min-height: 34px; padding: .23rem .4rem; border: 0; border-radius: 999px; color: var(--deep); background: transparent; font-size: .875rem; font-weight: 800; }
.ranges button[aria-pressed='true'] { background: var(--purple); color: white; }
#price-chart { display: block; width: 100%; height: clamp(105px, 14vw, 177px); margin-top: 1.15rem; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .81rem; font-weight: 700; }
.chart-summary { margin-top: .94rem; padding: .57rem .68rem; border-radius: 9px; background: #edfac9; color: #2e4015; font-weight: 750; font-size: .89rem; }

.how > div:first-child { margin-bottom: 1.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.7rem, 1.7vw, 1.5rem); }
.steps article { padding: clamp(1rem, 2.7vw, 2.25rem); border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.step-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .9rem; border-radius: 14px; color: var(--deep); }
.step-icon svg { width: 1.41rem; height: 1.41rem; }
.step-lilac { background: #e9e0ff; }.step-lime { background: #e1fb98; }.step-peach { background: #fce0d4; }
.steps h3 { margin-bottom: .33rem; font: 800 clamp(1.26rem, 2.1vw, 1.84rem)/1.12 var(--display); letter-spacing: -.05em; }
.steps p { max-width: 32ch; color: var(--muted); }
.site-footer { margin-top: clamp(3.7rem, 7vw, 6.2rem); border-top: 1px solid var(--line); background: #f1ebf6; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.1rem; min-height: 112px; padding-block: 1.4rem; }
.footer-content p { color: var(--muted); }
.footer-link { font-weight: 800; }

dialog { width: min(540px, calc(100% - 32px)); padding: 0; border: 1px solid #e3d9f0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px #1c0c4e55; }
dialog::backdrop { background: #1e0d36ae; backdrop-filter: blur(5px); }
dialog[open] { animation: enter .24s ease-out; }
.dialog-inner { position: relative; padding: 1.5rem; }
.close { position: absolute; z-index: 1; top: 1.05rem; right: 1.05rem; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
.close:hover { background: var(--lime); }
.dialog-title { padding-right: 2.2rem; margin: 0 0 .5rem; font: 800 clamp(1.75rem, 6vw, 2.5rem)/1.02 var(--display); letter-spacing: -.06em; }
.dialog-image { width: 100%; height: 260px; object-fit: contain; background: var(--image-backdrop); border-radius: 14px; margin-bottom: 1rem; }
.dialog-image[src$='headphones.webp'] { --image-backdrop: #e5ddfb; }
.dialog-image[src$='runners.webp'] { --image-backdrop: #f7eac5; }
.dialog-image[src$='lamp.webp'] { --image-backdrop: #f7d7cd; }
.dialog-image[src$='watch.webp'] { --image-backdrop: #d8efd9; }
.dialog-meta { color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.saved-list { display: grid; gap: .55rem; padding: 0; margin-bottom: 0; list-style: none; }
.saved-list li { display: flex; align-items: center; gap: .8rem; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.saved-list img { width: 56px; height: 56px; border-radius: 7px; }
.saved-list .product-link { text-align: left; }
.saved-list .remove { margin-left: auto; padding: .4rem .5rem; border: 0; border-radius: 9px; background: #f2edf8; color: var(--ink); }
.saved-list .remove:hover { background: var(--lime); }
.toast { position: fixed; z-index: 3; left: 50%; bottom: 1.25rem; max-width: calc(100% - 2rem); padding: .55rem .96rem; border-radius: 999px; background: var(--ink); color: white; font-weight: 750; text-align: center; opacity: 0; translate: -50% 8px; pointer-events: none; transition: opacity .18s, translate .18s; }
.toast.visible { opacity: 1; translate: -50% 0; }

@media (max-width: 1120px) {
  .shell { width: calc(100% - 72px); }
  .hero { min-height: 475px; }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero { min-height: 426px; }
  .hero h1 { font-size: clamp(3.6rem, 8.4vw, 5rem); }
  .hero-copy { padding-left: 1.7rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 70px; grid-template-columns: 1fr 1fr; gap: .65rem .8rem; }
  .site-header nav { grid-row: 2; grid-column: 1/-1; justify-content: space-between; padding-block: .3rem .55rem; gap: .7rem; }
  .brand { font-size: 2.1rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; font-size: 1.2rem; }
  .hero { grid-template-columns: 1fr; border-radius: 24px; }
  .hero-copy { padding: 2.05rem 1.25rem 1.6rem; }
  .hero h1 { font-size: clamp(3.35rem, 14vw, 5.75rem); margin-bottom: 1rem; }
  .hero-actions { margin-top: 1.1rem; }
  .hero .button { padding-inline: 1rem; }
  .hero-art { aspect-ratio: 1.24; min-height: 0; }
  .art-caption { bottom: 5%; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: .68rem; }
  .catalog-controls { align-items: start; flex-direction: column; margin-top: 1.1rem; }
  .search { width: 100%; }
  .price-panel { grid-template-columns: 1fr; border-radius: 24px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .hero .button { padding-inline: .85rem; }
  .filter { padding-inline: .7rem; }
  .product-bottom { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
