/* ===================================================================
   MeraRAW landing — design tokens mirror the desktop app UI
   (charcoal neutrals, single cool-blue accent, dense pro chrome).
   =================================================================== */
:root {
  /* surfaces (from the app) */
  --bg: #1c1c1c;
  --bg-1: #202020;
  --bg-panel: #2b2b2b;
  --bg-elevated: #383838;
  --bg-viewport: #252525;
  --bg-deep: #161618;

  --border: #3a3a3a;
  --border-soft: rgba(255, 255, 255, 0.07);
  --hair: #111;

  --text: #e8e8e8;
  --text-2: #d4d4d4;
  --text-dim: #8a8a8a;
  --text-faint: #6a6a6a;

  --accent: #4a90d9;
  --accent-2: #6ba8e8;
  --accent-deep: #2e4763;
  --accent-soft: rgba(74, 144, 217, 0.12);
  --accent-edge: rgba(74, 144, 217, 0.32);

  --ok: #7fbf7f;
  --warn: #ffd479;
  --error: #e06c75;

  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --shadow-window: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  --glow-accent: 0 0 24px rgba(74, 144, 217, 0.35);

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-accent);
}
.accent { color: var(--accent-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--r-md);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow-accent);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--text);
}
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--accent-2), var(--accent-deep));
  box-shadow: var(--glow-accent);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 28, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: 1rem;
  font-size: 0.92rem;
}
.nav-links a { color: var(--text-dim); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 0.6rem; }
.nav-burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 320px at 18% 20%, rgba(74, 144, 217, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  margin: 1.1rem 0;
}
.lede {
  color: var(--text-dim);
  font-size: 1.12rem;
  max-width: 34rem;
}
.lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* ---------- app mockup ---------- */
/* Everything inside .app-frame is sized in em so the whole demo scales with
   its base font-size, which is driven by the container's inline width. */
