/* Theme tokens */
:root{
  --cafe-bg:#fffdf9;
  --cafe-surface:#ffffff;
  --cafe-ink:#2c231b;
  --cafe-muted:#6f6256;
  --cafe-brand:#7a5c3e;
  --cafe-brand-ink:#fff;
  --cafe-line:#efe7df;
  --rad-xl:16px;
}
.cafe-sub{max-width:900px;margin:24px auto;padding:16px;background:var(--cafe-bg); border-radius:var(--rad-xl)}
.cafe-sub h3{font-size:clamp(22px,2.2vw,30px); line-height:1.2}
.cafe-sub p{color:var(--cafe-muted)}

/* Progress pills */
.cafe-sub__progress{margin-bottom:18px}
.cafe-sub__steps{display:flex;gap:10px;justify-content:space-between}
.cafe-sub__step-pill{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--cafe-line);border-radius:999px;padding:8px 12px}
.cafe-sub__step-pill .dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--cafe-line);font-size:12px;color:var(--cafe-muted)}
.cafe-sub__step-pill.active{border-color:var(--cafe-brand)}
.cafe-sub__step-pill.active .dot{background:var(--cafe-brand);color:#fff;border-color:var(--cafe-brand)}
.cafe-sub__step-pill .label{font-weight:600;color:var(--cafe-ink)}
@media (max-width:640px){ .cafe-sub__step-pill .label{display:none} }

/* Summary */
.cafe-sub__summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#f9f6f3;border:1px solid #efe7df;border-radius:12px;padding:10px 12px;margin:8px 0 18px}
.cafe-sub__summary-item b{font-weight:700}
.cafe-sub__summary-sep{opacity:.6}

/* Options */
.cafe-sub__options{display:flex;gap:12px;flex-wrap:wrap}
.cafe-sub__options--grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.cafe-sub__card{flex:1 1 280px;border:1px solid #e7e2dc;border-radius:16px;padding:16px;cursor:pointer;transition:box-shadow .18s ease, transform .18s ease;background:linear-gradient(180deg,#fff, #fffdfb)}
.cafe-sub__card:hover{box-shadow:0 8px 24px rgba(0,0,0,.06);transform:translateY(-2px)}
.cafe-sub__card input{display:none}
.cafe-sub__card-title{display:block;font-weight:700;margin-bottom:6px}
.cafe-sub__card-note{display:block;font-size:.9rem;color:#6a6a6a}
.cafe-sub__card.is-selected{border-color:var(--cafe-brand); box-shadow:0 8px 24px rgba(122,92,62,.18)}

.cafe-sub__chip{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e7e2dc;border-radius:999px;padding:12px 16px;background:linear-gradient(180deg,#fff,#fffbf7);cursor:pointer;transition:all .18s ease;min-height:42px}
.cafe-sub__chip .icon{width:18px;height:18px;margin-right:8px;vertical-align:middle}
.cafe-sub__chip:hover{box-shadow:0 6px 16px rgba(0,0,0,.05)}
.cafe-sub__chip input{position:absolute;opacity:0;pointer-events:none}
.cafe-sub__chip input:checked + span{font-weight:700}
.cafe-sub__chip.is-selected{border-color:var(--cafe-brand); box-shadow:0 6px 16px rgba(122,92,62,.12)}
.cafe-sub__chip--lg{padding:14px 18px}

/* Form grid */
.cafe-sub__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cafe-sub__grid label{display:flex;flex-direction:column;gap:6px}
.cafe-sub__grid input{padding:10px 12px;border:1px solid #ddd;border-radius:10px}
.cafe-sub__fieldset{grid-column:span 2;border:1px solid #eee;border-radius:12px;padding:12px}
.cafe-sub__chips-row{display:flex;flex-wrap:wrap;gap:12px}
@media (max-width:640px){
  .cafe-sub__grid{grid-template-columns:1fr}
  .cafe-sub__fieldset{grid-column:span 1}
}

/* Nav */
.cafe-sub__nav{display:flex;gap:8px;margin-top:16px}
.cafe-sub__btn{appearance:none;border:1px solid #c9b8a8;background:#fff;color:#3a2a1a;border-radius:999px;padding:12px 18px;cursor:pointer;transition:all .2s ease}
.cafe-sub__btn:hover{background:#f7f2ed}
.cafe-sub__btn--primary{background:var(--cafe-brand);color:#fff;border-color:var(--cafe-brand)}
.cafe-sub__btn--primary:hover{opacity:.95}
.cafe-sub__btn.is-ready{box-shadow:0 10px 30px rgba(122,92,62,.25); transform:translateY(-1px)}
@media (max-width:640px){
  .cafe-sub__nav{position:sticky; bottom:0; background:linear-gradient(180deg,rgba(255,253,249,0),var(--cafe-bg) 40%); padding-top:12px; padding-bottom:12px; z-index:5; justify-content:space-between}
  .cafe-sub__nav .cafe-sub__btn{min-width:44%}
}

/* Review */
.cafe-sub__review{display:grid;gap:10px;background:#fffdf9;border:1px solid #efe7df;border-radius:12px;padding:14px}
.cafe-sub__review-row{display:grid; grid-template-columns: 1fr auto auto; gap:10px; border-bottom:1px dashed #eee; padding:10px 14px}
.cafe-sub__review-row:last-child{border-bottom:none}
.cafe-sub__review-row span{color:#6a5a4a}
.cafe-sub__link{background:none;border:none;color:#7a5c3e;text-decoration:underline;cursor:pointer;padding:0}

/* Thanks */
.cafe-sub__thanks{text-align:center;padding:40px 12px}

/* Toast */
.cafe-sub__toast{position:fixed; left:50%; transform:translateX(-50%); bottom:24px; background:#2c231b; color:#fff; padding:10px 14px; border-radius:999px; box-shadow:0 10px 30px rgba(0,0,0,.25)}
.cafe-sub__toast.show{animation:toastIn .3s ease, toastOut .3s ease 1.6s forwards}
@keyframes toastIn{from{opacity:0; transform:translate(-50%,10px)}to{opacity:1; transform:translate(-50%,0)}}
@keyframes toastOut{to{opacity:0; transform:translate(-50%,10px)}}

/* Focus */
.cafe-sub__card:focus-within, .cafe-sub__chip:focus-within{outline:2px solid #c9b8a8; outline-offset:2px}

/* 1.1.0 premium look (no gradients) */
:root{
  --cafe-bg:#fbfaf8;
  --cafe-surface:#ffffff;
  --cafe-ink:#231a14;
  --cafe-muted:#6b5c51;
  --cafe-brand:#6b4b2f;
  --cafe-line:#eadfd6;
  --rad-xl:18px;
}
.cafe-sub{box-shadow:0 10px 40px rgba(0,0,0,.04); border:1px solid var(--cafe-line)}
.cafe-sub__card{background:#fff}
.cafe-sub__chip{background:#fff}
.cafe-sub__btn{font-weight:600}
.cafe-sub__btn--primary{background:var(--cafe-brand); color:#fff; border-color:var(--cafe-brand)}
.cafe-sub__btn.is-loading{opacity:.7; pointer-events:none}
.cafe-sub__card-ico{display:inline-flex; margin-left:8px}
.cafe-sub__card-ico svg{width:22px; height:22px}
