/* ============================================================
   Scenedo - landing pages (2026-11-05)
   Three SEO pages: photo restoration, product photo editor,
   background change. Every rule is scoped to .lp so the rest of
   the site keeps its own type scale and spacing.
   ============================================================ */

.lp-hero { padding: 40px 0 62px; }
.lp-hero.slim { padding-bottom: 30px; }
.lp-hero-in { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 54px; align-items: center; }
.lp-hero-in.even { grid-template-columns: 1fr 1fr; }

.lp-crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.lp-crumbs a { border-bottom: 1px solid transparent; }
.lp-crumbs a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.lp-crumbs span[aria-current] { color: var(--ink-2); }

.lp-kicker { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-ink); }

.lp h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.lp-lede { margin: 20px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.lp-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-tries { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.lp-tries .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex: 0 0 auto; }
.lp-tries a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- before / after ---------- */

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-fig { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.ba-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(9, 10, 12, 0.72); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; backdrop-filter: blur(4px); }

.prompt-strip { margin-top: 12px; padding: 12px 15px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.prompt-strip span { display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.lp figure { margin: 0; }
.lp figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* crop of the same pair: shows the corner at 100% — the detail files are already 4:3, no extra rules needed */

/* ---------- bounds: fix / keep / do not invent ---------- */

.bounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bound { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px 22px; }
.bound .n { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bound h3 { margin: 10px 0 10px; font-size: 17px; letter-spacing: -0.015em; line-height: 1.25; }
.bound p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.bound ul { margin: 12px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.bound li { margin-bottom: 5px; }
/* 03 卡不再上红底：三张卡一视同仁，避免凭空跳出一块红色 */
.bound.no { border-color: var(--line); }

/* ---------- warning band (restoration) ---------- */

.lp-warn {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 18px; padding: 30px 34px;
}
.lp-warn h2 { font-size: clamp(22px, 2.2vw, 29px); max-width: 30ch; }
.lp-warn p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 78ch; }
.lp-warn p + p { margin-top: 10px; }

/* ---------- seller strip (product page) ---------- */

.seller-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.seller-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 0; font-size: 12.5px; color: var(--muted); }
.seller-strip b { color: var(--ink); font-weight: 600; }
.seller-strip .arrow { color: var(--accent); }

/* ---------- pain checklist ---------- */

.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks.ticked li::before { content: "\2713"; display: grid; place-items: center; border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; }

/* ---------- keep the label callout ---------- */

.keep-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; }
.keep-box h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.02em; }
.keep-box p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.keep-prompt { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--paper-2); border-left: 3px solid var(--accent); font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ---------- tabs (product page) ---------- */

.tabs-head { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 20px; }
.tabs-head button { border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 9px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.tabs-head button:hover { color: var(--ink); }
.tabs-head button.is-on { background: #f4f2ee; color: #0a0a0b; }
.tab-panel { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 30px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-fig { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.tab-fig img { width: 100%; display: block; }
.tab-copy h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.02em; }
.tab-copy p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.tab-copy ul { margin: 14px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.tab-copy li { margin-bottom: 5px; }
.tab-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- comparison slider (background page) ---------- */

.cmp { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 8.6; user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-layer { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 14px rgba(0, 0, 0, 0.45); }
.cmp-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 999px; background: #fff; color: #0a0a0b; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.cmp-knob svg { width: 22px; height: 22px; display: block; }
.cmp input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; touch-action: none; -webkit-appearance: none; appearance: none; background: transparent; }
.cmp input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 64px; height: 100%; }
.cmp input[type="range"]::-moz-range-thumb { width: 64px; height: 400px; border: 0; }
.cmp input[type="range"]:focus-visible + .cmp-line .cmp-knob { outline: 2px solid var(--accent); outline-offset: 3px; }
.cmp-tag { position: absolute; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(9, 10, 12, 0.72); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; backdrop-filter: blur(4px); }
.cmp-tag.l { left: 14px; }
.cmp-tag.r { right: 14px; }

/* the handle, labels and the before-layer must not eat the pointer:
   the range input underneath is the thing that drags */
.cmp-layer, .cmp-line, .cmp-knob, .cmp-tag { pointer-events: none; }
.cmp img { -webkit-user-drag: none; user-select: none; }
.cmp-legend { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- 3-pair grid (background page) ---------- */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio-card h3 { margin: 14px 0 7px; font-size: 16px; letter-spacing: -0.015em; }
.trio-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.trio-card .prompt-strip { margin-top: 10px; font-size: 12.5px; padding: 10px 12px; }
.trio .ba { gap: 6px; }
.trio .ba-tag { top: 7px; left: 7px; padding: 3px 7px; font-size: 10.5px; }

/* ---------- failures ---------- */

.fails { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fail { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 20px 22px; }
.fail h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.015em; }
.fail p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.fail .fix-note { display: block; margin-top: 10px; font-size: 13px; color: var(--ink); }

/* ---------- portrait vs product split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-col { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 22px; }
.split-col .who { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.split-col h3 { margin: 10px 0 10px; font-size: 18px; letter-spacing: -0.02em; }
.split-col p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.split-col .models { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.split-col .models .chip { cursor: default; }

/* ---------- prompt formula ---------- */

.formula { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; }
.formula p { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; letter-spacing: -0.015em; max-width: 34ch; }
.formula b { color: var(--ink); font-weight: 600; }
.formula em { font-style: normal; color: var(--accent-ink); }
.formula-samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.formula-samples .prompt-strip { margin: 0; }

/* ---------- dark checklist block ---------- */

.lp-dark { background: linear-gradient(180deg, #171719, #101012); border: 1px solid var(--line); border-radius: 20px; padding: 34px 36px; }
.lp-dark h2 { font-size: clamp(22px, 2.3vw, 30px); max-width: 26ch; }
.lp-dark > p { margin: 10px 0 0; font-size: 15px; color: var(--muted); max-width: 68ch; }
.lp-dark .todo { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.lp-dark .todo li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.lp-dark .todo li::before { content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--line-2); }

/* ---------- related links ---------- */

.related-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); transition: border-color 0.16s ease, background 0.16s ease;
}
.rel-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.rel-ico {
  width: 38px; height: 38px; margin-bottom: 4px; border-radius: 11px;
  background: var(--surface-3); display: grid; place-items: center;
  font-size: 18px; color: var(--ink); flex: 0 0 auto;
}
.rel-card h3 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }
.rel-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rel-card .go {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0 17px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.rel-card .go::after { content: "→"; font-size: 15px; font-weight: 400; color: var(--muted); transition: transform 0.16s ease, color 0.16s ease; }
.rel-card:hover .go::after { transform: translateX(3px); color: var(--accent); }

/* ---------- home: deep dive cards ---------- */

.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-card { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); transition: border-color 0.15s ease, transform 0.15s ease; }
.lp-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.lp-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.lp-card .txt { padding: 16px 18px 18px; }
.lp-card h3 { margin: 0 0 6px; font-size: 15.5px; letter-spacing: -0.01em; }
.lp-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .lp-hero-in, .lp-hero-in.even { grid-template-columns: 1fr; gap: 34px; }
  .related-row { grid-template-columns: 1fr 1fr; }
  .lp h1 { max-width: 22ch; }
  .bounds { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 1fr; gap: 20px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .formula-samples { grid-template-columns: 1fr; }
  .lp-cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .lp-hero { padding: 24px 0 44px; }
  .lp-lede { font-size: 16.5px; }
  .fails, .split, .related-row { grid-template-columns: 1fr; }
  .lp-dark { padding: 26px 22px; }
  .lp-dark .todo { grid-template-columns: 1fr; }
  .lp-warn { padding: 24px 22px; }
  .seller-strip .wrap { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cmp { aspect-ratio: 4 / 5; }
  .cmp-legend { flex-direction: column; gap: 4px; }
}

@media (max-width: 620px) {
  .trio { grid-template-columns: 1fr; }
  .ba { gap: 6px; }
  .tabs-head { width: 100%; }
  .tabs-head button { flex: 1; padding: 9px 8px; font-size: 13px; }
  .lp-acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- cinematic first screen (restoration page) ---------- */

.lp-cine { min-height: min(100svh, 900px); padding: 126px 0 54px; }
.lp-cine .hc-media img { filter: brightness(0.9) contrast(1.04) saturate(1.02); object-position: 50% 78%; }
.lp-cine .hc-copy h1 { max-width: 21ch; font-size: clamp(31px, 4.3vw, 58px); line-height: 1.02; letter-spacing: -0.04em; }
.lp-cine .hc-copy .lp-crumbs { justify-content: center; margin-bottom: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.lp-cine .hc-copy .lp-crumbs a { color: rgba(255, 255, 255, 0.74); }
.lp-cine .hc-copy .lp-crumbs a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.4); }
.lp-cine .hc-copy .lp-crumbs span[aria-current] { color: #fff; }
.lp-cine .lp-kicker { color: #ff7350; }
.lp-cine .hc-copy .lede { max-width: 62ch; }
.lp-cine .hc-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.lp-cine .hc-ghost { border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.88); }
.lp-cine .hc-ghost:hover { border-color: rgba(255, 255, 255, 0.46); background: rgba(255, 255, 255, 0.1); color: #fff; }
.lp-cine .hc-tries { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.58); }
.lp-cine .hc-tries .dot { width: 5px; height: 5px; border-radius: 999px; background: #ff7350; flex: 0 0 auto; }
.lp-cine .hc-tries a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.38); }
.lp-cine .hero-dock { margin: 40px auto 0; }

/* the before/after pair that used to sit in the old first screen */
.lp-pair { padding: 58px 0 12px; }

@media (max-width: 860px) {
  .lp-cine { padding: 96px 0 36px; }
  .lp-cine .hc-copy h1 { max-width: 19ch; }
  .lp-cine .hc-copy .lede { font-size: 16px; }
  .lp-cine .hc-acts { flex-direction: column; align-items: center; gap: 10px; }
  .lp-cine .hc-acts .btn { width: 100%; max-width: 330px; justify-content: center; }
  .lp-cine .hc-tries { display: block; text-align: center; font-size: 12px; line-height: 1.5; }
  .lp-cine .hc-tries .dot { display: none; }
  .lp-cine .hero-dock { margin-top: 26px; }
  .lp-pair { padding: 40px 0 8px; }
}

/* first-screen buttons: same size, same baseline */
.lp-cine .hc-acts .btn { height: 46px; padding: 0 22px; display: inline-flex; align-items: center; }
.lp-cine .hc-acts .hc-cta { margin-top: 0; box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.85); }

@media (max-width: 700px) {
  .related-row { grid-template-columns: 1fr; }
  .rel-card { padding: 20px 20px 0; }
}
