/* Strena — graphite & dark orange, classic type */
:root {
  --graphite: #16181b;
  --graphite-900: #1d2024;
  --graphite-800: #26292e;
  --graphite-700: #353a40;
  --graphite-600: #4a5058;
  --graphite-300: #a3a9b0;
  --graphite-200: #d5d8dc;
  --graphite-100: #eceef0;
  --paper: #f7f6f3;
  --card: #ffffff;
  --ink: #16181b;
  --muted: #565c63;
  --soft-on-dark: #c9cdd2;
  --line: #e4e5e8;
  --ember: #ea6a1f;
  --accent: #c2410c;
  --accent-press: #9a3412;
  --peach: #fde8da;
  --peach-soft: #fff6f0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 27, 0.06), 0 4px 12px rgba(22, 24, 27, 0.05);
  --shadow: 0 2px 4px rgba(22, 24, 27, 0.04), 0 18px 40px rgba(22, 24, 27, 0.09);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
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.4rem, 5.2vw, 4.25rem); letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-top: 2rem; }
h3 { font-size: 1.3rem; }
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: 20; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 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: 11; text-align: center; font-size: 0.9rem; font-weight: 600; padding: 0.45rem 1rem;
  color: var(--graphite);
  background: repeating-linear-gradient(-45deg, #ea6a1f 0 14px, #f08a4b 14px 28px);
}

/* ---------------- Shell ---------------- */
.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.9rem 0; position: sticky; top: 0; z-index: 10;
  background: rgba(22, 24, 27, 0.92); color: var(--paper);
  box-shadow: 0 0 0 100vmax rgba(22, 24, 27, 0.92); clip-path: inset(0 -100vmax);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--paper); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: white; }
.mark { width: 2rem; height: 2rem; flex: none; overflow: visible; transition: transform 0.4s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) translateY(-1px); }
nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; align-items: center; font-size: 0.98rem; }
nav a { color: var(--soft-on-dark); text-decoration: none; font-weight: 500; }
nav a:hover { color: white; }
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 { font-size: 1.3rem; 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; }

/* ---------------- Buttons ---------------- */
.button, button, .secondary, .danger {
  appearance: none; border: 1.5px solid transparent; background: var(--accent); color: white;
  border-radius: 999px; min-height: 44px; padding: 0.6rem 1.25rem;
  font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease, color 0.2s ease;
}
.button:hover, button:hover { background: var(--accent-press); color: white; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(194, 65, 12, 0.25); }
.button:active, button:active { transform: translateY(0); box-shadow: none; }
.button.large { min-height: 54px; padding: 0.9rem 1.6rem; font-size: 1.08rem; }
.secondary, button.secondary, a.secondary { background: transparent; color: var(--ink); border-color: var(--graphite-200); box-shadow: none; }
.secondary:hover, button.secondary:hover, a.button.secondary:hover { background: white; color: var(--ink); 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); }
.on-dark .secondary, .on-dark a.button.secondary { color: var(--paper); border-color: rgba(255, 255, 255, 0.22); }
.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); }

/* ---------------- Forms ---------------- */
.stack-form, .stack { display: grid; gap: 1rem; }
.narrow { max-width: 32rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.98rem; }
.optional { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: white;
  border: 1.5px solid var(--graphite-200); border-radius: 12px; padding: 0.72rem 0.9rem; min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--graphite-300); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.14); outline: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--ember) 55%, white); outline-offset: 2px; }
textarea { min-height: 6rem; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
.check input { width: 1.15rem; min-height: 1.15rem; margin-top: 0.25rem; accent-color: var(--accent); box-shadow: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: 0.8rem; background: var(--card); }
legend { padding: 0 0.4rem; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

/* Sign-in, register and other single-column pages read as a centred card */
main > .narrow, main > form.narrow, main > section.narrow {
  margin: 3rem auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}

/* ---------------- App pages ---------------- */
.page-head { margin: 2.4rem 0 1.4rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero { padding: 2.4rem 0 1rem; max-width: 42rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.7rem; }
.row-actions, .nudge { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.row-actions { margin: 1.2rem 0; }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.8rem; align-items: start; margin-top: 1rem; }
.steps span, .hint, .meta, .tags { color: var(--muted); }
.hint { font-size: 0.95rem; }

.banner { background: var(--graphite); color: var(--graphite-100); border-radius: 14px; padding: 0.85rem 1.1rem; display: flex; gap: 0.6rem; align-items: center; }
.banner a { color: var(--ember); }
.banner.bad { background: #fde2e2; color: #7f1d1d; }
.list-grid, .stack { margin-top: 0.6rem; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.list-card, .item-card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.list-card {
  display: grid; gap: 0.3rem; padding: 1.3rem 3.2rem 1.3rem 1.3rem; color: inherit; text-decoration: none; position: relative;
  background: linear-gradient(90deg, transparent calc(100% - 2.1rem), var(--peach) calc(100% - 2.1rem), var(--peach) calc(100% - 1.35rem), transparent calc(100% - 1.35rem)), var(--card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--graphite-200); color: inherit; }
.list-card strong { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.item-card { display: grid; grid-template-columns: 104px 1fr; gap: 1.1rem; padding: 1rem; transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.item-card:hover { box-shadow: var(--shadow); border-color: var(--graphite-200); }
.item-card.is-taken { background: #f1f2f3; box-shadow: none; }
.item-card.is-taken h2 { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.thumb { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--peach); display: grid; place-items: center; color: var(--accent-press); font-family: var(--serif); font-weight: 600; font-size: 2rem; text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.item-card:hover .thumb img { transform: scale(1.04); }
.card-top { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.card-top h2 { font-size: 1.35rem; margin-top: 0; }
.card-top a { color: inherit; text-decoration: none; }
.card-top a:hover { color: var(--accent); }
.nudge form { margin: 0; }
.nudge button { min-height: 36px; padding: 0.3rem 0.8rem; font-size: 0.9rem; }
.meta, .tags { display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; align-items: center; font-size: 0.95rem; }
.pill { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 999px; padding: 0.15rem 0.7rem; background: var(--graphite-100); color: var(--graphite-600); font-size: 0.85rem; font-weight: 600; margin: 0; }
.pill.taken { background: var(--graphite-100); color: var(--graphite-600); }
.pill.open { background: var(--peach); color: var(--accent-press); }
.expired { color: var(--accent); }
.panel { padding: 1.2rem; }
.panel.danger { border-color: #f1c4c4; background: white; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.7rem; }
.gallery img, .photo-row img { border-radius: 14px; width: 100%; height: 170px; object-fit: cover; background: var(--graphite-100); }
.photo-row { grid-template-columns: 72px auto 1fr; align-items: center; }
.photo-row img { width: 72px; height: 72px; }
.links, .claims, .notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.links a { overflow-wrap: anywhere; }
.prose { white-space: pre-wrap; }
.empty { padding: 2rem 0; max-width: 36rem; }
.ranker { background: var(--card); border: 1.5px dashed var(--graphite-200); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.ranker ol { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.45rem; }
.ranker li { display: flex; gap: 0.6rem; align-items: center; background: var(--paper); border-radius: 12px; padding: 0.6rem 0.8rem; cursor: grab; transition: box-shadow 0.2s ease; }
.ranker li:hover { box-shadow: var(--shadow-sm); }
.ranker li.dragging { opacity: 0.45; }
.grip { color: var(--muted); letter-spacing: 0.15em; }

/* ================= 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; }
}

@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) {
  .split, .split-fields, .item-card { grid-template-columns: 1fr; }
  .thumb { width: 100%; height: 190px; }
  .shell { width: min(1180px, calc(100% - 1.4rem)); }
  .top { position: static; }
  .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%; }
}
