/* Colours and fonts match gifthub.com.sg (checked live 2026-10-05): buttons/top bar #685486,
   brand purple #5B227D, headings Sora, body Poppins, text #333 / #6F6F6F. */
:root {
  --bg: #f8f8f8;
  --panel: #ffffff;
  --ink: #333333;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --accent: #685486;
  --accent-strong: #5b227d;
  --accent-soft: #f2eef8;
  --warn-bg: #fff4e0;
  --warn-ink: #8a5300;
  --radius: 10px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
h1, h2, h3, .brand, .step h2, .how h2 { font-family: Sora, Poppins, sans-serif; font-weight: 600; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.muted { color: var(--muted); font-weight: 400; }

.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 18px 24px 8px; max-width: 1240px; margin: 0 auto; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.brand-studio { background: var(--accent); color: #fff; padding: 1px 8px 2px; border-radius: 6px; margin-left: 2px; }
.brand-by { font-size: 14px; font-weight: 500; color: var(--muted); }
.top-note { color: var(--muted); font-size: 14px; }

.layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 24px; max-width: 1240px; margin: 0 auto; padding: 8px 24px 48px; align-items: start; }
.stage-col { position: sticky; top: 12px; min-width: 0; }
.panel-col { min-width: 0; }
.side-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.side-tab { border: 1px solid var(--line); background: var(--panel); padding: 7px 16px; border-radius: 999px; font-size: 14px; }
.side-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.side-tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.stage-wrap { position: relative; min-width: 0; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eeece6 100%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; justify-content: center; }
.stage-empty { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; pointer-events: none; }
.stage-empty p { display: inline-block; margin: 0; background: rgba(255,255,255,.9); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.stage-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.tool-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-ghost { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.btn-ghost:hover:not(:disabled) { border-color: #c9c6bd; }
.readout { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 18px; }

.panel-col { display: flex; flex-direction: column; gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.step h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }
.opt-label { font-size: 13px; font-weight: 600; margin: 12px 0 6px; }

.family-title { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product { border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; text-align: left; display: flex; gap: 8px; align-items: center; }
.product.active { border-color: var(--accent); background: var(--accent-soft); }
.product img { width: 44px; height: 52px; object-fit: contain; flex: none; }
.product b { display: block; font-size: 13px; }
.product span { display: block; font-size: 12px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.chip small { color: var(--muted); }
.chip.active { border-color: var(--accent); background: var(--accent-soft); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); padding: 0; position: relative; }
.swatches.small .swatch { width: 26px; height: 26px; }
.swatch.active { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.swatch.natural { background: #ebe4d3; }

.drop { display: block; border: 1.5px dashed #c9c6bd; border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; background: #fbfaf7; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.drop-main { display: block; font-weight: 600; font-size: 14px; }
.drop-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.logo-opts { margin-top: 6px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 10px; cursor: pointer; }
.warn { margin-top: 12px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 8px 10px; font-size: 13px; }

.qty-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qty-row input { width: 96px; padding: 7px 8px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.qty-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 18px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 12px; }
.tier { border: 1px solid var(--line); border-radius: 8px; padding: 6px; text-align: center; font-size: 12px; background: #fff; }
.tier b { display: block; font-size: 14px; }
.tier.active { border-color: var(--accent); background: var(--accent-soft); }

.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 18px; font-weight: 700; }
.summary .note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.btn-primary { background: var(--accent); color: #fff; border: 0; border-radius: 5px; padding: 13px 16px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.fine { font-size: 12px; color: var(--muted); margin: 0; }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(20,20,22,.45); }
.order-form { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.order-form h2 { margin: 0; font-size: 18px; }
.order-form p { margin: 0; font-size: 13px; }
.order-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.order-form label.toggle { flex-direction: row; font-weight: 400; }
.order-form input, .order-form textarea { font: inherit; font-weight: 400; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b3261e; font-size: 13px; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.done { max-width: 880px; margin: 0 auto; padding: 24px; }
.done-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.done h1 { margin: 0 0 4px; font-size: 24px; }
.done .ref { font-family: ui-monospace, Menlo, monospace; background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.done-mocks { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.done-mocks figure { margin: 0; flex: 1 1 220px; background: #f3f1ec; border-radius: 10px; padding: 8px; text-align: center; }
.done-mocks img { width: 100%; max-width: 360px; }
.done-mocks figcaption { font-size: 12px; color: var(--muted); }
.next-steps { padding-left: 20px; line-height: 1.6; }

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 8px 16px 40px; }
  .stage-col { position: static; }
  .top { padding: 14px 16px 6px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* artwork list, text and secondary actions */
.add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-text { border: 1.5px dashed #c9c6bd; border-radius: 10px; padding: 14px; text-align: center; background: #fbfaf7; }
.add-text:hover { border-color: var(--accent); background: var(--accent-soft); }
.item-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.item-row { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; cursor: pointer; background: #fff; }
.item-row.active { border-color: var(--accent); background: var(--accent-soft); }
.item-thumb { width: 28px; height: 28px; object-fit: contain; flex: none; background: #f1efe9; border-radius: 4px; }
.item-thumb.text { display: inline-grid; place-items: center; font-weight: 700; font-family: Georgia, serif; color: var(--muted); }
.item-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-del { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 2px 6px; border-radius: 6px; }
.item-del:hover { background: #f1efe9; color: var(--ink); }
.side-colours { font-size: 12px; color: var(--muted); margin-top: 8px; }
.text-input { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.secondary-actions .btn-ghost { padding: 10px 12px; font-size: 13px; }
@media (max-width: 480px) { .add-row, .secondary-actions { grid-template-columns: 1fr; } }

/* online offer and how-it-works */
.offer { max-width: 1240px; margin: 4px auto 6px; padding: 0 24px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.offer-main { background: var(--accent-soft); border: 1px solid #ddd3ea; border-radius: 10px; padding: 10px 14px; flex: 1 1 420px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.offer-main span { color: var(--muted); font-size: 13px; }
.offer-link { font-size: 13px; color: var(--accent); font-weight: 600; }
.how { max-width: 1240px; margin: 0 auto; padding: 8px 24px 56px; }
.how h2 { font-size: 20px; margin: 8px 0 14px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; }
.how-card h3 { margin: 0 0 8px; font-size: 15px; }
.how-card ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.how-card p { margin: 0 0 12px; line-height: 1.5; }
.how-help .btn-ghost { display: inline-block; text-decoration: none; color: var(--ink); }
.faq-title { margin-top: 28px !important; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-size: 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; line-height: 1.5; color: #3a3a3e; }
@media (max-width: 860px) {
  .offer { padding: 0 16px; }
  .how { padding: 8px 16px 48px; }
  .how-grid { grid-template-columns: 1fr; }
}

.too-many { display: flex; flex-direction: column; gap: 8px; }
.too-many span { color: var(--muted); font-size: 13px; }
.too-many .btn-ghost { align-self: flex-start; }

/* Studio vs full service */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: stretch; }
.offer-main { justify-content: center; }
.offer-main .offer-link { margin-top: 4px; }
.offer-compare { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.compare { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare th, .compare td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; }
.compare tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare .c-studio { background: var(--accent-soft); font-weight: 600; }
.compare thead .c-studio { color: var(--accent); border-radius: 6px 6px 0 0; }
.how-intro { margin: -6px 0 14px; color: #3a3a3e; font-size: 14px; max-width: 760px; line-height: 1.5; }
.how > .compare { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; }
.how-sub { margin-top: 28px !important; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; }
  .offer-compare { display: none; }
}

.faq p a { color: var(--accent); font-weight: 600; }
