.secure { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.co { padding: 100px 0 80px; }
.demo { background: #fff1d6; border: 1px dashed #e4b56a; color: #8a5a12; padding: 10px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 24px; }
.co-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.summary { order: 2; position: sticky; top: 90px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.details { order: 1; }
.details h1 { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 32px; }

.item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.thumb { background: #ffe7cf; border-radius: 18px; height: 130px; display: grid; place-items: center; overflow: hidden; }
.thumb .inf { height: 116px; width: auto; }
.item h2 { font-size: 22px; line-height: 1.15; }
.muted { color: var(--muted); font-size: 14px; }
.unit { margin: 6px 0 12px; font-weight: 600; }
.unit s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.unit .pair { color: var(--green); font-weight: 500; font-size: 14px; }
.totals .deal dt, .totals .deal dd { color: var(--green); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 38px; height: 36px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); border-radius: 999px; }
.qty button:hover { background: #ffe7cf; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.qty output.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); color: var(--orange); } }
.nudge { margin: 20px 0 0; font-size: 14px; color: var(--green); min-height: 1.4em; }

.totals { margin: 14px 0 22px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; padding: 10px 0; }
.totals dt { color: var(--muted); }
.totals dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; }
.totals .grand dt { color: var(--ink); font-weight: 600; }
.totals .grand dd { font: 600 28px "Fraunces"; }
.pay { width: 100%; padding: 18px; font-size: 16px; }
.pay[disabled] { opacity: .6; pointer-events: none; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

fieldset { border: 0; margin-bottom: 30px; }
legend { font: 600 13px "Inter"; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 14px; }
.row { display: grid; gap: 12px; margin-bottom: 12px; }
.row.two { grid-template-columns: 1fr 1fr; }
.row.three { grid-template-columns: 1.2fr 1fr .8fr; }
@media (max-width: 600px) { .row.two, .row.three { grid-template-columns: 1fr; } }

/* floating-label fields */
.f { position: relative; display: block; }
.f input, .f select {
  width: 100%; height: 58px; padding: 22px 16px 6px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; font: 500 16px "Inter"; color: var(--ink); outline: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.f select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; }
.f span { position: absolute; left: 17px; top: 19px; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); font-size: 16px; }
.f input:focus, .f select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245,124,20,.14); }
.f input:focus + span, .f input:not(:placeholder-shown) + span, .f select:focus + span, .f select:valid + span { top: 8px; font-size: 12px; }
.f.bad input, .f.bad select { border-color: #d64545; animation: shake .4s; }
.f.bad span { color: #d64545; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.pay-opts { display: grid; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.opt input { position: absolute; opacity: 0; }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: all .2s; }
.opt b { display: block; font-weight: 600; }
.opt small { color: var(--muted); font-size: 13px; }
.opt .badges { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.opt:has(input:checked) { border-color: var(--orange); background: #fff8f0; }
.opt:has(input:checked) .dot { border: 6px solid var(--orange); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(245,124,20,.2); }
.error { color: #d64545; font-size: 14px; min-height: 1.4em; }

@media (max-width: 900px) {
  .co { padding-top: 86px; }
  .co-grid { grid-template-columns: 1fr; gap: 28px; }
  .summary { order: 3; position: static; }
}

/* success overlay */
.done { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(43,26,15,.45); backdrop-filter: blur(6px); animation: fade .3s; }
.done-card { background: var(--paper); border-radius: 28px; padding: 44px 36px; text-align: center; max-width: 420px; width: 100%; animation: pop .6s var(--ease); }
.done-card h2 { font-size: 40px; margin: 18px 0 8px; }
.done-card p { margin-bottom: 8px; }
.done-card .btn { margin-top: 20px; }
.tick { width: 84px; margin: 0 auto; }
.tick circle { fill: #ffe7cf; stroke: var(--orange); stroke-width: 4; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw .7s .15s var(--ease) forwards; }
.tick path { fill: none; stroke: var(--orange-deep); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }

.done-card .btn.wa { display: flex; width: 100%; background: #25d366; color: #fff; font-size: 16px; padding: 17px; }
.done-card .btn.wa:hover { background: #1ebe5b; box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .6); }
.done-card .btn.wa + .btn { margin-top: 10px; }
