:root {
  --green: #099043;
  --green-d: #077236;
  --green-l: #e3f4ea;
  --red: #d23c47;
  --red-l: #fde8ea;
  --ink: #1a1d21;
  --muted: #5f6670;
  --bg: #f4f5f2;
  --card: #ffffff;
  --line: #e2e4df;
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16.5px/1.6 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin: 0 0 14px; }
.muted { color: var(--muted); }
.btn { display: inline-block; font: 700 1rem var(--font); text-decoration: none; background: var(--green); color: #fff; border: 0; border-radius: 12px; padding: 14px 24px; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--red); }
.btn-small { padding: 10px 18px; font-size: .92rem; }
.link { background: none; border: 0; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; text-decoration: underline; }

/* top bar + header */
.topbar { background: var(--green); color: #fff; font-size: .82rem; font-weight: 600; }
.topbar-in { display: flex; justify-content: space-between; gap: 10px 24px; padding: 8px 20px; flex-wrap: wrap; }
.topbar-in span::before { content: '●'; color: #fff; opacity: .55; font-size: .6em; margin-right: 8px; vertical-align: 2px; }
.header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand img { height: 56px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 11px 14px; outline: none; }
.search button { border: 0; background: var(--ink); color: #fff; width: 52px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--green); }
.cart { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 12px; background: var(--red-l); color: var(--red); }
.cart b { background: var(--red); color: #fff; min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-size: .8rem; padding: 0 6px; transition: transform .2s; }
.cart b.bump { transform: scale(1.35); }
.catnav { display: flex; gap: 26px; height: 44px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; color: var(--muted); }
.catnav a:hover { color: var(--green); }

/* hero bento */
.hero { padding: 28px 0 60px; }
.bento { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 16px; }
.tile { border-radius: 24px; padding: 26px; position: relative; overflow: hidden; text-decoration: none; }
.t-main { grid-row: span 2; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; padding: 44px; }
.t-main h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; }
.g { color: var(--green); } .r { color: var(--red); }
.lead { color: var(--muted); font-size: 1.12rem; margin: 18px 0 28px; max-width: 30em; }
.t-main .btn { align-self: flex-start; }
.t-label { position: relative; z-index: 1; font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
a.tile { display: flex; flex-direction: column; justify-content: space-between; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.tile:hover img { transform: scale(1.05); }
a.tile .t-label { align-self: flex-start; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 12px; font-size: 1.1rem; }
a.tile::after { z-index: 1; background: var(--green); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; line-height: 1; }
a.tile::after { content: '→'; position: absolute; left: 26px; bottom: 22px; font-weight: 700; font-size: 1.3rem; transition: transform .2s; }
a.tile:hover::after { transform: translateX(6px); }
.t-mobile::after { background: var(--red) !important; } .t-audio::after { background: var(--red) !important; }

/* products */
.products { padding: 20px 0 80px; }
.prod-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 600 .9rem var(--font); border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 15px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.sort select { font: inherit; font-weight: 500; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; animation: pop .3s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.thumb { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: #f1f1f1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .dept { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.card h3 { font-size: 1rem; line-height: 1.25; }
.specs { list-style: none; margin: 10px 0 14px; padding: 0; font-size: .85rem; color: var(--muted); flex: 1; }
.specs li { padding: 2px 0 2px 16px; position: relative; }
.specs li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.price small { font-size: .7em; }
.add { border: 0; background: var(--green); color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; font-size: 1.4rem; font-weight: 600; display: grid; place-items: center; transition: background .15s; }
.add:hover { background: var(--red); }
.add.done { background: var(--ink); }
.cmp { display: flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); cursor: pointer; }
.cmp input { accent-color: var(--green); width: 17px; height: 17px; margin: 0; }
.fine { font-size: .84rem; color: var(--muted); margin: 18px 0 0; }

/* journey */
.journey { background: var(--ink); color: #fff; padding: 90px 0; }
.journey .eyebrow { color: #6fd39a; }
.journey-head { margin-bottom: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: #24282d; border-radius: 20px; padding: 26px 22px; border-top: 4px solid var(--green); }
.steps li:nth-child(even) { border-top-color: var(--red); }
.steps .n { font: 500 .85rem var(--mono); color: #9aa1a9; display: block; margin-bottom: 30px; }
.steps .n::before { content: '0'; }
.steps p { color: #b8bec5; margin: 8px 0 0; font-size: .95rem; }

/* faq */
.faq { padding: 90px 0; }
.faq-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.help-card { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 16px; padding: 20px 22px; display: grid; gap: 2px; }
.help-card a { color: var(--green); font-weight: 700; }
.help-card span { color: var(--muted); font-size: .92rem; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 20px; }
.faq-list summary { list-style: none; cursor: pointer; font-weight: 700; padding: 17px 30px 17px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--green); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.faq-list p { margin: 0 0 18px; color: var(--muted); }

/* footer */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 110px; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 30px; align-items: center; }
.brand-foot img { height: 50px; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer nav a:hover { color: var(--green); }
.pay, .copy { margin: 0; color: var(--muted); font-size: .85rem; }
.copy { text-align: right; }

/* compare bar + modal */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 2px solid var(--ink); box-shadow: 0 -10px 30px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .3s; }
.compare-bar.show { transform: none; }
.compare-in { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.compare-slots { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.slot { flex: none; font-size: .85rem; font-weight: 600; background: var(--bg); border-radius: 10px; padding: 7px 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.empty { color: var(--muted); font-weight: 500; border: 1.5px dashed var(--line); background: none; }
#compareGo:disabled { opacity: .4; cursor: not-allowed; background: var(--green); }
.modal { border: 0; border-radius: 22px; padding: 0; width: min(900px, calc(100% - 24px)); max-height: calc(100% - 40px); }
.modal::backdrop { background: rgba(26,29,33,.55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.4rem; }
.x { border: 0; background: var(--bg); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.table-wrap { overflow-x: auto; padding: 8px 24px 24px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 130px; }
td .p { font-weight: 800; font-size: 1.2rem; }
td.best .p { color: var(--green); }
td ul { margin: 0; padding-left: 18px; }

/* toast */
.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -160%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .95rem; z-index: 60; transition: transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto 200px 200px; }
  .t-main { grid-row: auto; grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar-in { justify-content: center; font-size: .75rem; }
  .topbar-in span:nth-child(n+3) { display: none; }
  .header-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 14px; }
  .brand img { height: 46px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart { margin-left: auto; }
  .cart span { display: none; }
  .catnav { gap: 20px; height: 40px; }
  .hero { padding: 16px 0 44px; }
  .bento { gap: 12px; grid-template-rows: auto 170px 170px; }
  .t-main { padding: 28px 24px; }
  .tile { padding: 20px; border-radius: 20px; }
  .t-label { font-size: 1.05rem; }
  a.tile::after { left: 20px; bottom: 16px; }
  a.tile .t-label { font-size: .9rem; padding: 6px 10px; }
  a.tile::after { width: 36px; height: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; border-radius: 16px; }
  .card h3 { font-size: .92rem; }
  .specs { font-size: .8rem; }
  .price { font-size: 1.15rem; }
  .add { width: 38px; height: 38px; }
  .faq-in { grid-template-columns: 1fr; gap: 30px; }
  .journey, .faq { padding: 64px 0; }
  .footer-in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .copy { text-align: left; }
  .compare-in { flex-wrap: wrap; }
  .compare-slots { flex-basis: 100%; }
  .header { position: relative; }
  .table-wrap { padding: 4px 14px 18px; }
  table { min-width: 0; font-size: .85rem; }
  th { width: 74px; font-size: .62rem; padding: 10px 6px; }
  td { padding: 10px 6px; }
  td ul { padding-left: 14px; }
  .modal-head { padding: 16px 18px; }
  td .btn { padding: 8px 10px; font-size: .8rem; width: 100%; }
  td .thumb { max-width: 100% !important; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .prod-head .controls { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
