/* Base */
:root { box-sizing: border-box; color-scheme: light; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Layout: hero preto da marca (a logo funde no fundo) com tiras de bebês → pacotes metal (bronze, prata, ouro) → temas em grade → entrega expressa → dados da mãe → resumo → barra fixa com total e folha de pagamento Pix. */
:root {
  --bg: #f6f2ee;
  --surface: #ffffff;
  --fg: #1d1916;
  --muted: #6f655c;
  --line: #e6ddd4;
  --accent: #c9a84c;
  --accent-fg: #1d1605;
  --accent-text: #8a6a1c;
  --accent-soft: #f8f0da;
  --hero: #000000;
  --hero-fg: #f7f1e8;
  --hero-muted: #bfb3a3;
  --bronze: #b87333;
  --prata: #9aa1ab;
  --ouro: #c9a84c;
  --ok: #1a7f4b;
  --err: #b3261e;
  --warn-bg: #fff1cf;
  --warn-fg: #6b4b00;
  --overlay: rgba(29, 25, 22, 0.55);
  --bar-bg: rgba(255, 255, 255, 0.92);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110f;
    --surface: #1e1a17;
    --fg: #f5efe8;
    --muted: #b3a89c;
    --line: #342d28;
    --accent: #d8b45a;
    --accent-fg: #1a1405;
    --accent-text: #e2c06e;
    --accent-soft: #2c2415;
    --err: #ff8a80;
    --warn-bg: #3a2f10;
    --warn-fg: #f4d78a;
    --overlay: rgba(0, 0, 0, 0.65);
    --bar-bg: rgba(30, 26, 23, 0.92);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110f;
  --surface: #1e1a17;
  --fg: #f5efe8;
  --muted: #b3a89c;
  --line: #342d28;
  --accent: #d8b45a;
  --accent-fg: #1a1405;
  --accent-text: #e2c06e;
  --accent-soft: #2c2415;
  --err: #ff8a80;
  --warn-bg: #3a2f10;
  --warn-fg: #f4d78a;
  --overlay: rgba(0, 0, 0, 0.65);
  --bar-bg: rgba(30, 26, 23, 0.92);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-inline: 16px;
  padding-block: 16px 128px;
}
.wrap { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 34px; }
h1, h2, h3, .price, .total, .count { font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.label-caps { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: var(--hero-fg); border-radius: 22px; padding: 28px 22px 24px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.logo { display: block; width: min(300px, 78%); height: auto; margin-inline: auto; }
.tag { margin: 0; text-align: center; color: var(--hero-muted); max-width: 40ch; margin-inline: auto; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.frame { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.frame .pic { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; }
.frame svg { display: block; width: 100%; height: 100%; }
.frame figcaption { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-muted); text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; border: 1px solid rgba(201, 168, 76, 0.5); border-radius: 999px; padding: 4px 12px; color: var(--hero-fg); }

.notice { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* ---------- Passos ---------- */
section.step { display: flex; flex-direction: column; gap: 14px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 13px; display: grid; place-items: center; flex: none; }
h2 { font-size: 1.7rem; margin: 0; letter-spacing: -0.01em; font-weight: 700; line-height: 1.1; }
.sub { margin: -6px 0 0; color: var(--muted); font-size: 14px; }

.options { display: flex; flex-direction: column; gap: 12px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt label {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 16px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; position: relative;
}
.opt input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.opt input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.count { grid-row: 1 / span 2; font-size: 3rem; font-weight: 700; line-height: 0.9; color: var(--accent-text); min-width: 2ch; text-align: center; }
.count small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 4px; }
.opt .name { font-weight: 600; min-width: 0; display: flex; align-items: center; gap: 8px; }
.opt .metal { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.opt .desc { grid-column: 2; color: var(--muted); font-size: 14px; min-width: 0; }
.opt .price { font-size: 1.9rem; font-weight: 700; grid-row: 1 / span 2; grid-column: 3; line-height: 1; }
.opt .badge {
  position: absolute; top: -10px; right: 16px; background: var(--accent); color: var(--accent-fg);
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}

/* Temas */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 440px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.theme { position: relative; min-width: 0; }
.theme input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.theme label { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; height: 100%; }
.theme .pic { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--line); }
.theme .pic img, .frame .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme .pic.plus { display: grid; place-items: center; color: var(--accent-text); font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.theme .tname { font-size: 15px; font-weight: 600; padding-inline: 2px; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.theme .tdesc { font-size: 12px; line-height: 1.35; color: var(--muted); padding-inline: 2px; text-align: center; min-width: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.theme input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.theme input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.theme input:disabled + label { opacity: 0.45; cursor: not-allowed; }
.theme input:disabled { cursor: not-allowed; }
.theme .tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 13px; font-weight: 700; display: none; place-items: center; z-index: 0; }
.theme input:checked ~ .tick { display: grid; }

/* Entrega expressa */
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle label { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; }
.toggle input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.toggle input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.toggle .name { font-weight: 600; }
.toggle .desc { grid-column: 1; color: var(--muted); font-size: 14px; }
.toggle .fee { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent-text); line-height: 1; }
.switch { grid-column: 2; grid-row: 2; justify-self: end; width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.toggle input:checked + label .switch { background: var(--accent); }
.toggle input:checked + label .switch::after { transform: translateX(20px); }

/* Campos */
.fields { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field .opt-tag { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="tel"] {
  font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 14px 16px; width: 100%; min-width: 0;
}
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field .help { font-size: 13px; color: var(--muted); margin: 0; }
.field .help.err { color: var(--err); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.row span:first-child { color: var(--muted); min-width: 0; }
.row span:last-child { text-align: right; }
.row.sum { border-top: 1px dashed var(--line); padding-top: 12px; align-items: baseline; }
.row.sum span:first-child { color: var(--fg); font-weight: 600; }
.row.sum span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }

.next { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }
.next li::before { content: counter(n); font-size: 12px; font-weight: 600; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; color: var(--accent-text); }
.next b { color: var(--fg); font-weight: 600; }

/* ---------- Barra fixa ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bar-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.bar-in { max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.bar-total { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bar-total small { font-size: 12px; color: var(--muted); }
.total { font-size: 2.1rem; font-weight: 700; line-height: 1; }
.btn {
  font: inherit; font-weight: 600; border: 0; border-radius: 14px; padding: 15px 22px; cursor: pointer;
  background: var(--accent); color: var(--accent-fg); text-align: center; text-decoration: none; display: block;
}
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.5; }

/* ---------- Folha de pagamento ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 20; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px;
}
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet h3 { margin: 0; font-size: 1.9rem; font-weight: 700; line-height: 1.05; }
.sheet .amount { font-weight: 500; color: var(--accent-text); font-size: 15px; }
.x { font: inherit; background: var(--bg); color: var(--fg); border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; flex: none; font-size: 18px; line-height: 1; }
.x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.qr { align-self: center; background: #fff; padding: 12px; border-radius: 14px; line-height: 0; border: 1px solid var(--line); }
.qr svg { display: block; width: 200px; height: 200px; max-width: 100%; }
.code { font-family: var(--font-mono); font-size: 12px; word-break: break-all; background: var(--bg); border-radius: 10px; padding: 10px 12px; user-select: all; max-height: 5.5em; overflow: auto; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.after { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.order-id { font-family: var(--font-mono); color: var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  .opt label, .toggle label, .theme label, .switch, .switch::after, .btn { transition: all 0.18s ease; }
  .sheet { animation: up 0.25s ease-out; }
  @keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.hours-note { margin: 14px 2px 0; font-size: 13px; color: var(--muted, #6b6258); text-align: center; }

.how { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.how h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.trust { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }

.px-note { margin: 16px 2px 0; font-size: 12px; text-align: center; color: var(--muted); }
