/* Onboarding "Monte sua página": steps on the left, live preview of her page on the right (desktop).
   On the phone the preview folds into a small bar at the top of each step. */
.ob { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); }
.ob-main { display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; min-width: 0; }
.ob-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.ob-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 22px; text-decoration: none; color: var(--ink); flex: none; }
.ob-logo i { width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--brand); transition: background var(--slow) ease; }
.ob-progress { flex: 1; display: grid; gap: 6px; min-width: 0; font-size: 14px; color: var(--muted); }
.ob-progress b { color: var(--ink); font-weight: 600; }
.ob-progress .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ob-progress .bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .4s ease; }
.ob-exit { flex: none; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.ob-exit:hover { color: var(--ink); }

.ob-content { width: 100%; max-width: 600px; margin: 0 auto; padding: 28px 20px 32px; display: grid; gap: 20px; align-content: start; }
.ob-title { font-size: clamp(28px, 5vw, 38px); line-height: 1.08; }
.ob-lead { color: var(--muted); font-size: 16px; margin-top: -8px; }
.ob-label { font-size: 14px; font-weight: 600; }
.ob-group { display: grid; gap: 10px; }
.ob-left { justify-self: start; margin-top: -10px; }
.ob-content .field input { min-height: 48px; font-size: 16px; }
.ob-content .field input:focus { outline-color: var(--brand); }
.hint { display: inline-flex; align-items: center; gap: 6px; }

.ob-foot { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 20px max(12px, env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.ob-foot .btn { min-height: 48px; padding-inline: 22px; }
.ob-foot [data-next] { flex: 0 1 260px; }
@media (max-width: 599px) { .ob-foot [data-next] { flex: 1; } }

/* welcome */
.ob-hero { display: grid; gap: 20px; padding-top: 8px; }
.ob-fan { position: relative; height: 170px; margin-bottom: 4px; }
.fan-card { position: absolute; top: 18px; width: 170px; height: 140px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 8px; align-content: start; border-top: 8px solid var(--brand); }
.fan-card .c-logo { width: 34px; height: 34px; background: var(--brand); color: #fff; font-size: 12px; }
.fan-card b { font-family: var(--f-display); font-size: 16px; }
.fan-card i { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 14%, #fff); }
.fan-card i + i { width: 60%; }
.fan-card.f0 { left: 0; transform: rotate(-6deg); }
.fan-card.f1 { left: calc(50% - 85px); top: 0; z-index: 2; }
.fan-card.f2 { right: 0; transform: rotate(6deg); }
.ob-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-perks li { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.ob-perks svg { color: var(--ok); flex: none; }

/* link */
.ob-link { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); min-height: 48px; padding-left: 12px; }
.ob-link:focus-within { outline: 2px solid var(--brand); border-color: transparent; }
.ob-link span { color: var(--muted); font-size: 16px; }
.ob-link input { border: 0 !important; outline: none !important; flex: 1; min-width: 0; padding: 0 12px 0 0; font-size: 16px; font-weight: 600; background: transparent; min-height: 46px; }
.ob-check { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.ob-check.ok { color: var(--ok); font-weight: 600; }
.ob-check.taken, .ob-check.bad { color: var(--danger); font-weight: 500; }

/* brand */
.ob-upload { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 14px; background: var(--surface); cursor: pointer; }
.ob-upload:hover { border-color: var(--brand); }
.ob-upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ob-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ob-upload .c-logo { width: 52px; height: 52px; background: var(--brand-soft); color: var(--brand); }
.ob-upload span { display: grid; }
.ob-upload small { color: var(--muted); font-size: 14px; }

/* services */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-full); padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.ghost { border-style: dashed; color: var(--brand); }
.ob-svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ob-svcs li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: grid; gap: 10px; }
.ob-svc-top { display: flex; align-items: center; gap: 8px; }
.ob-svc-name { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed var(--line-strong); background: transparent; font-weight: 600; font-size: 16px; padding: 6px 0; }
.ob-svc-name:focus { outline: none; border-bottom: 2px solid var(--brand); }
.ob-svc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-svc-nums label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.money-in { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 10px; background: var(--surface); min-height: 44px; }
.money-in:focus-within { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.money-in i { font-style: normal; color: var(--muted); font-size: 14px; }
.money-in input, .money-in select { border: 0; outline: none; background: transparent; width: 100%; min-width: 0; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink); padding: 0; min-height: 42px; }
.ob-empty { color: var(--muted); background: var(--subtle); border-radius: var(--r-md); padding: 14px; font-size: 14px; }

/* deposit */
.ob-choice { display: grid; gap: 10px; }
.ob-choice button { text-align: left; display: grid; gap: 4px; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-md); padding: 14px 16px 14px 48px; cursor: pointer; position: relative; }
.ob-choice button::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.ob-choice button[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.ob-choice button[aria-checked="true"]::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px #fff; background: var(--brand); }
.ob-choice b { font-size: 16px; }
.ob-choice span { color: var(--muted); font-size: 14px; }
.ob-deps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-deps li { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.ob-deps li > span:first-child { display: grid; min-width: 0; }
.ob-deps b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-deps small { color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 3px; background: var(--surface); justify-self: start; }
.seg button { border: 0; background: transparent; border-radius: var(--r-full); padding: 8px 14px; min-height: 40px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--brand); color: #fff; }

/* week */
.ob-presets { display: grid; gap: 10px; }
.ob-presets button { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; }
.ob-presets button[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.ob-presets b { font-size: 16px; }
.ob-presets span { color: var(--muted); font-size: 14px; grid-column: 1; }
.ob-presets .week { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 3px; }
.ob-presets .week i { width: 22px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; background: var(--subtle); color: var(--muted); }
.ob-presets .week i.on { background: var(--brand); color: #fff; }
@media (max-width: 420px) { .ob-presets button { grid-template-columns: 1fr; } .ob-presets .week { grid-column: 1; grid-row: auto; margin-top: 6px; } }

/* account */
.ob-pass { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); padding-right: 10px; }
.ob-pass:focus-within { outline: 2px solid var(--brand); border-color: transparent; }
.ob-pass input { border: 0 !important; outline: none !important; flex: 1; min-width: 0; }
.ob-pass .link-btn { min-height: 36px; padding: 0; font-size: 14px; }

/* review + price */
.ob-review { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.ob-review li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.ob-review li + li { border-top: 1px solid var(--line); }
.ob-review li > span { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; min-width: 0; }
.ob-review svg { color: var(--ok); grid-row: span 2; }
.ob-review b { font-size: 14px; }
.ob-review small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-review .link-btn { min-height: 36px; padding: 0; font-size: 14px; }
.ob-price { border: 2px solid var(--brand); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 8px; background: var(--surface); }
.ob-price > div { display: grid; }
.ob-price small { color: var(--muted); font-size: 14px; }
.ob-price b { font-family: var(--f-display); font-size: 36px; line-height: 1.1; }
.ob-tag { justify-self: start; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); }
.ob-terms { font-weight: 500; }

/* done */
.ob-done { display: grid; gap: 18px; justify-items: center; text-align: center; padding-top: 24px; }
.ob-done .c-ok { width: 64px; height: 64px; }
.ob-linkbox { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 8px 8px 14px; }
.ob-linkbox span { flex: 1; min-width: 0; text-align: left; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-done-actions { display: grid; gap: 10px; width: 100%; justify-items: center; }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }

/* live preview (her page) */
.pv-phone { border-radius: var(--r-xl); border: 8px solid var(--ink); background: var(--paper); overflow: hidden; box-shadow: 0 24px 60px rgba(30, 26, 29, .18); width: 100%; max-width: 340px; }
.pv-phone .pv-url { background: var(--subtle); color: var(--muted); font-size: 11px; padding: 6px 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-phone .c-head-in { padding: 12px 14px; }
.pv-phone .c-brand b { font-size: 18px; }
.pv-phone .c-logo { width: 38px; height: 38px; font-size: 14px; }
.pv-body { padding: 14px; display: grid; gap: 8px; min-height: 300px; align-content: start; }
.pv-title { font-family: var(--f-display); font-weight: 800; font-size: 22px; margin-bottom: 4px; }
.pv-body .c-svc { min-height: 54px; padding: 10px 12px; cursor: default; }
.pv-body .c-svc.ghost { opacity: .45; border-style: dashed; }
.pv-body .c-svc .n b { font-size: 14px; }
.pv-phone.compact { border-width: 0; border-radius: var(--r-md); box-shadow: none; border: 1px solid var(--line); max-width: none; }
.pv-phone.compact .pv-body { min-height: 0; }
.pv-phone.compact .pv-url, .pv-phone.compact .pv-title { display: none; }

.ob-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.ob-mini summary { cursor: pointer; list-style: none; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--brand); display: flex; justify-content: space-between; }
.ob-mini summary::after { content: "Mostrar"; color: var(--muted); font-weight: 500; }
.ob-mini[open] summary::after { content: "Esconder"; }
.ob-mini summary::-webkit-details-marker { display: none; }
.ob-mini .pv-phone { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); }

.ob-side { display: none; }
@media (min-width: 1000px) {
  .ob { grid-template-columns: minmax(0, 1fr) minmax(380px, 40%); }
  .ob-side { display: grid; place-items: center; align-content: center; gap: 14px; position: sticky; top: 0; height: 100dvh; background: var(--brand-soft); transition: background var(--slow) ease; padding: 32px; }
  .ob-mini { display: none; }
}
.ob-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand); }
.ob-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.chip, .seg button, .ob-review .link-btn { min-height: 44px; }

/* segment picker (first thing on the services step) */
.ob-segments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ob-segments button { min-height: 52px; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-md); font-weight: 600; font-size: 16px; cursor: pointer; color: var(--ink); padding: 8px 12px; }
.ob-segments button:hover { border-color: var(--brand); }
.ob-segments button[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* password meter */
.pw-meter { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-top: 2px; }
.pw-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pw-bar i { height: 6px; border-radius: 3px; background: var(--line); transition: background var(--slow) ease; }
.pw-meter.lv1 .pw-bar i:nth-child(1) { background: var(--danger); }
.pw-meter.lv2 .pw-bar i:nth-child(-n+2) { background: var(--warn); }
.pw-meter.lv3 .pw-bar i { background: var(--ok); }
.pw-word { font-size: 14px; font-weight: 600; color: var(--muted); }
.pw-meter.lv1 .pw-word { color: var(--danger); }
.pw-meter.lv2 .pw-word { color: var(--warn); }
.pw-meter.lv3 .pw-word { color: var(--ok); }
.pw-meter ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.pw-meter li { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.pw-meter li > i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.pw-meter li.ok { color: var(--ok); font-weight: 500; }
.pw-meter li svg { flex: none; }
.pw-meter li.extra { grid-column: 1 / -1; }
.pw-meter li small { color: var(--muted); font-weight: 400; }
@media (max-width: 420px) { .pw-meter ul { grid-template-columns: 1fr; } }

/* Vem Agendaí wordmark (the accent of the í is a check) */
.ob-logo { font-family: "Gabarito", var(--f-display); font-weight: 900; letter-spacing: -0.045em; gap: 0; align-items: baseline; }
.ob-logo b { font-weight: inherit; }
.ob-logo .i { position: relative; display: inline-block; }
.ob-logo .i::before { content: ""; position: absolute; left: 50%; top: -.02em; width: .38em; height: .19em; border-left: .11em solid var(--brand); border-bottom: .11em solid var(--brand); transform: translateX(-70%) rotate(-50deg); transition: border-color var(--slow) ease; }

/* Onboarding frame = Vem Agendaí (green). Only the preview of HER page uses the color she picks:
   .pv-phone gets --brand inline from the JS, and recomputes its tints from it here. */
.ob { --brand: var(--va-green); --brand-soft: var(--va-green-soft); --brand-mid: color-mix(in srgb, var(--va-green) 35%, #fff); --brand-ink: var(--va-green); }
.pv-phone { --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff); --brand-mid: color-mix(in srgb, var(--brand) 35%, #fff); --brand-ink: var(--brand); }
.ob-upload .c-logo { --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff); }
