:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#101828;
  --muted:#667085;
  --border:#eaecf0;

  --primary:#16a34a;     /* verde */
  --primary2:#22c55e;

  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --radius: 22px;
}

/* Kiosk base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

/* centraliza e dá cara de totem */
.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
}

/* topo “totem” */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 16px;
}

h1{ margin:0; font-size: 26px; letter-spacing: -0.02em; }
h2{ margin:0 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.muted{ margin:4px 0 0; color: var(--muted); }

/* card grande */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* barra superior */
.topbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}

/* botões grandes (touch) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration:none;
  font-weight: 800;
  min-height: 56px;
  cursor:pointer;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn.primary{
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  color:#fff;
  border: none;
}
.btn.ghost{
  background:#fff;
}

/* inputs grandes */
input, select{
  width:100%;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:#fff;
  color: var(--text);
  outline:none;
  font-size: 16px;
}

/* grid de opções estilo “Mc” */
.tiles{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

/* tile clicável */
.tile{
  position:relative;
  border: 2px solid var(--border);
  border-radius: 20px;
  background:#fff;
  padding: 16px;
  min-height: 90px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(16,24,40,.06);
}

/* esconde input mas mantém acessibilidade */
.tile input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

/* texto */
.tile .title{
  font-weight: 900;
  font-size: 18px;
}
.tile .sub{
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}

/* seleção: borda verde */
.tile:has(input:checked){
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(34,197,94,.18);
}

/* ações fixas no fim */
.actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 16px;
}

/* resumo */
.summary{ margin-top: 10px; display:flex; flex-direction:column; gap:10px; }
.summary .row{
  display:flex; justify-content:space-between; gap:12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.summary .row.total{
  border-bottom:0;
  font-size: 22px;
  font-weight: 900;
}


/* ====== LISTA TOQUE (choices/choice) ====== */
.choices{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:14px;
}

.choice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px;
  border:2px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  cursor:pointer;
  user-select:none;
}

/* deixa texto mais forte e organizado */
.choice span{
  display:flex;
  align-items:baseline;
  gap:12px;
  font-weight:900;
  font-size:20px;
}

.choice .price{
  font-size:16px;
  font-weight:800;
  color:#6b7280;
}

