/* Fonts: self-hosted, in here so the page waits on one stylesheet, not two. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/cormorant-garamond-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/cormorant-garamond-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/dm-sans-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/dm-sans-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FEFAEF; --bg2: #EEE5D6; --card: #FFFFFF; --ink: #3B2A2D; --ink2: #5B4549; --mute: #746566; --line: rgba(59,42,45,.08); --line2: rgba(59,42,45,.15);
  --acc: #A87A85; --acc-ink: #7E5560; --acc2: #D5B0B8; --acc-soft: #F2DCDF; --rose: #7E5560;
  --green: #456A3B; --green-soft: #E5EEDD; --warn: #A23B24; --warn-soft: #F9E1D8; --amber: #875D16; --amber-soft: #F6EBD2;
  --plum: #A87A85; --plum-soft: #F4E6E8;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif;
  --r: 22px; --tabh: 66px; --screen-h: 100dvh;
  --sh1: 0 1px 2px rgba(59,42,45,.05), 0 6px 18px -6px rgba(59,42,45,.12);
  --sh2: 0 2px 6px rgba(59,42,45,.06), 0 22px 44px -16px rgba(59,42,45,.30);
  --studio: radial-gradient(120% 85% at 50% 28%, #FFFFFF 0%, #FDF6F2 55%, #F2DCDF 100%);
  --grad: linear-gradient(135deg, var(--acc2), #B88A94 55%, #9C6F7A);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 38px; line-height: 1.02; }
h2 { font-size: 29px; line-height: 1.08; }
h3, .h3 { font-size: 21px; line-height: 1.15; }
p { margin: 0 0 10px; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); margin: 0 0 8px; }

/* ---------- frame: phone on desktop, plain page on phones ---------- */
#stage { min-height: 100dvh; }
#pitch, #island { display: none; }
#device { position: relative; }
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

@media (min-width: 920px) and (min-height: 700px) {
  :root { --screen-h: min(874px, calc(100dvh - 64px)); }
  html:has(#device), html:has(#device) body { height: 100%; overflow: hidden; }
  body { background:
    radial-gradient(40% 50% at 78% 22%, rgba(213,176,184,.40), transparent 70%),
    radial-gradient(45% 55% at 18% 82%, rgba(238,229,214,.9), transparent 70%),
    linear-gradient(160deg, #FEFAEF, #F2E9DC); }
  /* phone dead centre; the pitch sits in the left column and drops out when there is no room */
  #stage { height: 100dvh; display: grid; grid-template-columns: 1fr 402px 1fr; align-items: center; column-gap: clamp(40px, 6vw, 96px); padding: 32px; }
  #pitch { display: none; grid-column: 1; justify-self: end; max-width: 360px; }
  #device { grid-column: 2; }
  #pitch .logo { font-size: 44px; }
  #pitch .logo .mark { width: 38px; height: 38px; }
  #pitch h2 { font-size: 50px; line-height: .98; margin: 28px 0 16px; }
  #pitch h2 i { color: var(--acc); font-weight: 500; }
  #pitch p { color: var(--ink2); font-size: 16px; max-width: 30em; }
  #pitch ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; }
  #pitch li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink2); }
  #pitch li b { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--card); box-shadow: var(--sh1); flex: none; }
  #pitch li svg { width: 20px; height: 20px; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #pitch .open { margin-top: 8px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
  #device { width: 402px; height: var(--screen-h); flex: none; border-radius: 60px; overflow: hidden; transform: translateZ(0); background: var(--bg);
    box-shadow: 0 0 0 11px #17110F, 0 0 0 13px #4A3C35, 0 0 0 14px #17110F, 0 50px 90px -30px rgba(40,22,14,.55), 0 30px 60px -40px rgba(40,22,14,.5); }
  #island { display: block; position: absolute; z-index: 90; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #0d0a09; pointer-events: none; }
  #app { height: 100%; min-height: 0; max-width: none; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
  #app::-webkit-scrollbar { display: none; }
  #top { padding-top: 54px !important; }
  body.locked #app { overflow: hidden; }
  #tabs { max-width: none !important; bottom: 14px !important; }
}
@media (min-width: 1240px) and (min-height: 700px) { #pitch { display: block; } }

/* ---------- chrome ---------- */
#top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 18px 10px;
  background: var(--bg); }
#top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(to bottom, var(--bg), rgba(254,250,239,0)); pointer-events: none; }
.logo { font: 600 28px/1 var(--serif); text-decoration: none; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 7px; }
.logo i { color: var(--acc); font-style: italic; font-weight: 500; }
.logo .mark { width: 26px; height: 26px; flex: none; }
#sync { flex: 1; text-align: right; font-size: 12px; color: var(--mute); }
#me { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--sh1); text-decoration: none; color: var(--ink2); }
#me.on { background: var(--grad); color: #fff; font-weight: 700; font-size: 15px; }
#view { flex: 1; padding: 2px 18px calc(var(--tabh) + 40px + env(safe-area-inset-bottom)); }
#tabs { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 520px;
  display: flex; padding: 7px 6px; border-radius: 28px; background: rgba(255,255,255,.84); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), var(--sh2); }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 10.5px; font-weight: 500; color: var(--mute); padding: 5px 0 3px; border-radius: 20px; transition: color .15s, background .15s; }
#tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#tabs a.on { color: var(--acc-ink); background: var(--acc-soft); font-weight: 700; }
#tabs a.on svg { stroke-width: 2.1; }
body.bare #tabs, body.bare #top #me { display: none; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; min-height: 48px; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line2) inset; }
.btn.acc { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(168,122,133,.7); }
.btn.soft { background: var(--acc-soft); color: var(--acc-ink); }
.btn.small { padding: 7px 14px; min-height: 36px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.danger { background: transparent; color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 12px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink2); }
.input, select.input, textarea.input { width: 100%; border: 0; background: var(--card); border-radius: 14px; padding: 13px 15px; font-size: 16px; box-shadow: 0 0 0 1px var(--line2) inset; }
textarea.input { min-height: 120px; resize: vertical; font-size: 14px; }
.input:focus { outline: none; box-shadow: 0 0 0 2px var(--acc) inset; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--acc); flex: none; margin-top: 1px; }
.err { color: var(--warn); font-size: 14px; min-height: 1em; margin: 6px 0; }
.link { background: none; border: 0; padding: 0; color: var(--acc-ink); font-weight: 600; text-decoration: none; cursor: pointer; font-size: inherit; }

/* ---------- chips, tags ---------- */
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 8px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, 0 1px 2px rgba(59,42,45,.04); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chips.big .chip { padding: 11px 16px; font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--green-soft); color: var(--green); }
.tag.bad { background: var(--warn-soft); color: var(--warn); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.plain { background: rgba(59,42,45,.06); color: var(--ink2); }
.tag.glass { background: rgba(255,255,255,.88); color: var(--ink2); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--sh1); }
.card + .card { margin-top: 12px; }
.section { margin: 28px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.empty { text-align: center; padding: 38px 16px; color: var(--mute); }
.empty h3, .empty .h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- score ring ---------- */
.ring { position: relative; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--sans); letter-spacing: -.02em; }
.ring.big b { font-size: 28px; }

/* ---------- product pictures ---------- */
.shot { background: var(--studio); display: grid; grid-template: 100% / 100%; place-items: center; min-height: 0; overflow: hidden; position: relative; }
.shot img { max-width: 82%; max-height: 86%; object-fit: contain; }
.shot img.cut { filter: drop-shadow(0 16px 18px rgba(60,35,25,.20)) drop-shadow(0 3px 4px rgba(60,35,25,.12)); }
.shot img.raw { border-radius: 12px; max-width: 88%; max-height: 90%; }
/* a shop's feed photo: shown as the shop sends it, no rounding or shadow (Awin terms: without modification) */
.shot img.shop { max-width: 88%; max-height: 90%; }
.noimg { background: var(--studio); display: grid; place-items: center; color: var(--acc); font: 600 26px var(--serif); }
.noimg svg { height: 82%; max-width: 86%; filter: drop-shadow(0 12px 14px rgba(60,35,25,.14)); }

