/* Low Battery Club — pressed flowers + black eyeliner, rev 3: "lived in"
   Layered botanical line-art, ink hero plate, corner sprigs, wax seal. */

:root {
  --ink: #17141a;
  --ink-soft: #2a2430;
  --cream: #f5efe4;
  --cream-dim: #e9e0d0;
  --moss: #5a6b4f;
  --moss-deep: #41503a;
  --rose: #c99ba4;
  --burgundy: #6d3040;
  --storm: #5d7285;
  --leaf: #8fa381;
  --gold: #b98a3e;
  --border: rgba(23,20,26,.14);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23,20,26,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(93,114,133,.20), transparent 62%),
    radial-gradient(900px 600px at -10% 30%, rgba(143,163,129,.16), transparent 55%),
    radial-gradient(760px 760px at 108% 92%, rgba(201,155,164,.14), transparent 58%),
    var(--cream);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
/* paper grain over everything, very quiet */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
a { color: var(--burgundy); }

/* ---------- header ---------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 14px;
  border-bottom: 3px double var(--ink);
  margin-bottom: 8px;
}
.brand { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; font-weight: bold; color: var(--ink); text-decoration: none; }
nav.main { display: flex; gap: 16px; font-size: .85rem; }
nav.main a { color: var(--ink-soft); text-decoration: none; opacity: .75; }
nav.main a:hover, nav.main a.active { opacity: 1; text-decoration: underline; }

/* ---------- hero: ink plate, cream type, botanical line-art ---------- */
.hero { text-align: center; padding: 26px 0 0; }
.hero-plate {
  position: relative;
  background:
    radial-gradient(520px 280px at 50% 118%, rgba(245,239,228,.14), transparent 72%),
    linear-gradient(172deg, #46566a, #37455a 55%, #2c3848);
  border-radius: 22px;
  border: 2px solid var(--ink);
  outline: 1px solid rgba(245,239,228,.28); outline-offset: 6px;
  padding: 64px 28px 0;
  color: var(--cream);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-plate .kicker {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: #cfd8e0; margin-bottom: 22px;
}
.hero-plate h1 {
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  line-height: .98; letter-spacing: -.01em; font-weight: bold;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero-plate h1 .accent { color: #e8c98a; font-style: italic; }
.tagline {
  font-style: italic; color: var(--cream-dim);
  margin-top: 14px; font-size: 1.05rem;
}
.hero-plate p.sub { margin: 20px auto 0; max-width: 400px; color: var(--cream-dim); opacity: .9; }
.hero-plate .btn-row { margin-top: 32px; }
.hero-plate .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); box-shadow: 4px 4px 0 rgba(143,163,129,.5); }
.hero-plate .btn:hover { background: #d8e2d0; border-color: #d8e2d0; color: var(--ink); }

/* bloom scatter, absolutely positioned SVG layer */
.hero-sky { position: absolute; inset: 0; pointer-events: none; opacity: .8; }
.hero-sky svg { position: absolute; }
.sky-bloom { color: #b8c8d4; opacity: .5; }

/* arch window with pressed-flower bouquet, rising from plate bottom */
.arch {
  width: 210px; height: 170px; margin: 40px auto 0;
  background: linear-gradient(180deg, #e3e7e2, #eef0ea);
  border: 2px solid #f7f5ee; border-bottom: none;
  border-radius: 105px 105px 0 0;
  outline: 1px solid rgba(245,239,228,.35); outline-offset: 6px;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.arch svg.bouquet { display: block; }
@media (max-width: 480px) { .arch { width: 160px; height: 130px; } .arch svg.bouquet { width: 110px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: .9rem;
  padding: 15px 30px; border-radius: 6px;
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--ink);
  text-transform: uppercase; letter-spacing: .12em;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--burgundy); color: var(--cream); }
.btn.small { padding: 11px 20px; font-size: .82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
@media (max-width: 480px) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

/* ---------- quiz ---------- */
.q-screen { display: none; animation: rise .35s ease; }
.q-screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none;} }
@keyframes rise-fwd { from { opacity: 0; transform: translateX(24px);} to { opacity: 1; transform: none;} }
@keyframes rise-back { from { opacity: 0; transform: translateX(-24px);} to { opacity: 1; transform: none;} }

.q-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.q-back-btn {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: rgba(255,255,255,.55); cursor: pointer;
  font-family: inherit; font-size: 1rem; color: var(--ink);
}
.q-back-btn:hover { border-color: var(--ink); }
.progress { display: flex; gap: 8px; flex: 1; margin-bottom: 0; }
.progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--border); transition: background .2s; }
.progress span.on { background: var(--moss-deep); }
.progress span.current { background: var(--burgundy); box-shadow: 0 0 6px rgba(109,48,64,.4); }

.q-head { text-align: center; margin-bottom: 28px; position: relative; }
.q-head .q-num { color: var(--burgundy); font-style: italic; font-size: .9rem; }
.q-head h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin-top: 6px; line-height: 1.25; }
.q-head .sprig { position: absolute; opacity: .5; color: var(--moss); }
.q-head .sprig.left { left: -6px; top: 4px; }
.q-head .sprig.right { right: -6px; top: 4px; transform: scaleX(-1); }
.q-reassure { text-align: center; font-style: italic; color: var(--storm); font-size: .88rem; margin-bottom: 28px; min-height: 1.3em; }

.options { display: grid; gap: 12px; }
.options.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .options.two-col { grid-template-columns: 1fr; } }