.mock-wrap { perspective: 1600px; container-type: inline-size; }
.app-frame {
  font-size: clamp(11px, 2.05cqi, 22px);
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 0.83em;
  overflow: hidden;
  box-shadow: var(--shadow-window);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.mock-wrap:hover .app-frame { transform: rotateY(0deg) rotateX(0deg); }

/* topbar */
.m-topbar {
  height: 2.83em;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0 0.83em;
  background: linear-gradient(#303030, #262626);
  border-bottom: 1px solid var(--hair);
}
.m-lights { display: flex; gap: 0.5em; }
.m-lights i { width: 0.83em; height: 0.83em; border-radius: 50%; }
.m-lights .r { background: #ff5f57; }
.m-lights .y { background: #febc2e; }
.m-lights .g { background: #28c840; }
.m-brand { font-weight: 600; color: #bdbdbd; letter-spacing: 0.04em; }
.m-tabs { display: flex; gap: 0.17em; }
.m-tab {
  background: none;
  border: none;
  color: var(--text-dim);
  font: inherit;
  padding: 0.33em 0.92em;
  border-radius: 0.33em;
  cursor: pointer;
}
.m-tab.active { background: #444; color: #fff; }
.m-top-right { margin-left: auto; display: flex; align-items: center; gap: 0.83em; }
.m-file { color: var(--text-faint); }
.m-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  font: inherit;
  padding: 0.25em 0.75em;
  border-radius: 0.33em;
  cursor: pointer;
}

/* body */
.m-body { display: grid; grid-template-columns: 12.5em 1fr 15.67em; height: 34.33em; }
.m-left, .m-right { background: var(--bg-panel); overflow: hidden; }
.m-left { border-right: 1px solid var(--hair); padding: 0.67em; }
.m-right { border-left: 1px solid var(--hair); }

.m-panel-h {
  font-size: 0.83em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.58em 0.17em 0.42em;
}
.m-panel-h.ai { color: #9cc1ef; }
.m-nav-thumb {
  height: 6.5em;
  border-radius: 0.33em;
  background: url("https://picsum.photos/id/1018/300/200") center/cover;
  border: 1px solid var(--hair);
}
.m-list { display: flex; flex-direction: column; gap: 0.25em; }
.m-list span {
  font-size: 0.92em;
  color: var(--text-2);
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
}
.m-list span:hover { background: #383838; }
.m-list.dim span { color: var(--text-dim); }

/* center */
.m-center { display: flex; flex-direction: column; background: var(--bg-viewport); min-width: 0; }
.m-canvas { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.17em; min-height: 0; }
.m-photo { max-width: 100%; max-height: 100%; border-radius: 0.25em; object-fit: cover; }
.m-vptoolbar {
  height: 2.33em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 0.83em;
  background: #1e1e1e;
  border-top: 1px solid var(--hair);
}
.m-mini {
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.92em;
  padding: 0.17em 0.58em;
  border-radius: 0.33em;
  cursor: pointer;
}
.m-mini:hover { background: #333; color: var(--text-2); }
.m-zoom { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.m-spacer { flex: 1; }
.m-filmstrip {
  height: 4.67em;
  display: flex;
  gap: 0.33em;
  padding: 0.42em 0.67em;
  background: #1a1a1a;
  border-top: 1px solid var(--hair);
  overflow: hidden;
}
.m-filmstrip img {
  height: 100%;
  border-radius: 0.17em;
  opacity: 0.6;
  border: 1px solid transparent;
  object-fit: cover;
}
.m-filmstrip img.cur { opacity: 1; border-color: var(--accent); }

/* right rail */
.m-hist { padding: 0.67em 0.83em; border-bottom: 1px solid #1f1f1f; background: #262626; }
.m-histogram {
  width: 100%;
  height: 4em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.33em;
}
.m-clip { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 0.83em; margin-top: 0.25em; }
.m-panel { padding: 0.67em 0.83em; border-bottom: 1px solid #1f1f1f; }
.m-panel.ai { background: #232733; }
.m-sub {
  font-size: 0.75em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0.58em 0 0.33em;
}
.m-chips { display: flex; flex-wrap: wrap; gap: 0.33em; margin-bottom: 0.58em; }
.m-chips span {
  font-size: 0.83em;
  padding: 0.25em 0.58em;
  border-radius: 0.83em;
  background: #333;
  border: 1px solid #444;
  color: var(--text-2);
}
.m-ai-log {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  background: #1d1d1d;
  border: 1px solid var(--border);
  border-radius: 0.33em;
  padding: 0.5em;
}
.m-ai-log em { font-style: normal; font-size: 0.83em; color: #9cc1ef; }
.m-slider {
  display: grid;
  grid-template-columns: 4.67em 1fr 2.5em;
  align-items: center;
  gap: 0.58em;
  height: 1.67em;
}
.m-slider span { font-size: 0.83em; color: var(--text-2); }
.m-slider i {
  height: 0.25em;
  border-radius: 0.17em;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / var(--p, 50%) 100% no-repeat,
    #4a4a4a;
  position: relative;
}
.m-slider i::after {
  content: "";
  position: absolute;
  left: var(--p, 50%);
  top: 50%;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #d0d0d0;
  border: 1px solid #1a1a1a;
  transform: translate(-50%, -50%);
}
.m-slider b { font-size: 0.83em; color: var(--text-dim); text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }

/* library mock */
.m-library { display: block; height: 34.33em; overflow: hidden; background: var(--bg); }
.m-libgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.67em;
  padding: 1em;
}
.m-libgrid span {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: 0.42em;
  border: 2px solid transparent;
  background: var(--img) center/cover, var(--bg-panel);
}
.m-libgrid span.sel { border-color: var(--accent); }
.m-libgrid .flag { position: absolute; top: 0.42em; left: 0.42em; width: 0.58em; height: 0.58em; border-radius: 50%; }
.m-libgrid .flag.pick { background: var(--ok); }
.m-libgrid .flag.rej { background: var(--error); }

/* statusbar */
.m-status {
  height: 1.83em;
  display: flex;
  align-items: center;
  gap: 1.17em;
  padding: 0 1em;
  background: #232323;
  border-top: 1px solid var(--hair);
  font-size: 0.83em;
  color: var(--text-dim);
}
.m-status .ok { color: var(--ok); }
.m-status-meta { margin-left: auto; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.trust-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.trust-inner div { display: flex; flex-direction: column; }
.trust-inner b { font-size: 1.2rem; color: var(--text); }
.trust-inner span { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 600; margin: 0.9rem 0; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-edge); }
.card-ic {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ai spotlight */
.ai-spot {
  background:
    radial-gradient(720px 360px at 80% 10%, rgba(74, 144, 217, 0.12), transparent 70%);
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ai-text h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 600; margin: 0.9rem 0; }
.ai-text p { color: var(--text-dim); font-size: 1.05rem; }
.ai-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; }
.ai-points li { display: flex; gap: 0.7rem; color: var(--text-2); font-size: 0.98rem; }
.ai-points i { color: var(--ok); font-style: normal; font-weight: 700; }

.chat {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.bubble { padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.95rem; max-width: 92%; }
.bubble.user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  color: var(--accent-2);
  border-bottom-right-radius: 4px;
}
.bubble.assistant {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-bottom-left-radius: 4px;
}
.edit-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.7rem; }
.edit-chips span {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-2);
}
.verdict { display: flex; gap: 6px; margin-top: 0.3rem; }
.verdict button {
  flex: 1;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
}
.verdict .v-keep { border-color: var(--ok); color: var(--ok); }
.verdict .v-revert { border-color: var(--error); color: var(--error); }

/* ---------- AI supporting points (merged section) ---------- */
.ai-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.ai-support-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
}
.ai-support-item h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.ai-support-item p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- compact workflow ---------- */
.workflow-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.workflow-lines li {
  padding: 1rem 1.2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- AI example gallery ---------- */
.ai-gallery {
  background:
    radial-gradient(680px 340px at 12% 0%, rgba(74, 144, 217, 0.10), transparent 70%);
}
.gallery { display: grid; grid-template-columns: 320px 1fr; gap: 1.6rem; align-items: start; }

.gallery-prompts { display: flex; flex-direction: column; gap: 0.55rem; }
.gp {
  position: relative;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-2);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.8rem 0.95rem 0.8rem 2.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.gp::before {
  content: "“";
  position: absolute;
  left: 0.7rem;
  top: 0.55rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-faint);
}
.gp:hover { transform: translateX(2px); border-color: var(--accent-edge); }
.gp.active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent-edge);
}
.gp.active::before { color: var(--accent-2); }

.gallery-stage { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

/* before / after */
.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--bg-panel);
  user-select: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after { clip-path: inset(0 calc(100% - var(--split, 55%)) 0 0); }
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 55%);
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}
.ba-handle::before, .ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
}
.ba-handle::before { left: 5px; border-right: 6px solid #fff; transform: translateY(-50%); }
.ba-handle::after { right: 5px; border-left: 6px solid #fff; transform: translateY(-50%); }
.ba-tag {
  position: absolute;
  top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(16, 16, 18, 0.7);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-before-tag { right: 0.7rem; color: var(--text-dim); }
.ba-after-tag { left: 0.7rem; color: var(--accent-2); border: 1px solid var(--accent-edge); }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 44px; height: 999px; border: none; background: transparent; cursor: ew-resize; }

/* response card */
.ga-response {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
}
.ga-prompt-echo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.02rem; color: var(--text); }
.ga-q {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-pill);
}
.ga-badge {
  display: inline-block;
  margin: 0.9rem 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9cc1ef;
  background: rgba(74, 144, 217, 0.10);
  border: 1px solid var(--accent-edge);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.6rem;
}
.ga-summary { color: var(--text-dim); font-size: 0.97rem; margin-top: 0.3rem; }
.ga-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.9rem; }
.ga-chips span {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.ga-verdict { margin-top: 1.1rem; }

/* ---------- vs Lightroom ---------- */
.vs-spot {
  background:
    radial-gradient(720px 360px at 88% 0%, rgba(74, 144, 217, 0.10), transparent 70%);
}
.vs-table {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.vs-row {
  display: grid;
  grid-template-columns: 1.7fr 1.15fr 1.15fr;
  border-bottom: 1px solid var(--border);
}
.vs-row:last-child { border-bottom: none; }
.vs-row > span {
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 1px solid var(--border);
}
.vs-row > span:first-child { border-left: none; }
.vs-cap { color: var(--text); }
.vs-cap b { font-weight: 600; }
.vs-row .vs-mine { background: var(--accent-soft); color: var(--text); }
.vs-head {
  background: var(--bg-1);
  font-weight: 600;
}
.vs-head > span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.vs-head .vs-mine { color: var(--accent-2); background: var(--accent-soft); }
.vs-row i {
  flex: none;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
}
.vs-row i.yes { background: rgba(127, 191, 127, 0.16); color: var(--ok); }
.vs-row i.no { background: rgba(224, 108, 117, 0.14); color: var(--error); }
.vs-row i.mid { background: rgba(255, 212, 121, 0.14); color: var(--warn); }
.vs-row code {
  font-size: 0.82rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  color: var(--accent-2);
}

/* ---------- shared status pills (vs + comparison + legend) ---------- */
.vs-row i,
.cmp i,
.cmp-legend i {
  flex: none;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: -0.2em;
}
.vs-row i.yes, .cmp i.yes, .cmp-legend i.yes { background: rgba(127, 191, 127, 0.16); color: var(--ok); }
.vs-row i.no, .cmp i.no, .cmp-legend i.no { background: rgba(224, 108, 117, 0.14); color: var(--error); }
.vs-row i.mid, .cmp i.mid, .cmp-legend i.mid { background: rgba(255, 212, 121, 0.14); color: var(--warn); }
/* "coming soon" roadmap badge — wider pill with a label */
.cmp i.soon, .cmp-legend i.soon {
  width: auto;
  padding: 0 0.5em;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid var(--accent-edge);
}

/* ---------- supported formats ---------- */
.fmt-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.fmt {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.4rem;
}
.fmt-h {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}
.fmt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt-tags span {
  font-size: 0.82rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ---------- comparison table ---------- */
.cmp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 1.2rem;
}
.cmp-head h3 { font-size: 1.4rem; font-weight: 600; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-dim); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }

.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  -webkit-overflow-scrolling: touch;
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  font-size: 0.86rem;
}
.cmp th,
.cmp td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
}
.cmp tr:last-child td { border-bottom: none; }
.cmp th:first-child,
.cmp td:first-child {
  border-left: none;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-1);
  min-width: 220px;
  color: var(--text);
}
.cmp thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-1);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 600;
}
.cmp thead th:first-child { z-index: 3; }
.cmp .cmp-mine { background: var(--accent-soft); color: var(--text); }
.cmp thead .cmp-mine { color: var(--accent-2); }
.cmp .cmp-group td {
  position: static;
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: none;
}
.cmp-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 60rem;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.step-n {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}
.step h3 { font-size: 1.1rem; margin: 0.6rem 0 0.4rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* use cases */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.use {
  position: relative;
  height: 260px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--img) center/cover, var(--bg-panel);
}
.use::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.1) 30%, rgba(16, 16, 18, 0.92));
}
.use-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.3rem; z-index: 1; }
.use-body h3 { font-size: 1.2rem; }
.use-body p { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.3rem; }

