:root {
  --bg: #ffffff; --card: #ffffff; --ink: #1d1d1d; --muted: #5f5f5f; --line: #dcdcdc;
  --accent: #3b66ba; --accent-ink: #ffffff; --accent-soft: #e8eefb; --flame: #ff7117; --flame-ink: #b84a06; --ok: #2f6f3e; --warn: #8a5a00; --err: #b3261e;
  --radius: 2px; --shadow: 0 1px 3px rgba(0,0,0,.12);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171c; --card: #1d2229; --ink: #f1f1f1; --muted: #b5b9bf; --line: #333a44; --accent: #8aabef; --accent-ink: #14213d; --accent-soft: #1f2a44; --flame: #ff8a3d; --flame-ink: #ff9a57; --ok: #7bcf8f; --warn: #e6b450; --err: #ff8a80; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 "Nunito Sans", Helvetica, Arial, sans-serif; padding-bottom: 96px; }
h1, h2, h3 { font-family: "Encode Sans Condensed", "Asap Condensed", Helvetica, Arial, sans-serif; font-weight: 700; color: var(--accent); line-height: 1.2; margin: 0 0 .4em; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--card); border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--flame), var(--accent)) 1; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: ui-serif, Georgia, serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; line-height: 1.15; }
.brand img { width: 46px; height: auto; display: block; }
.brand small { display: block; font: 500 .72rem system-ui, sans-serif; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.verified { font-size: .78rem; color: var(--ok); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

.draft { background: #fff4c2; color: #5a4300; text-align: center; font-weight: 700; padding: 8px 12px; font-size: .9rem; border-bottom: 2px solid #e0b400; }

.hero { padding: 28px 0 8px; }
.hero .date { color: var(--flame-ink); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-top: 4px; }
.hero p { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

.notice { background: var(--accent-soft); border-left: 4px solid var(--flame); border-radius: 8px; padding: 12px 14px; margin: 18px 0; font-size: .95rem; }
.notice b { color: var(--accent); }
.logo-foot { width: 64px; height: auto; margin-bottom: 8px; display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 6px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; font-size: .9rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .78rem; margin-right: 8px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.card.has { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.card .ico { font-size: 1.7rem; line-height: 1; }
.card h3 { font-size: 1.08rem; margin: 2px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.price { font-weight: 700; font-size: 1.1rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; font: inherit; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.amt { display: flex; align-items: center; gap: 6px; }
.amt input { width: 110px; }

button, .btn { font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.08); z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.bar .btn { white-space: nowrap; padding: 0 18px; flex: none; }
.bar .sum { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.bar .sum b { display: block; color: var(--ink); font-size: 1.2rem; }

dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(20,12,6,.55); }
.dlg { padding: 20px 20px 22px; overflow: auto; max-height: calc(100dvh - 20px); }
.dlg h2 { font-size: 1.4rem; }
.close { float: right; background: transparent; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; min-width: 44px; min-height: 44px; }
table.sum { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 6px 0 12px; }
table.sum td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.sum td:last-child { text-align: right; white-space: nowrap; }
table.sum tr.t td { font-weight: 700; border-bottom: 0; font-size: 1.05rem; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
textarea { min-height: 72px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.fold { border: 1px dashed var(--line); border-radius: 12px; padding: 4px 14px 14px; margin-top: 8px; }
.fold[hidden] { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.err { color: var(--err); font-weight: 600; margin: 10px 0; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pay { text-align: center; }
.pay .big { font-size: 2.1rem; font-weight: 800; font-family: ui-serif, Georgia, serif; }
.pay .ref { font-family: ui-monospace, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
#qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; margin: 12px 0; }
#qr svg, #qr img { width: 200px; height: 200px; display: block; }
.status { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .95rem; }
.status.ok { border-color: var(--ok); color: var(--ok); }
.status.warn { border-color: var(--warn); color: var(--warn); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

footer { margin: 40px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer p { max-width: 70ch; }
.small { font-size: .82rem; color: var(--muted); }

.card .pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(var(--radius) - 4px); background: var(--line); display: block; }

/* Match thula-thula.org: white page, blue headings, orange tab-style nav blocks, square corners, condensed uppercase labels */
.top { border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.top .wrap { padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: "Encode Sans Condensed", Helvetica, Arial, sans-serif; font-size: 1.35rem; color: var(--accent); }
.brand img { width: 62px; }
.brand small { font-family: "Nunito Sans", sans-serif; }
.verified { background: var(--flame); color: #1d1d1d; border: 0; border-radius: 0; padding: 10px 16px; font: 700 .95rem "Asap Condensed", Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .02em; white-space: normal; text-align: center; }
.hero { background: var(--accent); color: #fff; margin: 0 -16px; padding: 28px 16px 6px; }
.hero > * { max-width: 980px; }
.hero p { margin-left: 0; margin-right: 0; }
.hero .date { color: #ffd2b0; font-family: "Asap Condensed", Helvetica, sans-serif; font-size: 1.05rem; }
.hero h1 { color: #fff; font-family: "Asap Condensed", Helvetica, sans-serif; text-transform: uppercase; font-weight: 600; }
.hero p { color: #fff; }
.steps li { border-radius: 0; background: #fff; color: var(--ink); border: 0; }
.steps li::before { border-radius: 0; background: var(--flame); color: #1d1d1d; }
.notice { background: #fff; color: var(--ink); border-radius: 0; border-left: 6px solid var(--flame); }
.notice b { color: var(--accent); }
.card { border-radius: 0; border-top: 4px solid var(--flame); }
.card .pic { border-radius: 0; }
.card h3 { font-size: 1.3rem; }
.price { font-family: "Asap Condensed", Helvetica, sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.stepper, .chip { border-radius: 0; }
.chip[aria-pressed="true"] { background: var(--accent); }
.btn { border-radius: 0; font-family: "Asap Condensed", Helvetica, sans-serif; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; }
dialog { border-radius: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { border-radius: 0; }
.fold, .status, #qr, .pay .ref { border-radius: 0; }
.bar { border-top: 4px solid var(--flame); }
footer { border-top: 4px solid var(--accent); }
@media (prefers-color-scheme: dark) { .hero { background: #24396b; } .steps li, .notice { background: var(--card); } .verified { color: #1d1d1d; } }

.montage { margin: 22px 0 6px; }
.montage h2 { font-size: 1.5rem; margin-bottom: 10px; }
.mont-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mont-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--line); }
.mont-grid img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .mont-grid { grid-template-columns: repeat(2, 1fr); } .mont-grid img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }
