/* ════════════════════════════════════════════════════════════════
   TRUE MEMORIES — reservas (estilo minimal claro)
   ════════════════════════════════════════════════════════════════ */
:root {
  --bg: #EBE9E4;
  --surface: #F5F4F1;
  --surface-2: #DFDCD5;
  --line: #CBC7BF;
  --ink: #141413;
  --muted: #77736C;
  --red: #C4261C;
  --amber: #B87A12;
  --ok: #3F7A4E;
  --mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Tinos', 'Times New Roman', Times, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.mono, .tm-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tm-label { font-size: 11px; font-weight: 500; }
.tm-small { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.tm-muted { color: var(--muted); }
.tm-serif { font-family: var(--serif); font-size: 16px; line-height: 1.38; }

/* ── Navegação ─────────────────────────────────────────────── */
.tm-nav { position: relative; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 32px 0; }
.tm-logo img { width: 112px; height: auto; }
.tm-nav-mid, .tm-nav-right { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-nav-mid { position: absolute; left: 50%; transform: translateX(-50%); top: 24px; }
.tm-pill { display: inline-flex; align-items: center; background: var(--surface); border-radius: 4px; padding: 9px 14px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; }
.tm-pill.on { background: var(--ink); color: var(--surface); }
.tm-crumb { padding: 6px 32px 0; }

/* ── Botões ────────────────────────────────────────────────── */
.tm-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 3px; padding: 14px 16px; background: var(--ink); color: var(--surface); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; width: 100%; }
.tm-btn:hover { opacity: .88; }
.tm-btn.soft { background: var(--surface-2); color: var(--ink); width: auto; }
.tm-btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tm-btn.ghost { background: transparent; color: var(--ink); }
.tm-btn[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* ── Cartões ───────────────────────────────────────────────── */
.tm-card { background: var(--surface); border-radius: 6px; padding: 22px; }
.tm-card + .tm-card { margin-top: 12px; }
.tm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tm-tag { background: var(--surface-2); border-radius: 2px; padding: 3px 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.tm-title { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; line-height: 1.35; margin: 0; }
.tm-h1 { font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.tm-h1.big { font-size: 40px; letter-spacing: -.04em; }

details.tm-acc { border-top: 1px solid transparent; }
details.tm-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 8px 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
details.tm-acc summary::-webkit-details-marker { display: none; }
details.tm-acc summary::after { content: '[+]'; }
details.tm-acc[open] summary::after { content: '[–]'; }
details.tm-acc .tm-acc-body { padding: 4px 0 12px; font-size: 14px; }
.tm-acc-line details.tm-acc { border-bottom: 1px solid var(--line); }
.tm-acc-line details.tm-acc summary { padding: 13px 0; }

table.tm-guide { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
table.tm-guide th, table.tm-guide td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); font-weight: 400; }
table.tm-guide th:first-child, table.tm-guide td:first-child { text-align: left; color: var(--muted); }

/* ── Escolha de tamanho ────────────────────────────────────── */
.tm-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tm-size input { position: absolute; opacity: 0; pointer-events: none; }
.tm-size span { display: block; text-align: center; padding: 10px 0; border-radius: 3px; background: var(--surface-2); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; cursor: pointer; }
.tm-size input:checked + span { background: var(--ink); color: var(--surface); }
.tm-size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tm-size.out span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.tm-size small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; text-decoration: none; }
.tm-size input:checked + span small { color: var(--surface-2); }

.tm-track { height: 3px; background: var(--surface-2); position: relative; }
.tm-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }

/* ── Página da t-shirt (desktop: cartões à volta da peça) ─── */
.tm-stage { position: relative; min-height: 860px; padding: 40px 32px 120px; }
.tm-product { position: relative; z-index: 1; width: min(700px, 50vw); margin: 60px auto 0; }
.tm-product img { width: 100%; height: auto; }
.tm-card-info, .tm-card-buy { position: absolute; z-index: 3; width: 330px; }
.tm-card-info { left: 32px; top: 110px; }
.tm-card-buy { right: 32px; top: 220px; }
.tm-connector { position: absolute; z-index: 2; height: 40px; width: 140px; border-top: 1px solid var(--line); }
.tm-connector.l { left: 362px; top: 160px; }
.tm-connector.r { right: 362px; top: 270px; }
.tm-fig { position: absolute; z-index: 0; pointer-events: none; height: auto; }
.tm-thumbs { position: absolute; left: 32px; bottom: 60px; display: flex; gap: 10px; }
.tm-thumb { width: 64px; height: 64px; padding: 4px; border: 0; background: none; cursor: pointer; position: relative; }
.tm-thumb img { width: 56px; height: 56px; object-fit: cover; }
.tm-thumb.on::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(var(--ink),var(--ink)) top left/10px 1px, linear-gradient(var(--ink),var(--ink)) top left/1px 10px,
  linear-gradient(var(--ink),var(--ink)) top right/10px 1px, linear-gradient(var(--ink),var(--ink)) top right/1px 10px,
  linear-gradient(var(--ink),var(--ink)) bottom left/10px 1px, linear-gradient(var(--ink),var(--ink)) bottom left/1px 10px,
  linear-gradient(var(--ink),var(--ink)) bottom right/10px 1px, linear-gradient(var(--ink),var(--ink)) bottom right/1px 10px;
  background-repeat: no-repeat; }

/* ── Lookbook ─────────────────────────────────────────────── */
.tm-look { padding: 40px 32px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.tm-look-scene { background: var(--surface-2); position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.tm-look-scene img { position: absolute; height: auto; }
.tm-look-text { max-width: 520px; }

/* ── Rodapé ───────────────────────────────────────────────── */
.tm-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 32px 32px; border-top: 1px solid var(--line); }
.tm-foot img { width: 90px; margin-bottom: 10px; }

/* ── Páginas do fluxo (coluna estreita) ───────────────────── */
.tm-flow { max-width: 460px; margin: 0 auto; padding: 22px 16px 60px; }
.tm-flow > * + * { margin-top: 22px; }
.tm-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm-stepper div { border-top: 2px solid var(--line); padding-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: var(--muted); }
.tm-stepper .done { border-color: var(--ink); color: var(--ink); }
.tm-stepper .now { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.tm-back { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-decoration: none; text-transform: uppercase; }

.tm-field { display: block; }
.tm-field > span { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.tm-input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 14px; font-size: 15px; outline: none; }
.tm-input:focus { border-color: var(--ink); }
.tm-help { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.tm-fields > * + * { margin-top: 16px; }
.tm-grid2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }

.tm-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.tm-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

.tm-radio-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 16px; cursor: pointer; }
.tm-radio-card + .tm-radio-card { margin-top: 10px; }
.tm-radio-card input { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.tm-radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.tm-radio-card b { display: block; font-size: 17px; letter-spacing: -.01em; }
.tm-radio-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.tm-radio-card em { display: block; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }

.tm-ctt { display: none; margin-top: 12px; }
.tm-radio-card.ctt:has(input:checked) ~ .tm-ctt, .tm-ctt.show { display: block; }

.tm-summary .tm-row { padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.tm-summary .tm-row span:first-child { color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.tm-summary .tm-total { border: 0; padding-top: 14px; }
.tm-summary .tm-total span:last-child { font-size: 26px; font-weight: 600; }

.tm-code { text-align: center; border: 1.5px solid var(--ink); border-radius: 2px; padding: 20px 16px; background: var(--surface); }
.tm-code b { display: block; font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: .12em; margin: 6px 0 10px; }
.tm-steps { border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.tm-steps > div { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.tm-steps > div:last-child { border-bottom: 0; }
.tm-steps .n { font-family: var(--mono); color: var(--muted); }
.tm-steps .v { flex: 1; }
.tm-steps .v span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.tm-steps .v b { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.tm-copy { border: 1px solid var(--line); background: transparent; border-radius: 2px; padding: 6px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; cursor: pointer; }

.tm-note { border: 1px solid var(--line); border-radius: 2px; padding: 14px; font-size: 13px; }
.tm-note b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; margin-bottom: 4px; }
.tm-note.warn { border-color: var(--red); }
.tm-note.warn b { color: var(--red); }
.tm-flash { background: var(--ink); color: var(--surface); padding: 12px 14px; border-radius: 2px; font-size: 14px; }

.tm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 2px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; border: 1px solid currentColor; }
.tm-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tm-badge.pendente { color: var(--amber); }
.tm-badge.a_validar { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.tm-badge.paga { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.tm-badge.expirada, .tm-badge.cancelada { color: var(--muted); }
.tm-badge.rejeitada { color: var(--red); }

.tm-timeline > div { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.tm-timeline > div::before { content: ''; flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); z-index: 1; }
.tm-timeline > div:not(:last-child)::after { content: ''; position: absolute; left: 5.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tm-timeline .done::before { background: var(--ink); border-color: var(--ink); }
.tm-timeline .now::before { background: var(--amber); border-color: var(--amber); }
.tm-timeline b { display: block; font-weight: 400; }
.tm-timeline .todo b { color: var(--muted); }
.tm-timeline span { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.tm-timeline .now span { color: var(--amber); }

.tm-ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 24px; text-align: center; }
.tm-ticket #tmQR { display: flex; justify-content: center; margin: 16px 0; }
.tm-ticket #tmQR img, .tm-ticket #tmQR canvas { width: 200px !important; height: 200px !important; }
.tm-ticket .meta { display: flex; justify-content: space-between; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
.tm-ticket .meta span { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .05em; }
.tm-ticket .meta b { font-family: var(--mono); font-weight: 500; font-size: 13px; }

.tm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Termos e privacidade ─────────────────────────────────── */
.tm-legal { max-width: 1120px; margin: 0 auto; padding: 40px 32px 80px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
.tm-legal-side { position: sticky; top: 24px; align-self: start; }
.tm-legal-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.tm-legal-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tm-legal-index a { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.tm-legal-index a:hover { color: var(--ink); }
.tm-legal-index span { color: var(--ink); }
.tm-legal-fig { width: 170px; height: auto; margin-top: 36px; opacity: .9; }
.tm-legal-body { max-width: 680px; }
.tm-legal-body .tm-h1 { margin: 10px 0 14px; }
.tm-legal-lead { font-size: 20px !important; margin: 0 0 10px; }
.tm-legal-body section { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 16px; scroll-margin-top: 20px; }
.tm-legal-body h2 { display: flex; gap: 14px; margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.tm-legal-body h2 span { color: var(--muted); font-weight: 400; }
.tm-legal-body section p, .tm-legal-body li { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.tm-legal-body section p { margin: 0 0 10px; }
.tm-legal-body ul { margin: 0; padding: 0; list-style: none; }
.tm-legal-body li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.tm-legal-body li::before { content: '—'; position: absolute; left: 0; color: var(--muted); }
.tm-legal-body b { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.tm-legal-body a { text-underline-offset: 3px; }
.tm-legal-end { margin-top: 44px; }

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tm-nav { padding: 14px 16px 0; align-items: center; }
  .tm-logo img { width: 72px; }
  .tm-nav-mid { display: none; }
  .tm-crumb { padding: 6px 16px 0; }
  .tm-stage { min-height: 0; padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
  .tm-product { width: 100%; margin: 0; order: 1; }
  .tm-card-buy { position: static; width: auto; order: 2; }
  .tm-card-info { position: static; width: auto; order: 3; }
  .tm-connector, .tm-fig { display: none; }
  .tm-thumbs { position: static; order: 1; }
  .tm-look { grid-template-columns: 1fr; padding: 24px 16px 40px; }
  .tm-foot { padding: 22px 16px 32px; }
  .tm-legal { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 48px; }
  .tm-legal-side { position: static; }
  .tm-legal-index, .tm-legal-fig { display: none; }
  .tm-legal-tabs { margin-bottom: 0; }
  .tm-legal-body section p, .tm-legal-body li { font-size: 16px; }
}
