/* Sort Me Out — graphite & dark orange, classic type, app-like */
:root {
  --graphite: #16181b;
  --graphite-900: #1d2024;
  --graphite-800: #26292e;
  --graphite-700: #353a40;
  --graphite-600: #4a5058;
  --graphite-300: #a3a9b0;
  --graphite-200: #d5d8dc;
  --graphite-100: #eceef0;
  --graphite-50: #f3f4f5;
  --paper: #f6f5f3;
  --card: #ffffff;
  --ink: #16181b;
  --muted: #565c63;
  --soft-on-dark: #c9cdd2;
  --line: #e7e7ea;
  --ember: #ea6a1f;
  --accent: #c2410c;
  --accent-press: #9a3412;
  --peach: #fde8da;
  --peach-soft: #fff6f0;
  --good: #166534;
  --good-bg: #e7f5ec;
  --bad: #7f1d1d;
  --bad-bg: #fde2e2;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-xs: 0 1px 2px rgba(22, 24, 27, 0.06);
  --shadow-sm: 0 1px 2px rgba(22, 24, 27, 0.05), 0 6px 16px rgba(22, 24, 27, 0.05);
  --shadow: 0 2px 4px rgba(22, 24, 27, 0.04), 0 18px 40px rgba(22, 24, 27, 0.1);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --appbar-h: 64px;
  --tabbar-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--paper); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 0.5rem; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-top: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0.3rem 0 0.9rem; text-wrap: pretty; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--graphite); color: white; padding: 0.5rem 0.8rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ember) 60%, white); outline-offset: 2px; }
main:focus, h1:focus, [tabindex="-1"]:focus { outline: none; }

/* Full-bleed: a section inside .shell runs edge to edge */
.bleed { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }

/* Pre-production banner (only rendered when Branding:EnvironmentLabel is set) */
.env-banner {
  position: relative; z-index: 41; text-align: center; font-size: 0.85rem; font-weight: 600; padding: 0.35rem 1rem;
  color: var(--graphite);
  background: repeating-linear-gradient(-45deg, #ea6a1f 0 14px, #f08a4b 14px 28px);
}

/* ---------------- Brand ---------------- */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--paper); text-decoration: none; }
.brand:hover { color: white; }
.mark { width: 2.1rem; height: 2.1rem; flex: none; overflow: visible; transition: transform 0.45s var(--spring); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.42rem; letter-spacing: -0.02em; line-height: 1; text-transform: lowercase; white-space: nowrap; }
.wordmark em { font-style: italic; color: var(--ember); padding-inline: 0.04em; }

/* ---------------- Landing page shell (Razor) ---------------- */
.shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.5rem; padding: 0.85rem 0; position: sticky; top: 0; z-index: 30;
  background: rgba(22, 24, 27, 0.86); color: var(--paper);
  box-shadow: 0 0 0 100vmax rgba(22, 24, 27, 0.86); clip-path: inset(0 -100vmax);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.top nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; align-items: center; font-size: 0.98rem; }
.top nav a { color: var(--soft-on-dark); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: white; }
.top nav form { margin: 0; }
.top .button { color: white; }
.top .secondary, .top button.secondary { color: var(--paper); border-color: var(--graphite-600); background: transparent; }
.top .secondary:hover, .top button.secondary:hover { background: var(--graphite-800); color: white; }
main { padding-bottom: 4rem; min-height: 60vh; }
.foot {
  color: var(--graphite-300); padding: 3.5rem 0 2.5rem; background: var(--graphite);
  box-shadow: 0 0 0 100vmax var(--graphite); clip-path: inset(0 -100vmax);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; font-size: 0.95rem;
}
.foot .brand { margin-bottom: 0.6rem; }
.foot h3 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--paper); margin: 0 0 0.8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot a { color: var(--soft-on-dark); text-decoration: none; }
.foot a:hover { color: white; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--graphite-700); padding-top: 1.4rem; margin: 0; font-size: 0.88rem; }

/* ---------------- App shell (React) ---------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.appbar {
  position: sticky; top: 0; z-index: 40; color: var(--paper);
  background: rgba(22, 24, 27, 0.86);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top, 0px);
}
.appbar-inner { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; height: var(--appbar-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.appnav { display: flex; align-items: center; gap: 0.4rem; }
.navlink { color: var(--soft-on-dark); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.5rem 0.85rem; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease; }
.navlink:hover { color: white; background: rgba(255, 255, 255, 0.07); }
.navlink.active { color: white; background: rgba(255, 255, 255, 0.1); }
.avatar-link { text-decoration: none; display: inline-flex; border-radius: 50%; margin-left: 0.35rem; box-shadow: 0 0 0 2px transparent; transition: box-shadow 0.2s ease; }
.avatar-link:hover, .avatar-link.active { box-shadow: 0 0 0 2px var(--ember); }
.appbar .avatar { background: var(--accent); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
.page { flex: 1; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 0.5rem 0 5rem; animation: page-in 0.4s var(--ease) both; }
.app-foot { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; color: var(--muted); font-size: 0.9rem; }
.app-foot a { color: var(--muted); }
.app-foot-links { display: flex; gap: 1.2rem; }
.offline-pill { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); top: calc(var(--appbar-h) + 0.6rem + env(safe-area-inset-top, 0px)); width: max-content; max-width: calc(100% - 2rem); display: flex; gap: 0.5rem; align-items: center; background: var(--graphite); color: var(--paper); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.9rem; box-shadow: var(--shadow); margin: 0; }

/* Bottom tab bar: phones only, signed in */
.tabbar { display: none; }

/* ---------------- Buttons ---------------- */
.button, button, .secondary, .danger {
  appearance: none; border: 1.5px solid transparent; background: var(--accent); color: white;
  border-radius: 999px; min-height: 46px; padding: 0.6rem 1.25rem;
  font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button:hover, button:hover { background: var(--accent-press); color: white; box-shadow: 0 8px 20px rgba(194, 65, 12, 0.22); }
.button:active, button:active { transform: scale(0.97); box-shadow: none; }
button:disabled, button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.button.large { min-height: 54px; padding: 0.9rem 1.6rem; font-size: 1.08rem; }
.button.small, button.small { min-height: 38px; padding: 0.35rem 0.95rem; font-size: 0.92rem; }
.block { width: 100%; }
.secondary, button.secondary, a.secondary { background: var(--card); color: var(--ink); border-color: var(--graphite-200); box-shadow: var(--shadow-xs); }
.secondary:hover, button.secondary:hover, a.button.secondary:hover { background: white; color: var(--ink); border-color: var(--graphite-300); box-shadow: var(--shadow-sm); }
.danger, button.danger { background: #8f1d1d; }
.danger:hover, button.danger:hover { background: #6d1515; box-shadow: none; }
a.button { color: white; }
a.button.secondary { color: var(--ink); }
.button.light, a.button.light { background: rgba(255, 255, 255, 0.95); color: var(--graphite); }
.button.light:hover { background: white; color: var(--graphite); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.icon-only { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; text-decoration: none; transition: background 0.2s ease, transform 0.2s var(--ease); }
.icon-only.light { background: rgba(255, 255, 255, 0.16); color: white; }
.icon-only.light:hover { background: rgba(255, 255, 255, 0.28); color: white; }
.icon-only:active { transform: scale(0.94); }
.icon-button.is-done { color: var(--good); border-color: #b9dfc6; }
.on-dark .secondary, .on-dark a.button.secondary { color: var(--paper); border-color: rgba(255, 255, 255, 0.22); background: transparent; box-shadow: none; }
.on-dark .secondary:hover, .on-dark a.button.secondary:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.button .arrow { transition: transform 0.25s var(--ease); }
.button:hover .arrow { transform: translateX(3px); }

/* Floating add button (phones) */
.fab { display: none; }

/* ---------------- Forms ---------------- */
.stack-form, .stack { display: grid; gap: 1rem; }
.narrow { max-width: 32rem; }
.narrow-page { max-width: 40rem; margin-inline: auto; }
label { display: block; font-weight: 600; font-size: 0.96rem; }
label > input, label > textarea, label > select { display: block; margin-top: 0.4rem; }
.optional { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--graphite-50);
  border: 1.5px solid transparent; border-radius: 12px; padding: 0.75rem 0.95rem; min-height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #8b9097; }
input:hover, textarea:hover, select:hover { border-color: var(--graphite-200); }
input:focus, textarea:focus, select:focus { background: white; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.14); outline: none; }
input[readonly] { background: var(--graphite-50); color: var(--muted); }
textarea { min-height: 5.5rem; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
.check input { width: 1.2rem; min-height: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--accent); box-shadow: none; flex: none; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.8rem; min-width: 0; }
fieldset.card { padding: 1.25rem; }
legend { padding: 0; margin-bottom: 0.7rem; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; gap: 0.45rem; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

/* Segmented control */
.segmented-field legend { font-family: var(--sans); font-size: 0.96rem; margin-bottom: 0.35rem; }
.segmented { display: flex; background: var(--graphite-50); border-radius: 14px; padding: 4px; gap: 4px; }
.segmented label { flex: 1; display: block; font-weight: 600; font-size: 0.95rem; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.segmented span { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 0.4rem 0.6rem; border-radius: 11px; color: var(--muted); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; line-height: 1.2; }
.segmented input:checked + span { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--ember) 60%, white); }

/* Switch */
.switch-row { display: flex; align-items: center; gap: 1rem; cursor: pointer; padding: 0.9rem 0; font-weight: 400; position: relative; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-text { flex: 1; display: grid; gap: 0.15rem; }
.switch-label { font-weight: 600; }
.switch-text .hint { font-size: 0.9rem; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.switch { flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--graphite-200); position: relative; transition: background 0.25s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--spring); }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 3px solid color-mix(in srgb, var(--ember) 60%, white); outline-offset: 2px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip, button.chip { min-height: 36px; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--card); border: 1.5px solid var(--graphite-200); color: var(--ink); font: 600 0.9rem/1 var(--sans); box-shadow: none; }
.chip:hover, button.chip:hover { background: var(--peach-soft); border-color: var(--ember); color: var(--accent-press); box-shadow: none; }
.chip.static { min-height: 0; padding: 0.2rem 0.7rem; background: var(--graphite-50); border-color: transparent; color: var(--graphite-600); font-size: 0.85rem; display: inline-flex; }
.chip-check { display: inline-flex; font-weight: 600; font-size: 0.92rem; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.chip-check span { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--graphite-200); cursor: pointer; transition: all 0.2s ease; }
.chip-check input:checked + span { background: var(--peach); border-color: var(--ember); color: var(--accent-press); }
.chip-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--ember) 60%, white); }

