/* ============================================================
   Scenedo - design system (mockup only, no production code)
   One typeface. One accent. One theme (light).
   ============================================================ */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111315;
  --ink-2: #31363d;
  --muted: #666d76;
  --muted-2: #8b9199;

  --paper: #f5f4f0;
  --paper-2: #eeece6;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --surface-3: #ffffff;
  --card: var(--surface);
  --line: #e2e0d9;
  --line-2: #cfccc2;

  --accent: #e2421f;
  --accent-ink: #b83414;
  --accent-soft: #fbe7e0;

  --r-card: 16px;
  --r-btn: 10px;
  --r-field: 10px;

  --shadow-sm: 0 1px 2px rgba(17, 19, 21, 0.05);
  --shadow-md: 0 1px 2px rgba(17, 19, 21, 0.04), 0 14px 34px -16px rgba(17, 19, 21, 0.22);

  --max: 1240px;
  --pad: 40px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.mark {
  width: 28px; height: 28px; display: block; flex: 0 0 auto;
}
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--ink-2); }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-links a.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink);
  font-size: 18px; cursor: pointer;
}
.nav-avatar {
  width: 36px; height: 36px; padding: 0; flex: 0 0 auto;
  border-radius: 999px; overflow: hidden; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}
.nav-avatar:hover { border-color: var(--ink); transform: translateY(-1px); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- 账号下拉面板 ---------------- */
.acct {
  position: fixed; z-index: 90;
  width: 292px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.72);
  overflow: hidden; padding: 6px;
  animation: acct-in 0.16s ease-out;
}
@keyframes acct-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.acct-face {
  width: 42px; height: 42px; border-radius: 999px; overflow: hidden; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 700; line-height: 1;
}
.acct-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-who { min-width: 0; }
.acct-name {
  font-size: 14.5px; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-mail {
  font-size: 12.5px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-pills { display: flex; gap: 8px; padding: 0 10px 10px; }
.acct-pill {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); font-size: 12.5px; color: var(--ink);
}
.acct-pill .ph { font-size: 15px; color: var(--accent); }
.acct-list { border-top: 1px solid var(--line); padding-top: 6px; }
.acct-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--ink);
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit;
}
.acct-item:hover { background: var(--surface-2); }
.acct-item .ph { font-size: 17px; color: var(--muted-2); }
.acct-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.acct-out { color: var(--accent); }
.acct-out .ph { color: var(--accent); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 600; letter-spacing: -0.012em;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(17, 19, 21, 0.18); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ink, .btn-dark { background: var(--ink); color: #fff; }
.btn-ink:hover, .btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn .ph { font-size: 16px; line-height: 1; }

.link { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.link:hover { border-bottom-color: var(--accent); color: var(--accent-ink); }

/* ---------------- hero ---------------- */

.hero { padding: 54px 0 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 60px;
  align-items: center;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 4.1vw, 57px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
}
.lede {
  margin: 20px 0 0;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.cta-row .link { font-size: 15.5px; }

/* ---------------- generator card ---------------- */

.gen {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.gen-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.gen-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 600;
}
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.drop {
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 70%, #fff);
  padding: 22px 18px;
  display: flex; align-items: center; gap: 14px;
}
.drop-plus {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 21px; line-height: 1; color: var(--ink-2); font-weight: 400;
}
.drop-t { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.drop-s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.gen-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-2); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chip .pro { font-size: 12px; opacity: 0.6; font-weight: 500; }

.field { margin-top: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.prompt {
  width: 100%;
  min-height: 66px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: var(--surface);
  padding: 11px 12px;
  font: inherit; font-size: 14.5px; line-height: 1.45;
  color: var(--ink);
}
.prompt::placeholder { color: var(--muted-2); }
.prompt:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 19, 21, 0.06); }

.gen-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  height: 28px; padding: 0 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.credit-note { font-size: 12.5px; color: var(--muted); }

/* ---------------- free bar ---------------- */

.freebar {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.freebar-in {
  display: flex; align-items: center; gap: 28px;
  padding: 16px 0;
  font-size: 14px; color: var(--ink-2);
}
.freebar b { font-weight: 600; color: var(--ink); }
.freebar span.sep { width: 1px; height: 14px; background: var(--line-2); }

/* ---------------- sections ---------------- */

section { padding: 78px 0; }
.sec-head { margin-bottom: 30px; }
h2 {
  margin: 0;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 700;
  max-width: 34ch;
}
.sec-sub { margin: 12px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 64ch; }

/* compare */

.compare {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare .base { aspect-ratio: 16 / 8.4; }
.compare .top {
  position: absolute; inset: 0;
  clip-path: inset(0 46% 0 0);
}
.compare .top img { filter: none; }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: 54%;
  width: 2px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.compare .handle {
  position: absolute; top: 50%; left: 54%;
  translate: -50% -50%;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(17, 19, 21, 0.1);
  display: grid; place-items: center;
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(17, 19, 21, 0.08), 0 10px 26px -10px rgba(17, 19, 21, 0.45);
}
.compare .handle svg { width: 24px; height: 24px; display: block; }
.compare-labels {
  display: flex; justify-content: space-between;
  margin-top: 12px; font-size: 13px; color: var(--muted);
}
.compare-labels b { color: var(--ink); font-weight: 600; }

/* capability grid */

.capgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.cap {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-2);
  border: 0;
  min-height: 240px;
  display: flex; align-items: flex-end;
}
.cap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cap:hover img { transform: scale(1.02); }
.cap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.72) 0%, rgba(9, 10, 12, 0.12) 46%, rgba(9, 10, 12, 0) 70%);
}
.cap-txt { position: relative; z-index: 1; padding: 20px; color: #fff; }
.cap-txt h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.cap-txt p { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.78); max-width: 34ch; }
.cap.a { grid-column: span 7; min-height: 330px; }
.cap.b { grid-column: span 5; min-height: 330px; }
.cap.c { grid-column: span 5; }
.cap.d { grid-column: span 7; }

/* styles strip */

.styles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.style-card { }
.style-card .ph {
  aspect-ratio: 1 / 1;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
}
.style-card img { width: 100%; height: 100%; object-fit: cover; }
.style-card p { margin: 9px 2px 0; font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; }
.style-card p span { color: var(--muted-2); font-size: 12.5px; }

/* pricing */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px; display: flex; flex-direction: column;
}
.plan.is-featured { border-color: var(--ink); box-shadow: var(--shadow-md); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tag {
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.price { margin: 16px 0 2px; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan li { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); margin-top: 8px; flex: 0 0 auto; }
.plan .btn { margin-top: auto; }

/* faq */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em;
  display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 19px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; max-width: 78ch; }

/* footer */

.foot { border-top: 1px solid var(--line); padding: 48px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot p { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); max-width: 32ch; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.foot ul a:hover { color: var(--accent-ink); }
.foot-btm {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-2);
}

/* ============================================================
   Studio (tool page)
   ============================================================ */

.app { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; background: var(--paper); }
.topbar {
  height: 58px; flex: 0 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }
.doc { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.saved { font-size: 12.5px; color: var(--muted-2); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; display: block; }
.avatar .ph { font-size: 14px; }

.workspace { flex: 1 1 auto; display: grid; grid-template-columns: 56px 1fr 336px; min-height: 0; }
.rail {
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0;
}
.rail button {
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent;
  color: var(--muted); font-size: 15px; cursor: pointer;
  display: grid; place-items: center;
}
.rail button:hover { background: var(--paper-2); color: var(--ink); }
.rail button.is-on { background: var(--ink); color: #fff; }

.canvas-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper-2); }
.canvas-bar {
  height: 44px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.tabs { display: inline-flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.tabs button { height: 26px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.is-on { background: var(--paper-2); color: var(--ink); }
.canvas-bar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }

.stage {
  flex: 1 1 auto; min-height: 0;
  display: grid; place-items: center;
  padding: 22px;
  overflow: hidden;
}
.canvas {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #cfcac0;
  box-shadow: 0 24px 60px -30px rgba(17, 19, 21, 0.55);
}
.canvas img { width: 100%; height: 100%; object-fit: cover; }
.canvas .split {
  position: absolute; inset: 0; clip-path: inset(0 52% 0 0);
}
.canvas .split img { filter: saturate(0.14) contrast(0.88) brightness(1.05); }
.canvas .line { position: absolute; top: 0; bottom: 0; left: 48%; width: 2px; background: var(--surface); }
.canvas .lbl {
  position: absolute; bottom: 12px; font-size: 12px; font-weight: 600;
  background: rgba(9, 10, 12, 0.62); color: #fff; padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.canvas .lbl.l { left: 12px; }
.canvas .lbl.r { right: 12px; }
.zoom {
  position: absolute; bottom: -40px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted);
}

.panel {
  border-left: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.panel-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; display: grid; gap: 18px; align-content: start; }
.panel-sec h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.select {
  height: 42px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--surface); padding: 0 12px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.select span.caret { color: var(--muted-2); font-size: 12px; }
.hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; line-height: 1.4; }
.range {
  height: 6px; border-radius: 999px; background: var(--paper-2); margin: 12px 0 6px; position: relative;
}
.range i { position: absolute; inset: 0 38% 0 0; background: var(--ink); border-radius: 999px; }
.range b {
  position: absolute; top: 50%; left: 62%; translate: -50% -50%;
  width: 16px; height: 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.range-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); }
.panel-foot {
  flex: 0 0 auto; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--paper);
  display: grid; gap: 9px;
}
.cost { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumbs figcaption { font-size: 12px; color: var(--muted-2); margin-top: 4px; }

/* ============================================================
   Explore / gallery
   ============================================================ */

.page-head { padding: 44px 0 26px; }
.page-head h1 { font-size: clamp(32px, 3.4vw, 46px); max-width: 18ch; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.search {
  flex: 1 1 320px; max-width: 520px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface);
  display: flex; align-items: center; gap: 10px; padding: 0 13px; color: var(--muted);
  font-size: 14px;
}
.search kbd {
  margin-left: auto; font: inherit; font-size: 12px; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--paper);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.masonry { column-count: 3; column-gap: 18px; }
.shot {
  break-inside: avoid; margin-bottom: 18px;
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line);
}
.shot img { width: 100%; object-fit: cover; display: block; background: var(--surface-2); }
.shot.h1 img { aspect-ratio: 4 / 5; }
.shot.h2 img { aspect-ratio: 1 / 1; }
.shot.h3 img { aspect-ratio: 3 / 4; }
.shot.h4 img { aspect-ratio: 4 / 6; }
.shot-cap { padding: 13px 14px 15px; border-top: 1px solid var(--line); }
.shot-cap b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.012em; }
.shot-cap p { margin: 6px 0 0; font-size: 13px; line-height: 1.46; color: var(--ink-2); }
.shot-cap .p {
  margin-top: 10px; padding-left: 9px; border-left: 2px solid var(--line-2);
  font-size: 12.5px; line-height: 1.42; color: var(--muted);
}
.shot-cap .p span { display: block; margin-top: 4px; color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.fx-flat { filter: saturate(0.78) contrast(0.9) brightness(1.03); }
.fx-anime { filter: saturate(1.38) contrast(1.08) brightness(1.03) sepia(0.05); }
.loadmore { display: flex; justify-content: center; padding: 30px 0 70px; }

/* ============================================================
   Landing page (SEO)
   ============================================================ */

.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; color: var(--line-2); }