.opt {
  text-align: left; width: 100%; cursor: pointer;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.6);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 15px 16px;
  transition: border-color .12s, background .12s, transform .12s, box-shadow .12s;
}
.opt:hover { border-color: var(--moss-deep); transform: translateY(-1px); background: #fff; }
.opt.selected { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.opt::after {
  content: ""; float: right; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; border: 1.5px solid var(--border); transition: background .12s;
}
.opt.selected::after {
  content: "\2713"; background: var(--burgundy); border-color: var(--burgundy);
  color: var(--cream); font-size: .72rem; line-height: 15px; text-align: center;
}
.opt .opt-sub { display: block; font-size: .82rem; opacity: .65; margin-top: 2px; }

.q-continue-row { margin-top: 32px; }
#q-continue:disabled { opacity: .35; cursor: not-allowed; }
#q-continue:disabled:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- result card: pressed-flower plate with corner sprigs ---------- */
.result-card {
  background:
    radial-gradient(420px 200px at 12% -6%, rgba(201,155,164,.2), transparent 65%),
    radial-gradient(380px 200px at 90% 108%, rgba(143,163,129,.18), transparent 65%),
    linear-gradient(160deg, #f8f2e6, #efe4d0);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.result-card::before {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(23,20,26,.3);
  border-radius: 12px; pointer-events: none;
}
.corner-sprig { position: absolute; color: var(--moss-deep); opacity: .55; z-index: 0; }
.corner-sprig.tl { top: 14px; left: 14px; }
.corner-sprig.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.plate-head {
  display: flex; justify-content: space-between;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); opacity: .8;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.result-emoji { font-size: 2.6rem; position: relative; z-index: 1; }
.result-kicker {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--burgundy); margin-top: 12px; position: relative; z-index: 1;
}
.result-kicker::before { content: "❀ "; }
.result-kicker::after { content: " ❀"; }
.result-title { font-size: clamp(1.5rem, 5vw, 2rem); margin: 8px 0 10px; line-height: 1.2; position: relative; z-index: 1; }
.result-desc { font-style: italic; color: var(--ink-soft); opacity: .85; position: relative; z-index: 1; }

/* wax-seal energy badge */
.wax-seal {
  width: 74px; height: 74px; margin: 18px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6f8296, var(--storm) 58%, #42546a);
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(23,20,26,.35), inset 0 0 0 2px rgba(245,239,228,.25);
  position: relative; z-index: 1;
}
.wax-seal b { font-size: 1.25rem; line-height: 1; }
.wax-seal small { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

.result-instructions { text-align: left; margin-top: 24px; max-width: 480px; margin-left: auto; margin-right: auto; padding-top: 20px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.meta-cell { background: rgba(255,255,255,.55); border-radius: 10px; padding: 10px 12px; font-size: .84rem; }
.meta-cell b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--burgundy); margin-bottom: 2px; }
.closing-line { margin-top: 24px; font-style: italic; color: var(--burgundy); }
.battery-bar { height: 8px; background: rgba(23,20,26,.1); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.battery-fill { height: 100%; background: linear-gradient(90deg, var(--moss), var(--leaf)); border-radius: 8px; }
.footnote-abort { font-style: italic; font-size: .82rem; opacity: .6; margin-top: 14px; }

.btn-row.quiet-actions { margin-top: 4px; }
.btn-ghost {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .88rem; color: var(--storm);
  padding: 8px 12px; text-decoration: underline transparent;
  transition: text-decoration-color .15s, color .15s;
}
.btn-ghost:hover { color: var(--burgundy); text-decoration-color: var(--burgundy); }
.safety-note { font-size: .78rem; }
@media (max-width: 480px) { .result-card { padding: 26px 18px; } }

/* ---------- saved ---------- */
.saved-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: rgba(255,255,255,.55); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 13px 16px; margin-bottom: 10px;
  font-size: .98rem; color: var(--ink);
}
.saved-main { flex: 1; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-size: .98rem; color: var(--ink); padding: 0; }
.saved-main small { display: block; opacity: .6; font-size: .8rem; margin-top: 2px; }
.saved-remove { background: none; border: none; cursor: pointer; color: var(--storm); font-size: .95rem; padding: 8px 10px; opacity: .55; }
.saved-remove:hover { color: var(--burgundy); opacity: 1; }
.empty-state { text-align: center; padding: 40px 0 20px; }
.empty-glyph { font-size: 5rem; color: var(--moss); opacity: .3; line-height: 1; }
.empty-state h3 { margin-top: 14px; font-size: 1.2rem; }
.empty-state p { opacity: .65; font-style: italic; margin: 8px 0 22px; }

#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--cream);
  padding: 12px 22px; border-radius: 999px; font-size: .9rem;
  transition: transform .25s ease; z-index: 60; pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }
.toast-action {
  background: none; border: none; cursor: pointer; margin-left: 12px;
  color: var(--cream); font-family: inherit; font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- shop ---------- */
.page-title { text-align: center; margin: 40px 0 8px; font-size: 1.8rem; }
.page-sub { text-align: center; opacity: .7; margin-bottom: 34px; font-style: italic; }
.pack-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 50px; }
@media (max-width: 560px) { .pack-grid { grid-template-columns: 1fr; } }
.pack-card {
  background: rgba(255,255,255,.6); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0 0 18px; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pack-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,20,26,.16); }