/* ---------------- Cards and sections ---------------- */
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; }
.section { margin-top: 1.8rem; }
.section-title { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 2rem 0 0.8rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0; }
.row-actions.center { justify-content: center; }
.hint { color: var(--muted); font-size: 0.93rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.danger-zone { margin-top: 2rem; border-color: #f1c4c4; }
.danger-zone h2 { color: var(--bad); }

/* Page head */
.page-head { margin: 1.6rem 0 1.4rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-head .lead { margin: 0.4rem 0 0; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head-text { min-width: 0; flex: 1 1 18rem; }
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.8rem; padding: 0.25rem 0.6rem 0.25rem 0.2rem; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
.back:hover { background: var(--graphite-100); color: var(--ink); }
.back.on-cover { color: rgba(255, 255, 255, 0.85); padding-left: 0; }
.back.on-cover:hover { background: transparent; color: white; }

/* Flash messages */
.flash { display: flex; gap: 0.6rem; align-items: flex-start; border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin: 0 0 1rem; font-weight: 600; animation: flash-in 0.45s var(--spring) both; }
.flash svg { flex: none; margin-top: 0.1rem; }
.flash.good { background: var(--good-bg); color: var(--good); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }
.flash.info { background: var(--graphite); color: var(--graphite-100); font-weight: 400; }
.flash.info a { color: #f6a56f; }

/* Empty states */
.empty { text-align: center; padding: 3rem 1rem; max-width: 34rem; margin: 0 auto; }
.empty-art { width: 84px; height: 84px; margin: 0 auto 1rem; animation: bob 4s ease-in-out infinite; }
.empty h1, .empty h2 { margin-top: 0; }
.empty p { color: var(--muted); }

/* Loading skeletons */
.skeleton { display: grid; gap: 1rem; margin-top: 1.5rem; }
.skeleton-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.skeleton i { display: block; border-radius: var(--radius); background: linear-gradient(90deg, var(--graphite-100) 0%, #f7f7f8 40%, var(--graphite-100) 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk-card { height: 112px; }
.skeleton-cards .sk-card { height: 220px; }
.sk-hero { height: 260px; }
.sk-line { height: 22px; border-radius: 8px !important; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
.sk-block { height: 160px; }

/* Avatars */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; color: white; flex: none; letter-spacing: 0.02em; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.8rem; }
.avatar-md { width: 44px; height: 44px; font-size: 0.95rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; font-family: var(--serif); }
.tone-0.avatar { background: var(--accent); }
.tone-1.avatar { background: var(--graphite-700); }
.tone-2.avatar { background: var(--accent-press); }
.tone-3.avatar { background: #5b4636; }
.tone-4.avatar { background: #3f5160; }

/* ---------------- Lists overview ---------------- */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.list-card {
  position: relative; display: flex; flex-direction: column; color: inherit; text-decoration: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.list-card:active { transform: scale(0.98); }
.list-cover { position: relative; height: 112px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.92); overflow: hidden; }
.list-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 74%, rgba(255, 255, 255, 0.16) 74%, rgba(255, 255, 255, 0.16) calc(74% + 12px), transparent calc(74% + 12px)); }
.list-initial { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 3.4rem; line-height: 1; transition: transform 0.45s var(--spring); }
.list-card:hover .list-initial { transform: scale(1.08) rotate(-4deg); }
.list-body { display: grid; gap: 0.2rem; padding: 0.95rem 2.6rem 1.1rem 1.1rem; }
.list-body strong { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; line-height: 1.2; }
.list-meta { color: var(--muted); font-size: 0.93rem; display: grid; gap: 0.15rem; }
.list-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-go { position: absolute; right: 0.9rem; bottom: 1.15rem; color: var(--graphite-300); transition: transform 0.25s var(--ease), color 0.25s ease; }
.list-card:hover .list-go { transform: translateX(3px); color: var(--accent); }
.list-owner { position: absolute; top: 0.75rem; right: 0.75rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8); border-radius: 50%; }
.list-card-new { border: 2px dashed var(--graphite-200); box-shadow: none; background: transparent; }
.list-card-new .list-cover { color: var(--accent); background: var(--peach-soft); }
.list-card-new .list-cover::after { display: none; }
/* Cover colours, all within the palette */
.cover-0 { --cover: linear-gradient(135deg, #c2410c, #9a3412); }
.cover-1 { --cover: linear-gradient(135deg, #26292e, #16181b); }
.cover-2 { --cover: linear-gradient(135deg, #ea6a1f, #c2410c); }
.cover-3 { --cover: linear-gradient(135deg, #4a5058, #26292e); }
.cover-4 { --cover: linear-gradient(135deg, #9a3412, #5b2410); }
.cover-5 { --cover: linear-gradient(135deg, #353a40, #9a3412); }
.list-card .list-cover, .list-hero { background: var(--cover); }

/* ---------------- One list ---------------- */
.list-hero { color: white; border-radius: 28px; padding: clamp(1.3rem, 4vw, 2.4rem); margin: 1.2rem 0 1.2rem; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.list-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 84%, rgba(255, 255, 255, 0.1) 84%, rgba(255, 255, 255, 0.1) calc(84% + 16px), transparent calc(84% + 16px)), radial-gradient(500px 260px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 70%); }
.list-hero > * { position: relative; z-index: 1; }
.list-hero .eyebrow { color: rgba(255, 255, 255, 0.78); }
.list-hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.list-hero .lead { color: rgba(255, 255, 255, 0.86); margin: 0.6rem 0 0; max-width: 40rem; white-space: pre-wrap; }
.list-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.list-hero-meta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 1rem 0 0; color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.hero-actions { display: flex; gap: 0.5rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 999px; padding: 0.2rem 0.75rem; background: var(--graphite-100); color: var(--graphite-600); font-size: 0.85rem; font-weight: 600; margin: 0; }
.pill.on-cover { background: rgba(255, 255, 255, 0.16); color: white; }
.pill.open { background: var(--peach); color: var(--accent-press); }
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.2rem; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.item-card {
  display: flex; flex-direction: column; color: inherit; text-decoration: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.item-card:active { transform: scale(0.98); }
.item-card.is-top { border-color: color-mix(in srgb, var(--ember) 45%, var(--line)); }
.thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--peach); color: var(--accent-press); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.item-card:hover .thumb img { transform: scale(1.05); }
.thumb-letter { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 3rem; }
.tone-0.thumb, .tone-0.gallery-empty { background: var(--peach); color: var(--accent-press); }
.tone-1.thumb, .tone-1.gallery-empty { background: #ecebe8; color: var(--graphite-700); }
.tone-2.thumb, .tone-2.gallery-empty { background: #f8d9c4; color: var(--accent-press); }
.tone-3.thumb, .tone-3.gallery-empty { background: #e3e5e8; color: var(--graphite-600); }
.tone-4.thumb, .tone-4.gallery-empty { background: #fbe3d3; color: #7c2d12; }
.rank-badge { position: absolute; top: 0.6rem; left: 0.6rem; min-width: 28px; height: 28px; padding: 0 0.4rem; border-radius: 999px; display: grid; place-items: center; background: rgba(22, 24, 27, 0.78); color: white; font-weight: 700; font-size: 0.85rem; backdrop-filter: blur(6px); }
.love-badge { position: absolute; top: 0.6rem; right: 0.6rem; display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; padding: 0.25rem 0.6rem; background: var(--accent); color: white; font-weight: 700; font-size: 0.75rem; box-shadow: 0 4px 12px rgba(154, 52, 18, 0.35); }
.love-badge svg { fill: currentColor; }
.item-card-body { display: grid; gap: 0.35rem; padding: 0.9rem 1rem 1rem; }
.item-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; color: var(--muted); font-size: 0.92rem; }
.price { font-weight: 700; color: var(--ink); }
.expired { color: var(--accent); }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.82rem; font-weight: 700; }
.status.open { background: var(--peach); color: var(--accent-press); }
.status.part { background: #fff1e6; color: var(--accent-press); }
.status.taken { background: var(--graphite-100); color: var(--graphite-600); }
.item-card.is-taken { background: var(--graphite-50); box-shadow: none; }
.item-card.is-taken .thumb { filter: grayscale(0.85); opacity: 0.7; }
.item-card.is-taken .item-title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* Reorder */
.ranker { margin-bottom: 1.2rem; }
.ranker-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.8rem; }
.ranker-head h2 { margin: 0; }
.ranker ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.ranker li { display: flex; gap: 0.8rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0.55rem 0.8rem; cursor: grab; transition: box-shadow 0.2s ease, background 0.2s ease; user-select: none; }
.ranker li:hover { box-shadow: var(--shadow-sm); background: white; }
.ranker li:focus-visible { background: white; }
.ranker li.dragging { opacity: 0.9; box-shadow: var(--shadow); background: white; cursor: grabbing; z-index: 2; position: relative; }
.rank { width: 1.6rem; text-align: center; font-weight: 700; color: var(--accent); }
.rank-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--peach); color: var(--accent-press); font-family: var(--serif); font-weight: 600; flex: none; }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grip { color: var(--graphite-300); flex: none; }

/* ---------------- One item ---------------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.detail-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--appbar-h) + 1rem); }
.gallery { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; background: var(--graphite-100); }
.gallery:has(img + img) img { flex-basis: 88%; }
.gallery-empty { aspect-ratio: 16 / 9; max-height: 240px; width: 100%; border-radius: var(--radius); display: grid; place-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0; }
.fact { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; font-weight: 600; font-size: 0.95rem; }
.price-fact { background: var(--graphite); color: white; border-color: var(--graphite); font-size: 1.05rem; }
.fact-hot { background: var(--peach); color: var(--accent-press); border-color: transparent; }
.fact-hot svg { fill: currentColor; }
.prose { white-space: pre-wrap; font-size: 1.05rem; }
.shop-links { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.6rem; }
.shop-link { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-xs); transition: box-shadow 0.2s ease, transform 0.2s var(--ease), border-color 0.2s ease; }
.shop-link:hover { box-shadow: var(--shadow-sm); border-color: var(--graphite-200); transform: translateY(-1px); color: var(--ink); }
.shop-favicon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--graphite); color: white; font-weight: 700; flex: none; }
.shop-text { flex: 1; display: grid; min-width: 0; }
.shop-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-text small { color: var(--muted); }
.shop-link > svg { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; color: var(--muted); }
.people-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.people-list li { display: flex; align-items: center; gap: 0.7rem; }
.person-text { flex: 1; display: grid; min-width: 0; }
.person-text small { color: var(--muted); }
.owner-note { background: var(--graphite); color: var(--graphite-100); border-color: var(--graphite); }
.owner-note h2 { color: white; }
.owner-note h2 svg { color: var(--ember); }
.owner-note p { color: var(--graphite-300); margin-bottom: 0; }
.claim-card { border-color: color-mix(in srgb, var(--ember) 35%, var(--line)); box-shadow: 0 10px 30px rgba(194, 65, 12, 0.08); }
.covered { display: flex; align-items: center; gap: 0.5rem; color: var(--good); font-weight: 600; }
.lock-note { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0; font-size: 0.88rem; }
.chat { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.7rem; }
.chat li { display: flex; gap: 0.6rem; align-items: flex-start; }
.bubble { background: var(--graphite-50); border-radius: 4px 16px 16px 16px; padding: 0.55rem 0.85rem; min-width: 0; }
.bubble small { color: var(--muted); }
.bubble p { margin: 0.2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 0.5rem; align-items: flex-end; }
.chat-form textarea { min-height: 50px; }

/* ---------------- Add / edit an idea ---------------- */
.item-from-link { background: linear-gradient(180deg, var(--peach-soft), var(--card)); border-color: #f6d3bd; }
.copy-field { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 0.6rem; }
.copy-field label { flex: 1 1 14rem; margin: 0; }
.copy-label { font-size: 0.9rem; }
.item-from-link .photo-preview { width: 96px; height: 96px; border-radius: 12px; object-fit: contain; background: white; border: 1px solid var(--line); }
.photo-row { grid-template-columns: 72px auto 1fr; align-items: center; display: grid; }
.photo-row img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.link-row { display: grid; grid-template-columns: 1fr 11rem; gap: 0.5rem; }
.add-link { justify-self: start; }
.photo-drop { display: block; position: relative; cursor: pointer; border: 2px dashed var(--graphite-200); border-radius: var(--radius); background: var(--card); padding: 1.4rem; text-align: center; transition: border-color 0.2s ease, background 0.2s ease; }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--ember); background: var(--peach-soft); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.photo-drop-text { display: grid; justify-items: center; gap: 0.2rem; color: var(--muted); font-weight: 400; }
.photo-drop-text strong { color: var(--ink); }
.photo-drop-text svg { color: var(--accent); }
.photo-previews { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.photo-previews img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; padding: 0.8rem 0 calc(0.8rem + var(--safe-bottom)); background: linear-gradient(180deg, transparent, var(--paper) 35%); }

/* Add from a shop */
.found-card { display: flex; gap: 1rem; align-items: center; }
.found-card img, .found-blank { width: 96px; height: 96px; border-radius: 14px; object-fit: contain; background: white; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: var(--accent); }
.found-card > div { display: grid; gap: 0.25rem; min-width: 0; }
.found-card strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.choice-list { display: grid; gap: 0.6rem; }
.choice, button.choice { display: grid; justify-items: start; gap: 0.15rem; text-align: left; width: 100%; min-height: 64px; padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-xs); white-space: normal; line-height: 1.3; }
.choice:hover, button.choice:hover { background: var(--peach-soft); color: var(--ink); border-color: var(--ember); box-shadow: var(--shadow-sm); }
.choice strong { font-family: var(--serif); font-size: 1.15rem; }
.choice small { color: var(--muted); font-weight: 400; }
.shop-button-card { background: var(--graphite); color: var(--graphite-100); border-color: var(--graphite); margin-top: 1rem; }
.shop-button-card h2 { color: white; }
.shop-button-card .hint { color: var(--graphite-300); }
.bookmarklet { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.4rem 0 0.6rem; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--ember); color: var(--graphite); font-weight: 700; text-decoration: none; cursor: grab; box-shadow: 0 0 0 4px rgba(234, 106, 31, 0.25); animation: nudge 2.8s ease-in-out infinite; }
.bookmarklet:hover { color: var(--graphite); background: #f08a4b; }

/* ---------------- Account and sign-in ---------------- */
.auth { max-width: 26rem; margin: clamp(1.5rem, 6vh, 4rem) auto 0; text-align: center; }
.auth .stack-form, .auth .flash, .auth .provider-buttons { text-align: left; }
.auth h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0.6rem 0 0.2rem; }
.auth .lead { margin-bottom: 1.6rem; }
.auth-mark { width: 64px; height: 64px; margin: 0 auto; animation: bob 4s ease-in-out infinite; }
.auth-foot { margin-top: 1.4rem; }
.provider-buttons { display: grid; gap: 0.6rem; }
.provider-buttons form { margin: 0; }
.divider { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.88rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.profile { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0 1rem; }
.profile h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.profile .lead { margin: 0.1rem 0 0; }
.sign-out { margin-top: 2rem; }

/* People and sharing */
.invite-code { font-family: var(--sans); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 2rem; margin: 0.4rem 0 1rem; color: var(--ink); text-align: center; background: var(--peach-soft); border: 2px dashed #f6c4a3; border-radius: var(--radius-sm); padding: 0.6rem; }
.code-input { font-family: var(--sans); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 1.5rem; text-align: center; min-height: 64px; }
.invite-ready { border-color: var(--ember); box-shadow: 0 16px 40px rgba(194, 65, 12, 0.14); animation: flash-in 0.5s var(--spring) both; }
.person-card h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.4rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; align-items: center; color: var(--muted); font-size: 0.93rem; }
.tag-picker { gap: 0.5rem; }
.tag-picker legend { font-family: var(--sans); font-size: 0.96rem; margin-bottom: 0.35rem; }

/* Plain text pages (privacy) */
.prose-page { max-width: 46rem; }
.prose-page h2 { margin-top: 1.8rem; }
.prose-page ul { padding-left: 1.2rem; }
.prose-page li { margin-bottom: 0.5rem; }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-3deg); } 86% { transform: rotate(3deg); } }

/* ---------------- Phones: an app, not a web page ---------------- */
@media (max-width: 760px) {
  :root { --appbar-h: 56px; font-size: 16px; }
  .shell { width: min(1180px, calc(100% - 2rem)); }
  .top { position: sticky; }
  .top nav a:not(.button) { display: none; }
  .appbar-inner, .page, .app-foot { width: calc(100% - 2rem); }
  .appnav .navlink, .appnav .button { display: none; }
  .signed-out .appnav .button, .signed-out .appnav .navlink { display: inline-flex; }
  .wordmark { font-size: 1.28rem; }
  .mark { width: 1.9rem; height: 1.9rem; }
  .desktop-only { display: none !important; }
  .signed-in .page { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 5rem); }
  .signed-in .app-foot { display: none; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
    background: rgba(22, 24, 27, 0.92); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 0.15rem; color: var(--graphite-300); text-decoration: none; font-size: 0.74rem; font-weight: 600; transition: color 0.2s ease; }
  .tabbar a svg { transition: transform 0.3s var(--spring); }
  .tabbar a.active { color: white; }
  .tabbar a.active svg { transform: translateY(-1px) scale(1.08); color: var(--ember); }
  .tabbar a:active svg { transform: scale(0.88); }
  .tab-new-button { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: white; margin-top: -22px; box-shadow: 0 8px 20px rgba(194, 65, 12, 0.45), 0 0 0 4px var(--graphite); transition: transform 0.3s var(--spring); }
  .tabbar a.tab-new.active svg { color: white; }
  .tab-new:active .tab-new-button { transform: scale(0.92); }

  .fab { display: grid; place-items: center; position: fixed; z-index: 35; right: 1rem; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 1rem); width: 58px; height: 58px; border-radius: 20px; background: var(--accent); color: white; box-shadow: 0 12px 28px rgba(194, 65, 12, 0.45); transition: transform 0.3s var(--spring); }
  .fab:active { transform: scale(0.92); }
  .toolbar .button:first-child { display: none; }

  .page-head { margin: 1rem 0 1rem; }
  .list-hero { margin: 0.6rem -0.25rem 1rem; border-radius: 24px; }
  .list-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .list-cover { height: 84px; }
  .list-initial { font-size: 2.4rem; }
  .list-body { padding: 0.75rem 0.85rem 0.9rem; }
  .list-body strong { font-size: 1.08rem; }
  .list-meta { font-size: 0.84rem; }
  .list-go, .list-desc { display: none; }
  .item-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .item-card-body { padding: 0.7rem 0.8rem 0.85rem; }
  .item-title { font-size: 1rem; }
  .item-meta { font-size: 0.84rem; }
  .love-badge { padding: 0.25rem 0.45rem; font-size: 0; gap: 0; }
  .love-badge svg { width: 14px; height: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .gallery { margin-inline: -1rem; border-radius: 0; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .split-fields, .link-row { grid-template-columns: 1fr; }
  .card { padding: 1.05rem; border-radius: 18px; }
  .sticky-save { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }
  .signed-out .sticky-save { bottom: 0; }
}
@media (max-width: 360px) {
  .list-grid, .item-grid { grid-template-columns: 1fr; }
}

/* ================= Landing page ================= */
.lp-hero {
  position: relative; overflow: hidden; background: var(--graphite); color: var(--paper);
  padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem);
}
.lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(234, 106, 31, 0.16), transparent 70%),
    radial-gradient(500px 300px at 10% 110%, rgba(234, 106, 31, 0.08), transparent 70%);
}
.lp-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-hero h1 { color: white; }
.lp-hero h1 em { font-style: italic; color: var(--ember); }
.lp-hero .lead { color: var(--soft-on-dark); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; }
.lp-kicker { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--soft-on-dark); font-size: 0.9rem; margin-bottom: 1.4rem; }
.lp-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(234, 106, 31, 0.6); animation: lp-pulse 2.4s infinite; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.4rem; }
.lp-assure { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--graphite-300); font-size: 0.95rem; }
.lp-assure li { display: inline-flex; align-items: center; gap: 0.45rem; }
.lp-assure svg { color: var(--ember); flex: none; }

/* Animated product preview */
.lp-stage { position: relative; min-height: 520px; }
.lp-stage::before {
  content: ""; position: absolute; inset: 8% 6% 4% 14%; border-radius: 40px; transform: rotate(4deg);
  background:
    linear-gradient(90deg, transparent 72%, var(--ember) 72%, var(--ember) calc(72% + 14px), transparent calc(72% + 14px)),
    linear-gradient(180deg, transparent 16%, var(--ember) 16%, var(--ember) calc(16% + 14px), transparent calc(16% + 14px)),
    var(--graphite-800);
}
.lp-window {
  position: relative; margin-left: auto; width: min(100%, 470px); background: var(--card); color: var(--ink);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: lp-float 9s ease-in-out infinite;
}
.lp-chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f3f3f4; border-bottom: 1px solid var(--line); }
.lp-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d7d9dc; }
.lp-chrome span { margin-left: 10px; font-size: 0.78rem; color: var(--muted); background: white; border-radius: 999px; padding: 3px 12px; }
.lp-list { padding: 18px 18px 20px; }
.lp-list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lp-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: white; background: linear-gradient(90deg, transparent 64%, var(--ember) 64%, var(--ember) 74%, transparent 74%), var(--graphite); }
.lp-list-head strong { font-family: var(--serif); font-size: 1.2rem; display: block; line-height: 1.2; }
.lp-list-head small { color: var(--muted); font-size: 0.82rem; }
.lp-progress { margin-left: auto; text-align: right; font-size: 0.78rem; color: var(--muted); }
.lp-bar { width: 90px; height: 6px; border-radius: 999px; background: var(--graphite-100); overflow: hidden; margin-top: 4px; }
.lp-bar i { display: block; height: 100%; width: 33%; background: var(--accent); border-radius: inherit; animation: lp-bar 12s var(--ease) infinite; }
.lp-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); margin-top: 8px; position: relative; background: white; }
.lp-row .ph { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.lp-row .txt { flex: 1; min-width: 0; }
.lp-row b { display: block; font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row small { color: var(--muted); font-size: 0.8rem; }
.lp-chip { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.lp-chip.taken { background: var(--graphite-100); color: var(--graphite-600); }
.lp-chip.planned { background: var(--peach); color: var(--accent-press); }
.lp-chip.cta { background: var(--accent); color: white; }
.lp-row.is-taken { background: #f4f4f5; border-color: transparent; }
.lp-row.is-taken b { color: var(--muted); text-decoration: line-through; }
.lp-swap { position: relative; display: grid; }
.lp-swap > * { grid-area: 1 / 1; justify-self: end; }
.lp-swap .before { animation: lp-out 12s infinite; }
.lp-swap .after { opacity: 0; animation: lp-in 12s infinite; }
.lp-row.live { animation: lp-highlight 12s infinite; }
.lp-cursor { position: absolute; width: 22px; height: 22px; right: 26px; top: 20px; pointer-events: none; animation: lp-cursor 12s var(--ease) infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.lp-toast {
  position: absolute; left: -6%; bottom: 7%; width: min(320px, 80%); background: var(--graphite-900); color: var(--paper);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.4; opacity: 0; animation: lp-toast 12s var(--ease) infinite;
}
.lp-toast svg { color: var(--ember); flex: none; margin-top: 2px; }
.lp-toast b { display: block; color: white; }
.lp-toast span { color: var(--graphite-300); }
.lp-owner {
  position: absolute; right: -2%; bottom: -3%; width: 230px; background: var(--card); color: var(--ink); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow-lg); font-size: 0.85rem; animation: lp-float 9s ease-in-out -4s infinite;
}
.lp-owner .label { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.lp-owner .line { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.lp-owner .line:first-of-type { border-top: none; }
.lp-owner em { font-style: normal; color: var(--muted); }

/* Occasion ticker */
.lp-ticker { background: var(--graphite-900); color: var(--graphite-300); padding-block: 1.1rem; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); }
.lp-ticker ul { display: flex; gap: 3rem; width: max-content; list-style: none; margin: 0; padding: 0; animation: lp-marquee 38s linear infinite; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.lp-ticker li { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.lp-ticker li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.lp-ticker:hover ul { animation-play-state: paused; }

/* Sections */
.lp-section { padding-block: clamp(4rem, 9vw, 7rem); }
.lp-section.alt { background: white; }
.lp-section.dark { background: var(--graphite); color: var(--paper); }
.lp-section.dark h2 { color: white; }
.lp-section.dark .lead { color: var(--soft-on-dark); }
.lp-head { max-width: 46rem; margin-bottom: 3rem; }
.lp-head.center { margin-inline: auto; text-align: center; }
.lp-head h2 { margin-top: 0; }

/* Two views */
.lp-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.lp-view { border-radius: 26px; padding: 1.8rem; position: relative; }
.lp-view.mine { background: var(--paper); border: 1px solid var(--line); }
.lp-view.theirs { background: var(--graphite); color: var(--paper); }
.lp-view h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; margin-bottom: 0.3rem; }
.lp-view > p { color: var(--muted); margin-bottom: 1.3rem; }
.lp-view.theirs > p { color: var(--graphite-300); }
.lp-view.theirs h3 { color: white; }
.lp-view .lp-row { margin-top: 10px; }
.lp-view.theirs .lp-row { background: var(--graphite-800); border-color: transparent; color: var(--paper); }
.lp-view.theirs .lp-row small { color: var(--graphite-300); }
.lp-view.theirs .lp-row.is-taken b { color: var(--graphite-300); }
.lp-view.theirs .lp-chip.taken { background: var(--graphite-700); color: var(--soft-on-dark); }
.lp-view.theirs .lp-chip.planned { background: transparent; color: var(--peach); border: 1px solid var(--ember); }
.lp-note { margin-top: 12px; background: var(--graphite-800); border-radius: 14px; padding: 12px 14px; font-size: 0.88rem; color: var(--soft-on-dark); display: flex; gap: 10px; }
.lp-note b { color: white; }

/* Features */
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.lp-feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.7rem; transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease; }
.lp-section.alt .lp-feature { background: var(--paper); }
.lp-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--graphite-200); }
.lp-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--peach); color: var(--accent-press); margin-bottom: 1.1rem; transition: transform 0.35s var(--ease); }
.lp-feature:hover .lp-icon { transform: rotate(-6deg) scale(1.06); }
.lp-feature h3 { font-size: 1.22rem; margin-bottom: 0.4rem; }
.lp-feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; counter-reset: lp; list-style: none; padding: 0; margin: 0; }
.lp-step { counter-increment: lp; background: var(--graphite-800); border-radius: 24px; padding: 1.8rem; display: grid; gap: 0.6rem; align-content: start; }
.lp-step::before { content: counter(lp, decimal-leading-zero); font-family: var(--serif); font-size: 1rem; color: var(--ember); letter-spacing: 0.1em; }
.lp-step h3 { color: white; margin: 0; }
.lp-step p { color: var(--graphite-300); margin: 0; }
.lp-mini { margin-top: 0.8rem; background: var(--graphite-900); border-radius: 16px; padding: 14px; font-size: 0.85rem; color: var(--soft-on-dark); border: 1px solid rgba(255,255,255,0.05); }
.lp-mini .field { display: flex; align-items: center; gap: 8px; background: white; color: var(--muted); border-radius: 10px; padding: 9px 12px; }
.lp-mini .field .caret { width: 2px; height: 16px; background: var(--accent); animation: lp-blink 1s steps(1) infinite; }
.lp-mini .typed { color: var(--ink); overflow: hidden; white-space: nowrap; max-width: 0; animation: lp-type 6s steps(28) infinite; }
.lp-share { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-share span { border-radius: 999px; padding: 6px 12px; background: var(--graphite-700); color: var(--soft-on-dark); font-weight: 600; font-size: 0.8rem; }
.lp-share span.on { background: var(--ember); color: var(--graphite); }

/* FAQ */
.lp-faq { max-width: 52rem; margin: 0 auto; display: grid; gap: 0.8rem; }
.lp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 1.4rem; transition: box-shadow 0.25s ease; }
.lp-faq details[open] { box-shadow: var(--shadow-sm); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--accent); transition: transform 0.3s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { color: var(--muted); margin: 0 0 1.2rem; }

/* Closing call to action */
.lp-cta {
  border-radius: 34px; padding: clamp(2.5rem, 6vw, 4.5rem); color: white; text-align: center;
  background:
    linear-gradient(90deg, transparent 84%, rgba(22,24,27,0.18) 84%, rgba(22,24,27,0.18) calc(84% + 18px), transparent calc(84% + 18px)),
    linear-gradient(135deg, var(--accent), var(--accent-press));
  box-shadow: 0 30px 60px rgba(154, 52, 18, 0.25);
}
.lp-cta h2 { color: white; margin-top: 0; font-size: clamp(2rem, 4vw, 3.1rem); }
.lp-cta p { color: #ffeadd; font-size: 1.15rem; max-width: 36rem; margin-inline: auto; }
.lp-cta .lp-actions { justify-content: center; }
.lp-cta .button { background: var(--graphite); }
.lp-cta .button:hover { background: black; box-shadow: none; }
.lp-cta .button.secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.55); }
.lp-cta .button.secondary:hover { background: rgba(255,255,255,0.12); }

/* Reveal on scroll (only when the script is running, so nothing hides without it) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* Animations */
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(234,106,31,0.55); } 70% { box-shadow: 0 0 0 10px rgba(234,106,31,0); } 100% { box-shadow: 0 0 0 0 rgba(234,106,31,0); } }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
@keyframes lp-blink { 50% { opacity: 0; } }
@keyframes lp-type { 0%, 8% { max-width: 0; } 55%, 85% { max-width: 16em; } 100% { max-width: 0; } }
@keyframes lp-cursor {
  0%, 8% { transform: translate(60px, 90px); opacity: 0; }
  14% { opacity: 1; }
  24% { transform: translate(0, 0); }
  27% { transform: translate(0, 0) scale(0.85); }
  30%, 70% { transform: translate(0, 0) scale(1); opacity: 1; }
  80%, 100% { transform: translate(40px, 60px); opacity: 0; }
}
@keyframes lp-out { 0%, 27% { opacity: 1; transform: none; } 31%, 88% { opacity: 0; transform: scale(0.9); } 94%, 100% { opacity: 1; transform: none; } }
@keyframes lp-in { 0%, 27% { opacity: 0; transform: scale(0.9); } 31%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(0.9); } }
@keyframes lp-highlight { 0%, 27% { border-color: var(--line); background: white; } 31%, 88% { border-color: var(--ember); background: var(--peach-soft); } 94%, 100% { border-color: var(--line); background: white; } }
@keyframes lp-bar { 0%, 27% { width: 33%; } 34%, 88% { width: 50%; } 96%, 100% { width: 33%; } }
@keyframes lp-toast { 0%, 32% { opacity: 0; transform: translateY(16px); } 38%, 82% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .lp-swap .before { opacity: 0; } .lp-swap .after { opacity: 1; }
  .lp-toast { opacity: 1; } .lp-cursor { display: none; }
  .lp-mini .typed { max-width: none; }
  .page, .flash { animation: none; }
}

@media (max-width: 920px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-stage { min-height: 0; padding-bottom: 6rem; }
  .lp-window { margin: 0 auto; }
  .lp-toast { left: 0; }
  .lp-owner { right: 0; }
}
@media (max-width: 760px) {
  .lp-owner { display: none; }
  .lp-toast { position: relative; left: auto; bottom: auto; margin: -1.5rem auto 0; width: 92%; }
  .lp-stage::before { inset: 4% 2% 10% 6%; }
}