/* rádio virando “bolinha bonita” e grande */
.choice input[type="radio"]{
  appearance:none;
  -webkit-appearance:none;
  width:28px;
  height:28px;
  border-radius:999px;
  border:3px solid #cbd5e1;
  background:#fff;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

/* bolinha interna quando selecionado */
.choice input[type="radio"]::before{
  content:"";
  width:14px;
  height:14px;
  border-radius:999px;
  transform:scale(0);
  transition:transform .12s ease-in-out;
  background:#111; /* preto (bem visível) */
}

.choice input[type="radio"]:checked{
  border-color:#111;
}

.choice input[type="radio"]:checked::before{
  transform:scale(1);
}

/* quando marcado: destaca o card inteiro */
.choice:has(input[type="radio"]:checked){
  border-color:#111;
  box-shadow: 0 14px 24px rgba(0,0,0,.12);
}

/* botão próximo mais “totem” */
.btn.primary{
  background: #ffcc00 !important;
  color:#111 !important;
  border:0 !important;
  font-weight:900;
}

.btn.primary:hover{ filter:brightness(.98); }


/* =========================
   KIOSK UI (padrao de cards)
   ========================= */

:root{
  --k-bg:#f6f7fb;
  --k-card:#ffffff;
  --k-border:#e5e7eb;
  --k-text:#111827;
  --k-muted:#6b7280;
  --k-accent:#ffcc00; /* amarelo */
  --k-focus:#111111;
  --k-shadow: 0 14px 30px rgba(0,0,0,.08);
}

body{ background: var(--k-bg); color: var(--k-text); }

/* container e card mais "totem" */
.container{ max-width: 980px; margin: 0 auto; padding: 18px; }
.card{
  border-radius: 24px;
  border: 1px solid var(--k-border);
  background: var(--k-card);
  box-shadow: var(--k-shadow);
  padding: 18px;
}

/* Topbar */
.topbar{ display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; }
.btn{
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 900;
  border: 1px solid var(--k-border);
  background:#fff;
  text-decoration:none;
  color: var(--k-text);
  min-height: 56px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn.primary{
  background: var(--k-accent);
  border-color: var(--k-accent);
  color:#111;
}
.btn.full{ width:100%; min-height: 64px; font-size: 18px; border-radius: 20px; }
.btn:active{ transform: translateY(1px); }

/* Títulos */
h2{ margin: 0 0 8px; font-size: 28px; letter-spacing: -0.02em; }
.muted, .sub{ color: var(--k-muted); font-weight: 700; }

/* lista */
.choices{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top: 14px;
}

/* CARD clicavel */
.choice{
  display:grid;
  grid-template-columns: 46px 1fr auto;
  align-items:center;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 2px solid var(--k-border);
  background:#fff;
  box-shadow: 0 10px 18px rgba(0,0,0,.05);
  cursor:pointer;
  user-select:none;
  position:relative;
}

/* deixa toda a label clicavel */
.choice input{
  position: relative;
  z-index: 2;
}

/* area do texto */
.choice span{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-weight: 1000;
  letter-spacing: .2px;
  line-height: 1.05;
}

/* preco (se existir como small.price) */
.choice .price{
  font-size: 14px;
  font-weight: 900;
  color: var(--k-muted);
}

/* para telas que colocam o preco em outro lugar, garante alinhamento à direita */
.choice .right{
  justify-self:end;
  text-align:right;
  font-weight: 1000;
}
.choice .right .price{ display:block; }

/* ===== INPUTS custom (radio/checkbox) ===== */
.choice input[type="radio"],
.choice input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid #cbd5e1;
  background:#fff;
  display:grid;
  place-items:center;
}

/* checkbox quadrado */
.choice input[type="checkbox"]{
  border-radius: 10px;
}

/* bolinha interna do radio */
.choice input[type="radio"]::before{
  content:"";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform .12s ease-in-out;
  background: var(--k-focus);
}
.choice input[type="radio"]:checked::before{ transform: scale(1); }

/* check do checkbox */
.choice input[type="checkbox"]::before{
  content:"";
  width: 16px;
  height: 16px;
  transform: scale(0);
  transition: transform .12s ease-in-out;
  background: var(--k-focus);
  border-radius: 6px;
}
.choice input[type="checkbox"]:checked::before{ transform: scale(1); }

/* estado selecionado: destaque no card todo */
.choice:has(input:checked){
  border-color: var(--k-focus);
  box-shadow: 0 14px 26px rgba(0,0,0,.12);
}

/* cards muito altos (evita aquele "vazio" que apareceu nas telas) */
.choice{ min-height: 84px; }

/* botão proximo sempre full */
form .btn.primary{ margin-top: 14px; }
form .btn.primary{ width: 100%; min-height: 64px; font-size: 18px; border-radius: 20px; }

/* responsivo */
@media (max-width: 560px){
  .choice{ grid-template-columns: 42px 1fr; }
  .choice .right{ grid-column: 2; justify-self:start; text-align:left; }
}




/* =========================
   HOME / INDEX (TOTEM)
   ========================= */

.home{
  min-height:100vh;
  background:#f6f7fb;
  display:flex;
  flex-direction:column;
  align-content: center;
}

.home-top{
  padding:20px 26px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-title{
  font-size:22px;
  font-weight:1000;
}

.brand-sub{
  font-size:14px;
  color:#6b7280;
  font-weight:700;
}

.hero{
  flex:1;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:40px;
  padding:40px;
  align-items:center;
}

.hero-left h1{
  font-size:42px;
  margin:0 0 10px;
}

.hero-left .lead{
  font-size:18px;
  color:#6b7280;
  margin-bottom:22px;
}

.hero-right{
  display:flex;
  justify-content:center;
}

.image-card{
  background:#fff;
  border-radius:28px;
  padding:20px;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
  text-align:center;
  max-width:420px;
}

.image-card img{
  width:50%;
  height:auto;
  object-fit:contain;
}

.image-caption{
  margin-top:10px;
  font-weight:900;
}

.tips{
  display:flex;
  gap:20px;
  margin-top:26px;
}

.tip{
  background:#fff;
  padding:16px;
  border-radius:16px;
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.tip-title{
  font-weight:1000;
}

.tip-sub{
  font-size:14px;
  color:#6b7280;
}

.home-footer{
  padding:16px 26px;
  display:flex;
  justify-content:space-between;
  font-size:14px;
  color:#6b7280;
}


/* Responsivo (tablet) */
@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    padding:26px;
  }
  .hero-right{
    order:-1;
  }
}


/* HOTFIX clique travado */
.container, .card, .grid { position: relative; z-index: 10; }
.container::before, .container::after,
.card::before, .card::after { display:none !important; content:none !important; }
a, button { pointer-events: auto !important; }





/* responsivo */
@media (min-width: 900px){
  .tiles{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
