/* sopel.fit. Same family as GRAILS (white page, gradient hero, pills, cards,
   floating phone bar) with its own ice-blue colour, the icicle mark and the
   find numbers from his videos. */

:root {
  --brand: #0EA5E9;
  --brand-ink: #0369A1;
  --brand-deep: #1D4ED8;
  --tint: #E0F2FE;
  --tint-2: #F0F9FF;
  --line: #D4E8F5;
  --ink: #0B1220;
  --muted: #5B6B80;
  --bg: #F5FAFE;
  --night: #0B1E3F;
  --night-2: #142F66;
  --frost: #EAF5FD;
  --ok: #15803D;
  --bad: #B91C1C;
  --hero: radial-gradient(70% 55% at 88% 0%, rgba(125, 249, 255, 0.38), transparent 62%),
          radial-gradient(55% 45% at 0% 100%, rgba(255, 255, 255, 0.14), transparent 60%),
          linear-gradient(150deg, #0369A1 0%, #1D4ED8 52%, #3730A3 100%);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* names the admin page uses */
  --snow: #FFFFFF; --slate: #5B6B80; --deep: #1D4ED8; --ice-soft: #E0F2FE;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.has-bar { padding-bottom: 96px; }
img { display: block; max-width: 100%; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.hdr { display: flex; align-items: center; gap: 12px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 14px; }
.brand { display: inline-flex; align-items: flex-start; color: var(--brand-deep); text-decoration: none; }
.brand-word { font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.04em; }
.brand-ice { width: 30px; height: 26px; margin: 4px 0 0 2px; }
.hdr-nav { display: none; gap: 4px; margin-left: 18px; }
.hdr-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; text-decoration: none; }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { background: var(--tint); color: var(--brand-ink); }
.hdr-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint); color: var(--brand-ink); border: 0; cursor: pointer; text-decoration: none;
}
.icon-btn svg { width: 21px; height: 21px; }
.cur-pill { position: relative; display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font-weight: 600; }
.cur-pill select { height: 44px; padding: 0 34px 0 16px; border: 0; background: transparent; font-weight: 600; color: var(--brand-ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.cur-pill::after { content: ""; position: absolute; right: 15px; top: 17px; width: 7px; height: 7px; border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }

svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */

.hero { position: relative; margin-top: 4px; border-radius: 28px 28px 0 0; background: var(--hero); color: #fff; padding: 30px 22px 34px; overflow: hidden; }
.hero h1 { font-size: clamp(36px, 9.5vw, 64px); max-width: 12ch; font-weight: 800; }
.hero p { margin: 14px 0 22px; max-width: 30ch; font-size: 18px; line-height: 1.4; font-weight: 500; color: rgba(255, 255, 255, 0.95); }
.hero-search { position: relative; z-index: 2; display: grid; gap: 12px; max-width: 560px; }
.hero-search input {
  width: 100%; height: 58px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 17px; box-shadow: 0 10px 30px rgba(11, 18, 32, 0.18);
}
.hero-search input:focus { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.hero-search button { height: 58px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; text-align: left; padding: 0 26px; }
.hero-search button:hover { background: #1B2740; }
.hero-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-weight: 500; }
.hero-links a { color: #fff; text-underline-offset: 4px; }
.floaters { display: none; }
.floater {
  position: absolute; width: 150px; padding: 8px; background: #fff; border-radius: 18px; color: var(--ink);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.25); text-decoration: none;
}
.floater img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.floater .num { position: absolute; left: 14px; top: 14px; }
.floater b { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icicle-edge { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 26px; display: block; pointer-events: none; }

.quick { position: relative; padding: 34px 18px 22px; border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 28px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 18px; border-radius: 999px; background: var(--tint); color: var(--brand-ink);
  font-weight: 600; text-decoration: none; text-align: center; border: 0; cursor: pointer; font-size: 16px;
}
.pill:hover { background: #CDEBFB; }
.pill svg { width: 22px; height: 22px; flex: 0 0 auto; }
.pill-wide { grid-column: 1 / -1; }

/* ---------- sections ---------- */

.sec { margin-top: 44px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(28px, 7vw, 40px); }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.more { margin-top: 18px; width: 100%; }

/* ---------- product cards ---------- */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.card-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 12px; }
.num {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--tint); color: var(--brand-ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.icon-sm { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--brand-ink); cursor: pointer; }
.icon-sm:hover { background: var(--tint); }
.icon-sm svg { width: 19px; height: 19px; }
.card-img { display: block; margin: 0 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--tint-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 12px 12px 0; min-height: 2.6em; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.3; text-decoration: none;
}
.card-meta { display: flex; align-items: baseline; gap: 8px; margin: 6px 12px 12px; min-width: 0; }
.card-price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.card-seller { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-feat { color: var(--brand-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.card-foot { display: flex; margin-top: auto; border-top: 1.5px solid var(--line); }
.card-view { flex: 1; display: grid; place-items: center; min-height: 50px; background: var(--tint); color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.card-view:hover { background: #CDEBFB; }
.card-qc { display: grid; place-items: center; width: 54px; border-left: 1.5px solid var(--line); color: var(--brand-ink); background: #fff; text-decoration: none; }
.card-qc:hover { background: var(--tint-2); }
.card-qc svg { width: 22px; height: 22px; }

/* ---------- finds page ---------- */

.page-head { padding-top: 8px; }
.page-head h1 { font-size: clamp(34px, 8vw, 52px); font-weight: 800; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; max-width: 52ch; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 600; text-decoration: none; }
.search-bar { position: sticky; top: 0; z-index: 20; margin: 18px -16px 0; padding: 10px 16px; background: rgba(245, 250, 254, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.search-bar.stuck { box-shadow: 0 1px 0 var(--line); }
.search { position: relative; }
.search input {
  width: 100%; height: 54px; padding: 0 48px 0 50px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 17px; -webkit-appearance: none; appearance: none;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18); }
.search input::-webkit-search-cancel-button { display: none; }
.search > svg { position: absolute; left: 18px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.search .clear svg { width: 19px; height: 19px; }
.chips { display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--tint-2); color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.count { margin: 16px 0 12px; color: var(--muted); font-size: 15px; min-height: 1.5em; }
.empty { padding: 30px 0 10px; }
.empty h2 { font-size: 24px; }
.empty p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }
.empty .btn { margin-top: 16px; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-main { background: var(--ink); color: #fff; }
.btn-main:hover { background: #1B2740; }
.btn-brand { background: var(--brand-deep); color: #fff; }
.btn-brand:hover { background: #1E40AF; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-tint { background: var(--tint); color: var(--brand-ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------- featured sellers ---------- */

.frow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.frow::-webkit-scrollbar { display: none; }
.fcard { display: block; padding: 12px; border: 1.5px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; background: #fff; }
.fcard:hover { border-color: var(--brand); }
.fthumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.fthumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--tint-2); }
.ftag { display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.fname { display: block; margin-top: 6px; font-size: 20px; font-weight: 700; }
.fmeta { display: block; color: var(--muted); font-size: 14px; }
.fgo { display: inline-block; margin-top: 10px; color: var(--brand-deep); font-weight: 600; }

/* ---------- tools ---------- */

.tools { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tool { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1.5px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; background: #fff; }
.tool:hover { border-color: var(--brand); }
.tool .tool-ico { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--brand-ink); }
.tool-ico svg { width: 26px; height: 26px; }
.tool b { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.tool span { display: block; color: var(--muted); font-size: 15px; line-height: 1.35; }

/* ---------- new to reps ---------- */

.start { padding: 26px 20px; border-radius: 28px; background: linear-gradient(160deg, var(--tint) 0%, var(--tint-2) 100%); }
.start h2 { font-size: clamp(28px, 7vw, 40px); }
.start > p { margin: 10px 0 0; max-width: 46ch; color: #2B3A4F; font-size: 17px; }
.steps { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; background: #fff; }
.steps li::before { content: counter(s); flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); font-weight: 700; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
.start .btn { width: 100%; }

/* ---------- tool pages ---------- */

.tool-page { padding-top: 10px; max-width: 760px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.tool-page h1 { margin-top: 12px; font-size: clamp(34px, 8vw, 52px); font-weight: 800; }
.tool-page .lead { margin: 12px 0 22px; color: var(--muted); font-size: 18px; line-height: 1.45; }
.form-row { display: grid; gap: 12px; }
.field-in { width: 100%; height: 56px; padding: 0 22px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 17px; -webkit-appearance: none; appearance: none; }
.field-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18); }
select.field-in { padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369A1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.go { height: 56px; border: 0; border-radius: 999px; background: var(--brand-deep); color: #fff; font-weight: 600; font-size: 17px; cursor: pointer; }
.go:hover { background: #1E40AF; }
.go[disabled] { opacity: 0.6; cursor: progress; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.try button { border: 0; background: none; padding: 4px 0; color: var(--brand-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.label { display: block; margin: 0 0 8px 6px; font-weight: 600; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.presets .chip { height: 38px; font-size: 15px; }
.result { margin-top: 24px; }
.msg { padding: 14px 18px; border-radius: 18px; background: var(--tint-2); color: var(--ink); }
.msg.bad { background: #FEF2F2; color: var(--bad); font-weight: 500; }
.box { padding: 18px; border: 1.5px solid var(--line); border-radius: 22px; background: #fff; }
.box + .box { margin-top: 12px; }
.box h2 { font-size: 22px; }
.box p { margin: 6px 0 0; color: var(--muted); }
.src { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.src b { font-size: 18px; }
.alist { list-style: none; margin: 14px 0 0; padding: 0; }
.alist li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1.5px solid var(--line); }
.alist li:first-child { border-top: 0; }
.alist .aname { flex: 1; min-width: 0; font-weight: 600; font-size: 17px; }
.alist .aname small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.mine { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1.5px solid var(--line); }
.lines li:first-child { border-top: 0; }
.lines .lname { font-weight: 600; }
.lines .lprice { font-weight: 700; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.lines .lsub { color: var(--muted); font-size: 14px; }
.lines .ldays { color: var(--muted); font-size: 14px; text-align: right; }
.best { padding: 18px; border-radius: 22px; background: var(--hero); color: #fff; }
.best small { font-weight: 600; opacity: 0.9; }
.best b { display: block; margin-top: 4px; font-size: 30px; font-weight: 800; }
.best span { display: block; margin-top: 2px; }
.sortbar { display: flex; gap: 8px; margin: 18px 0 6px; }
.note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.how { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; counter-reset: h; }
.how li { counter-increment: h; display: flex; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: 20px; }
.how li::before { content: counter(h); flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); font-weight: 700; }
.how b { display: block; }
.how span { color: var(--muted); font-size: 15px; }
.status { font-size: 24px; font-weight: 800; }
.events { list-style: none; margin: 14px 0 0; padding: 0; }
.events li { padding: 10px 0; border-top: 1.5px solid var(--line); font-size: 15px; }
.events time { display: block; color: var(--muted); font-size: 13px; }

.coupon { padding: 28px 22px 30px; border-radius: 28px; background: var(--hero); color: #fff; }
.coupon h1 { font-size: clamp(34px, 8.5vw, 56px); font-weight: 800; max-width: 14ch; }
.coupon p { margin: 14px 0 22px; max-width: 40ch; font-size: 18px; color: rgba(255, 255, 255, 0.95); }
.coupon .btn { background: var(--ink); color: #fff; }
.coupon small { display: block; margin-top: 12px; color: rgba(255, 255, 255, 0.9); }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--tint-2); color: var(--brand-ink); }

/* ---------- piece sheet ---------- */

.sheet { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: #fff; color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet::backdrop { background: rgba(11, 18, 32, 0.5); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-in { position: relative; }
.sh-x { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); cursor: pointer; box-shadow: 0 2px 10px rgba(11, 18, 32, 0.12); }
.sh-x svg { width: 20px; height: 20px; }
.gal { display: flex; aspect-ratio: 1; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--tint-2); }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.dots { display: flex; justify-content: center; gap: 2px; padding-top: 10px; min-height: 26px; }
.dots button { display: grid; place-items: center; width: 22px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; }
.dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots button[aria-current="true"]::after { background: var(--brand-deep); }
.sh-body { padding: 6px 18px 28px; }
.sh-t { margin-top: 10px; font-size: 26px; }
.sh-p { margin: 8px 0 18px; color: var(--muted); }
.sh-p b { margin-right: 8px; color: var(--ink); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.buy { display: flex; align-items: center; justify-content: center; min-height: 60px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; }
.buy:hover { background: #1B2740; }
.sh-help { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.sh-h { margin: 22px 0 10px; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; }
.agents a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-weight: 500; text-decoration: none; }
.agents a:hover { background: var(--tint); }
.qcbox { padding: 14px 16px; border-radius: 18px; background: var(--tint-2); }
.qcbox p { margin: 0 0 10px; }
.qcbox .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.sh-seller { font-weight: 600; text-decoration: none; }

/* ---------- footer ---------- */

.foot { margin-top: 56px; background: var(--brand-deep); color: #fff; border-radius: 28px 28px 0 0; padding: 34px 0 40px; }
.foot .brand { color: #fff; }
.foot-grid { display: grid; gap: 24px; }
.foot p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.85); max-width: 52ch; font-size: 15px; }
.foot h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: #fff; text-decoration: none; font-weight: 500; }
.foot a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; }
.socials a:hover { background: rgba(255, 255, 255, 0.26); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- phone bar + menu ---------- */

.pbar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 12px 34px rgba(11, 18, 32, 0.18); border: 1.5px solid var(--line);
}
.pbar a, .pbar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; min-width: 50px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--brand-ink); font-weight: 600; text-decoration: none; cursor: pointer;
}
.pbar a[aria-current="page"] { background: var(--tint); }
.pbar svg { width: 22px; height: 22px; }
.menu { width: min(420px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 22px 20px; border: 0; background: #fff; }
.menu::backdrop { background: rgba(11, 18, 32, 0.45); }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.menu li a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; border-radius: 18px; background: var(--tint-2); color: var(--ink); font-weight: 600; text-decoration: none; }
.menu li a svg { width: 22px; height: 22px; color: var(--brand-ink); }
.menu .socials a { background: var(--tint); color: var(--brand-ink); }

.toast { position: fixed; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px); z-index: 95; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .quick { grid-template-columns: repeat(4, 1fr); }
  .tools { grid-template-columns: 1fr 1fr; }
  .search-bar { margin: 18px -24px 0; padding: 10px 24px; }
  .chips { margin: 10px -24px 0; padding: 0 24px; flex-wrap: wrap; }
  .frow { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .start .btn { width: auto; }
  .form-row.two { grid-template-columns: 1fr auto; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  body.has-bar { padding-bottom: 0; }
  .pbar { display: none; }
  .hdr-nav { display: flex; }
  .hero { padding: 54px 48px 60px; }
  .floaters { display: block; position: absolute; right: 40px; top: 30px; width: 380px; height: 400px; }
  .floater:nth-child(1) { right: 205px; top: 0; transform: rotate(-7deg); }
  .floater:nth-child(2) { right: 15px; top: 24px; transform: rotate(6deg); }
  .floater:nth-child(3) { right: 120px; top: 205px; transform: rotate(-3deg); z-index: 1; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { width: min(980px, 94vw); max-height: 90vh; margin: auto; border-radius: 28px; }
  .sh-in { display: grid; grid-template-columns: 1.05fr 1fr; }
  .sh-media { position: sticky; top: 0; align-self: start; }
  .sh-body { padding: 30px 28px 30px; }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .toast { bottom: 24px; }
}
@media (min-width: 1140px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero h1 { max-width: 13ch; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
  .toast { transition: none; }
}

/* ---------- winter: snow, frost, ice, a winter night ---------- */

::selection { background: #BAE6FD; color: var(--ink); }
.hero-wrap { position: relative; margin-top: 16px; }
.hero { margin-top: 0; }
.hero h1, .hero p { position: relative; z-index: 1; }
.snow { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.floaters { z-index: 1; }
.snowcap { position: absolute; left: 10px; right: 10px; top: -15px; height: 40px; z-index: 3; width: calc(100% - 20px); pointer-events: none; filter: drop-shadow(0 3px 3px rgba(11, 30, 63, 0.16)); }
.flake { position: absolute; z-index: 0; color: #fff; pointer-events: none; }
.hero .flake.f1 { width: 170px; height: 170px; right: -44px; bottom: -46px; opacity: 0.14; transform: rotate(12deg); }
.hero .flake.f2 { width: 64px; height: 64px; right: 30%; top: 22px; opacity: 0.12; }
.hero .flake.f3 { width: 40px; height: 40px; left: 58%; bottom: 44px; opacity: 0.14; transform: rotate(20deg); }

.quick { background: #fff; }
.num { background: linear-gradient(180deg, #F4FBFF 0%, #D8EEFC 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px #BFE3F8; color: #075985; }
.card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: #A5D8F5; box-shadow: 0 14px 30px rgba(14, 165, 233, 0.16); }
}
.hero-search button, .buy, .btn-main, .coupon .btn { background: var(--night); }
.hero-search button:hover, .buy:hover, .btn-main:hover, .coupon .btn:hover { background: var(--night-2); }

.frost {
  position: relative; overflow: hidden; padding: 24px 20px 26px; border-radius: 28px;
  background: linear-gradient(160deg, #DCEFFC 0%, #F1F8FE 72%); border: 1.5px solid #D2E9F8;
}
.frost > :not(.flake) { position: relative; }
.frost .flake, .start .flake { color: #6DB8E8; }
.frost .flake.f1, .start .flake.f1 { width: 120px; height: 120px; right: -26px; top: -24px; opacity: 0.32; transform: rotate(18deg); }
.frost .flake.f2, .start .flake.f2 { width: 46px; height: 46px; right: 96px; bottom: 16px; opacity: 0.24; }
.page-head.frost { padding-top: 22px; }
.tool-page .frost { margin-bottom: 22px; }
.tool-page .frost .lead { margin-bottom: 0; }
.start { position: relative; overflow: hidden; background: linear-gradient(160deg, #DCEFFC 0%, #F1F8FE 72%); border: 1.5px solid #D2E9F8; }
.start > :not(.flake) { position: relative; }
.coupon { position: relative; overflow: hidden; }
.coupon > :not(.snow):not(.flake) { position: relative; z-index: 1; }
.coupon .flake.f1 { width: 180px; height: 180px; right: -40px; bottom: -50px; opacity: 0.14; transform: rotate(10deg); }
.coupon .flake.f2 { width: 60px; height: 60px; right: 26%; top: 24px; opacity: 0.12; }

.pbar { background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }

.foot {
  position: relative; margin-top: 130px; border-radius: 0; padding-top: 22px;
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.4px 1.4px at 28% 42%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.8px 1.8px at 46% 12%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1.3px 1.3px at 63% 36%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.7px 1.7px at 78% 16%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.4px 1.4px at 91% 44%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}
.foot-mtn { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 90px; display: block; pointer-events: none; }

@media (min-width: 900px) {
  .frost { padding: 34px 36px 36px; }
  .snowcap { left: 16px; right: 16px; width: calc(100% - 32px); height: 46px; top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- categories as icon tiles ---------- */

.cats { display: flex; gap: 10px; margin: 14px -16px 0; padding: 4px 16px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 84px; height: 92px; padding: 0 4px; border-radius: 22px; border: 1.5px solid #D2E9F8;
  background: linear-gradient(160deg, #DCEFFC 0%, #F4FAFF 100%); color: var(--brand-ink);
  font: inherit; text-decoration: none; cursor: pointer;
}
.cat svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cat span { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cat:hover { border-color: #A5D8F5; }
.cat[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #BAE6FD; }
.cat[aria-pressed="true"] span { color: #fff; }
.cats-big .cat { width: 96px; height: 104px; }
.cats-big .cat svg { width: 40px; height: 40px; }
@media (min-width: 640px) {
  .cats { margin: 14px 0 0; padding: 4px 0 6px; flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 900px) {
  .cats-big { gap: 14px; }
  .cats-big .cat { width: 124px; height: 128px; border-radius: 26px; gap: 10px; }
  .cats-big .cat svg { width: 46px; height: 46px; }
  .cats-big .cat span { font-size: 15px; }
}

/* ---------- clean clicks: no tap flash, soft hover, small press, smooth page change ---------- */

a, button, select, label, summary, input, .cat, .chip { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a, button, select, input {
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.12s ease;
}
.pill:active, .btn:not([disabled]):active, .chip:active, .cat:active, .icon-btn:active, .icon-sm:active, .go:not([disabled]):active,
.buy:active, .hero-search button:active, .pbar a:active, .pbar button:active, .agents a:active, .socials a:active,
.sh-x:active, .dots button:active, .try button:active { transform: scale(0.96); }
.tool:active, .fcard:active, .menu li a:active, .card-view:active, .card-qc:active { transform: scale(0.985); }
.menu li a:hover { background: var(--tint); }
.menu li a { transition: background-color 0.16s ease, transform 0.12s ease; }

/* links to a section on the same page (How to buy) glide there */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* menu slides in, backdrops fade */
.menu[open] { animation: slide-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu[open]::backdrop, .sheet[open]::backdrop { animation: fade 0.22s ease; }
@keyframes slide-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* page to page: short cross-fade, header and phone bar stay still */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
.hdr { view-transition-name: hdr; }
.pbar { view-transition-name: pbar; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- mascot: the snowman in the pink hoodie ---------- */

.hero-mascot {
  position: absolute; z-index: 3; right: 8px; bottom: 0; width: auto; height: 150px; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(11, 30, 63, 0.35)); transform-origin: 50% 100%;
  animation: mascot-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, mascot-idle 3.6s ease-in-out 0.6s infinite;
}
.hero-links { padding-right: 96px; }
@keyframes mascot-in { from { transform: translateY(24px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mascot-idle { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) rotate(-1.2deg); } }
/* the same snowman peeking in the top block of every other page */
.has-mascot { padding-right: 104px; }
.has-mascot.has-mascot > .mascot-peek {
  position: absolute; z-index: 2; right: 12px; bottom: 0; width: auto; height: 118px; pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(11, 30, 63, 0.3)); transform-origin: 50% 100%;
  animation: mascot-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, mascot-idle 3.6s ease-in-out 0.6s infinite;
}
.coupon.has-mascot > .mascot-peek { height: 150px; }
@media (min-width: 640px) {
  .has-mascot { padding-right: 200px; min-height: 214px; }
  .has-mascot.has-mascot > .mascot-peek { right: 36px; height: 180px; }
}
@media (min-width: 900px) {
  .coupon.has-mascot { padding-right: 340px; }
  .coupon.has-mascot > .mascot-peek { right: 70px; height: 300px; }
}
@media (min-width: 900px) {
  .hero-mascot { right: 56px; height: 400px; }
  .hero-links { padding-right: 0; }
  .floaters { display: none; }
}

/* ---------- night mode: a winter night (html[data-theme="dark"], set by the moon button) ---------- */

.theme-btn .sun { display: none; }
.theme-btn span { display: grid; place-items: center; }
[data-theme="dark"] .theme-btn .sun { display: grid; }
[data-theme="dark"] .theme-btn .moon { display: none; }

[data-theme="dark"] {
  --bg: #06101F;
  --surface: #0B1830;
  --ink: #E6F0FA;
  --muted: #93A6BF;
  --line: #1C3152;
  --tint: #12284A;
  --tint-2: #0C1C36;
  --frost: #0C1C36;
  --brand-ink: #7DD3FC;
  --brand-deep: #2563EB;
  --ok: #4ADE80;
  --bad: #F87171;
  --hero: radial-gradient(70% 55% at 88% 0%, rgba(125, 211, 252, 0.18), transparent 62%),
          radial-gradient(55% 45% at 0% 100%, rgba(255, 255, 255, 0.05), transparent 60%),
          linear-gradient(150deg, #0B2A55 0%, #132E6B 52%, #241F5E 100%);
  color-scheme: dark;
}
[data-theme="dark"] ::selection { background: #1E4A80; color: #fff; }
:where([data-theme="dark"]) a { color: #93C5FD; }
[data-theme="dark"] .brand, [data-theme="dark"] .fgo, [data-theme="dark"] .try button { color: #93C5FD; }
[data-theme="dark"] .brand-word { color: #E0F2FE; }
[data-theme="dark"] .foot .brand-word { color: #fff; }
[data-theme="dark"] .hdr-nav a { color: var(--ink); }
[data-theme="dark"] .hdr-nav a:hover, [data-theme="dark"] .hdr-nav a[aria-current="page"] { color: var(--brand-ink); }

/* cards and boxes sit a step above the night sky */
[data-theme="dark"] .quick, [data-theme="dark"] .card, [data-theme="dark"] .fcard, [data-theme="dark"] .tool,
[data-theme="dark"] .steps li, [data-theme="dark"] .box, [data-theme="dark"] .how li, [data-theme="dark"] .sheet,
[data-theme="dark"] .menu, [data-theme="dark"] .card-qc, [data-theme="dark"] .btn-line,
[data-theme="dark"] .search input, [data-theme="dark"] .field-in, [data-theme="dark"] .floater { background-color: var(--surface); color: var(--ink); }
[data-theme="dark"] .card-title, [data-theme="dark"] .menu li a { color: var(--ink); }
[data-theme="dark"] .pill:hover, [data-theme="dark"] .card-view:hover, [data-theme="dark"] .menu li a:hover { background: #1A3663; }
[data-theme="dark"] .card-qc:hover { background: var(--tint); }
@media (hover: hover) {
  [data-theme="dark"] .card:hover { border-color: #2C4E80; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
}
[data-theme="dark"] .num { background: linear-gradient(180deg, #17325C 0%, #10264A 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px #24426E; color: #BAE6FD; }
[data-theme="dark"] .frost, [data-theme="dark"] .start { background: linear-gradient(160deg, #10264A 0%, #0A1A33 72%); border-color: #1C3152; }
[data-theme="dark"] .start > p { color: #B6C6DA; }
[data-theme="dark"] .frost .flake, [data-theme="dark"] .start .flake { color: #3B6EA8; }
[data-theme="dark"] .cat { background: linear-gradient(160deg, #12284A 0%, #0C1C36 100%); border-color: #1C3152; }
[data-theme="dark"] .cat:hover { border-color: #2C4E80; }
[data-theme="dark"] .cat[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #E0F2FE; }
[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* dark buttons become night-blue buttons */
[data-theme="dark"] .hero-search button, [data-theme="dark"] .buy, [data-theme="dark"] .btn-main, [data-theme="dark"] .coupon .btn { background: var(--brand-deep); color: #fff; }
[data-theme="dark"] .hero-search button:hover, [data-theme="dark"] .buy:hover, [data-theme="dark"] .btn-main:hover, [data-theme="dark"] .coupon .btn:hover,
[data-theme="dark"] .btn-brand:hover, [data-theme="dark"] .go:hover { background: #1D4ED8; }
[data-theme="dark"] .hero-search input { background: rgba(6, 16, 31, 0.6); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .hero-search input::placeholder { color: #A9BCD6; }

/* snow and ice on the hero, in night colors */
[data-theme="dark"] .snowcap path { fill: #C9DDF2; }
[data-theme="dark"] .snowcap { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4)); }
[data-theme="dark"] .icicle-edge stop:first-child { stop-color: #10306A; }
[data-theme="dark"] .icicle-edge stop:last-child { stop-color: #1F2463; }

/* bars, sheets and messages */
[data-theme="dark"] .pbar { background: rgba(11, 24, 48, 0.82); border-color: var(--line); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .search-bar { background: rgba(6, 16, 31, 0.9); }
[data-theme="dark"] .sh-x { background: rgba(11, 24, 48, 0.92); color: var(--ink); }
[data-theme="dark"] .msg.bad { background: #2A1215; }
[data-theme="dark"] .skip, [data-theme="dark"] .toast { background: #E6F0FA; color: #06101F; }
[data-theme="dark"] .sheet::backdrop, [data-theme="dark"] .menu::backdrop { background: rgba(0, 0, 0, 0.6); }
[data-theme="dark"] img { filter: brightness(0.94); }
[data-theme="dark"] .brand-ice, [data-theme="dark"] .foot img { filter: none; }