.pack-cover {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  border-bottom: 2px solid var(--ink);
}
.pack-cover svg { width: 74px; height: 74px; }
.pack-cover .cover-label {
  position: absolute; bottom: 8px; font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; opacity: .7;
}
.pack-body { padding: 16px 18px 0; }
.pack-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pack-card h3 { font-size: 1.02rem; line-height: 1.3; }
.pack-price { font-variant-numeric: tabular-nums; opacity: .7; font-size: .9rem; white-space: nowrap; }
.pack-card .pack-desc { font-size: .88rem; opacity: .8; margin: 8px 0 14px; }

.prose { max-width: 560px; margin: 0 auto 60px; }
.prose p { margin-bottom: 16px; }
.prose h2 { margin: 32px 0 10px; font-size: 1.2rem; }

/* ---------- footer: ink band ---------- */
footer.site {
  text-align: center; padding: 34px 20px 44px; font-size: .82rem;
  color: var(--cream-dim);
  background: linear-gradient(170deg, #37455a, #232c38);
  border-top: 3px double #9db0c2;
  margin-top: 40px;
}
footer.site nav { margin-top: 8px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
footer.site a { color: var(--cream-dim); }
footer.site .foot-moth { color: #cfd8e0; opacity: .7; display: block; margin-bottom: 10px; }
.hidden { display: none !important; }
