/* Memory Journal page — standalone styles (no dependency on site CSS). */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #fbfaf6; color: #1b1916; line-height: 1.6; }
a { color: #7c5a2e; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

.topbar { display: flex; align-items: center; gap: 24px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e8e2d6; }
.topbar .logo { font-weight: 800; font-size: 20px; color: #1b1916; text-decoration: none; }
.topbar nav { display: flex; gap: 16px; margin-left: auto; }
.topbar nav a { text-decoration: none; color: #6b6455; font-weight: 600; font-size: 14px; }
.topbar nav a.active { color: #7c5a2e; }

.intro { padding: 40px 0 8px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7c5a2e; background: #f3e8d3; border-radius: 999px; padding: 4px 12px; }
h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; margin: 14px 0 10px; letter-spacing: -.5px; }
.lead { font-size: 18px; color: #5c5546; max-width: 640px; }
h2 { font-size: 21px; margin: 0 0 10px; }

.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; margin: 0; }
.step { font-size: 13px; font-weight: 600; color: #8a8172; border: 1px solid #e0d9c8; border-radius: 999px; padding: 6px 12px; background: #fff; }
.step.active { color: #fff; background: #7c5a2e; border-color: #7c5a2e; }
.step.done { color: #7c5a2e; border-color: #7c5a2e; }

.card { background: #fff; border: 1px solid #e8e2d6; border-radius: 16px; padding: 24px; margin: 20px 0; box-shadow: 0 6px 24px rgba(27,25,22,.05); }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { border: 1px solid #e0d9c8; background: #fbfaf6; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.tab.active { background: #1b1916; color: #fff; border-color: #1b1916; }

.hint { font-size: 13.5px; color: #6b6455; }
.field { display: block; font-weight: 600; font-size: 14px; margin: 14px 0; }
.field select, .field input[type="text"] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 15px; border: 1px solid #d8d0bd; border-radius: 10px; background: #fff; }
.field-row { display: flex; gap: 10px; align-items: stretch; }
.field-row input { flex: 1; margin-top: 0; }

.dropzone { border: 2px dashed #cbb98f; border-radius: 14px; padding: 34px 20px; text-align: center; cursor: pointer; background: #fdf9ef; margin: 16px 0; }
.dropzone.drag { border-color: #7c5a2e; background: #f6ecd4; }
.dropzone p { margin: 0; }
.summary { background: #f6f2e7; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14.5px; }
.err { color: #a33; }

.btn { display: inline-block; border: none; border-radius: 999px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-pri { background: #7c5a2e; color: #fff; }
.btn-pri:disabled { background: #c9c0ab; cursor: not-allowed; }
.btn-ghost { background: #fff; color: #1b1916; border: 1px solid #d8d0bd; }

.bookmarklet { display: inline-block; background: #f3e8d3; border: 1px solid #cbb98f; border-radius: 8px; padding: 6px 12px; font-weight: 700; color: #1b1916; text-decoration: none; }
.howto li { margin-bottom: 10px; }

.log { background: #1b1916; color: #e8e2d6; border-radius: 10px; padding: 14px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; min-height: 90px; max-height: 260px; overflow-y: auto; white-space: pre-wrap; }
.log div { margin-bottom: 4px; }
#jobIdBox, #headlineBox { margin-bottom: 12px; font-size: 14.5px; }
#headline { font-size: 17px; }

.share-img { width: 100%; max-width: 540px; display: block; border-radius: 14px; box-shadow: 0 14px 40px rgba(27,25,22,.18); margin: 8px 0 16px; }
.lead-sm { font-size: 16px; color: #5c5546; max-width: 640px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.showcase-grid figure { margin: 0; }
.showcase-grid img { width: 100%; display: block; border-radius: 12px; box-shadow: 0 8px 24px rgba(27,25,22,.12); }
.showcase-grid figcaption { font-size: 13.5px; color: #6b6455; margin-top: 8px; line-height: 1.45; }
.showcase-grid figcaption strong { color: #1b1916; }
.paywall { background: #fdf9ef; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.tier-card { border: 2px solid #e8e2d6; border-radius: 14px; background: #fff; padding: 16px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.tier-card .tier-price { display: block; font-size: 26px; font-weight: 800; color: #7c5a2e; }
.tier-card .tier-price .tier-per { font-size: 14px; font-weight: 600; color: #6b6455; }
.tier-card .tier-name { display: block; font-weight: 700; margin-top: 4px; }
.tier-card .tier-desc { display: block; font-size: 13px; color: #6b6455; margin-top: 4px; line-height: 1.45; }
.tier-card.selected { border-color: #7c5a2e; box-shadow: 0 0 0 2px rgba(124,90,46,.25); }
.tier-card.selected .tier-name::after { content: ' ✓'; color: #7c5a2e; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.long-list { display: grid; gap: 8px; margin: 12px 0; }
.long-list a { display: block; }
.long-list figure { margin: 0; }
.long-list img { display: block; width: 100%; border-radius: 8px; }
.long-list figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.prices { list-style: none; padding: 0; }
.prices li { padding: 8px 0; border-bottom: 1px solid #eadfc6; }
.coming-soon { font-weight: 700; color: #7c5a2e; }
.fineprint { font-size: 14px; color: #6b6455; }
.foot { padding: 28px 0 40px; color: #8a8172; font-size: 13.5px; text-align: center; }
/* Style picker (v1.2.0): 6 style cards + switch pills in the result section. */
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.style-card { border: 2px solid #e8e2d6; border-radius: 14px; overflow: hidden; cursor: pointer; background: #fff; padding: 0; text-align: left; font: inherit; color: inherit; }
.style-card img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; background: #f6f1e7; }
.style-card .style-meta { padding: 10px 12px 12px; }
.style-card .style-name { font-weight: 700; font-size: 15px; }
.style-card .style-cn { font-size: 13px; color: #6b6455; }
.style-card.selected { border-color: #7c5a2e; box-shadow: 0 0 0 2px rgba(124,90,46,.25); }
.style-card.selected .style-name::after { content: ' ✓'; color: #7c5a2e; }
#styleLine { font-size: 15px; margin: 4px 0 6px; }
.style-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.style-pill { border: 1px solid #e0d9c8; background: #fbfaf6; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.style-pill.active { background: #1b1916; color: #fff; border-color: #1b1916; }
.style-pill:disabled { cursor: default; }

/* Review step (v1.4.0): per-order exclusion list. */
.review-tools { align-items: center; margin: 12px 0; }
.review-tools input[type="search"] { flex: 1; padding: 10px 12px; font-size: 15px; border: 1px solid #d8d0bd; border-radius: 10px; background: #fff; }
.order-list { max-height: 420px; overflow-y: auto; border: 1px solid #e8e2d6; border-radius: 12px; margin: 12px 0; }
.order-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid #f0ead9; cursor: pointer; font-weight: 400; }
.order-row:last-child { border-bottom: none; }
.order-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: #7c5a2e; }
.order-row.excluded { opacity: .55; }
.order-row.excluded .order-name { text-decoration: line-through; }
.order-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-name { font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.order-sub { font-size: 12.5px; color: #8a8271; }

@media (max-width: 640px) { .card { padding: 18px; } .field-row { flex-direction: column; } .showcase-grid { grid-template-columns: 1fr; } .style-grid { grid-template-columns: repeat(2, 1fr); } .tier-grid { grid-template-columns: 1fr; } }
