/* Garden Genius — mobile-first */
@font-face {
  font-family: 'Inter var';
  src: url('/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --band: #f4f7f4;
  --card: #ffffff;
  --ink: #1f2a20;
  --muted: #67705f;
  --brand: #2f7d4f;
  --brand-deep: #215c39;
  --brand-soft: #e7f0e9;
  --line: #e4e0d3;
  --danger: #b4231f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 34, 24, 0.06), 0 4px 16px rgba(24, 34, 24, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter var', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 430;
}
h1, h2, h3 { font-weight: 800; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- header / footer ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
}
.mark {
  font-size: 22px; background: var(--brand-soft); border-radius: 10px;
  width: 40px; height: 40px; display: grid; place-items: center;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 17px; letter-spacing: -0.01em; }
.brand span { font-size: 12.5px; color: var(--muted); }
.pill {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 4px 10px; border-radius: 999px;
}
.foot { max-width: 1120px; margin: 0 auto; padding: 20px 20px 36px; color: var(--muted); font-size: 12.5px; }
.foot p { margin: 0; }

#banner .demo-banner {
  max-width: 1120px; margin: 14px auto 0; padding: 10px 14px;
  background: #fdf3df; border: 1px solid #f0dcb0; border-radius: 10px;
  color: #7a5410; font-size: 13.5px;
}
#banner .demo-banner.err { background: #fdecec; border-color: #f2c4c2; color: #7c1a17; }
#banner { padding: 0 20px; }

/* ---------- layout ---------- */
#app { max-width: 1120px; margin: 0 auto; padding: 22px 20px 120px; }
.noscript { padding: 40px 0; text-align: center; color: var(--muted); }

.progress { display: flex; gap: 6px; margin-bottom: 20px; }
.progress .seg {
  flex: 1; height: 5px; border-radius: 99px; background: var(--line);
}
.progress .seg.on { background: var(--brand); }

