:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #15181d;
  --panel-2: #1b1f26;
  --ink: #e9edf2;
  --muted: #9aa4b2;
  --line: #262b33;
  --line-strong: #414a57;
  --accent: #f2b705;
  --accent-ink: #1a1206;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 14px;
  --maxw: 980px;
}

* {
  box-sizing: border-box;
}

/* The hidden attribute must win over display rules (.form/.topbar use display:flex). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip; /* contain the full-bleed wave; safe with sticky topbar (unlike overflow:hidden) */
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 18px 80px;
}

/* Top bar */
.topbar {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand span,
.auth-title span {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chip {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
/* Owner-only top-level Admin shortcut in the header */
.chip-admin {
  border-color: var(--accent);
  color: var(--accent);
}
.chip-admin:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
a.chip {
  text-decoration: none;
}
a.chip:hover {
  border-color: var(--accent);
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

/* Landing/auth section stacks vertically: banner → (hero | card) → samples → footer. */
.auth {
  padding-top: 8px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.auth-sub {
  color: var(--muted);
  margin: 6px 0 18px;
}
.auth-trust {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  margin: 12px 0 0;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.tab {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 9px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.tab.is-active {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--panel-2);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
input,
select,
textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
textarea {
  resize: vertical;
}

/* Buttons */
.btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.12s, transform 0.12s;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--muted);
}
.link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.msg {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
}
.msg.is-ok {
  color: var(--ok);
}

/* Controls */
.row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 220px;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.model-note {
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 12px;
}
.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

/* One-tap fix preset chips */
.chips {
  gap: 8px;
}
.chips-label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.chip-toggle {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.chip-toggle:hover {
  color: var(--ink);
}
.chip-toggle.is-on {
  background: rgba(242, 183, 5, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}
.chip-toggle.is-on::before {
  content: "✓ ";
  font-weight: 700;
}

/* Dropzone */
.drop {
  text-align: center;
  border: 1.5px dashed var(--line);
  padding: 36px 20px 30px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover {
  border-color: var(--muted);
}
.drop.is-over {
  border-color: var(--accent);
  background: rgba(242, 183, 5, 0.06);
}
.drop.is-busy {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* Upload icon: a tray (the element) + arrow shaft (::before) + arrow head (::after),
   drawn entirely with borders/backgrounds — no SVG, no inline styles. */
.drop-icon {
  width: 46px;
  height: 22px;
  margin: 14px auto 18px;
  position: relative;
  border: 2.5px solid var(--muted);
  border-top: none;
  border-radius: 0 0 8px 8px;
  transition: transform 0.18s, border-color 0.18s;
}
.drop-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 3px;
  height: 21px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--muted);
  transition: background 0.18s;
}
.drop-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 9px solid var(--muted);
  transition: border-bottom-color 0.18s;
}
.drop:hover .drop-icon,
.drop.is-over .drop-icon {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.drop:hover .drop-icon::before,
.drop.is-over .drop-icon::before {
  background: var(--accent);
}
.drop:hover .drop-icon::after,
.drop.is-over .drop-icon::after {
  border-bottom-color: var(--accent);
}

.drop-cta {
  margin: 6px 0;
  font-weight: 600;
  font-size: 17px;
}
.drop-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.drop-hint.drop-formats {
  margin-top: 10px;
  font-size: 12px;
}
.drop-hint kbd {
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--ink);
}
.drop-pick {
  margin-top: 10px;
  font-size: 16px;
  padding: 12px 22px;
}
@media (hover: none) {
  .paste-hint {
    display: none;
  }
}

/* Queue */
.queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.qitem {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
}
.qitem-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.qitem-meta {
  flex: 1;
  min-width: 0;
}
.qitem-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qitem-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qitem-tag {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.qitem-x {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.qitem-x:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.actions [data-action="restore"] {
  font-size: 17px;
  padding: 14px 24px;
  border-radius: 12px;
}

/* Results */
.result .status {
  margin: 0 0 12px;
  font-weight: 600;
}
.result .status.is-error {
  color: var(--danger);
}
.result .status.is-done {
  color: var(--ok);
}
.status.is-working::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: fmp-spin 0.8s linear infinite;
}
@keyframes fmp-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .status.is-working::before {
    animation: none;
  }
}
.result-placeholder {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  opacity: 0.35;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
figure {
  margin: 0;
}
figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.download {
  margin-top: 10px;
}

/* Before/after reveal slider */
.result-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.slider {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  user-select: none;
  cursor: ew-resize;
  touch-action: pan-y;
}
.slider-base,
.slider-overlay {
  display: block;
  width: 100%;
}
.slider-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.slider-handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  font-size: 11px;
  color: #555;
  line-height: 40px;
  text-align: center;
}
.slider-tag {
  position: absolute;
  top: 10px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  pointer-events: none;
}
.slider-tag.left {
  left: 10px;
}
.slider-tag.right {
  right: 10px;
}
.preview-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Examples page: stacked before/after sliders */
.examples-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 560px;
  margin: 8px auto 0;
}
.examples-gallery .sample {
  margin: 0;
}
.examples-gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
/* The emotional anchor caption (e.g. the wedding) — warmer, more readable than a one-liner */
.examples-gallery figcaption.story {
  text-align: left;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
  margin: 12px auto 0;
}

@media (max-width: 620px) {
  .pair {
    grid-template-columns: 1fr;
  }
}

/* ── Landing ───────────────────────────────────────────────────────────────── */
.beta-banner {
  text-align: center;
  display: table;
  background: rgba(242, 183, 5, 0.08);
  border: 1px solid rgba(242, 183, 5, 0.25);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 auto 20px;
  font-size: 12.5px;
}
.beta-banner strong {
  color: var(--accent);
}

.landing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.hero {
  padding-top: 12px;
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero-title span {
  color: var(--accent);
}
.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
  margin: 0 0 18px;
}
.hero-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 430px;
  margin: 0 0 20px;
}
.hero-proof figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.hero-proof img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}
.hero-proof figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.how {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.how-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.auth-card {
  align-self: start;
}
.guest-upload {
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer;
  margin: 0 0 12px;
  min-height: 178px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.guest-upload:hover,
.guest-upload.is-over {
  border-color: var(--accent);
  background: rgba(242, 183, 5, 0.06);
}
.guest-empty {
  display: grid;
  min-height: 176px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
}
.guest-icon {
  width: 42px;
  height: 32px;
  position: relative;
  border: 2px solid var(--muted);
  border-radius: 8px;
}
.guest-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 10px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(135deg, var(--accent) 0 45%, #8bc4ff 45% 100%);
}
.guest-title {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
}
.guest-note {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.guest-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 12px;
}
.guest-preview img {
  width: 92px;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel);
}
.guest-preview p {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.guest-start {
  width: 100%;
  margin-bottom: 10px;
}
.auth-trust--near {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* Samples */
.samples {
  margin-top: 48px;
  text-align: center;
}
.samples-title {
  font-size: 20px;
  margin: 0 0 4px;
}
.samples-note {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 14px;
}
.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.samples-cta {
  margin: 18px 0 0;
}
.sample-ph {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--panel);
  font-size: 14px;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.footer-grid h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-line {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.beta-tag {
  color: var(--accent);
  font-weight: 600;
}

/* Guest nav (logged-out header) */
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a.is-here {
  color: var(--ink);
}

/* Static content pages */
.page {
  max-width: 760px;
}
.page h1,
.legal h1 {
  letter-spacing: -0.02em;
  font-size: 32px;
  line-height: 1.15;
  margin: 4px 0 6px;
}
.page .lead {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 16px;
}
.page h2,
.legal h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}
.page p,
.page li {
  line-height: 1.65;
}
.page a {
  color: var(--accent);
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
}
.no-margin {
  margin: 0;
}
.muted-note {
  color: var(--muted);
  font-size: 13px;
}

/* Credit packs */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.pack {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--panel-2);
  position: relative;
  /* Now an interactive <button>: reset native chrome, keep card look. */
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.1s;
}
.pack:hover {
  border-color: var(--accent);
  background: var(--panel);
}
.pack:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pack:active {
  transform: translateY(1px) scale(0.995);
}
.pack.is-selected {
  border-color: var(--accent);
  background: rgba(242, 183, 5, 0.06);
  box-shadow: 0 0 0 1px var(--accent), 0 0 22px -6px rgba(242, 183, 5, 0.55);
}
.pack.is-selected::after {
  content: "✓ Selected";
  position: absolute;
  top: 14px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.pack-flag--value {
  background: var(--panel);
  color: var(--accent);
  border: 1px solid var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .pack {
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  }
  .pack:active {
    transform: none;
  }
}
.pack.is-popular {
  border-color: var(--accent);
}
.pack-flag {
  position: absolute;
  top: -10px;
  left: 14px;
  margin: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.pack h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.pack-price {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pack-credits {
  margin: 2px 0 6px;
  color: var(--ink);
  font-weight: 600;
}
.pack-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.sample-grid.wide {
  max-width: none;
}
.brand a {
  color: inherit;
  text-decoration: none;
}
.tier-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}
.tier-badge.tier-best,
.tier-badge.tier-top {
  border-color: var(--accent);
  color: var(--accent);
}
.tier-badge.tier-caution {
  border-color: var(--danger);
  color: var(--danger);
}

/* Model guide cards */
.model-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.model-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
}
.model-card.is-default {
  border-color: var(--accent);
}
.model-head {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.model-head h3 {
  margin: 0;
  font-size: 16px;
}
.model-card-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0;
}
.model-card-facts {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Legal pages ───────────────────────────────────────────────────────────── */
.legal {
  max-width: 760px;
}
.legal-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
}
.legal p,
.legal li {
  color: var(--ink);
  line-height: 1.65;
}
.legal ul {
  padding-left: 20px;
}
.legal a {
  color: var(--accent);
}
.legal-back {
  margin-bottom: 18px;
}
.legal-back a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 720px) {
  .landing {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-title {
    font-size: 36px;
    margin-bottom: 12px;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .hero-proof {
    max-width: none;
    margin-bottom: 16px;
  }
  .how {
    gap: 9px;
    font-size: 14px;
  }
  .promises,
  .samples {
    margin-top: 34px;
  }
}

/* ── Animated wave dividers (slow breathing line, adapted from deepneuro.ai) ── */
.wave-divider {
  position: relative;
  width: 100%;
  height: 72px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.8;
}
.wave-divider--flip {
  transform: scaleY(-1);
  margin-top: 40px;
  /* This wave lives inside .wrap (max-width:980px, centered), unlike the header
     wave which sits outside it. Break out to full viewport width so both lines
     span edge-to-edge and match. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.wave-divider svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.wave-stop-gold { stop-color: var(--accent); }
.wave-stop-ink  { stop-color: var(--muted); }
.wave-stop-fade { stop-color: var(--bg); stop-opacity: 0; }

/* Two layers with opposing curvature and detuned durations produce the slow,
   organic "breathing" of the original (GSAP yoyo + sine.inOut equivalent). */
.wave-path-a {
  opacity: 0.45;
  animation: fmp-wave-up 11s ease-in-out infinite;
}
.wave-path-b {
  opacity: 0.35;
  animation: fmp-wave-down 13s ease-in-out -1.5s infinite;
}
@keyframes fmp-wave-up {
  0%, 100% { d: path("M0,50 Q250,50 500,50 T1000,50 T1500,50 V100 H0 Z"); }
  50%      { d: path("M0,50 Q250,18 500,50 T1000,50 T1500,50 V100 H0 Z"); }
}
@keyframes fmp-wave-down {
  0%, 100% { d: path("M0,50 Q250,50 500,50 T1000,50 T1500,50 V100 H0 Z"); }
  50%      { d: path("M0,50 Q250,82 500,50 T1000,50 T1500,50 V100 H0 Z"); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-path-a,
  .wave-path-b {
    animation: none;
  }
}

/* ── Unlock CTA: the conversion moment — big, warm, alive ── */
.unlock-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.btn-unlock {
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ffd75e 55%, var(--accent));
  background-size: 200% 200%;
  animation: fmp-unlock-sheen 3.5s ease-in-out infinite;
  box-shadow: 0 4px 22px rgba(242, 183, 5, 0.35);
}
.btn-unlock:hover {
  box-shadow: 0 6px 30px rgba(242, 183, 5, 0.55);
}
.btn-unlock.is-working {
  animation: none;
  opacity: 0.75;
}
@keyframes fmp-unlock-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.unlock-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 520px;
}
@media (prefers-reduced-motion: reduce) {
  .btn-unlock { animation: none; }
}

/* ── Re-preview (free re-run with the current settings, no re-upload) ── */
.repreview-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  margin-top: 6px;
}
.btn-repreview {
  font-size: 14px;
  padding: 8px 14px;
}
.repreview-hint {
  color: var(--muted);
  font-size: 12px;
  max-width: 520px;
}

/* ── Feedback row (👍/👎) ── */
.feedback-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.feedback-label {
  color: var(--muted);
  font-size: 13px;
}
.feedback-btn {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 18px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
}
.feedback-btn:hover {
  border-color: var(--accent);
}
.feedback-comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  max-width: 560px;
}
.feedback-comment textarea {
  flex: 1;
}

/* ── Header user menu ── */
.usermenu {
  position: relative;
}
.usermenu-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.usermenu-drop a,
.usermenu-drop button {
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.usermenu-drop a:hover,
.usermenu-drop button:hover {
  background: var(--panel-2);
}

/* The wave divider under the header pairs with a softened static line. */
.topbar--waved {
  border-bottom: 1px solid rgba(38, 43, 51, 0.55);
}

/* ── Mobile / touch refinements ── */
input,
select,
textarea,
.chip-toggle,
.tab {
  border-color: var(--line-strong);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-ghost:focus-visible,
.chip-toggle:focus-visible,
.tab:focus-visible,
.link:focus-visible,
.feedback-btn:focus-visible,
.slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
div[data-el="price-table"] {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .wrap {
    padding-top: 14px;
  }
  .topbar {
    padding: 12px 14px;
  }
  .wave-divider {
    height: 34px;
    opacity: 0.55;
  }
  .beta-banner {
    display: block;
    border-radius: 10px;
    margin-bottom: 14px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .nav-links .btn-ghost,
  .topbar-right .btn-ghost {
    padding: 7px 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .guest-upload {
    min-height: 140px;
  }
  .guest-empty {
    min-height: 138px;
  }
}

/* Serif display experiment — delete this block to revert */
.hero-title,
.page h1,
.legal h1 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

/* Simple public tier scale: Best (filled) > Better (gold outline) > Good > Basic */
.tier-badge.tier-best {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.tier-badge.tier-better {
  border-color: var(--accent);
  color: var(--accent);
}

/* "Your photos are safe here" — safety as a feature */
.promises {
  margin-top: 48px;
  text-align: center;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0 12px;
  text-align: left;
}
.promise {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.promise-icon {
  font-size: 26px;
  margin: 0 0 8px;
}
.promise h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.promise p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.promise-more {
  margin: 0;
}
.promise-more a {
  color: var(--accent);
}

/* ── App workspace readability pass ── */
:root {
  --ink-soft: #c3cbd6; /* between ink and muted: secondary text that must stay readable */
}
.step-title {
  font-size: 19px;
}
/* form labels were muted-grey; lift them so the controls read as labeled groups */
label {
  color: var(--ink-soft);
}
.check {
  font-size: 15px;
  color: var(--ink);
}
/* preset chips looked disabled — make them clearly tappable */
.chip-toggle {
  color: var(--ink);
  background: var(--panel);
}
.chip-toggle:hover {
  background: var(--panel-2);
  border-color: var(--accent);
}
.chips-label {
  color: var(--ink-soft);
  font-weight: 600;
}
/* the model note: price pops, prose readable */
.model-note {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}
.model-note strong {
  color: var(--accent);
  font-weight: 700;
}
.model-choice {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.model-choice label {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.model-choice select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.model-assurance,
.model-compare p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.model-compare {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}
.model-compare summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 600;
}
.model-caution {
  color: #e2ac71;
  font-weight: 600;
}
.control-heading {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
}
.control-heading span {
  color: var(--muted);
  font-weight: 500;
}
.restore-count {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.landing-trust {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}
.landing-trust a {
  color: var(--accent);
}
.delete-result {
  color: var(--muted);
  margin-top: 8px;
}
.delete-result:hover {
  color: var(--danger);
}
/* placeholders were nearly invisible */
::placeholder {
  color: #79838f;
  opacity: 1;
}
/* breathing room between control groups inside the card */
.card.controls .chips {
  margin-top: 16px;
}
.card.controls > label {
  margin-top: 14px;
}
.drop-hint {
  color: var(--ink-soft);
}

/* Founder pull-quote on About */
.pull-quote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
}
.pull-quote p {
  margin: 0 0 8px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.pull-quote footer {
  color: var(--muted);
  font-size: 13px;
}

/* About-page founder photos */
.about-photo {
  max-width: 440px;
  margin: 22px auto;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.about-photo figcaption {
  text-align: center;
  margin-top: 8px;
}

/* Conversion pages: About + Examples */
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.cta-row,
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cta-row {
  margin: 22px 0 10px;
}
.cta-note {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0;
}
.page a.btn {
  color: var(--accent-ink);
}
.page a.btn-ghost {
  color: var(--ink);
}
.examples-page {
  max-width: 912px;
}
.story-hero,
.examples-hero,
.story-section {
  display: grid;
  gap: 28px;
  align-items: center;
}
.story-hero,
.examples-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin-bottom: 48px;
}
.story-hero h1,
.examples-hero h1 {
  margin-top: 0;
}
.story-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  margin: 42px 0;
}
.story-section--reverse {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
}
.story-section--reverse .story-copy {
  order: 2;
}
.story-copy h2,
.proof-panel h2,
.cta-band h2,
.example-copy h2 {
  margin-top: 0;
}
.about-photo--hero {
  margin-top: 0;
}
.proof-panel,
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 42px 0;
  padding: 24px;
}
.proof-panel {
  background: var(--panel);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}
.proof-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.proof-item strong,
.proof-item span {
  display: block;
}
.proof-item strong {
  color: var(--ink);
  margin-bottom: 4px;
}
.proof-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background: rgba(242, 183, 5, 0.08);
  border-color: rgba(242, 183, 5, 0.28);
}
.cta-band p,
.human-note {
  color: var(--ink-soft);
}
.cta-band p {
  margin: 0;
}
.cta-band--compact {
  margin: 34px 0;
}
.human-note {
  text-align: center;
  margin: 0 0 42px;
}
.trust-strip {
  display: grid;
  gap: 10px;
}
.trust-strip span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 14px 16px;
}
.examples-gallery--rich {
  max-width: none;
  gap: 24px;
}
.example-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  padding: 20px;
}
.example-card .slider {
  align-self: start;
}
.example-card figcaption {
  grid-column: 2;
  margin-top: -8px;
  text-align: left;
}
.example-copy p {
  color: var(--muted);
  margin-bottom: 0;
}
.example-kicker {
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px !important;
  text-transform: uppercase;
}
.example-card--anchor .example-copy p:not(.example-kicker) {
  color: var(--ink-soft);
}
.proof-panel--examples {
  margin-top: 34px;
}

@media (max-width: 780px) {
  .story-hero,
  .examples-hero,
  .story-section,
  .story-section--reverse,
  .example-card {
    grid-template-columns: 1fr;
  }
  .story-section--reverse .story-copy,
  .example-card figcaption {
    order: initial;
  }
  .example-card figcaption {
    grid-column: auto;
    margin-top: -4px;
  }
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cta-row .btn,
  .cta-row .btn-ghost,
  .cta-band-actions,
  .cta-band-actions .btn,
  .cta-band-actions .btn-ghost {
    width: 100%;
  }
  .cta-row .btn,
  .cta-row .btn-ghost,
  .cta-band-actions .btn,
  .cta-band-actions .btn-ghost {
    text-align: center;
  }
  .proof-panel,
  .cta-band,
  .example-card {
    padding: 18px;
  }
}

/* Conversion pages polish: moving header line + less boxed layout */
.story-hero,
.examples-hero {
  margin-top: -12px;
}
.examples-page {
  max-width: 980px;
}
.trust-strip {
  gap: 0;
  border-top: 1px solid rgba(65, 74, 87, 0.72);
  border-bottom: 1px solid rgba(65, 74, 87, 0.72);
}
.trust-strip span {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(65, 74, 87, 0.48);
  border-radius: 0;
  padding: 13px 0;
}
.trust-strip span:last-child {
  border-bottom: 0;
}
.example-card {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(65, 74, 87, 0.68);
  border-radius: 0;
  grid-template-columns: minmax(220px, 0.66fr) minmax(0, 1.34fr);
  gap: 24px;
  padding: 32px 0;
}
.examples-gallery--rich .example-card:first-child {
  border-top: 0;
  padding-top: 0;
}
.example-card .slider {
  border-color: rgba(65, 74, 87, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.example-card figcaption {
  color: var(--ink-soft);
}
.proof-panel,
.cta-band {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
.proof-panel {
  background: transparent;
  padding: 30px 0;
}
.proof-item {
  background: transparent;
  border-color: rgba(65, 74, 87, 0.68);
}
.cta-band {
  background: transparent;
  border-color: rgba(242, 183, 5, 0.34);
  padding: 30px 0;
}
.cta-band--compact {
  margin: 44px 0;
}
@media (max-width: 820px) {
  .example-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }
  .example-card figcaption {
    grid-column: auto;
  }
}

/* Header wave animation fix: remove static line and use transform motion */
.topbar--waved {
  border-bottom: 0;
}
.topbar--waved + .wave-divider {
  height: 90px;
  margin-bottom: -12px;
  opacity: 1;
}
.topbar--waved + .wave-divider .wave-path-a,
.topbar--waved + .wave-divider .wave-path-b {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.topbar--waved + .wave-divider .wave-path-a {
  animation: fmp-wave-sway-a 7.5s ease-in-out infinite;
}
.topbar--waved + .wave-divider .wave-path-b {
  animation: fmp-wave-sway-b 9s ease-in-out -1.2s infinite;
}
@keyframes fmp-wave-sway-a {
  0%, 100% { transform: translate3d(-24px, -2px, 0) scaleY(0.92); opacity: 0.42; }
  50% { transform: translate3d(24px, 10px, 0) scaleY(1.12); opacity: 0.72; }
}
@keyframes fmp-wave-sway-b {
  0%, 100% { transform: translate3d(24px, 9px, 0) scaleY(1.08); opacity: 0.34; }
  50% { transform: translate3d(-22px, -8px, 0) scaleY(0.9); opacity: 0.62; }
}

/* Wedding album story page */
.example-link {
  margin-top: 16px !important;
}
.example-link a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.example-link a:hover {
  text-decoration: underline;
}
.wedding-page {
  max-width: 980px;
}
.wedding-feature {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: 28px;
  align-items: start;
  margin: 26px 0 48px;
}
.wedding-copy h2,
.wedding-next h2 {
  margin-top: 0;
}
.wedding-copy p:not(.example-kicker),
.wedding-next p {
  color: var(--ink-soft);
}
.wedding-slider .slider {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}
.wedding-next {
  border-top: 1px solid rgba(242, 183, 5, 0.38);
  border-bottom: 1px solid rgba(242, 183, 5, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 24px;
  margin: 46px 0;
  padding: 30px 0;
}
.wedding-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wedding-slots span {
  border-left: 2px solid rgba(242, 183, 5, 0.52);
  color: var(--ink-soft);
  font-weight: 700;
  padding: 10px 0 10px 14px;
}
@media (max-width: 820px) {
  .wedding-feature,
  .wedding-next {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .wedding-slots {
    grid-template-columns: 1fr;
  }
}

/* Keep the animated header wave wider than the viewport while it moves */
.topbar--waved + .wave-divider svg {
  left: -12vw;
  right: auto;
  width: 124vw;
}
@media (max-width: 480px) {
  .topbar--waved + .wave-divider {
    height: 38px;
    margin-bottom: 0;
    opacity: 0.72;
  }
}
@keyframes fmp-wave-sway-a {
  0%, 100% { transform: translate3d(-16px, -2px, 0) scaleY(0.94); opacity: 0.44; }
  50% { transform: translate3d(16px, 10px, 0) scaleY(1.1); opacity: 0.72; }
}
@keyframes fmp-wave-sway-b {
  0%, 100% { transform: translate3d(16px, 9px, 0) scaleY(1.08); opacity: 0.36; }
  50% { transform: translate3d(-16px, -8px, 0) scaleY(0.92); opacity: 0.62; }
}

/* Slightly larger restoration images on Examples and Wedding */
.examples-page,
.wedding-page {
  max-width: 1080px;
}
.example-card {
  grid-template-columns: minmax(200px, 0.54fr) minmax(0, 1.46fr);
}
.wedding-feature {
  grid-template-columns: minmax(220px, 0.54fr) minmax(0, 1.46fr);
}
@media (max-width: 820px) {
  .example-card,
  .wedding-feature {
    grid-template-columns: 1fr;
  }
}

/* About page narrative refinements */
.about-page {
  max-width: 1040px;
}
.about-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
}
.about-hero h1 {
  max-width: 12ch;
}
.about-belief {
  border-top: 1px solid rgba(242, 183, 5, 0.38);
  border-bottom: 1px solid rgba(242, 183, 5, 0.26);
  margin: 18px 0 44px;
  padding: 26px 0;
}
.about-belief p {
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.45;
  margin: 0;
  max-width: 34ch;
}
.about-wedding-callout {
  border-top: 1px solid rgba(65, 74, 87, 0.62);
  border-bottom: 1px solid rgba(65, 74, 87, 0.42);
  padding: 38px 0;
}
.about-photo--slider {
  max-width: none;
  width: 100%;
}
.about-photo--slider .slider {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}
.about-principles .proof-item {
  background: transparent;
  border-left: 2px solid rgba(242, 183, 5, 0.52);
  border-radius: 0;
  padding: 6px 0 6px 14px;
}
@media (max-width: 820px) {
  .about-hero,
  .about-wedding-callout {
    grid-template-columns: 1fr;
  }
  .about-hero h1,
  .about-belief p {
    max-width: none;
  }
  .about-belief p {
    font-size: 21px;
  }
}

/* About hero width pass */
.about-page {
  max-width: min(1180px, calc(100vw - 48px));
}
.about-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  margin-bottom: 56px;
}
.about-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  max-width: 17ch;
}
.about-hero .lead {
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 58ch;
}
.about-belief {
  margin-left: auto;
  margin-right: auto;
}
.about-belief p {
  max-width: 56ch;
}
@media (min-width: 1280px) {
  .about-photo--hero {
    max-width: 470px;
  }
}
@media (max-width: 820px) {
  .about-page {
    max-width: var(--maxw);
  }
  .about-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }
  .about-hero h1 {
    font-size: 38px;
    max-width: none;
  }
}

/* About page positioning against general editing tools */
.about-difference {
  border-top: 1px solid rgba(242, 183, 5, 0.38);
  border-bottom: 1px solid rgba(65, 74, 87, 0.42);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 58px);
  margin: 46px 0;
  padding: 36px 0;
}
.about-difference h2 {
  margin-top: 0;
}
.about-difference-copy p:not(.eyebrow) {
  color: var(--ink-soft);
}
.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.difference-item {
  border-left: 2px solid rgba(242, 183, 5, 0.5);
  padding-left: 14px;
}
.difference-item strong,
.difference-item span {
  display: block;
}
.difference-item strong {
  color: var(--ink);
  margin-bottom: 5px;
}
.difference-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .about-difference,
  .difference-grid {
    grid-template-columns: 1fr;
  }
}

/* About page desktop flow fix */
@media (min-width: 900px) {
  .about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    grid-template-rows: auto auto auto auto;
    gap: 20px clamp(38px, 6vw, 82px);
    align-items: start;
  }
  .about-hero > div {
    display: contents;
  }
  .about-hero .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .about-hero h1 {
    grid-column: 1 / -1;
    font-size: clamp(48px, 4.6vw, 66px);
    line-height: 1.02;
    max-width: 21ch;
    text-wrap: balance;
  }
  .about-hero .lead,
  .about-hero .cta-row,
  .about-hero .cta-note {
    grid-column: 1;
  }
  .about-photo--hero {
    grid-column: 2;
    grid-row: 3 / span 3;
    margin-top: 4px;
  }
  .about-belief p {
    max-width: 100%;
    font-size: clamp(26px, 2.45vw, 35px);
    line-height: 1.35;
    text-wrap: pretty;
  }
}

/* About hero warmth pass */
.about-hero h1 span {
  color: var(--accent);
}
@media (min-width: 900px) {
  .about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 18px clamp(36px, 5vw, 70px);
    margin-bottom: 42px;
  }
  .about-hero h1 {
    max-width: 24ch;
    font-size: clamp(47px, 4.35vw, 62px);
  }
  .about-hero .lead {
    max-width: 62ch;
    font-size: 20px;
  }
  .about-photo--hero {
    grid-row: 2 / span 4;
    margin-top: 18px;
  }
  .about-belief {
    padding: 34px 0;
  }
  .about-belief p {
    max-width: 38ch;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(28px, 2.65vw, 38px);
    line-height: 1.28;
  }
}

/* About hero stable two-column correction */
@media (min-width: 900px) {
  .about-hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    grid-template-rows: auto;
    gap: clamp(36px, 5vw, 68px);
    align-items: start;
    margin-bottom: 50px;
  }
  .about-hero > div {
    display: block;
  }
  .about-hero .eyebrow,
  .about-hero h1,
  .about-hero .lead,
  .about-hero .cta-row,
  .about-hero .cta-note {
    grid-column: auto;
  }
  .about-hero h1 {
    max-width: none;
    font-size: clamp(47px, 4.2vw, 62px);
    line-height: 1.03;
  }
  .about-photo--hero {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    max-width: 430px;
  }
  .about-belief p {
    max-width: 32ch;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(28px, 2.55vw, 37px);
    line-height: 1.28;
  }
}


/* About page interaction and memory proof pass */
.about-difference {
  border-top-color: rgba(242, 183, 5, 0.5);
  margin-bottom: 28px;
  padding-bottom: 30px;
}
.difference-grid {
  align-items: stretch;
}
.difference-item {
  border-left: 1px solid rgba(242, 183, 5, 0.42);
  border-radius: 8px;
  margin-left: -10px;
  padding: 12px 12px 12px 18px;
  position: relative;
  transform: translateY(0);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.difference-item::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: -4px;
  opacity: 0;
  position: absolute;
  top: 18px;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 6px;
}
.difference-item:hover,
.difference-item:focus,
.difference-item:focus-within {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(242, 183, 5, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}
.difference-item:hover::before,
.difference-item:focus::before,
.difference-item:focus-within::before {
  opacity: 1;
  transform: translateX(-1px);
}
.difference-item:hover strong,
.difference-item:focus strong,
.difference-item:focus-within strong {
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .difference-item,
  .difference-item::before {
    transition: none;
  }
  .difference-item:hover,
  .difference-item:focus,
  .difference-item:focus-within {
    transform: none;
  }
}
.about-memory-proof {
  align-items: center;
  border-bottom: 1px solid rgba(65, 74, 87, 0.42);
  display: grid;
  gap: clamp(24px, 5vw, 58px);
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1.28fr);
  margin: 0 0 52px;
  padding: 12px 0 46px;
}
.memory-proof-copy h2 {
  font-size: clamp(29px, 3vw, 46px);
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.memory-proof-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.memory-proof-slider {
  margin: 0;
  max-width: none;
  width: 100%;
}
.memory-proof-slider .slider {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.memory-proof-slider figcaption {
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .about-memory-proof {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
    padding-bottom: 36px;
  }
  .difference-item {
    margin-left: 0;
  }
}


/* About page proof item hover pass */
.about-principles .proof-grid {
  align-items: stretch;
}
.about-principles .proof-item {
  border-left-width: 1px;
  border-radius: 8px;
  margin-left: -10px;
  padding: 12px 12px 12px 18px;
  position: relative;
  transform: translateY(0);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.about-principles .proof-item::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: -4px;
  opacity: 0;
  position: absolute;
  top: 18px;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 6px;
}
.about-principles .proof-item:hover,
.about-principles .proof-item:focus,
.about-principles .proof-item:focus-within {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(242, 183, 5, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}
.about-principles .proof-item:hover::before,
.about-principles .proof-item:focus::before,
.about-principles .proof-item:focus-within::before {
  opacity: 1;
  transform: translateX(-1px);
}
.about-principles .proof-item:hover strong,
.about-principles .proof-item:focus strong,
.about-principles .proof-item:focus-within strong {
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .about-principles .proof-item,
  .about-principles .proof-item::before {
    transition: none;
  }
  .about-principles .proof-item:hover,
  .about-principles .proof-item:focus,
  .about-principles .proof-item:focus-within {
    transform: none;
  }
}
@media (max-width: 820px) {
  .about-principles .proof-item {
    margin-left: 0;
  }
}


/* Trust page human safety pass */
.trust-page {
  max-width: min(1180px, calc(100vw - 48px));
}
.trust-hero {
  border-bottom: 1px solid rgba(242, 183, 5, 0.34);
  margin: -4px 0 42px;
  padding-bottom: 36px;
}
.trust-hero h1 {
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 12ch;
  text-wrap: balance;
}
.trust-hero .lead {
  color: var(--ink-soft);
  font-size: clamp(19px, 1.7vw, 24px);
  max-width: 72ch;
}
.trust-promise {
  border-left: 2px solid rgba(242, 183, 5, 0.72);
  margin-top: 28px;
  max-width: 880px;
  padding: 4px 0 4px 18px;
}
.trust-promise strong {
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.trust-promise p {
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.22;
  margin: 0;
}
.trust-timeline,
.trust-detail,
.trust-wont,
.trust-sensitive,
.trust-accountability {
  border-bottom: 1px solid rgba(65, 74, 87, 0.42);
  margin: 0 0 42px;
  padding: 0 0 42px;
}
.trust-timeline,
.trust-detail--split,
.trust-sensitive,
.trust-accountability {
  display: grid;
  gap: clamp(24px, 5vw, 58px);
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
}
.trust-section-copy h2,
.trust-sensitive h2,
.trust-accountability h2 {
  font-size: clamp(29px, 3vw, 46px);
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.trust-section-copy p:not(.eyebrow),
.trust-sensitive p,
.trust-accountability p,
.trust-detail > p,
.trust-note {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.trust-steps,
.trust-rule-grid,
.trust-wont-grid {
  display: grid;
  gap: 16px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-steps {
  counter-reset: trust-step;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trust-rule-grid,
.trust-wont-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trust-rule-grid--compact,
.trust-wont-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trust-steps li,
.trust-rule {
  border-left: 1px solid rgba(242, 183, 5, 0.42);
  border-radius: 8px;
  min-height: 100%;
  padding: 12px 12px 12px 18px;
  position: relative;
  transform: translateY(0);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.trust-steps li::before,
.trust-rule::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: -4px;
  opacity: 0;
  position: absolute;
  top: 18px;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 6px;
}
.trust-steps li strong,
.trust-rule strong,
.trust-steps li span,
.trust-rule span {
  display: block;
}
.trust-steps li strong,
.trust-rule strong {
  color: var(--ink);
  margin-bottom: 6px;
}
.trust-steps li span,
.trust-rule span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.trust-steps li:hover,
.trust-rule:hover,
.trust-steps li:focus,
.trust-rule:focus,
.trust-steps li:focus-within,
.trust-rule:focus-within {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(242, 183, 5, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}
.trust-steps li:hover::before,
.trust-rule:hover::before,
.trust-steps li:focus::before,
.trust-rule:focus::before,
.trust-steps li:focus-within::before,
.trust-rule:focus-within::before {
  opacity: 1;
  transform: translateX(-1px);
}
.trust-steps li:hover strong,
.trust-rule:hover strong,
.trust-steps li:focus strong,
.trust-rule:focus strong,
.trust-steps li:focus-within strong,
.trust-rule:focus-within strong {
  color: var(--accent);
}
.trust-detail--clock .trust-rule-grid {
  margin: 22px 0 18px;
}
.trust-wont {
  display: grid;
  gap: clamp(24px, 5vw, 58px);
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
}
.trust-sensitive {
  border-color: rgba(242, 183, 5, 0.34);
  padding-top: 8px;
}
.trust-accountability {
  border-bottom: 0;
  margin-bottom: 54px;
}
.trust-accountability > div {
  grid-column: 1 / -1;
  max-width: 850px;
}
.trust-page a:not(.btn):not(.btn-ghost) {
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .trust-steps li,
  .trust-rule,
  .trust-steps li::before,
  .trust-rule::before {
    transition: none;
  }
  .trust-steps li:hover,
  .trust-rule:hover,
  .trust-steps li:focus,
  .trust-rule:focus,
  .trust-steps li:focus-within,
  .trust-rule:focus-within {
    transform: none;
  }
}
@media (max-width: 920px) {
  .trust-timeline,
  .trust-detail--split,
  .trust-wont,
  .trust-sensitive,
  .trust-accountability {
    grid-template-columns: 1fr;
  }
  .trust-rule-grid,
  .trust-rule-grid--compact,
  .trust-wont-grid,
  .trust-steps {
    grid-template-columns: 1fr;
  }
  .trust-hero h1 {
    max-width: none;
  }
}
@media (max-width: 520px) {
  .trust-page {
    max-width: var(--maxw);
  }
  .trust-hero h1 {
    font-size: 40px;
  }
  .trust-promise p {
    font-size: 22px;
  }
}


/* Trust page first viewport tightening */
.trust-hero h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  max-width: 15ch;
}
.trust-hero .lead {
  max-width: 64ch;
}
.trust-promise {
  max-width: 940px;
}
.trust-promise p {
  font-size: clamp(23px, 2.25vw, 32px);
}


/* Trust hero headline width correction */
.trust-hero h1 {
  font-size: clamp(44px, 4.9vw, 68px);
  max-width: 22ch;
}
.trust-hero .lead {
  max-width: 70ch;
}


/* Trust hero force natural two-line desktop wrap */
.trust-hero h1 {
  font-size: clamp(44px, 4.6vw, 64px);
  max-width: 1040px;
  text-wrap: normal;
}


/* Trust page no-subscription emphasis */
.trust-rule--wide {
  grid-column: 1 / -1;
}
.trust-rule--wide strong {
  font-size: 18px;
}
.trust-rule--wide span {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ── Logged-in app: workspace + summary layout (UI cleanup, 2026-06) ── */
@media (min-width: 900px) {
  .app {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 24px;
    align-items: start;
  }
  .summary-panel { position: sticky; top: 84px; }
}
.workspace { min-width: 0; }

/* Album-mode segmented control (framing only) */
.album-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}
.album-mode {
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.album-mode.is-active { background: var(--accent); color: var(--accent-ink); }

/* Prominent Colorize toggle */
.check--feature {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  font-weight: 600;
  color: var(--ink);
}

/* Advanced options disclosure */
.advanced { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 4px; }
.advanced > summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before { content: "\25B8"; color: var(--muted); transition: transform 0.15s; }
.advanced[open] > summary::before { transform: rotate(90deg); }
.advanced-body { padding-top: 4px; }

/* Desktop summary panel */
.summary-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.summary-title { font-size: 16px; margin: 0 0 12px; }
.summary-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.summary-list li:last-child { border-bottom: none; padding-bottom: 0; }
.summary-k { color: var(--muted); }
.summary-v { color: var(--ink); font-weight: 700; }
.summary-v--ok { color: var(--ok); }
.summary-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.summary-perks li::before { content: "\2713 "; color: var(--ok); font-weight: 700; }
@media (max-width: 899px) { .summary-panel { margin-top: 22px; } }

/* ── Responsive density tiers ──────────────────────────────────────────────────
   Fixed breakpoints keep type and controls deliberate instead of viewport-scaled. */
@media (min-width: 1180px) {
  :root { --maxw: 1160px; }
  body { font-size: 17px; }
  .wrap { padding: 34px 30px 104px; }
  .topbar { padding: 17px 32px; }
  .landing { gap: 54px; }
  .hero { padding-top: 24px; }
  .hero-title { font-size: 60px; margin-bottom: 22px; }
  .hero-sub { font-size: 20px; max-width: 48ch; }
  .hero-proof { max-width: 500px; }
  .auth-card { max-width: 430px; }
  .card { padding: 24px; margin-bottom: 22px; }
  .guest-upload { min-height: 208px; }
  .guest-empty { min-height: 206px; }
  .step-title { font-size: 21px; }
  .drop { padding: 46px 26px 38px; }
  .drop-cta { font-size: 20px; }
  .controls { padding: 24px; }
  .summary-panel { padding: 22px; }
}

@media (min-width: 721px) and (max-width: 1179px) {
  .wrap { padding-left: 26px; padding-right: 26px; }
  .hero-title { font-size: 48px; }
  .auth-card { max-width: 400px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 18px 14px 52px; }
  .card { padding: 15px; margin-bottom: 14px; border-radius: 8px; }
  .topbar { padding: 11px 14px; }
  .brand { font-size: 15px; }
  .auth-card { max-width: none; }
  .hero-proof { gap: 8px; }
  .how li { align-items: flex-start; }
  .how-n { width: 26px; height: 26px; font-size: 13px; }
  .landing-trust { margin-top: 28px; font-size: 13px; }
  .album-modes { display: flex; width: 100%; }
  .album-mode { flex: 1; padding: 9px 8px; font-size: 13px; }
  .step-title { font-size: 17px; }
  .control-heading { font-size: 15px; }
  .drop { padding: 28px 14px 24px; }
  .drop-cta { font-size: 17px; }
  .drop-hint { font-size: 13px; }
  .chips { gap: 7px; }
  .chip-toggle { flex: 1 1 100%; min-height: 42px; padding: 9px 12px; font-size: 13px; }
  .check--feature { padding: 10px 12px; }
  .model-choice { padding-bottom: 14px; margin-bottom: 14px; }
  .summary-panel { padding: 15px; border-radius: 8px; }
  .summary-list li { font-size: 13px; }
  .summary-perks { font-size: 12px; }
  .feedback-row { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .topbar { align-items: flex-start; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .beta-banner { font-size: 12px; }
  .guest-preview { grid-template-columns: 70px minmax(0, 1fr); }
  .guest-preview img { width: 70px; height: 70px; }
}
