/*! GoodForUs. Copyright (c) 2026 SolutionsAe, Inc. and The Solutions Foundation. All rights reserved. Proprietary and confidential: no use, copying, modification, reverse engineering or distribution without express written contractual permission. */


:root {
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --wash: #f1f5f9;
  --page: #f6f8fa;
  --go: #00b964;
  --go-dark: #047857;
  --bad: #dc2626;
  --accent: #00b964;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hidden-file { display: none; }



.builder { display: grid; grid-template-columns: 460px 1fr; min-height: 100vh; }

.editor {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px 22px 0;
  overflow-y: auto;
  max-height: 100vh;
}

.editor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.editor-head .mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--ink); color: #fff; font-size: 17px; flex: none;
}
.editor-head h1 { margin: 0; font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; }
.editor-head p { margin: 1px 0 0; font-size: .78rem; color: var(--faint); font-weight: 600; }
.editor-head p.saved { color: var(--go-dark); }



.sec { border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }

.sec-head {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; background: none; padding: 16px 0; cursor: pointer;
  font: inherit; text-align: left; color: var(--ink);
}
.sec-head:hover .sec-title strong, .sec-head:hover .sec-title { color: var(--go-dark); }
.sec-head .num {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--wash); color: var(--muted);
  font-size: .76rem; font-weight: 800;
}
.sec-head[aria-expanded="true"] .num { background: var(--ink); color: #fff; }
.sec-title { flex: 1; min-width: 0; font-size: .97rem; font-weight: 800; letter-spacing: -.01em; }
.sec-title small {
  display: block; font-size: .8rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0; margin-top: 1px;
}
.sec-head .chev { color: var(--faint); font-size: .8rem; flex: none; }
.sec-body { padding: 0 0 22px; }



.lbl {
  display: block; font-size: .76rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 5px;
}
.req { color: var(--bad); }

.in {
  width: 100%; border: 1px solid var(--line); border-radius: 11px;
  padding: .7rem .85rem; font: 500 .93rem Inter, sans-serif; color: var(--ink);
  background: #fff;
}
.in:focus { outline: 2px solid var(--go); outline-offset: -1px; border-color: transparent; }
textarea.in { resize: vertical; line-height: 1.55; }
select.in { appearance: none; background-image: none; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

.grp {
  display: block; margin: 22px 0 8px; font-size: .7rem; font-weight: 900;
  color: var(--faint); text-transform: uppercase; letter-spacing: .12em;
}

.hint { margin: 6px 0 0; font-size: .79rem; line-height: 1.5; color: var(--faint); }
.note {
  margin: 0 0 14px; padding: .8rem 1rem; background: var(--wash);
  border-radius: 12px; font-size: .84rem; line-height: 1.6; color: #475569;
}
.note code {
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  padding: 0 4px; font-size: .8rem;
}
.err { margin: 8px 0 0; font-size: .82rem; font-weight: 700; color: var(--bad); }



.btn {
  border: 0; border-radius: 11px; padding: .7rem 1.1rem;
  font: 800 .85rem Inter, sans-serif; cursor: pointer;
}
.btn.ghost { background: var(--wash); color: var(--ink); }
.btn.ghost:hover { background: #e6f9ef; color: var(--go-dark); }
.btn.quiet { background: none; color: var(--muted); padding: .55rem .4rem; }
.btn.quiet:hover { color: var(--bad); }
.btn.go { background: var(--go); color: #fff; }
.btn.go:hover { filter: brightness(1.05); }
.btn.wide { display: block; width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }



.row {
  display: flex; align-items: center; gap: 14px;
  padding: .85rem 0; border-bottom: 1px solid var(--wash);
}
.row:last-child { border-bottom: 0; }
.row.nested { padding-left: 1.1rem; border-left: 2px solid var(--wash); }
.row-t { flex: 1; min-width: 0; }
.row-t strong { display: block; font-size: .9rem; font-weight: 700; }
.row-t small { display: block; font-size: .79rem; color: var(--muted); margin-top: 1px; }

.sw { position: relative; flex: none; width: 44px; height: 26px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw span {
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px;
  transition: background .15s;
}
.sw span::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .15s;
}
.sw input:checked + span { background: var(--go); }
.sw input:checked + span::after { transform: translateX(18px); }
.sw input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }



.seg { display: inline-flex; background: var(--wash); border-radius: 10px; padding: 3px; gap: 3px; }
.seg-btn {
  border: 0; background: none; border-radius: 8px; padding: .5rem .95rem;
  font: 800 .78rem Inter, sans-serif; color: var(--muted); cursor: pointer;
}
.seg-btn.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.seg.small .seg-btn { padding: .45rem .8rem; font-size: .74rem; }



.media-row { display: flex; gap: 14px; align-items: flex-start; }
.thumb {
  display: grid; place-items: center; flex: none;
  width: 64px; height: 64px; border-radius: 13px;
  background: var(--wash); border: 1px dashed #cbd5e1;
  color: var(--faint); font-size: 1.1rem; overflow: hidden;
}
.thumb.wide { width: 116px; height: 66px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-acts { flex: 1; min-width: 0; }
.media-acts .btn { display: block; }
.media-acts .btn.quiet { margin-top: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0;
}
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }



.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.card-head strong { flex: 1; min-width: 0; font-size: .88rem; font-weight: 800; }
.card-head .sold {
  font-size: .72rem; font-weight: 800; color: var(--go-dark);
  background: #dcfce7; border-radius: 999px; padding: .15rem .55rem;
}
.icon-btn {
  border: 0; background: none; color: var(--faint); cursor: pointer;
  padding: 4px 6px; border-radius: 7px; font-size: .88rem;
}
.icon-btn:hover { background: var(--wash); color: var(--ink); }
.icon-btn.danger:hover { background: #fef2f2; color: var(--bad); }


.drawer-btn {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 800 .78rem Inter, sans-serif; padding: .5rem 0 0;
}
.drawer-btn:hover { color: var(--go-dark); }
.drawer { border-top: 1px solid var(--wash); margin-top: 10px; padding-top: 6px; }
.drawer .sub {
  display: block; margin: 14px 0 6px; font-size: .68rem; font-weight: 900;
  color: var(--faint); text-transform: uppercase; letter-spacing: .12em;
}
.trip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.fixed-q { display: flex; flex-direction: column; gap: 6px; }
.fq {
  display: flex; align-items: center; gap: 8px;
  background: var(--wash); border-radius: 10px; padding: .6rem .8rem;
  font-size: .86rem; font-weight: 600; color: #475569;
}
.fq i { color: var(--faint); font-size: .74rem; }
.fq em { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--faint); font-weight: 700; }

.capacity { background: var(--wash); border-radius: 13px; padding: 14px; margin-bottom: 16px; }
.capacity .lbl { margin-top: 0; }
.capacity .in { background: #fff; }


.qr-pic { flex: none; width: 150px; height: 150px; border-radius: 12px;
          background: var(--wash); border: 1px solid var(--line); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row a { border: 1px solid var(--line); border-radius: 999px;
               padding: .45rem .9rem; font: 700 .82rem Inter, sans-serif;
               color: var(--ink); text-decoration: none; background: #fff; }
.share-row a:hover { border-color: var(--go); color: var(--go-dark); }
#shareUrl { font-size: .84rem; color: var(--muted); }



.editor-foot {
  position: sticky; bottom: 0; background: #fff;
  border-top: 1px solid var(--line); padding: 14px 0 18px; margin-top: 8px;
}
.foot-acts { display: flex; gap: 10px; }
.foot-acts .btn { flex: 1; }
.foot-acts .btn.quiet { flex: 0 0 auto; }



.stage {
  padding: 26px;
  background:
    radial-gradient(circle, #dbe3ec 1px, transparent 1px) 0 0 / 22px 22px,
    var(--page);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  overflow-y: auto; max-height: 100vh;
}
.stage-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.frame { background: #fff; overflow: hidden; }
.frame.phone {
  width: 390px; max-width: 100%; border: 11px solid #0f172a;
  border-radius: 42px; box-shadow: 0 26px 70px rgba(15, 23, 42, .22);
}
.frame.desk {
  width: 100%; max-width: 980px; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .1);
}
.screen { height: 720px; overflow-y: auto; background: #fff; }
.frame.desk .screen { height: 640px; }



.pv-hero { position: relative; background: var(--wash); }
.pv-hero img, .pv-hero .ph {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
}
.pv-hero .ph { display: grid; place-items: center; color: var(--faint); font-size: 1.6rem; }
.pv-hero iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }



.pv-shot { width: 100%; border-radius: 9px; margin-top: 9px; display: block; }
.pv-vid { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 9px;
  margin-top: 9px; display: block; }

.pv-brand {
  position: absolute; top: 12px; left: 12px; width: 44px; height: 44px;
  border-radius: 11px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .28);
  display: grid; place-items: center;
}
.pv-brand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-brand.text { font-size: .8rem; font-weight: 900; color: #0f172a; }

.pv-org {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--wash);
}
.pv-org img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.pv-org span { font-size: .85rem; font-weight: 800; }

.pv-body { padding: 18px; }
.pv-pill {
  display: inline-block; background: #e6f9ef; color: var(--go-dark);
  border: 1px solid #a7f3d0; border-radius: 999px;
  padding: .25rem .7rem; font-size: .74rem; font-weight: 800; margin-bottom: 12px;
}
.pv-pill.shut { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pv-title { margin: 0 0 12px; font-size: 1.7rem; font-weight: 900; letter-spacing: -.035em; }

.pv-fact { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pv-fact .cal {
  flex: none; width: 42px; border-radius: 10px; overflow: hidden;
  background: var(--wash); text-align: center;
}
.pv-fact .cal b {
  display: block; background: var(--accent); color: #fff;
  font-size: .62rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; padding: 2px 0;
}
.pv-fact .cal i { display: block; font-style: normal; font-size: 1.1rem; font-weight: 900; padding: 2px 0 4px; }
.pv-fact .mark { flex: none; width: 42px; display: grid; place-items: center; color: var(--faint); }
.pv-fact div.t { flex: 1; min-width: 0; }
.pv-fact div.t strong { display: block; font-size: .9rem; font-weight: 800; }
.pv-fact div.t small { display: block; font-size: .83rem; color: var(--muted); }

.pv-story { margin: 16px 0; font-size: .9rem; line-height: 1.7; color: #334155; white-space: pre-wrap; }

.pv-thermo { margin: 16px 0; }
.pv-thermo .bar { height: 9px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.pv-thermo .bar i { display: block; height: 100%; background: var(--accent); }
.pv-thermo p { margin: 7px 0 0; font-size: .82rem; color: var(--muted); font-weight: 700; }

.pv-h { margin: 22px 0 10px; font-size: 1.05rem; font-weight: 900; letter-spacing: -.02em; }

.pv-tier {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  margin-bottom: 10px;
}
.pv-tier h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.pv-tier .price { margin: 2px 0 0; font-size: 1.25rem; font-weight: 900; color: var(--accent); }
.pv-tier p { margin: 6px 0 0; font-size: .85rem; line-height: 1.55; color: var(--muted); }
.pv-tier .tag {
  display: inline-block; margin-top: 8px; margin-right: 5px;
  background: var(--wash); border-radius: 999px;
  padding: .2rem .6rem; font-size: .72rem; font-weight: 700; color: #475569;
}
.pv-tier .buy {
  display: block; width: 100%; margin-top: 12px; border: 0; border-radius: 11px;
  background: var(--accent); color: #fff; padding: .7rem;
  font: 800 .86rem Inter, sans-serif; cursor: default;
}
.pv-tier .buy.off { background: var(--wash); color: var(--faint); }

.pv-give {
  border: 1px solid #a7f3d0; background: #f0fdf4; border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
}
.pv-give h4 { margin: 0 0 2px; font-size: .95rem; font-weight: 800; }
.pv-give small { display: block; font-size: .82rem; color: var(--muted); }
.pv-give .box {
  margin-top: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .6rem .8rem; font-weight: 800; color: var(--faint);
}

.pv-foot { padding: 16px 18px 30px; border-top: 1px solid var(--wash); }
.pv-foot p { margin: 0; font-size: .74rem; line-height: 1.6; color: var(--faint); }



.tk { padding: 18px; }
.tk-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tk-card img.ban { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.tk-head { padding: 14px 16px; border-bottom: 1px dashed var(--line); }
.tk-head small { display: block; font-size: .78rem; font-weight: 800; color: var(--muted); }
.tk-head h3 { margin: 2px 0 6px; font-size: 1.2rem; font-weight: 900; letter-spacing: -.03em; }
.tk-head p { margin: 0; font-size: .83rem; color: var(--muted); }
.tk-mid { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.tk-mid .who { flex: 1; min-width: 0; }
.tk-mid .who span {
  display: block; font-size: .66rem; font-weight: 900; color: var(--faint);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px;
}
.tk-mid .who strong { display: block; font-size: .92rem; font-weight: 800; }
.tk-mid .who small { display: block; font-size: .8rem; color: var(--muted); }
.tk-mid .who + .who { margin-top: 12px; }
.tk-qr { flex: none; text-align: center; }
.tk-qr img { width: 118px; height: 118px; display: block; background: var(--wash); border-radius: 8px; }
.tk-qr b { display: block; margin-top: 6px; font-size: .78rem; font-weight: 900; }
.tk-note { padding: 0 16px 16px; font-size: .82rem; line-height: 1.6; color: #475569; }
.tk-fine { padding: 12px 16px; background: var(--wash); font-size: .72rem; line-height: 1.55; color: var(--faint); }



.em { padding: 18px; }
.em-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.em-top { background: var(--ink); color: #fff; padding: 14px 16px; }
.em-top span { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.em-top strong { display: block; margin-top: 2px; font-size: 1rem; font-weight: 800; }
.em-body { padding: 16px; font-size: .88rem; line-height: 1.7; color: #334155; white-space: pre-wrap; }
.em-body .tagd { background: #e6f9ef; border-radius: 5px; padding: 0 4px; font-weight: 800; color: var(--go-dark); }
.em-when { padding: 12px 16px; background: var(--wash); font-size: .78rem; font-weight: 800; color: var(--muted); }



.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: .75rem 1.2rem; font-size: .86rem; font-weight: 700;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 2147482000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--bad); }



@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; }
  .editor { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage { max-height: none; }
  .editor-foot { position: static; }
}