.lp-hero { padding: 26px 0 40px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.lp-hero h1 { font-size: clamp(32px, 3.2vw, 45px); max-width: none; }

.lpc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow-md); }
.lpc .drop { padding: 18px; }
.lpc .btn { margin-top: 12px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair figure { margin: 0; }
.pair .ph { border-radius: 12px; overflow: hidden; border: 0; aspect-ratio: 4 / 5; background: var(--surface-2); }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.pair figcaption b { color: var(--ink); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step .ph { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; margin-bottom: 12px; }
.step .ph.ico { display: grid; place-items: center; background: var(--card); aspect-ratio: auto; height: 112px; }
.step .ph.ico i { font-size: 40px; color: var(--ink-2); }
.step img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin: 0 0 5px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.related a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink-2);
}
.related a:hover { color: var(--accent-ink); }
.related a span { color: var(--muted-2); font-size: 13px; }

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 34px; }
  h1 { max-width: 20ch; }
  .lp-hero { grid-template-columns: 1fr; gap: 34px; }
  .styles { grid-template-columns: repeat(3, 1fr); }
  .masonry { column-count: 2; }
  .workspace { grid-template-columns: 52px 1fr 300px; }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .topbar .saved { display: none; }
  .doc { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav { height: 60px; }
  .nav-actions .btn-ghost { display: none; }
  .capgrid { grid-template-columns: 1fr; }
  .cap.a, .cap.b, .cap.c, .cap.d { grid-column: auto; min-height: 250px; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
  section { padding: 56px 0; }
  .freebar-in { flex-wrap: wrap; gap: 10px 18px; font-size: 13px; }
  .freebar span.sep { display: none; }
  .pair { gap: 10px; }
  .workspace { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow-y: auto; }
  .rail { display: none; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .canvas { aspect-ratio: 1 / 1; }
  .app { height: auto; min-height: 100dvh; overflow: visible; }
  .stage { padding: 14px; min-height: 380px; }
}

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  .compare-labels { flex-direction: column; gap: 4px; align-items: flex-start; }
  .topbar .btn-ghost, .topbar .avatar { display: none; }
  .topbar { gap: 10px; padding: 0 12px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .cta-row .link { text-align: center; }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 1; column-gap: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-btm { flex-direction: column; gap: 8px; }
  .gen-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .gen-foot .btn { width: 100%; }
  .compare .base { aspect-ratio: 1 / 1; }
}

/* ============================================================
   before / after example cards
   ============================================================ */

.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
.examples.two { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.ex { display: flex; flex-direction: column; }
.ex .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex .frame {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 0; background: var(--surface-2); aspect-ratio: 4 / 3;
}
.ex .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ex .tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(9, 10, 12, 0.7); color: #fff; backdrop-filter: blur(6px);
}
.ex h3 { margin: 16px 0 7px; font-size: 16.5px; letter-spacing: -0.015em; font-weight: 600; }
.ex p { margin: 0; font-size: 14px; line-height: 1.52; color: var(--ink-2); max-width: 62ch; }
.ex .meta {
  margin-top: 11px; font-size: 12.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.ex .meta b { color: var(--ink); font-weight: 600; }
.ex .quote {
  margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2);
  background: var(--paper-2); border-radius: 9px; padding: 9px 11px;
}
.ex .quote span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

/* fx utilities for simulated before / after */
.fx-old { filter: grayscale(0.92) sepia(0.32) contrast(0.82) brightness(1.08) blur(0.4px); }
.fx-lofi { filter: blur(2.2px) contrast(0.92) saturate(0.85); }
.fx-flat { filter: saturate(0.72) contrast(0.9) brightness(1.03); }
.fx-dark { filter: brightness(0.55) saturate(0.75) hue-rotate(12deg); }
.fx-warm { filter: saturate(1.28) contrast(1.08) brightness(1.04) sepia(0.08); }
.fx-blue { filter: brightness(0.72) saturate(1.15) hue-rotate(-8deg) contrast(1.05); }
.fx-clay { filter: saturate(0.82) contrast(0.95) brightness(1.07) sepia(0.04); }
.fx-cel { filter: saturate(1.5) contrast(1.12) brightness(1.02); }

@media (max-width: 1080px) {
  .examples { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .examples, .examples.two { grid-template-columns: 1fr; gap: 30px; }
  .ex .frame { aspect-ratio: 1 / 1; }
  .ex .tag { top: 7px; left: 7px; padding: 3px 7px; }
}

/* ============================================================
   Pricing page
   ============================================================ */

.ph-head { padding: 52px 0 28px; }
.ph-head h1 { font-size: clamp(34px, 3.6vw, 48px); max-width: none; }
.ph-head p { margin: 14px 0 0; font-size: 16.5px; color: var(--ink-2); max-width: 58ch; }
.bill {
  display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 3px; gap: 2px; margin-top: 20px;
}
.bill button {
  height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.bill button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.bill .save { font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 6px; border-radius: 999px; margin-left: 6px; }

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pack {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.pack .qty { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.pack .qty span { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pack .usd { font-size: 15px; font-weight: 600; }
.pack .per { font-size: 12.5px; color: var(--muted); }
.pack .note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.pack .btn { margin-top: 14px; }

.cmp-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.cmp thead th:first-child { width: 40%; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.c, .cmp th.c { text-align: center; }
.cmp tr.grp td {
  padding-top: 24px; padding-bottom: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); background: color-mix(in srgb, var(--paper) 60%, #fff); border-bottom: 1px solid var(--line);
}
.cmp .yes { font-weight: 600; color: var(--ink); }
.cmp .no { color: var(--muted-2); }
.cmp .small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule { border-top: 2px solid var(--ink); padding-top: 14px; }
.rule b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.rule p { margin: 7px 0 0; font-size: 14px; color: var(--ink-2); }

/* ============================================================
   Legal / long-form documents
   ============================================================ */

.legal { display: grid; grid-template-columns: 222px 1fr; gap: 60px; align-items: start; padding: 30px 0 90px; }
.toc { position: sticky; top: 96px; }
.toc p { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.toc a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--muted); border-left: 2px solid transparent; padding-left: 12px; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-2); }
.doc { max-width: 760px; }
.doc .updated { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.doc h1 { font-size: clamp(30px, 3vw, 42px); max-width: none; margin: 10px 0 12px; }
.doc .intro { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 18px 0 0; max-width: 66ch; }
.doc h2 {
  font-size: 20px; letter-spacing: -0.02em; margin: 40px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--line); max-width: none;
}
.doc h3 { font-size: 16px; margin: 24px 0 6px; letter-spacing: -0.01em; }
.doc p { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 12px; max-width: 70ch; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 20px; }
.doc li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 7px; max-width: 68ch; }
.doc strong { color: var(--ink); }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 18px; margin: 24px 0; max-width: 70ch;
}
.callout p { margin: 0; font-size: 14.5px; }
.callout p + p { margin-top: 8px; }
.doc .fill { background: var(--paper-2); padding: 1px 5px; border-radius: 4px; font-size: 14px; }

/* ============================================================
   About page
   ============================================================ */

.about-hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
.about-hero h1 { font-size: clamp(34px, 3.8vw, 52px); max-width: 18ch; }
.about-hero p { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.stat b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 7px; font-size: 13px; color: var(--muted); }
.body-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.body-cols p { font-size: 16px; line-height: 1.72; color: var(--ink-2); margin: 0 0 14px; max-width: 56ch; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.contact-box h3 { margin: 0 0 6px; font-size: 16px; }
.contact-box p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.contact-box a { font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line-2); }

@media (max-width: 1080px) {
  .legal { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .toc p { display: none; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; gap: 28px; }
  .body-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .cmp th, .cmp td { padding: 11px 10px; font-size: 13.5px; }
  .cmp thead th:first-child { width: 46%; }
  .rules { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat b { font-size: 26px; }
  .doc h2 { margin-top: 30px; }
}

/* ============================================================
   App layer: interactions
   ============================================================ */

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* mobile menu */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 0 14px;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block; padding: 12px 0; font-size: 16px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a.is-on { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .nav-mobile { display: none; }
  .nav-mobile.is-open { display: block; }
}

/* search field */
.search input {
  border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--ink); width: 100%; height: 100%;
}
.search input::placeholder { color: var(--muted-2); }

/* native select, same skin as the mock */
select.select {
  height: 42px; width: 100%; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--surface); padding: 0 34px 0 12px; font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%),
                    linear-gradient(135deg, var(--muted-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* strength slider */
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px; background: transparent; margin: 6px 0 2px; cursor: pointer;
}
.slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) 0 var(--fill, 62%), var(--paper-2) var(--fill, 62%) 100%);
}
.slider::-moz-range-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) 0 var(--fill, 62%), var(--paper-2) var(--fill, 62%) 100%);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  margin-top: -5px;
}
.slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}

/* inline status + empty state */
.msg { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.msg.warn { color: var(--accent-ink); }
.empty {
  border: 1px dashed var(--line-2); border-radius: 14px;
  padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14.5px;
}
.gcount { font-size: 12.5px; color: var(--muted-2); margin: 0 0 14px; }

/* gallery filtering */
.shot[hidden] { display: none; }

/* studio canvas modes */
.canvas.mode-before .split { display: none; }
.canvas.mode-before .line,
.canvas.mode-before .lbl.r { display: none; }
.canvas.mode-after .split { display: none; }
.canvas.mode-after .line,
.canvas.mode-after .lbl.l { display: none; }
.canvas { cursor: col-resize; }
.canvas.mode-before, .canvas.mode-after { cursor: default; }

/* modal */
.modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 10, 12, 0.45);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 420px; background: var(--surface);
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
  padding: 22px;
}
.modal h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.modal p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; }
.modal textarea {
  width: 100%; min-height: 76px; resize: none; font-size: 13px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 14px;
  font-family: inherit; color: var(--ink-2);
}

/* the credit note under the hero generator */
.credit-note.is-done { color: var(--accent-ink); }
/* file drop label */
.drop { cursor: pointer; }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop-copy { display: block; }
.drop-t, .drop-s { display: block; }
.drop:focus-within { border-color: var(--accent); }