/* specs */
.specs { background: var(--bg-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); max-width: none; }
.specs > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.spec {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.spec:nth-child(odd) { border-right: 1px solid var(--border); }
.spec:nth-last-child(-n + 2) { border-bottom: none; }
.spec span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); }
.spec b { font-size: 0.98rem; color: var(--text); font-weight: 500; }

/* cta */
.cta { padding: 5rem 1.5rem; }
.cta-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3.5rem 2rem;
  overflow: hidden;
}
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
.cta-inner p { color: var(--text-dim); margin-top: 0.8rem; font-size: 1.08rem; }
.cta-inner .hero-actions { justify-content: center; }
.cta-fine { display: block; margin-top: 1.3rem; font-size: 0.82rem; color: var(--text-faint); }

/* ---------- purchase / auth ---------- */
.purchase-panel {
  margin-top: 1.8rem;
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.auth-block { margin-top: 0.5rem; }
.auth-msg, .auth-lead { color: var(--text-2); font-size: 0.98rem; margin: 0 0 0.6rem; }
.auth-sub { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 1rem; }
.auth-fields { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1rem; }
.auth-input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}
.auth-input:focus {
  outline: none;
  border-color: var(--accent-edge);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.auth-actions { justify-content: flex-start; margin-top: 0.2rem; }
.auth-error {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md);
  background: rgba(224, 108, 117, 0.12);
  border: 1px solid rgba(224, 108, 117, 0.35);
  color: var(--error);
  font-size: 0.9rem;
}