/* rows and tiles */
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; gap: 13px; align-items: center; background: var(--card); border: 0; border-radius: 18px; padding: 9px 12px 9px 9px; text-decoration: none; cursor: pointer; text-align: left; width: 100%; box-shadow: var(--sh1); }
.prow .thumb { width: 62px; height: 62px; border-radius: 14px; flex: none; }
.prow .thumb img { max-width: 86%; max-height: 86%; }
.prow .mid { flex: 1; min-width: 0; }
.prow .b { font-size: 11px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .07em; }
.prow .n { font-weight: 600; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .sub { font-size: 12px; color: var(--mute); margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--card); border-radius: 20px; padding: 8px 8px 12px; text-decoration: none; cursor: pointer; position: relative; box-shadow: var(--sh1); }
.tile .shot, .tile .noimg { width: 100%; height: 150px; border-radius: 15px; }
.tile .n { font-weight: 600; font-size: 13.5px; line-height: 1.25; margin: 9px 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .b { font-size: 10.5px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .07em; margin: 3px 4px 0; }
.tile .ring { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ---------- feed ---------- */
.feed-wrap { position: relative; height: min(calc(var(--screen-h) * .6), 590px); margin-top: 4px; }
.swipe { position: absolute; inset: 0; background: var(--card); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; touch-action: pan-y; user-select: none; box-shadow: var(--sh2); will-change: transform; }
.swipe.under { transform: scale(.94) translateY(16px); opacity: .6; pointer-events: none; }
.swipe .pic { flex: 1; min-height: 0; position: relative; }
.swipe .pic .shot { position: absolute; inset: 0; }
.swipe .pic .shot img { max-width: 68%; max-height: 78%; pointer-events: none; margin-top: 5%; }
.swipe .pic .ring { position: absolute; top: 18px; right: 16px; background: rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.10); z-index: 2; }
.swipe .pic .cat { position: absolute; top: 24px; left: 16px; z-index: 2; }
.gdots { position: absolute; top: 9px; left: 16px; right: 16px; display: flex; gap: 4px; z-index: 3; }
.gdots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(59,42,45,.13); }
.gdots i.on { background: rgba(59,42,45,.55); }
.swipe .info { padding: 14px 18px 18px; }
.swipe .info .b { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.swipe .info h3 { font-size: 25px; line-height: 1.06; margin: 3px 0 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swipe .why { font-size: 13px; color: var(--green); display: flex; flex-direction: column; gap: 2px; margin-top: 9px; }
.swipe .why .no { color: var(--warn); background: var(--warn-soft); border-left: 3px solid var(--warn); border-radius: 8px; padding: 4px 9px; font-weight: 600; }
.swipe .pic .shot { grid-template: 64% / 100%; align-content: start; }
.swipe .pic .shot img { max-height: 86%; margin-top: 4%; }
.swipe .sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; background: rgba(255,255,255,.95); border-radius: 22px; padding: 12px 14px 12px; box-shadow: 0 8px 24px -12px rgba(59,42,45,.35); }
.swipe .sheet .b { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.swipe .sheet :is(h2, h3) { font-size: 22px; line-height: 1.08; margin: 2px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swipe .c2row { display: flex; gap: 5px; flex-wrap: wrap; }
.swipe .c2 { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2); text-decoration: none; }
.swipe .c2.bad { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.swipe .c2.amber { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.swipe .c2.good { background: var(--green-soft); color: var(--green); font-weight: 600; }
.swipe .c2:has(.cwhy) { border-radius: 12px; padding: 5px 10px; }
.swipe .c2 .cwhy { display: block; font-weight: 500; }
.swipe .c2 u { color: var(--acc-ink); font-weight: 600; }
.swipe .sheet .doesln { font-size: 14px; color: var(--ink2); margin: -3px 0 8px; }
.swipe .sim { display: block; margin-top: 6px; font-size: 13px; color: var(--ink2); background: var(--bg2); border-radius: 8px; padding: 4px 9px; text-decoration: none; }
.swipe .sim u, .simbox u { color: var(--acc-ink); font-weight: 600; }
.simbox { display: block; border-radius: 16px; padding: 12px 14px; background: var(--bg2); color: var(--ink); font-size: 14px; text-decoration: none; }
.stamp { position: absolute; top: 34px; padding: 6px 14px; border: 3px solid; border-radius: 12px; font: 700 22px var(--sans); letter-spacing: .08em; opacity: 0; transform: rotate(-12deg); pointer-events: none; z-index: 4; background: rgba(255,255,255,.75); }
.stamp.yes { left: 22px; color: var(--green); border-color: var(--green); }
.stamp.no { right: 22px; color: var(--warn); border-color: var(--warn); transform: rotate(12deg); }
.feed-btns { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 18px; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; cursor: pointer; font-size: 26px; box-shadow: var(--sh2); transition: transform .12s; color: var(--ink); }
.round:active { transform: scale(.92); }
.round svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round.yes { background: var(--grad); color: #fff; }
.round.yes svg { fill: #fff; stroke: none; }
.round.no { color: var(--warn); }
.round.info { width: 48px; height: 48px; color: var(--plum); }
.round.info svg { width: 22px; height: 22px; stroke-width: 2; }

/* best-for */
.fits { display: flex; flex-wrap: wrap; gap: 6px; }
.fit { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--plum-soft); color: var(--plum); text-transform: capitalize; }
.fit .face { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.does { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--rose); }
.bestfor .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 0 0 9px; }
.bestfor .lbl + .chips { margin-bottom: 16px; }
.types5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.types5 div { text-align: center; font-size: 11px; font-weight: 600; text-transform: capitalize; color: var(--ink2); }
.types5 .face { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--bg); display: block; margin-bottom: 5px; }
/* Faded face, readable word: the label keeps text contrast. */
.types5 .off { color: var(--mute); }
.types5 .off svg { opacity: .35; filter: grayscale(.85); }
.types5 .on .face { background: var(--plum-soft); box-shadow: 0 0 0 2px var(--plum) inset; }

/* ---------- sheet ---------- */
#sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-back { position: absolute; inset: 0; background: rgba(59,42,45,.42); }
.sheet-card { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; max-height: calc(var(--screen-h) * .9); overflow: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); animation: up .26s cubic-bezier(.2,.8,.2,1); }
.sheet-card:focus { outline: none; }
@keyframes up { from { transform: translate(-50%, 60px); opacity: 0; } }
.sheet-x { position: sticky; top: 0; float: right; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--sh1); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
body.locked { overflow: hidden; }

/* ---------- product page ---------- */
.gallery { position: relative; margin: -6px -18px 0; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .shot { flex: 0 0 100%; height: 340px; scroll-snap-align: center; }
.gallery .shot img { max-width: 62%; max-height: 80%; }
.gallery .gdots { top: auto; bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); }
.gallery .gdots i { width: 7px; height: 7px; flex: none; border-radius: 50%; }
.gallery .back { position: absolute; top: 14px; left: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--sh1); cursor: pointer; display: grid; place-items: center; }
.gallery .back svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery .count { position: absolute; right: 16px; bottom: 12px; z-index: 3; }
.ptitle { margin-top: 18px; }
.ptitle .b { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--acc-ink); }
.ptitle h1 { font-size: 32px; line-height: 1.08; margin-top: 4px; }
.scorecard { display: flex; gap: 16px; align-items: center; }
.reasons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.reasons li { display: flex; gap: 8px; }
.reasons li::before { content: "✓"; color: var(--green); font-weight: 700; }
.reasons li.no::before { content: "!"; color: var(--warn); }
.warnbox { border-radius: 16px; padding: 12px 14px; background: var(--warn-soft); color: var(--warn); border-left: 4px solid var(--warn); font-size: 14px; }
.warnbox.amber { background: var(--amber-soft); color: var(--amber); border-left-color: var(--amber); }
.warnbox.low { background: rgba(59,42,45,.06); color: var(--ink); border-left-color: var(--mute); }
.warnbox.good { background: var(--acc-soft); color: var(--rose); border-left: 0; margin-bottom: 12px; }
.toggle { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 14px; margin: -4px 0 14px; box-shadow: var(--sh1); cursor: pointer; }
.toggle span { flex: 1; font-size: 14px; }
.toggle small { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 46px; height: 28px; border-radius: 999px; background: rgba(59,42,45,.15); position: relative; flex: none; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.toggle.on i { background: var(--acc); }
.toggle.on i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.prow.ghost-row { background: transparent; border: 1.5px dashed rgba(168,122,133,.45); box-shadow: none; }
.tag.svd { background: var(--acc-soft); color: var(--acc-ink); padding: 2px 8px; font-size: 11px; margin-left: 4px; }
.svdn { color: var(--acc-ink); font-weight: 600; }
.dots i.on.new { background: var(--acc2); opacity: .55; }
.warnbox + .warnbox { margin-top: 8px; }
.warnbox b { color: inherit; }
.inci { font-size: 13px; line-height: 1.75; color: var(--mute); }
.inci mark { background: var(--green-soft); color: var(--green); border-radius: 5px; padding: 1px 4px; font-weight: 500; }
.inci mark.bad { background: var(--warn-soft); color: var(--warn); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0; }
.buy { display: flex; gap: 8px; flex-wrap: wrap; }
.buybox { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line2) inset, 0 12px 26px -18px rgba(126,78,90,.55); display: grid; gap: 10px; }
.buyhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.buyhead b { font-size: 16px; }
.buyhead .tiny { color: var(--ink2); }
.btn.buy1 { background: #7E4E5A; color: #fff; box-shadow: 0 10px 22px -12px rgba(126,78,90,.8); }
.attr { font-size: 11px; color: var(--mute); margin-top: 22px; }
.phead { display: flex; gap: 14px; align-items: center; }
.phead .pimg { width: 104px; height: 124px; border-radius: 18px; flex: none; }
.phead .b { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }

/* ---------- compare ---------- */
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--mute); font-weight: 500; }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .bad { color: var(--warn); font-weight: 700; }
.cmphead { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmphead .tile { cursor: default; }

/* ---------- shelf ---------- */
.seg { display: flex; background: rgba(59,42,45,.07); border-radius: 999px; padding: 4px; margin: 8px 0 16px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px 0; font-weight: 600; font-size: 13.5px; color: var(--mute); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh1); }
.need { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.need:last-child { border-bottom: 0; }
.need .lbl { width: 108px; font-weight: 600; font-size: 14px; flex: none; }
.dots { display: flex; gap: 4px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(59,42,45,.1); }
.dots i.on { background: var(--grad); }
.need .who { flex: 1; min-width: 0; font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need .gap { color: var(--warn); font-weight: 600; }
.badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.badge.expired { background: var(--warn); color: #fff; }
.badge.soon { background: var(--amber-soft); color: var(--amber); }
.badge.ok { background: var(--green-soft); color: var(--green); }
.routine { background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh1); }
.routine + .routine { margin-top: 12px; }
.routine .top { display: flex; align-items: center; gap: 8px; }
.routine .top h3 { flex: 1; font-size: 23px; }
.days { display: flex; gap: 4px; margin: 8px 0 10px; }
.days span { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(59,42,45,.07); color: var(--mute); }
.days span.on { background: var(--ink); color: #fff; }
.days button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line2) inset; font-weight: 700; font-size: 12px; cursor: pointer; }
.days button.on { background: var(--ink); color: #fff; box-shadow: none; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; counter-increment: s; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--acc-soft); color: var(--rose); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.steps .nm { flex: 1; min-width: 0; }
.steps .nm small { display: block; color: var(--mute); font-size: 12px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line2) inset; cursor: pointer; font-size: 15px; display: grid; place-items: center; flex: none; }

/* ---------- quiz ---------- */
.quiz { padding-top: 6px; }
.progress { height: 5px; background: rgba(59,42,45,.08); border-radius: 5px; overflow: hidden; margin-bottom: 24px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 5px; transition: width .3s; }
.quiz h2 { font-size: 30px; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pics.three { grid-template-columns: repeat(3, 1fr); }
.pic-opt { display: flex; flex-direction: column; align-items: stretch; text-align: center; border: 0; background: var(--card); border-radius: 22px; padding: 8px 8px 12px; cursor: pointer; box-shadow: var(--sh1); transition: transform .12s, box-shadow .15s; position: relative; }
.pic-opt:active { transform: scale(.97); }
.pic-opt .face { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--bg); display: block; }
.pic-opt > span { font-size: 14px; font-weight: 600; line-height: 1.25; margin-top: 9px; padding: 0 4px; }
.pic-opt > span small { display: block; font-size: 11.5px; font-weight: 400; color: var(--mute); margin-top: 3px; text-transform: none; line-height: 1.3; }
.pic-opt > span b { font-size: 14.5px; }
.pic-opt.on { box-shadow: 0 0 0 2.5px var(--acc), var(--sh2); }
.pic-opt.on .face { background: var(--acc-soft); }
.pic-opt.on::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pic-opt.sm > span { font-size: 13px; }
.pics.two .pic-opt .face { aspect-ratio: 1.25; }
.qh { margin: 28px 0 4px; font-size: 22px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qh small { font: 500 12px var(--sans); color: var(--mute); }
.result { display: flex; gap: 16px; align-items: center; margin-top: 4px; background: var(--card); border-radius: 26px; padding: 12px; box-shadow: var(--sh2); }
.result .face { width: 116px; height: 116px; border-radius: 20px; background: var(--acc-soft); flex: none; }
.result h1 { font-size: 44px; }
.result-sub { color: var(--acc-ink); font-weight: 600; margin: 4px 0 0; }

/* ---------- welcome ---------- */
.hero { padding: 14px 0 6px; }
.hero h1 { font-size: 48px; line-height: .98; }
.hero h1 i { color: var(--acc); font-weight: 500; }
.hero-art { position: relative; height: 236px; margin: 8px -18px 0; }
.hero-art .shot { position: absolute; width: 140px; height: 180px; border-radius: 26px; box-shadow: var(--sh2); }
.hero-art .shot img { max-width: 76%; max-height: 80%; width: auto; height: auto; }
.hero-art .a { left: 18px; top: 34px; transform: rotate(-8deg); }
.hero-art .b { left: 50%; top: 6px; transform: translateX(-50%); z-index: 2; width: 160px; height: 208px; }
.hero-art .c { right: 18px; top: 34px; transform: rotate(8deg); }
.hero-art .ring { position: absolute; z-index: 3; top: 0; left: calc(50% + 50px); background: #fff; border-radius: 50%; box-shadow: var(--sh2); }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 20px; }
.feat div { background: var(--card); border-radius: 18px; padding: 13px 14px; font-size: 12.5px; color: var(--mute); box-shadow: var(--sh1); line-height: 1.35; }
.feat b { display: block; font-size: 14px; margin-bottom: 3px; color: var(--ink); }

/* ---------- scan ---------- */
.cam { position: relative; background: #000; border-radius: 26px; overflow: hidden; aspect-ratio: 3/4; max-height: calc(var(--screen-h) * .56); width: 100%; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.cam .frame { position: absolute; left: 12%; right: 12%; top: 38%; height: 22%; border: 3px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.38); }
.cam .hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }
.bigchoice { display: grid; gap: 12px; }
.bigchoice button { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--card); border: 0; border-radius: 22px; padding: 18px; cursor: pointer; box-shadow: var(--sh1); }
.bigchoice svg { width: 50px; height: 50px; padding: 11px; border-radius: 15px; background: var(--acc-soft); flex: none; fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bigchoice b { display: block; font-size: 16px; }
.bigchoice span { font-size: 13px; color: var(--mute); }
.ocrimg { max-width: 100%; max-height: 220px; border-radius: 14px; margin: 0 auto 10px; }
.bar { height: 6px; background: rgba(59,42,45,.08); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s; }

#toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + 34px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .22s; z-index: 60; max-width: 90%; text-align: center; box-shadow: var(--sh2); }
#toast.on { opacity: 1; transform: translateX(-50%); }
#toast button { background: none; border: 0; color: var(--acc2); font-weight: 700; margin-left: 8px; cursor: pointer; }
#toast.on button { pointer-events: auto; }
.legal { font-size: 14px; }
.legal h2 { margin: 20px 0 8px; font-size: 22px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* verified brands */
.vchk { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--green); color: #fff; font-size: 9px; font-weight: 700; vertical-align: 1px; margin-left: 3px; }
.tag.vtag { background: var(--green-soft); color: var(--green); }
.prow.vrep .vdoc { flex: 0 0 44px; height: 52px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); }

/* product page opened from the feed */
.pbar { position: sticky; bottom: calc(var(--tabh) + 26px); z-index: 20; margin: 18px auto 0; width: fit-content; display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sh2); }
.pbar .round { width: 52px; height: 52px; }
.pbar .round svg { width: 24px; height: 24px; }
.pbar .tiny { max-width: 110px; text-align: center; line-height: 1.25; }
/* a sideways drag reaches the page swipe; the photo strip keeps its own sideways scroll */
#view.pswipe > :not(.gallery) { touch-action: pan-y; }
/* Read by screen readers, not shown. */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- motion ---------- */
:root { --spring: cubic-bezier(.34,1.56,.64,1); --out: cubic-bezier(.2,.8,.2,1); }
/* press feedback on everything tappable */
.prow, .tile, a.card, .simbox, .bigchoice button, .chip, .icon-btn, .days button, #me, .gallery .back { transition: transform .16s var(--out), background .15s, color .15s, box-shadow .15s; }
.prow:active, .tile:active, a.card:active, .simbox:active, .bigchoice button:active { transform: scale(.98); }
.chip:active, .icon-btn:active, .days button:active, #me:active, .gallery .back:active { transform: scale(.93); }
.btn, .round { transition: transform .22s var(--spring), box-shadow .15s, background .15s; }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.round:active { transform: scale(.9); transition-duration: .08s; }
/* lists rise in once per page, not on every keystroke (#view.fresh is set by render) */
#view.fresh .plist > *, #view.fresh .grid2 > *, #view.fresh .card, #view.fresh .routine { animation: rise .42s var(--out) both; }
#view.fresh :is(.plist, .grid2) > :nth-child(2) { animation-delay: 35ms; }
#view.fresh :is(.plist, .grid2) > :nth-child(3) { animation-delay: 70ms; }
#view.fresh :is(.plist, .grid2) > :nth-child(4) { animation-delay: 105ms; }
#view.fresh :is(.plist, .grid2) > :nth-child(5) { animation-delay: 140ms; }
#view.fresh :is(.plist, .grid2) > :nth-child(6) { animation-delay: 175ms; }
#view.fresh :is(.plist, .grid2) > :nth-child(n+7) { animation-delay: 210ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
/* score ring draws itself; the number counts up (countUp in app.js) */
.ring .arc { animation: arc 1s var(--out) both; }
@keyframes arc { from { stroke-dashoffset: var(--c); } }
/* photos fade in when they arrive, instead of popping */
:is(.plist, .grid2, .gallery, .phead, .cmphead) .shot img { transition: opacity .35s ease; }
:is(.plist, .grid2, .gallery, .phead, .cmphead) .shot img:not(.in) { opacity: 0; }
/* skeleton while the catalogue loads */
.skel { display: grid; gap: 12px; padding-top: 6px; }
.sk { border-radius: 22px; background: linear-gradient(100deg, rgba(59,42,45,.06) 30%, rgba(255,255,255,.7) 50%, rgba(59,42,45,.06) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
.sk.chips-row { height: 36px; width: 80%; border-radius: 999px; }
.sk.big { height: min(calc(var(--screen-h) * .55), 520px); border-radius: 30px; }
.sk.line { height: 14px; width: 60%; border-radius: 7px; justify-self: center; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* swipe: colour wash while dragging, next card grows into place, new card slides in behind */
.swipe .tint { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; border-radius: inherit; }
.swipe.under.enter { animation: under-in .34s var(--out) both; }
@keyframes under-in { from { opacity: 0; transform: scale(.86) translateY(30px); } }
.round.yes.pop { animation: pop .42s var(--spring); }
.round.yes.pop::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(168,122,133,.55); animation: ring-out .6s ease-out; }
.round { position: relative; }
@keyframes pop { 40% { transform: scale(1.18); } }
@keyframes ring-out { to { box-shadow: 0 0 0 22px rgba(168,122,133,0); } }
#tabs a.bump svg { animation: pop .45s var(--spring); }
#tabs a.on svg { animation: tabpop .4s var(--spring); }
@keyframes tabpop { 40% { transform: translateY(-3px) scale(1.12); } }
/* sheet backdrop fades, toast springs */
.sheet-back { animation: fade .22s ease both; }
@keyframes fade { from { opacity: 0; } }
#toast { transition: opacity .2s, transform .4s var(--spring); }
/* quiz picks and the result card */
.pic-opt.on::after { animation: pop .38s var(--spring); }
.result { animation: rise .5s var(--out) both; }
/* cover: the three products float, a soft blush drifts behind them */
.hero-art::before { content: ""; position: absolute; inset: -10% 5% 0; background: radial-gradient(45% 50% at 30% 55%, rgba(213,176,184,.55), transparent 70%), radial-gradient(40% 45% at 72% 40%, rgba(238,214,190,.7), transparent 70%); filter: blur(8px); animation: drift 9s ease-in-out infinite alternate; pointer-events: none; }
.hero-art .shot { animation: bob 6s ease-in-out infinite; }
.hero-art .b { animation-delay: -2s; }
.hero-art .c { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -7px; } }
@keyframes drift { to { transform: translate(14px, -10px) scale(1.06); } }
/* page change: fade + small rise; the bars stay put */
#top { view-transition-name: top; }
#tabs { view-transition-name: tabs; }
::view-transition-old(root) { animation: fade-out .14s ease-in both; }
::view-transition-new(root) { animation: rise .3s var(--out) both; }
@keyframes fade-out { to { opacity: 0; } }

/* saved count on the tab bar */
#tabs a { position: relative; }
#tabs .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc-ink); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
#tabs a.bump .count { animation: pop .45s var(--spring); }
/* top bar edge once scrolled */
#top { transition: box-shadow .25s; }
#top::after { transition: opacity .25s; }
#top.lift { box-shadow: 0 1px 0 var(--line), 0 10px 22px -16px rgba(59,42,45,.28); }
#top.lift::after { opacity: 0; }
/* scanner: a light sweeps the frame */
.cam .frame { overflow: hidden; }
.cam .frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #F2DCDF, transparent); box-shadow: 0 0 14px 2px rgba(242,220,223,.8); animation: scanline 1.7s ease-in-out infinite alternate; }
@keyframes scanline { to { top: 88%; } }
/* quiz result: two sparks twinkle by the face */
.result { position: relative; }
.result::before, .result::after { content: "✦"; position: absolute; color: var(--acc); pointer-events: none; animation: twinkle 1.8s ease-in-out 3 both; }
.result::before { top: 4px; left: 116px; font-size: 20px; }
.result::after { bottom: 8px; left: 6px; font-size: 13px; animation-delay: .5s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
/* mouse: cards lift on hover */
@media (hover: hover) {
  :is(.prow, .tile, a.card, .bigchoice button):hover:not(:active) { box-shadow: var(--sh2); transform: translateY(-1px); }
  .round:hover:not(:active) { transform: translateY(-2px); }
}

/* mascot: the drop. Blink + glance every 7s, scan while waiting, one hop when done. */
.drop { display: block; flex: none; overflow: visible; }
.empty .drop { margin: 0 auto 10px; }
.drop-wrap { display: flex; justify-content: center; }
.drop-wrap.left { justify-content: flex-start; margin-bottom: 6px; }
.drop-line { display: flex; align-items: center; gap: 8px; }
.warnbox .drop { display: inline-block; vertical-align: -7px; }
.drop .eyes { transform-box: fill-box; transform-origin: center; animation: drop-idle 7s ease-in-out infinite; }
.drop.look .eyes { animation: drop-look 2.4s ease-in-out infinite; }
.drop.look { animation: drop-bob 2.4s ease-in-out infinite; }
.drop.happy { animation: drop-hop .6s ease-out .2s 1 both; }
@keyframes drop-idle { 0%, 40%, 100% { transform: none; } 42% { transform: scaleY(.1); } 44% { transform: none; } 70%, 78% { transform: translateX(-2.5px); } 82%, 90% { transform: translateX(2.5px); } 94% { transform: none; } }
@keyframes drop-look { 0%, 100% { transform: translateX(-2.5px); } 45%, 55% { transform: translateX(2.5px); } }
@keyframes drop-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes drop-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-7px); } 70% { transform: translateY(1px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { transition: none !important; animation: none !important; } }
a.chip { text-decoration: none; }

/* skin guides */
.tg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tg .pic-opt { position: relative; padding: 5px 5px 8px; border-radius: 18px; text-decoration: none; color: inherit; }
.tg .pic-opt span { font-size: 11.5px; font-weight: 600; line-height: 1.2; margin-top: 5px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; text-align: center; }
.tg .pic-opt.on { box-shadow: 0 0 0 2px var(--acc) inset, var(--sh1); }
.tg .pic-opt.on::after, .tg .pic-opt.on::before { display: none; }
.yours { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 700; background: var(--acc); color: #fff; border-radius: 999px; padding: 2px 6px; z-index: 1; }
.hero { display: flex; gap: 14px; align-items: center; }
.hero .face { width: 104px; height: 104px; border-radius: 22px; background: var(--card); box-shadow: var(--sh1); flex: none; overflow: hidden; }
.hero .face svg { width: 100%; height: 100%; display: block; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 18px; padding: 12px 14px 12px 12px; box-shadow: var(--sh1); }
.steps li::before { display: none; }
.steps i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-ink); display: grid; place-items: center; }
.steps i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps i::after { content: counter(st); position: absolute; top: -4px; left: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); color: #fff; font: 700 10.5px/18px system-ui; text-align: center; font-style: normal; }
.steps b, .focus b { display: block; font-size: 14.5px; }
.steps span, .focus span { display: block; font-size: 13px; color: var(--ink2); margin-top: 2px; line-height: 1.35; }
.focus { margin-top: 14px; border-radius: 18px; padding: 12px 14px; background: #e9f3ea; }
.focus.bad { background: #fbe9e7; }

/* ---------- touch ---------- */
/* no double-tap zoom on controls, e.g. two fast taps on Save */
button, a, label, input, select, textarea, .chip, .pic-opt { touch-action: manipulation; }
/* no "save image" menu when a finger rests on a card photo */
.swipe img, .tile img, .prow img { -webkit-touch-callout: none; -webkit-user-drag: none; }
/* scrolling a sheet does not scroll the page behind it */
.sheet-card { overscroll-behavior: contain; }
.sheet-back { touch-action: none; }
/* the tab bar hides while typing, so it does not sit on top of the keyboard */
@media (pointer: coarse) { body:has(input:focus, textarea:focus) #tabs { display: none; } }