/* the before side is the untouched photo, the after side carries the filter */
.canvas .split img { filter: none; }
.compare .top img { filter: none; }
.canvas img { transition: filter 0.18s ease; }

/* promo buttons that are links */
a.btn { text-decoration: none; }
/* dragging a compare slider must not select text or drag the image */
.compare {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.compare img {
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare .handle { pointer-events: none; }
.canvas {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
/* ------------------------------------------------------------
   Keep the quote box and the credit line on the same line across
   a row of example cards. Subgrid does the row matching; browsers
   without it keep the old stacked layout.
   ------------------------------------------------------------ */
@supports (grid-template-rows: subgrid) {
  .ex {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    align-content: start;
    row-gap: 0;
  }
  .ex > * { min-width: 0; }
}

/* ============================================================
   Home v2: definition, capability, audience, model table, steps
   ============================================================ */
.def { max-width: 74ch; }
.def p { margin: 0 0 14px; font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.def p:last-child { margin-bottom: 0; }
.def b { color: var(--ink); font-weight: 600; }

.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.capb { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.capb .num { font-size: 12px; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.02em; }
.capb h3 { margin: 9px 0 8px; font-size: 17px; letter-spacing: -0.015em; }
.capb p { margin: 0; font-size: 14.5px; line-height: 1.56; color: var(--ink-2); }
.capb .stat { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stepb { border-top: 2px solid var(--ink); padding-top: 14px; }
.stepb .n { font-size: 12px; font-weight: 600; color: var(--muted); }
.stepb h3 { margin: 7px 0 7px; font-size: 16px; }
.stepb p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.mt { width: 100%; border-collapse: collapse; font-size: 14px; }
.mt th, .mt td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mt th { font-size: 12.5px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); }
.mt td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: border-color 0.2s ease; }
.more a:hover { border-color: var(--ink); }
.more h3 { margin: 0 0 6px; font-size: 16px; }
.more p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

.band { background: var(--ink); color: #fff; border-radius: 18px; padding: 38px 40px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.band h2 { margin: 0; font-size: 25px; letter-spacing: -0.02em; color: #fff; }
.band p { margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.74); }
.band .btn-primary { background: var(--surface); color: var(--ink); }

@media (max-width: 900px) {
  .caps, .steps, .more { grid-template-columns: 1fr; }
  .band { padding: 28px 24px; }
}


/* Home v2: definition block with the brief figure */
.defrow { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 64px; align-items: start; }
.deffig { margin: 0; display: grid; gap: 12px; }
.df-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.df-chips span { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.df-keep { background: var(--ink); color: #fff; border-color: var(--ink); }
.df-new { background: var(--card); color: var(--ink-2); }
.df-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.df-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.df-frame img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.df-tag { position: absolute; left: 10px; top: 10px; background: rgba(18, 18, 18, 0.78); color: #fff; font-size: 11.5px; padding: 4px 9px; border-radius: 999px; }
.df-brief { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--card); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.df-brief span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.deffig figcaption { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.df-pair.df-tall .df-frame img { aspect-ratio: 4 / 5; }

@media (max-width: 1000px) {
  .defrow { grid-template-columns: 1fr; gap: 28px; }
  .def { max-width: none; }
  .deffig { max-width: 620px; }
  .df-frame img { aspect-ratio: 4 / 3; }
}


/* ---------- Motion ---------- */
html.motion .btn { transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1); }
html.motion .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(17, 19, 21, 0.35); }
html.motion .btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(17, 19, 21, 0.14); }

html.motion .frame img, html.motion .df-frame img, html.motion .shot img { transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
html.motion .frame:hover img, html.motion .df-frame:hover img, html.motion .shot:hover img { transform: scale(1.04); }

html.motion .capb, html.motion .stepb, html.motion .plan, html.motion .shot, html.motion .more a {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
html.motion .capb:hover, html.motion .stepb:hover, html.motion .plan:hover, html.motion .shot:hover, html.motion .more a:hover {
  transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(17, 19, 21, 0.42);
}
html.motion .capb:hover, html.motion .plan:hover { border-color: var(--line-2); }
html.motion .more a:hover { border-color: var(--line-2); }

html.motion .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
html.motion .reveal.in { opacity: 1; translate: 0 0; }

html.motion .hero-copy > *, html.motion .hero .gen {
  opacity: 0; translate: 0 22px;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), translate 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.motion.hero-in .hero-copy > *, html.motion.hero-in .hero .gen { opacity: 1; translate: 0 0; }

.nav { transition: background 0.25s ease, box-shadow 0.25s ease; }
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, #fff); box-shadow: 0 1px 0 var(--line), 0 12px 32px -28px rgba(17, 19, 21, 0.5); }

@media (prefers-reduced-motion: reduce) {
  html.motion .reveal, html.motion .hero-copy > *, html.motion .hero .gen { opacity: 1 !important; translate: none !important; transition: none !important; }
  html.motion .btn:hover, html.motion .capb:hover, html.motion .plan:hover, html.motion .shot:hover { transform: none; }
}


/* ===================== v3 cinematic layer ===================== */

/* type scale and vertical rhythm */
section { padding: 92px 0; }
@media (max-width: 820px) { section { padding: 60px 0; } }
.sec-head { margin-bottom: 44px; }
h1 { font-size: clamp(44px, 4.9vw, 66px); line-height: 1.0; letter-spacing: -0.042em; max-width: min(100%, 588px); }
.lede { margin-top: 26px; font-size: 18.5px; line-height: 1.52; max-width: 44ch; }
h2 { font-size: clamp(32px, 3.5vw, 54px); line-height: 1.03; letter-spacing: -0.032em; }
.sec-sub { margin-top: 16px; font-size: 17px; line-height: 1.6; max-width: 62ch; }
h3 { font-size: 20px; letter-spacing: -0.022em; }

/* floating nav island */
.nav { height: auto; padding: 14px 0 6px; background: transparent; border-bottom: 0; backdrop-filter: none; }
.nav-in {
  width: max-content; max-width: 100%; height: 62px; padding: 0 8px 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px -34px rgba(17, 19, 21, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.nav.is-scrolled .nav-in {
  background: transparent; border-color: transparent; box-shadow: none; height: 54px;
  width: min(var(--max), 100% - var(--pad) * 2); margin: 0 auto; padding: 0;
}
@media (max-width: 860px) { .nav-in { width: 100%; padding: 0 10px 0 16px; height: 58px; } }

/* hero aura + depth */
.hero { position: relative; padding: 84px 0 56px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; left: -18%; right: -18%; top: -46%; height: 156%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 40% at 20% 22%, rgba(226, 66, 31, 0.155), transparent 62%),
    radial-gradient(42% 38% at 80% 8%, rgba(17, 19, 21, 0.075), transparent 64%);
}
.gen {
  border-radius: 22px;
  box-shadow: 0 60px 90px -66px rgba(17, 19, 21, 0.65), 0 2px 4px rgba(17, 19, 21, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* marquee band */
.band-marquee { padding: 0; overflow: hidden; }
.mq { overflow: hidden; padding: 8px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq-track { display: flex; gap: 16px; width: max-content; animation: mq 90s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-i { margin: 0; flex: 0 0 auto; width: clamp(170px, 17vw, 250px); aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.mq-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes mq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* cinematic full-bleed band */
.cine { padding: 0; }
.cine-frame { position: relative; width: min(1560px, 100% - 40px); margin: 0 auto; border-radius: 30px; overflow: clip; background: #0e0f11; box-shadow: 0 80px 120px -90px rgba(17, 19, 21, 0.8); }
.cine-frame img { display: block; width: 100%; height: clamp(420px, 66vh, 700px); object-fit: cover; }
.cine-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.18) 0%, rgba(10, 10, 12, 0.42) 46%, rgba(10, 10, 12, 0.86) 100%); }
.cine-copy { position: absolute; left: clamp(22px, 4.4vw, 72px); right: clamp(22px, 4.4vw, 72px); bottom: clamp(24px, 4.4vw, 64px); z-index: 2; color: #fff; }
.cine-copy h2 { color: #fff; font-size: clamp(30px, 3.9vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 14px; max-width: 17ch; }
.cine-copy p { margin: 0 0 26px; font-size: 16.5px; color: rgba(255, 255, 255, 0.74); max-width: 46ch; }
.btn-light { background: var(--surface); color: #111315; box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.6); }
.btn-light:hover { background: #f0ede6; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cine-frame img { animation: cine-par linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes cine-par { from { transform: scale(1.14) translateY(-2.5%); } to { transform: scale(1.14) translateY(2.5%); } }
  }
}

/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
}


/* pointer-driven depth (fine pointers only) */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.motion .hero .gen { transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
  .mq-i img { filter: saturate(0.88); transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .mq-i:hover img { filter: none; transform: scale(1.04); }
}


/* ===================== dark theme ===================== */
:root {
  color-scheme: dark;
  --ink: #f4f2ee;
  --ink-2: #d6d2cb;
  --muted: #9c9ba2;
  --muted-2: #7e7d85;
  --paper: #0a0a0b;
  --paper-2: #0e0e10;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --surface-3: #242428;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --accent-soft: rgba(226, 66, 31, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

::-moz-selection { background: rgba(226, 66, 31, 0.32); color: #fff; }
::selection { background: rgba(226, 66, 31, 0.32); color: #fff; }

/* inverse components: light fill, dark label */
.btn-primary, .btn-ink, .btn-dark {
  background: #f4f2ee; color: #0a0a0b;
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-primary:hover, .btn-ink:hover, .btn-dark:hover { background: #ffffff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.34); }

.chip.is-on { background: #f4f2ee; border-color: #f4f2ee; color: #0a0a0b; }
.chip { color: var(--ink-2); }
.seg button.is-on, .bill button.is-on { background: var(--surface-3); color: var(--ink); box-shadow: none; }
.tabs { background: var(--surface); border-color: var(--line); }
.df-keep { background: #f4f2ee; color: #0a0a0b; border-color: #f4f2ee; }
.rail button.is-on { background: #f4f2ee; color: #0a0a0b; }
.badge { background: rgba(226, 66, 31, 0.14); border-color: rgba(226, 66, 31, 0.3); color: #f3b8a6; }

/* surfaces that were mixed with white */
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom-color: var(--line);
  box-shadow: none;
}
.nav-in {
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  border-color: var(--line);
  box-shadow: 0 20px 40px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav.is-scrolled .nav-in { background: transparent; border-color: transparent; box-shadow: none; }
.cmp-wrap thead, .cmp-wrap th { background: var(--surface-2); }

/* panels */
.freebar { background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan { background: var(--surface); border-color: var(--line); }
.plan.is-featured { border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -50px rgba(0, 0, 0, 0.9); }
.callout { background: var(--surface-2); border-color: var(--line); }
.contact-box { background: var(--surface); }
.doc code, .doc pre { background: var(--surface-2); }
.band { background: linear-gradient(180deg, #171719, #101012); border: 1px solid var(--line); }
.band h2 { color: var(--ink); }
.band p { color: var(--muted); }
.band .btn-primary { background: #f4f2ee; color: #0a0a0b; }
.toc a.is-on { color: var(--ink); }
.shot-cap { background: var(--surface); }
.quote, .meta { color: var(--muted); }
input, textarea, select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }


/* ===================== hero v4: cinematic dock ===================== */
.hero-cine {
  position: relative; min-height: min(100svh, 940px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 132px 0 56px; overflow: clip; background: #08080a;
}
.hc-media { position: absolute; inset: 0; z-index: 0; }
.hc-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; filter: brightness(1.2) contrast(1.06) saturate(1.04); }
.hc-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.2) 32%, rgba(8, 8, 10, 0.42) 64%, #0a0a0b 100%),
    radial-gradient(74% 54% at 50% 16%, rgba(8, 8, 10, 0.02), rgba(8, 8, 10, 0.6) 84%);
}
.hc-copy { position: relative; z-index: 2; text-align: center; }
.hc-copy h1 {
  margin: 0 auto; max-width: 15ch; color: #fff;
  font-size: clamp(38px, 5.4vw, 78px); line-height: 1.0; letter-spacing: -0.045em;
}
.hc-copy .lede { margin: 24px auto 0; max-width: 56ch; color: rgba(255, 255, 255, 0.78); text-align: center; font-size: 17.5px; line-height: 1.55; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.55); }
.hc-cta { margin-top: 30px; background: #fff; color: #0a0a0b; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8); }
.hc-cta:hover { background: #f0ede6; }

.hero-dock {
  position: relative; z-index: 3;
  width: min(940px, calc(100% - 32px)); margin: 58px auto 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "plus input input" "opts opts go" ". msg msg";
  gap: 6px 10px; padding: 14px;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(13, 13, 15, 0.74);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.hero-dock .drop { min-height: 0; padding: 0; border: 0; background: none; align-self: center; }
.dock-plus {
  grid-area: plus; width: 44px; height: 44px; align-self: center; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 18px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.dock-plus:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); }
.dock-plus.is-over { border-color: var(--accent); background: rgba(226, 66, 31, 0.18); }
.dock-input {
  grid-area: input; background: transparent; border: 0; outline: none; resize: none;
  color: #fff; font: inherit; font-size: 16.5px; line-height: 1.45;
  padding: 10px 4px; min-height: 42px; max-height: 140px;
}
.dock-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.dock-opts { grid-area: opts; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 2px 2px; }
.dock-chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.76); height: 30px; font-size: 13px; padding: 0 11px; }
.dock-chip.is-on { background: #fff; border-color: #fff; color: #0a0a0b; }
.dock-chip .pro { color: var(--accent); }
.dock-chip.is-on .pro { color: var(--accent-ink); }
.dock-seg { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); height: 30px; }
.dock-seg button { height: 24px; font-size: 12.5px; color: rgba(255, 255, 255, 0.68); }
.dock-seg button.is-on { background: rgba(255, 255, 255, 0.92); color: #0a0a0b; }
.dock-credit { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.dock-credit .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.dock-go { grid-area: go; align-self: end; height: 46px; padding: 0 28px; background: var(--accent); color: #fff; }
.dock-go:hover { background: #f04d27; }
.hero-dock .msg { grid-area: msg; color: #f0a48f; font-size: 13px; }
.hero-dock .msg:empty { display: none; }

/* entrance for the new hero */
html.motion .hc-copy > *, html.motion .hero-dock {
  opacity: 0; translate: 0 22px;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), translate 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.motion.hero-in .hc-copy > *, html.motion.hero-in .hero-dock { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .hero-cine { min-height: auto; padding: 112px 0 44px; }
  .hc-copy h1 { font-size: clamp(34px, 8.4vw, 50px); }
  .hc-copy .lede { font-size: 16.5px; margin-top: 18px; }
  .hero-dock {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "plus input" "opts opts" "go go" "msg msg";
    margin-top: 36px; padding: 12px;
  }
  .dock-go { width: 100%; margin-top: 4px; }
  .dock-credit { margin-left: 0; }
}

/* buttons that must stay light on top of imagery */
.btn-light { background: #ffffff; color: #0a0a0b; }
.btn-light:hover { background: #f0ede6; }
.cine .btn-light { background: #ffffff; color: #0a0a0b; }
.band .btn-primary, .band .btn-light { background: #ffffff; color: #0a0a0b; }

/* inverse pills (plan badge, keep/lose chips) */
.plan .tag, .tag.is-light { background: #f4f2ee; color: #0a0a0b; }
.ex .tag, .df-tag, .shot .tag { background: rgba(9, 10, 12, 0.72); color: #fff; }

/* dark: dashed drop zones and mixed surfaces */
.drop { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.16); }
.drop:hover { background: rgba(255, 255, 255, 0.06); }
.drop-t { color: var(--ink); }
.drop-s { color: var(--muted); }
.drop-plus { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: var(--ink); }
.cmp-wrap thead th { background: var(--surface-2); }

.cmp tr.grp td { background: var(--surface-2); color: var(--muted); }

@media (max-width: 860px) {
  .dock-input { min-height: 56px; font-size: 16px; }
  .hc-copy .lede { max-width: 34ch; }
}

/* image frames: no light mat, no bright hairline on dark */
.ex .frame, .cap, .df-frame, .shot, .frame { border-color: transparent; }
.ex .frame, .df-frame { background: var(--surface-2); }
.cap img, .shot img, .frame img, .df-frame img { border-radius: inherit; }
.shot img { background: var(--surface-2); }
.cap { border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ex .frame::after, .cap::before { content: none; }
}


/* ===================== nav v5: fixed island ===================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: auto; padding: 16px 0 10px;
  background: transparent; border-bottom: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav::before { content: none; }
.nav-in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px;
  width: min(var(--max), 100% - var(--pad) * 2); margin: 0 auto;
  height: 60px; padding: 0 8px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 999px;
  background: rgba(14, 14, 16, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav-in .brand { justify-self: start; }
.nav-in .nav-links { justify-self: center; margin: 0; }
.nav-in .nav-actions { justify-self: end; }
.nav.is-scrolled { background: transparent; border-bottom: 0; padding: 16px 0 10px; box-shadow: none; }
.nav.is-scrolled .nav-in {
  width: min(var(--max), 100% - var(--pad) * 2); margin: 0 auto; padding: 0 8px 0 18px; height: 60px;
  background: rgba(12, 12, 14, 0.86); border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 54px -32px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@media (max-width: 860px) {
  .nav-in { width: 100%; max-width: calc(100% - 20px); grid-template-columns: 1fr auto; gap: 12px; height: 56px; padding: 0 10px 0 14px; }
  .nav-in .nav-links { display: none; }
  .nav.is-scrolled .nav-in { width: 100%; padding: 0 10px 0 14px; height: 56px; }
}

/* ===================== button system v6: ember + frost ===================== */
/* 三层材质，一个强调色：
   ember  暖色渐变实心 —— 每屏只给一个「出图/付款」的主操作
   frost  白瓷实心     —— 导航与通用主按钮
   ghost  玻璃描边     —— 次操作，必须有可见的底色，不能只剩一根发丝线 */

:root {
  --ember: #e2421f;
  --ember-rgb: 226, 66, 31;
}

/* --- 共用机制：光泽扫过 + 位移过渡 --- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    background-color .2s ease,
    background-position .6s cubic-bezier(.22, .61, .36, 1),
    border-color .2s ease,
    color .2s ease,
    box-shadow .32s cubic-bezier(.22, .61, .36, 1),
    transform .28s cubic-bezier(.22, .61, .36, 1),
    translate .3s cubic-bezier(.22, .61, .36, 1);
}
/* 高光带：铺在背景之上、文字之下（z-index:-1 + isolation） */
.btn::after {
  content: "";
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -34%;
  width: 40%;
  z-index: -1;
  pointer-events: none;
  transform: skewX(-18deg);
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .34) 44%, rgba(255, 255, 255, .62) 52%, transparent 100%);
  translate: -180% 0;
  opacity: 0;
  transition: translate .8s cubic-bezier(.22, .61, .36, 1), opacity .22s ease;
}
.btn:hover::after { translate: 460% 0; opacity: 1; }

/* --- ember：出图与付款。平涂品牌朱红，不加渐变、不加光晕 --- */
.btn-primary,
.btn-accent,
.dock-go,
.band .btn-primary {
  background-color: var(--ember);
  background-image: none;
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 1px 2px rgba(0, 0, 0, .45);
}
.btn-primary:hover,
.btn-accent:hover,
.dock-go:hover,
.band .btn-primary:hover {
  background-color: #f0502a;
  border-color: rgba(255, 255, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 3px 12px -5px rgba(var(--ember-rgb), .6);
}
.btn-primary:active,
.btn-accent:active,
.dock-go:active,
.band .btn-primary:active {
  background-color: #cf3a19;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .28),
    0 1px 2px rgba(0, 0, 0, .4);
}
/* --- frost：白瓷，干净的白 + 一圈内高光 --- */
.btn-light,
.btn-ink,
.btn-dark,
.hc-cta,
.cine .btn-light,
.band .btn-light {
  color: #0a0a0b;
  border-color: rgba(255, 255, 255, .55);
  background-color: #fbfaf7;
  background-image: none;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(0, 0, 0, .5),
    0 10px 24px -16px rgba(0, 0, 0, .9);
}
.btn-ink:hover,
.btn-dark:hover,
.btn-light:hover,
.hc-cta:hover,
.cine .btn-light:hover,
.band .btn-light:hover {
  background-color: #fff;
  border-color: #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 4px rgba(0, 0, 0, .45),
    0 16px 30px -18px rgba(0, 0, 0, 1);
}
.btn-ink:active,
.btn-dark:active,
.btn-light:active,
.hc-cta:active,
.cine .btn-light:active,
.band .btn-light:active {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .22), 0 1px 2px rgba(0, 0, 0, .4);
}

/* --- ghost：描边，透明底。和「禁用灰块」区分开 --- */
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}
.btn-ghost:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .45);
  box-shadow: none;
}
.btn-ghost:active {
  background-color: rgba(255, 255, 255, .06);
}

/* --- 浮起与按下（pointer:fine 才给位移，触屏不抖） --- */
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-primary:active { transform: translateY(0); }
  .btn-accent:hover, .dock-go:hover { transform: translateY(-2px); }
  .btn-accent:active, .dock-go:active { transform: translateY(0); }
  .btn-ink:hover, .btn-dark:hover, .btn-light:hover, .hc-cta:hover { transform: translateY(-2px); }
  .btn-ink:active, .btn-dark:active, .btn-light:active, .hc-cta:active { transform: translateY(0); }
  .btn-ghost:hover { transform: translateY(-1px); }
  .btn-ghost:active { transform: translateY(0); }
}

/* --- 焦点环 / 禁用 --- */
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.btn[disabled],
.btn:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, .46) !important;
  background-image: none !important;
  background-color: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}
.btn[disabled]::after,
.btn:disabled::after { display: none; }

/* --- 图标 / 箭头跟着动一下 --- */
.btn .ph { transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.btn:hover .ph { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .btn .ph { transition: none; }
  .btn:hover::after { opacity: 0; }
}

/* ===================== auth page: sign in / create account ===================== */

.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

/* 顶部一圈很淡的品牌光，压住纯黑底，别让它显得像没加载完 */
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -22%, rgba(var(--ember-rgb), .11), transparent 72%),
    radial-gradient(820px 420px at 50% -8%, rgba(255, 255, 255, .035), transparent 68%);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad);
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px var(--pad) 56px;
}

.auth-card {
  width: min(424px, 100%);
  padding: 32px 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 40px 90px -56px rgba(0, 0, 0, .98), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}

.auth-sub {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* 白瓷按钮，Google 要求自己的浅底样式；不带 .btn-ink 免得两套阴影打架 */
.btn-google {
  width: 100%;
  height: 46px;
  gap: 10px;
  background-color: #ffffff;
  background-image: none;
  border-color: #ffffff;
  color: #14161a;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .55);
}
.btn-google:hover {
  background-color: #f4f4f2;
  border-color: #f4f4f2;
  color: #14161a;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0, 0, 0, .5);
}
.btn-google svg { flex: none; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 16px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.auth-or::before,
.auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-field { margin-bottom: 13px; }
.auth-field[hidden] { display: none; }
.auth-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.auth-field input::placeholder { color: var(--muted-2); }
.auth-field input:hover { border-color: var(--line-2); }
.auth-field input:focus {
  outline: none;
  background: var(--surface-3);
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .07);
}

.auth-hint { margin: 7px 1px 0; font-size: 12px; color: var(--muted-2); }
.auth-hint[hidden] { display: none; }

/* 验证码那行：输入框吃掉剩余宽度，发送按钮等宽不抖 */
.auth-code-row { display: flex; gap: 8px; }
.auth-code-row input { flex: 1; min-width: 0; letter-spacing: .16em; }
.auth-send {
  flex: none;
  min-width: 104px;
  height: 46px;
  padding: 0 14px;
  font-size: 13.5px;
}

.auth-submit { width: 100%; height: 46px; margin-top: 5px; }

.auth-msg {
  min-height: 18px;
  margin: 10px 1px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #f08a70;
}
.auth-msg.is-ok { color: #77d3a0; }

.auth-switch {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-switch a,
.auth-foot a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .3);
}
.auth-switch a:hover,
.auth-foot a:hover { text-decoration-color: var(--ink); }

.auth-foot {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
}

@media (max-width: 560px) {
  .auth-topbar { padding: 14px 18px; }
  .auth-main { justify-content: flex-start; padding: 8px 18px 32px; }
  .auth-card { padding: 22px 18px 18px; border-radius: 14px; }
  .auth-card h1 { font-size: 23px; }
  .auth-sub { font-size: 13.5px; margin-bottom: 16px; }
  .auth-field { margin-bottom: 11px; }
  .auth-field input { height: 44px; }
  .auth-send { height: 44px; min-width: 96px; }
  .auth-submit { height: 46px; margin-top: 3px; }
  .auth-switch { margin-top: 13px; padding-top: 13px; }
  .auth-or { margin: 15px 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page::before { background: none; }
}



/* ---------------- 我的作品 ---------------- */
.page-head .sub { margin: 10px 0 0; max-width: 56ch; color: var(--muted); font-size: 14.5px; }
.cstate { color: var(--muted); font-size: 14px; padding: 6px 0 26px; }
.cempty {
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  padding: 46px 26px; text-align: center;
}
.cempty h2 { font-size: 20px; margin: 0 auto 8px; letter-spacing: -0.015em; max-width: none; }
.cempty p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 auto 20px; max-width: 430px; }
.cempty .btn { display: inline-flex; }
.shot-cap .dl {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  font-size: 12.5px; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
}
.shot-cap .dl:hover { color: var(--accent); border-bottom-color: var(--accent); }
.shot-cap .dl .ph { font-size: 14px; }


/* ---------------- 角落法律链接 ---------------- */
.auth-legal {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--muted-2);
}
.auth-legal a { color: var(--muted); border-bottom: 1px solid transparent; }
.auth-legal a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.auth-legal span { color: var(--muted-2); }
.panel-legal {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 11.5px; color: var(--muted-2);
}
.panel-legal a { color: var(--muted-2); border-bottom: 1px solid transparent; }
.panel-legal a:hover { color: var(--ink); border-bottom-color: var(--line-2); }


/* ---------------- 粘底页脚：内容不足一屏时，页脚贴到窗口底部 ---------------- */
body:has(> .foot) {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body:has(> .foot) > main {
  flex: 1 0 auto;
}
