:root{color-scheme:light;--ink:#1d2921;--sub:#637266;--green:#153a29;--deep:#13261a;--lime:#ceff50;--bg:#f6f8f4;--line:#dce5db;--paper:#fff;--radius:20px;font-family:Inter,"Helvetica Neue",Arial,sans-serif;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}:focus-visible{outline:3px solid #8cc638;outline-offset:3px}
.skip-link{position:absolute;left:-100vw;top:10px;background:var(--lime);padding:12px;z-index:100}.skip-link:focus{left:12px}
.header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px clamp(20px,5vw,70px);background:var(--deep);color:#fff;min-height:92px}
.brand{display:flex;gap:18px;align-items:center;font-size:11px;letter-spacing:.15em;font-weight:800}.brand img{height:auto;filter:brightness(0) invert(1)}.brand span{border-left:1px solid #ffffff40;padding-left:18px}
.top-right{display:flex;align-items:center;gap:15px;font-size:12px}.pilot{border:1px solid #b6f2746b;background:#cfff4b18;color:#d1ff79;font-size:10px;font-weight:800;padding:7px 10px;border-radius:30px;letter-spacing:.06em}
main{max-width:1280px;margin:0 auto;padding:46px clamp(18px,5vw,68px) 45px}
.eyebrow{color:#456749;letter-spacing:.13em;font-size:10px;font-weight:900}.hero{margin-bottom:25px}.hero h1{font-size:clamp(34px,5.8vw,62px);letter-spacing:-.066em;line-height:1.02;margin:9px 0 17px}.hero p{color:var(--sub);max-width:670px;font-size:14px;line-height:1.65}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin-bottom:17px;min-width:0;box-shadow:0 20px 34px -35px #22412a42}
h2,h3{letter-spacing:-.035em}h2{font-size:26px;margin:8px 0 14px}h3{font-size:19px;margin:8px 0 15px}p{color:var(--sub);line-height:1.55}.login{max-width:550px;padding:34px}.login p{font-size:13px}
label{display:block;font-size:12px;font-weight:700;margin:12px 0 7px}input:not([type=checkbox]),select{width:100%;background:#fafdf9;border:1px solid #cddbc9;border-radius:9px;color:var(--ink);padding:12px 14px;min-height:46px;min-width:0;font-size:14px}
button.primary{background:var(--lime);border:1px solid #bfeb44;color:#193325;font-weight:800;border-radius:10px;padding:12px 16px;min-height:45px}button.primary:hover{background:#bff13e}
button.secondary{background:#eef4ea;color:var(--ink);border:1px solid #d1e1cf;font-weight:700;border-radius:10px;padding:12px 16px;min-height:44px}.compact{min-height:39px!important;padding:8px 13px!important;font-size:12px}
button.danger{background:#fcebea;border:1px solid #efcac7;color:#8a3b34;border-radius:9px;padding:8px 11px;font-size:12px;font-weight:700}
button.small{padding:9px 12px;min-height:38px;font-size:12px;border-radius:9px}
button:hover{filter:saturate(1.04)}.footnote{font-size:11px;color:var(--sub);line-height:1.6}.notice{margin-bottom:18px;border-left:3px solid #448f55;padding:8px 13px;background:#eef6ec;border-radius:6px;color:#30533a;font-size:13px}.notice:empty{display:none}.notice.error{background:#fff0ed;color:#923d36;border-color:#b94338}
.toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:10px 0 20px}.toolbar h2{font-size:27px;margin:6px 0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric{background:#fff;border-radius:16px;border:1px solid var(--line);padding:19px}.metric span{color:var(--sub);font-size:11px}.metric strong{display:block;font-size:clamp(18px,2.4vw,27px);line-height:1.22;letter-spacing:-.055em;margin:12px 0 5px;overflow-wrap:anywhere}.metric small{font-size:11px;color:var(--sub)}
.columns{display:grid;grid-template-columns:minmax(280px,0.92fr) minmax(340px,1.08fr);gap:18px;align-items:start}.section-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.section-head h3{margin:7px 0 16px}.subtle{font-size:11px;color:var(--sub);white-space:nowrap}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 15px}.field-grid>div{min-width:0}.field-grid .full{grid-column:1/-1}.field-grid button{margin-top:12px}
.stack{display:grid;gap:12px}.placement{border:1px solid #dfe7dd;border-radius:13px;padding:15px;background:#fcfefb;min-width:0}
.placement-head{display:flex;gap:13px;align-items:flex-start;justify-content:space-between}.placement h4{font-size:15px;margin:0 0 6px;letter-spacing:-.02em}.placement p{font-size:12px;color:var(--sub);margin:4px 0}.placement .dates{font-size:11px;color:#718070}.placement .state{font-size:10px;font-weight:850;padding:6px 9px;border-radius:20px;background:#f0f2ed;color:#516451;white-space:nowrap}
.placement .state.approved{background:#fff2cf;color:#865917}.placement .state.published{background:#e3f3d9;color:#325924}.placement .state.draft{background:#edf0ec;color:#58705b}.placement .state.rejected,.placement .state.cancelled{background:#fff0ec;color:#9b4e48}
.placement-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.placement-actions button{flex:1;min-width:115px}
.swatch{width:24px;height:24px;border-radius:7px;flex:0 0 auto;border:1px solid #0001}
.template-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 3px;border-bottom:1px solid var(--line);font-size:12px}.template-row strong{font-size:13px}.template-row small{color:var(--sub)}
.divider{height:1px;background:var(--line);margin:24px 0}.subheading{font-size:15px}.empty{font-size:13px;color:var(--sub);padding:14px;background:#f6faf4;border-radius:10px}.footer-note{font-size:11px;color:#6a7b6c;margin-top:26px}
@media(max-width:900px){main{padding:30px 22px}.columns{grid-template-columns:1fr}.hero h1{font-size:clamp(34px,6vw,54px)}}
@media(max-width:570px){.header{min-height:76px;padding:15px 16px}.brand img{width:125px}.brand{gap:9px}.brand span{font-size:9px;padding-left:9px}.top-right{display:grid;text-align:right;gap:4px}.pilot{font-size:8px;padding:5px 8px}.top-right #merchant-name{font-size:10px}.stats{grid-template-columns:1fr 1fr;gap:8px}.stats>.metric:last-child{grid-column:1/-1}.metric{padding:13px}.metric strong{font-size:19px}.card{padding:20px}.login{padding:23px}.field-grid{grid-template-columns:1fr}.field-grid .full{grid-column:auto}.hero p{font-size:13px}.toolbar{align-items:start}.toolbar h2{font-size:22px}.section-head h3{font-size:18px}.top-right #merchant-name{max-width:98px;overflow:hidden;text-overflow:ellipsis}.placement-actions button{min-width:0}.placement-head{gap:9px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s ease,opacity .12s ease}}


/* Merchant-safe aggregated usage; no customer or phone fields are present. */
.insight-card{padding-bottom:15px}
.insight-card .section-head h3{margin-bottom:8px}
.insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0 6px}
.insights>div{background:#f5f9f3;border:1px solid #e5ede0;border-radius:12px;padding:15px}
.insights strong{display:block;font-size:26px;letter-spacing:-.055em;color:var(--green);font-variant-numeric:tabular-nums}
.insights span{display:block;margin-top:6px;font-size:11px;color:var(--sub)}
@media(max-width:620px){.insights{grid-template-columns:repeat(2,1fr)}.insights strong{font-size:23px}}


/* Business self-service card editor. Fixed color-only client preview; no HTML upload. */
.card-designer{border-color:#d5e3d0}
.card-designer>.section-head h3{font-size:clamp(20px,2.4vw,28px)}
.designer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.94fr);gap:clamp(16px,3vw,42px);align-items:start;margin-top:19px}
.designer-fields{min-width:0}
.designer-fields label{margin-top:12px}
.designer-fields textarea{display:block;width:100%;resize:vertical;min-height:80px;border:1px solid #cddbc9;background:#fafdf9;border-radius:9px;color:var(--ink);padding:12px;font:inherit;line-height:1.45;font-size:14px}
.designer-fields textarea:focus-visible{outline:3px solid #8cc638;outline-offset:2px}
.designer-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.designer-colors input[type=color]{width:100%;min-height:51px;padding:5px;border-radius:9px;background:#fff}
.designer-help{display:flex;justify-content:space-between;align-items:start;gap:15px}
.designer-help small{font-size:11px;color:var(--sub);margin-top:7px}
.designer-help small:last-child{white-space:nowrap}
.designer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.designer-actions button{min-width:0}
.designer-preview-wrap{min-width:0}
.designer-preview{--designer-accent:#674B36;--designer-background:#EFE9DC;
  background:#EFE9DC;color:#1D2023;border-radius:24px;padding:clamp(20px,3vw,32px);
  display:flex;flex-direction:column;gap:10px;overflow:hidden;min-height:310px;
  box-shadow:0 17px 50px #122a1916;isolation:isolate;position:relative}
.designer-preview::after{content:"";position:absolute;width:190px;height:190px;right:-65px;top:-75px;border-radius:50%;border:28px solid var(--designer-accent);opacity:.12;z-index:-1}
.designer-preview-name{font-size:12px;font-weight:850;letter-spacing:.07em;word-break:break-word}
.designer-preview-kicker{font-size:9px;font-weight:700;letter-spacing:.14em;opacity:.75}
.designer-preview>strong{font-size:clamp(25px,3vw,34px);letter-spacing:-.06em;line-height:1.18;margin:6px 0 9px}
.designer-preview-stamps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.designer-preview-stamps span{display:grid;place-items:center;aspect-ratio:1;min-width:0;border:2px solid var(--designer-accent);border-radius:50%;font-size:14px;font-weight:700}
.designer-preview-stamps span:nth-child(-n+3){background:var(--designer-accent);color:var(--designer-background)}
.designer-preview-message{font-size:12px;padding:10px 11px;margin:5px 0 0;border:1px solid currentColor;border-radius:10px;overflow-wrap:anywhere;max-width:100%;font-weight:700}
.designer-preview small{opacity:.85;font-size:11px;line-height:1.5}
@media(max-width:900px){.designer-layout{grid-template-columns:1fr}}
@media(max-width:560px){.designer-actions{grid-template-columns:1fr}.designer-preview{min-height:280px}}