.step-head { margin-bottom: 18px; }
.kicker {
  display: inline-block; font-size: 11.5px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-soft); border-radius: 999px; padding: 5px 13px; margin: 0 0 10px;
}
.step-head h1 { margin: 0 0 6px; font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -0.025em; line-height: 1.18; overflow-wrap: anywhere; font-weight: 850; }
.step-head .sub { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- cards & option grids ---------- */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.cards.big { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: left; box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
  display: flex; flex-direction: column; gap: 6px; min-height: 44px;
}
.card:hover { border-color: #c9c4b2; }
.card.sel { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; }
.card:disabled { opacity: 0.55; cursor: not-allowed; }
.card .emoji { font-size: 30px; line-height: 1; }
.card .t { font-weight: 700; font-size: 16px; }
.card .d { color: var(--muted); font-size: 13.5px; }
.card .soon {
  align-self: flex-start; font-size: 11px; font-weight: 700; color: #7a5410;
  background: #fdf3df; padding: 2px 8px; border-radius: 999px;
}

.opt {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  transition: border-color 0.15s; box-shadow: var(--shadow);
}
.opt:hover { border-color: #c9c4b2; }
.opt.sel { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; }
.opt .swatch { height: 52px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.08); }
.opt .swatch.emoji { display: grid; place-items: center; font-size: 28px; background: var(--brand-soft); border: none; }
.opt .swatch.none {
  background: repeating-linear-gradient(45deg, #f1efe7 0 8px, #e8e5da 8px 16px);
  display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600;
}
.opt .lab { font-size: 13.5px; font-weight: 600; line-height: 1.3; text-align: center; }

/* ---------- accordion groups ---------- */
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.group-head {
  width: 100%; background: none; border: 0; padding: 15px 16px;
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.group-head .g-lab { font-weight: 700; font-size: 15.5px; }
.group-head .g-hint { color: var(--muted); font-size: 12.5px; display: block; }
.group-head .g-val { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.group-head .g-val.set { color: var(--brand-deep); font-weight: 700; }
.group-head .chev { color: var(--muted); transition: transform 0.15s; flex: none; }
.group.open .chev { transform: rotate(180deg); }
.group-body { padding: 0 16px 16px; display: none; }
.group.open .group-body { display: block; }

/* ---------- photo step ---------- */
.qr-inline {
  display: none; gap: 26px; align-items: center;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #1a4a2d 100%); color: #fff;
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px;
}
.qr-inline > div:first-child { flex: 1; }
.qr-inline h3 { margin: 0 0 8px; font-size: 17.5px; color: #fff; }
.qr-inline p { margin: 0; color: #d9e7dd; font-size: 14.5px; line-height: 1.65; }
.qr-inline .qr-box { padding: 12px; border-radius: 12px; gap: 6px; }
.qr-inline .qr-box canvas { width: 132px; height: 132px; }
@media (min-width: 900px) { .qr-inline { display: flex; } }

.photo-actions { display: grid; gap: 12px; grid-template-columns: 1fr; }
.photo-btn {
  border: 1.5px dashed #c9c4b2; background: var(--card); border-radius: var(--radius);
  padding: 22px 18px; display: flex; align-items: center; gap: 14px; text-align: left;
}
.photo-btn:hover { border-color: var(--brand); }
.photo-btn .emoji { font-size: 28px; }
.photo-btn .t { font-weight: 700; }
.photo-btn .d { color: var(--muted); font-size: 13.5px; }
.sample-link { margin-top: 14px; font-size: 14.5px; }
.sample-link button { background: none; border: none; color: var(--brand-deep); font-weight: 700; text-decoration: underline; padding: 4px; }
.tips { margin-top: 18px; color: var(--muted); font-size: 13.5px; background: var(--brand-soft); border-radius: 10px; padding: 12px 16px; }
.tips strong { color: var(--ink); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.thumb { position: relative; border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; }
.thumb img { width: 104px; height: 78px; object-fit: cover; display: block; }
.thumb.sel { border-color: var(--brand); }
.thumb .x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 99px;
  border: none; background: rgba(20, 20, 20, 0.65); color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center;
}
.thumb-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.surprise-card {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--brand-soft); border: 1.5px solid #cfe2d4; border-radius: var(--radius);
  padding: 18px 20px; margin-top: 18px;
}
.surprise-card h3 { margin: 0 0 4px; font-size: 16px; }
.surprise-card p { margin: 0; color: #47523f; font-size: 14px; max-width: 56ch; }
.surprise-card .btn { flex: none; }

/* ---------- review ---------- */
.review-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.review-card h3 { margin: 0 0 10px; font-size: 15px; }
.review-card img { border-radius: 10px; }
.sum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sum-list li { display: flex; gap: 8px; font-size: 14.5px; align-items: baseline; }
.sum-list .g { color: var(--muted); min-width: 118px; font-size: 13px; }
.sum-list .edit-link { margin-left: auto; }
textarea {
  width: 100%; min-height: 84px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; resize: vertical; background: #fff;
}
textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.quality { display: flex; gap: 10px; margin-top: 4px; }
.quality button {
  flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; text-align: left;
}
.quality button.sel { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; }
.quality .t { font-weight: 700; display: block; font-size: 14.5px; }
.quality .d { color: var(--muted); font-size: 12.5px; }

/* ---------- loading ---------- */
.loading { text-align: center; padding: 48px 0 24px; }
.spinner {
  width: 52px; height: 52px; margin: 0 auto 22px; border-radius: 50%;
  border: 5px solid var(--brand-soft); border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading h2 { font-size: 1.3rem; margin: 0 0 8px; }
.loading .msg { color: var(--muted); min-height: 24px; }
.loading .elapsed { color: var(--muted); font-size: 13px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* ---------- result ---------- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #222; touch-action: none; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .after-wrap { position: absolute; inset: 0; overflow: hidden; }
.ba .handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%); pointer-events: none;
}
.ba .handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; color: #333; font-size: 11px; letter-spacing: 1px;
  padding: 7px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.ba .tag {
  position: absolute; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(17, 22, 17, 0.72); color: #fff; padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.ba .tag.before { left: 10px; }
.ba .tag.after { right: 10px; }
/* ---------- style rolls + email capture + paywall ---------- */
.roll-strip { margin-top: 18px; padding: 16px; background: var(--band); border-radius: var(--radius); }
.roll-strip h3 { margin: 0 0 10px; font-size: 1rem; }
.roll-strip .mk-note { margin: 10px 0 0; }
.roll-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.roll-chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px;
  font-weight: 650; font-size: 13.5px; cursor: pointer; min-height: 40px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.roll-chip:hover { transform: translateY(-1px); border-color: var(--brand); box-shadow: 0 4px 14px rgba(24, 34, 24, 0.12); }
.email-card { border: 2px solid var(--brand); }
.email-card.done { border-color: var(--line); }
.email-card input[type="email"] {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit;
}
.paywall-thumb {
  display: block; width: 100%; max-height: 190px; object-fit: cover;
  border-radius: 12px; margin: 0 0 14px;
}
.paywall-reassure { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* ---------- cookie consent ---------- */
.consent-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 130;
  width: min(880px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(24, 34, 24, 0.18);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.consent-bar p { margin: 0; flex: 1; min-width: 240px; font-size: 14px; color: var(--muted); }
.consent-bar a { color: var(--brand-deep); }
.consent-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) {
  .consent-bar { padding: 14px; gap: 12px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

.ba-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.ba-bar .ba-toggle { margin: 0; }
.share-cta {
  display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.share-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(24, 34, 24, 0.14); border-color: var(--brand); }
.share-cta svg { width: 17px; height: 17px; display: block; }
.share-cta .i-fb { fill: #1877f2; }
.share-cta .i-x { fill: #0f1419; }
.share-cta .i-wa { fill: #25d366; }
.share-cta .i-pin { fill: #e60023; }
.ba-toggle { display: flex; gap: 8px; margin: 14px 0 4px; }
.ba-toggle button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 13.5px;
}
.ba-toggle button.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.result-meta { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.history { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; margin-top: 18px; }
.history .h-item { flex: none; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: none; }
.history .h-item img { width: 120px; height: 84px; object-fit: cover; display: block; }
.history .h-item.sel { border-color: var(--brand); }
.result-cols { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ---------- buttons & action bar ---------- */
.btn {
  border: none; border-radius: 999px; padding: 14px 26px; font-weight: 650; font-size: 15.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(47, 125, 79, 0.32); }
.btn.primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 125, 79, 0.38); }
.btn.primary:disabled { background: #b9c9be; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.btn.link { background: none; color: var(--brand-deep); text-decoration: underline; padding: 8px; min-height: 0; }

.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}
.actionbar-inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 12px; }
.actionbar .btn.primary { flex: 1; }
.actionbar .hintline { display: none; }

.error-box {
  background: #fdecec; border: 1px solid #f2c4c2; color: #7c1a17;
  border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 14.5px;
}
.demo-note-box {
  background: #fdf3df; border: 1px solid #f0dcb0; color: #7a5410;
  border-radius: 10px; padding: 12px 16px; margin: 12px 0 0; font-size: 14px; line-height: 1.6;
}

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- saved-results chip ---------- */
.results-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 16px;
  border: 1.5px solid var(--brand); background: var(--brand-soft); color: var(--brand-deep);
  font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 8px 16px;
}
.results-chip:hover { background: #dcebe0; }

/* ---------- markup editor ---------- */
.mk-note { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.mk-modal {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: rgba(18, 24, 18, 0.96); color: #fff;
}
.mk-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(10px);
}
.mk-top strong { font-size: 15.5px; display: block; }
.mk-top .mk-sub { font-size: 12.5px; color: #b9c2b6; display: block; }
.mk-top > div:first-child { margin-right: auto; }
.mk-top .btn { min-height: 42px; padding: 9px 16px; }
.mk-top .mk-cancel { background: transparent; color: #dfe5dc; border-color: #4a544a; }
.mk-canvas-outer { flex: 1; display: grid; place-items: center; min-height: 0; padding: 6px 12px; }
.mk-canvas-wrap {
  /* aspect-ratio + --ar are set inline per photo; width fits both axes */
  position: relative;
  width: min(100%, calc((100dvh - 230px) * var(--ar, 1.33)));
  border-radius: 10px; overflow: hidden; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.mk-canvas-wrap canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
#mkBase { position: relative; }
#mkInk { opacity: 0.55; touch-action: none; cursor: crosshair; }
.mk-tools { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.mk-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.mk-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid #4a544a; background: #232b23; color: #eef2ec;
  font-weight: 600; font-size: 13px; border-radius: 999px; padding: 8px 14px;
}
.mk-chip .dot { width: 14px; height: 14px; border-radius: 99px; background: var(--chip); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.mk-chip.sel { border-color: var(--chip); background: #2c352c; }
.mk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-sizes { display: flex; gap: 6px; }
.mk-sizes button {
  width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid #4a544a;
  background: #232b23; display: grid; place-items: center;
}
.mk-sizes button span { display: block; border-radius: 99px; background: #eef2ec; }
.mk-sizes button.sel { border-color: #fff; }
.mk-tool {
  border: 1.5px solid #4a544a; background: #232b23; color: #eef2ec;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600;
}
.mk-tool.sel { border-color: #fdd835; color: #fdd835; }

@media (min-width: 720px) {
  .mk-top { padding: 14px 22px; }
  .mk-tools { padding: 12px 22px 18px; }
}

/* ---------- header nav & account ---------- */
.brand-link { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: none; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.xs-label { display: none; }
@media (max-width: 719px) {
  .top-inner { padding: 10px 14px; gap: 8px; }
  .brand-link { gap: 8px; }
  .brand-name { font-size: 19px; }
  .logo-img { width: 30px; height: 30px; }
  .nav-right { gap: 8px; }
  .btn.slim { padding: 7px 11px; font-size: 12.5px; min-height: 34px; }
}
@media (max-width: 429px) {
  .full-label { display: none; }
  .xs-label { display: inline; }
}
/* Tiny screens: the sign-up modal has a Log in tab, so the separate button can go. */
@media (max-width: 359px) {
  #loginBtn { display: none; }
}
/* Guest header carries four controls. On small phones My projects yields first
   (it stays reachable from every result page), then Log in drops its button
   chrome and Save shortens — but both stay visible, because a guest with no
   visible way to log in is exactly how you strand someone. */
.lbl-xs { display: none; }
@media (max-width: 520px) {
  .top-inner { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .brand-name { font-size: 17px; }
  .logo-img { width: 26px; height: 26px; }
  .brand-link { gap: 6px; }
  .nav-right { gap: 6px; }
  .nav-right .xs-hide { display: none; }
  .nav-right .lbl-full { display: none; }
  .nav-right .lbl-xs { display: inline; }
  .nav-right .guest-login { border-color: transparent; background: none; padding: 7px 2px; }
}
.brand-name em { font-style: normal; color: var(--brand); }
.nav { display: none; gap: 18px; margin-left: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--brand-deep); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-price { display: none; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 14.5px; padding: 8px 6px; }
.nav-price:hover { color: var(--brand-deep); }
@media (min-width: 720px) { .nav-price { display: inline-block; } }
.btn.slim { min-height: 38px; padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
.credits-chip {
  border: 1.5px solid var(--brand); background: var(--brand-soft); color: var(--brand-deep);
  font-weight: 800; font-size: 13.5px; border-radius: 999px; padding: 7px 14px;
}
.menu-wrap { position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 999px; border: none;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px;
}
.menu {
  position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(24, 34, 24, 0.15); min-width: 220px;
  display: none; flex-direction: column; padding: 6px; z-index: 60;
}
/* invisible bridge so the pointer can travel from avatar to menu without closing */
.menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.menu-wrap:hover .menu, .menu-wrap.open .menu { display: flex; }
.menu a, .menu button {
  text-align: left; padding: 10px 12px; border: 0; background: none; color: var(--ink);
  text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 8px;
}
.menu a:hover, .menu button:hover { background: var(--brand-soft); }
.menu-email { padding: 8px 12px 6px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 720px) { .nav { display: flex; } }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 26, 20, 0.55);
  display: grid; place-items: center; padding: 16px;
}
.modal-panel {
  position: relative; background: #fff; border-radius: 18px; width: min(440px, 100%);
  max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-panel.wide { width: min(620px, 100%); }
.modal-body { padding: 26px; }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 99px;
  border: none; background: var(--bg); color: var(--muted); font-size: 14px; z-index: 2;
}
.modal-title { margin: 0 0 8px; font-size: 1.3rem; }

/* ---------- auth ---------- */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tabs button {
  flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px; font-weight: 700; font-size: 14.5px;
}
.auth-tabs button.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.auth-msg { background: var(--brand-soft); color: var(--brand-deep); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-weight: 700; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.auth-form input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; font: inherit;
}
.auth-form input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.auth-err { background: #fdecec; color: #7c1a17; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 0; }

/* ---------- pricing & paywall ---------- */
.price-section { margin: 34px 0; }
.price-section h2 { font-size: 1.25rem; margin: 0 0 14px; }
.pack-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 6px; }
.pack-card {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
}
.pack-card.hl { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; }
.pack-flag {
  position: absolute; top: -11px; left: 18px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px;
}
.pack-flag.current { background: #7a5410; left: auto; right: 18px; }
.pack-flag.used { background: #8a938a; }
.btn.ghost:disabled { opacity: 0.65; cursor: default; transform: none; }
.pack-card h3 { margin: 0; font-size: 16px; }
.pack-price { font-size: 30px; font-weight: 800; margin: 2px 0; letter-spacing: -0.02em; }
.pack-price .per { font-size: 14px; font-weight: 600; color: var(--muted); }
.pack-credits { color: var(--brand-deep); font-weight: 700; font-size: 13.5px; margin: 0 0 4px; }
.pack-card .btn { margin-top: auto; }
.pack-card .mk-note { flex: 1; }
.pack-card.slim-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.pack-card.slim-row h3 { margin-bottom: 4px; }
.slim-buy { text-align: right; display: flex; align-items: center; gap: 14px; }
.slim-buy p { margin: 0; }
.testmode-note {
  margin-top: 16px; text-align: center; background: #fdf3df; color: #7a5410;
  font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: 10px;
}
.faq ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 720px) {
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-grid.three { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- projects ---------- */
.proj-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.proj-card {
  display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.proj-card:hover { border-color: var(--brand); }
.proj-thumb { aspect-ratio: 4 / 3; background: var(--brand-soft); display: grid; place-items: center; font-size: 34px; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.proj-meta span { color: var(--muted); font-size: 12.5px; }
.crumb { margin: 0 0 10px; font-size: 14px; }
.crumb a { color: var(--brand-deep); }
.proj-head h1 { display: flex; align-items: center; gap: 6px; }
.empty-state { text-align: center; padding: 60px 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- account ---------- */
.account-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.wallet-big { font-size: 32px; font-weight: 800; margin: 4px 0 12px; }
.wallet-big span { font-size: 14px; font-weight: 600; color: var(--muted); }
@media (min-width: 720px) { .account-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
.row-disabled td { opacity: 0.5; }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand-deep); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.badge.bad { background: #fdecec; color: #7c1a17; }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 16px; font-weight: 700; font-size: 13.5px;
}
.admin-tabs button.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .n { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat.good .n { color: var(--brand-deep); }
.stat.bad .n { color: var(--danger); }
.admin-search {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font: inherit; margin-bottom: 12px; background: #fff;
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-actions label { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.admin-actions input { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }

/* ---------- landing page ---------- */
.logo-img { width: 38px; height: 38px; display: block; }
.brand-accent { color: var(--brand); }
.btn.xl { font-size: 17px; padding: 16px 28px; border-radius: 14px; }
.btn.light { background: #fff; color: var(--brand-deep); border: none; }
.btn.light:hover { background: var(--brand-soft); }
.foot-inner { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: var(--brand-deep); }

/* Landing routes lift the app-column cap so bands span the whole viewport. */
body.landing-full #app { max-width: none; padding: 0; }
.landing { margin: 0; overflow-x: clip; }
.landing section { padding: 40px 20px; }
.landing h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); letter-spacing: -0.02em; margin: 0 0 22px; text-align: center; }
.landing h2 em, .hero h1 em { font-style: normal; color: var(--brand); }

.hero-band {
  background: linear-gradient(180deg, #ecf5ee 0%, #d8eadd 100%);
  border-radius: 0 0 44% 44% / 0 0 72px 72px;
  text-align: center;
  padding: 48px 20px 150px !important;
}
.hero-copy { max-width: 1120px; margin: 0 auto; }
.hero-copy h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em;
  margin: 0 auto 16px; font-weight: 850; max-width: 21ch;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: #47523f; margin: 0 auto 24px; line-height: 1.65; max-width: 62ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-trust { color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }
.hero-media { padding: 0 20px 10px !important; }
.hero-slider { position: relative; margin: -110px auto 0; max-width: 940px; }
.hero-slider .ba { cursor: ew-resize; border: 6px solid #fff; box-shadow: 0 24px 70px rgba(24, 34, 24, 0.22); border-radius: 22px; }
.hero-slider figcaption { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }

.land-band { background: #fff; }
.land-band.alt { background: var(--band); }
.land-band > h2, .land-band > .steps-grid, .land-band > .feature-grid, .land-band > .band-cta, .land-band > .qr-inner, .land-band > .biz-inner, .land-band > .t-grid, .land-band > .price-sub { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* ---------- recent transformations ---------- */
.land-band.t-band { background: var(--band); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.t-grid .t-ba { touch-action: pan-y; cursor: ew-resize; }
.t-note { display: block; width: 100%; color: var(--muted); font-size: 14px; }
@media (max-width: 899px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .t-grid { grid-template-columns: 1fr; } }
.band-cta { text-align: center; margin: 26px 0 0; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

.steps-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.step-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow); position: relative;
}
.land-band.alt .step-card { background: var(--bg); }
.step-card.pic { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step-card.pic .step-img { position: relative; }
.step-card.pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.step-card.pic .step-n {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 999px;
  background: #fff; color: var(--brand-deep); font-weight: 800; font-size: 16px;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(24, 34, 24, 0.25);
}
.step-card.pic h3 { margin: 16px 18px 6px; font-size: 17px; }
.step-card.pic p { margin: 0 18px 18px; color: var(--muted); font-size: 14.5px; flex: 1; }
.step-card .step-emoji { font-size: 30px; display: block; margin-bottom: 8px; }
.step-card h3 { margin: 0 0 6px; font-size: 16.5px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pricing-teaser .step-card { text-align: center; }
.pricing-teaser .step-emoji { margin: 0 auto 8px; }
.pricing-teaser h3 { font-size: 26px; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature-card { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 70%; }
.feature-card h3 { margin: 16px 18px 6px; font-size: 17px; }
.feature-card p { margin: 0 18px 18px; color: var(--muted); font-size: 14.5px; flex: 1; }

.biz-band { background: var(--brand-deep); color: #fff; }
.biz-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.biz-band h2 { text-align: left; margin: 0 0 8px; color: #fff; }
.biz-band p { margin: 0; color: #d7e5da; }
.biz-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.biz-cta p { font-size: 13px; }

.qr-band { display: none; background: linear-gradient(135deg, var(--brand-deep) 0%, #1a4a2d 100%); color: #fff; }
.qr-inner { display: flex; gap: 44px; align-items: center; }
.qr-inner > div:first-child { flex: 1; }
.qr-band h2 { text-align: left; margin: 0 0 12px; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.qr-band p { color: #d9e7dd; margin: 0; font-size: 17px; line-height: 1.7; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3); flex: none; }
.qr-box canvas { width: 200px; height: 200px; image-rendering: pixelated; }
.qr-box span { font-size: 12.5px; color: var(--muted); font-weight: 650; }

.price-sub { text-align: center; color: var(--muted); margin: -12px 0 26px; }
.price-group-title { font-size: 1.1rem; margin: 0 0 14px; }
#landPricing .price-section { max-width: 1120px; margin: 0 auto 30px; }
#landPricing .small-print { max-width: 1120px; margin: 18px auto 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

.final-cta { text-align: center; background: var(--band); padding-bottom: 64px !important; }
.final-cta h2 { margin-bottom: 20px; }

@media (min-width: 900px) {
  .landing section { padding: 64px 32px; }
  .hero-band { padding: 44px 32px 190px !important; }
  .hero-slider { margin-top: -140px; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-teaser { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .biz-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .qr-band { display: block; }
}

/* ---------- toasts ---------- */
#toastRoot { position: fixed; bottom: 90px; left: 0; right: 0; display: grid; place-items: center; z-index: 120; pointer-events: none; }
.toast {
  background: #1f2a20; color: #fff; font-weight: 600; font-size: 14px;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: toast-in 0.25s ease-out;
}
.toast.warn { background: #7a5410; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- help / FAQ ---------- */
.faq-section { font-size: 1.05rem; margin: 26px 0 10px; }
.faq {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  margin-bottom: 8px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 14.5px; padding: 13px 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 19px; font-weight: 700; flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 14px; line-height: 1.65; }
#contactForm select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; background: #fff; width: 100%;
}
#contactForm select:focus, #contactForm textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

/* ---------- share menu ---------- */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; padding: 13px 10px;
  border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px;
  transition: transform 0.12s ease;
}
.share-btn:hover { transform: translateY(-1px); }
.share-btn.fb { background: #1877f2; }
.share-btn.x { background: #111; }
.share-btn.wa { background: #25d366; }
.share-btn.pin { background: #e60023; }

/* ---------- admin lightbox ---------- */
.row-click { cursor: pointer; }
.row-click:hover td { background: var(--brand-soft); }
.lightbox {
  position: fixed; inset: 0; z-index: 140; background: rgba(14, 18, 14, 0.93);
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px;
}
.lb-figure { margin: 0; max-width: min(1100px, 82vw); text-align: center; }
.lb-figure.pair { max-width: 92vw; }
.lb-figure img { max-width: 100%; max-height: 78vh; border-radius: 12px; box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6); }
.lb-figure figcaption { color: #cfd8cf; font-size: 13px; margin-top: 12px; }
.lb-summary { display: block; margin-top: 4px; color: #9fb2a0; }
.lb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.lb-half { position: relative; min-width: 0; }
.lb-figure .lb-half img { max-height: 72vh; width: 100%; object-fit: contain; }
.lb-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(20, 26, 20, 0.75);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px;
}
.lb-tag.after { background: var(--brand, #2f7d4f); }
@media (max-width: 720px) {
  .lb-pair { grid-template-columns: 1fr; gap: 8px; }
  .lb-figure .lb-half img { max-height: 38vh; }
}
.lb-nav {
  width: 52px; height: 52px; border-radius: 999px; border: none; background: rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer; flex: none;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lb-nav:disabled { opacity: 0.25; cursor: default; }
.lb-x {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 999px;
  border: none; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 17px; cursor: pointer;
}
.lb-x:hover { background: rgba(255, 255, 255, 0.25); }

.btn.danger { color: var(--danger); border-color: #f2c4c2; }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ---------- inline button spinner ---------- */
.btn-spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 4px;
}
.btn:disabled .btn-spinner { border-color: rgba(255, 255, 255, 0.5); border-top-color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn-spinner { animation-duration: 2s; } }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  #app { padding-top: 34px; }
  .photo-actions { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 340px 1fr; align-items: start; }
  .result-cols { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
  .actionbar .hintline { display: block; align-self: center; margin-right: auto; color: var(--muted); font-size: 13.5px; }
  .actionbar .btn.primary { flex: none; min-width: 220px; }
  .actionbar-inner { justify-content: flex-end; }
}