.page-simple {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.page-card {
  max-width: 32rem;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
}
.page-card-wide { max-width: 36rem; }
.page-card h1 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.page-card p { color: var(--text-dim); margin-bottom: 1.2rem; }
.page-card .hero-actions { justify-content: center; margin-top: 1rem; }
.page-note { font-size: 0.85rem; color: var(--text-faint); margin: 1.2rem 0 0; }

.license-details {
  text-align: left;
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.license-details dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-top: 0.75rem;
}
.license-details dt:first-child { margin-top: 0; }
.license-details dd { margin: 0.2rem 0 0; color: var(--text); font-size: 0.95rem; }
.license-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; word-break: break-all; }
.license-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.license-badge.active {
  background: rgba(76, 175, 125, 0.14);
  color: #6dd49a;
  border: 1px solid rgba(76, 175, 125, 0.35);
}
.license-badge.pending {
  background: rgba(212, 167, 74, 0.12);
  color: #e0bc72;
  border: 1px solid rgba(212, 167, 74, 0.35);
}

/* footer */
.footer { border-top: 1px solid var(--border-soft); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 2rem; }
.footer-brand p { color: var(--text-dim); margin-top: 0.7rem; font-size: 0.92rem; max-width: 22rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); margin-bottom: 0.8rem; }
.footer-cols a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 0.2rem 0; transition: color 0.15s ease; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .app-frame { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- large screens: use the side space ---------- */
/* Fluid container: stays continuous with the 1200px base (~1334px is where
   92vw overtakes 1200), then grows with the viewport instead of stepping. */
@media (min-width: 1334px) { :root { --maxw: 92vw; } }
@media (min-width: 2783px) { :root { --maxw: 2560px; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .ai-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .app-frame { transform: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-prompts { flex-flow: row wrap; }
  .gp { flex: 1 1 calc(50% - 0.55rem); }
  .ai-support { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav.open .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--border-soft); }
  .feature-grid, .steps, .use-grid, .footer-inner, .footer-cols, .spec-grid, .fmt-grid { grid-template-columns: 1fr; }
  .spec:nth-child(odd) { border-right: none; }
  .footer-bottom { flex-direction: column; }
  .gp { flex: 1 1 100%; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > span { border-left: none; border-top: 1px solid var(--border); }
  .vs-row > span:first-child { border-top: none; font-weight: 600; }
  .vs-head { display: none; }
  .vs-row .vs-mine::before { content: "MeraRAW — "; color: var(--accent-2); font-weight: 600; }
  .vs-row > span:last-child::before { content: "Lightroom — "; color: var(--text-faint); font-weight: 600; }
  .m-body { grid-template-columns: 0 1fr 13.33em; }
  .m-left { display: none; }
}
