/* ===== Página inicial — direção "o site é o objeto" (o cachecol e a sua papelaria) ===== */
.h {
  --paper: #FFFFFF; --ink: #111418; --red: #D7191F; --red-ink: #B5141A; --tone: #2A2F36; --soft-ink: #4A5058; --field: #F1EFEB;
  --f-display: 'Besley', Georgia, serif; --f-text: 'Libre Franklin', system-ui, sans-serif;
  --step-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-body: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-giant: clamp(5rem, 11vw, 10.5rem);
  --m: clamp(16px, 2.2vw, 32px);
  font-family: var(--f-text); font-size: var(--step-body); line-height: 1.5; color: var(--ink); background: var(--paper);
}
.h *, .h *::before, .h *::after { box-sizing: border-box; }
:where(.h) :where(section) { padding: 0; }
:where(.h) :where(h1, h2, h3, p) { margin: 0; }
.h-display, .h-head, .h-giant, .h-price { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: .95; text-transform: none; }
.h-head { font-size: var(--step-head); }
.h-lead { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.h a { color: inherit; }
.h :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Botão: retângulo sólido, cantos retos, uma só forma no site */
.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--red); color: #fff !important; font: 600 1.0625rem/1 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease; }
.h-btn:hover { background: var(--red-ink); }
.h-btn:active { transform: translateY(1px); }
.h-btn-paper { background: var(--paper); color: var(--ink) !important; }
.h-btn-paper:hover { background: var(--field); }
.h-btn-block { width: 100%; }

/* ---------- 1. Hero ---------- */
.h-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px !important; background: var(--ink); min-height: calc(100svh - 64px); }
.h-card { background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.h-stripe { height: 56px; flex: 0 0 auto; background: var(--ink); display: flex; overflow: hidden; }
.h-stripe span { flex: 0 0 28px; height: 100%; }
.h-stripe span:nth-child(odd) { background: var(--red); }
.h-card-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 36px; padding: 48px clamp(24px, 4vw, 64px) 28px; }
.h-display { font-size: clamp(2.75rem, 1.4rem + 3.6vw, 5rem); max-width: 9.5em; }
.h-sentence { max-width: 36ch; font-size: var(--step-body); margin-top: -4px; }
.h-try { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; width: min(100%, 460px); text-align: left; }
.h-field { display: flex; flex-direction: column; gap: 6px; font-size: var(--step-small); font-weight: 600; }
.h-field input { width: 100%; min-width: 0; height: 56px; border: 0; border-radius: 0; background: var(--field); padding: 0 16px; font: 600 1.125rem var(--f-text); color: var(--ink); text-transform: uppercase; }
.h-field input::placeholder { color: #6B7178; text-transform: none; }
.h-field input:focus { background: #E6E3DE; outline: 3px solid var(--ink); outline-offset: 0; }
.h-try .h-btn { grid-column: 1 / -1; }
.h-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: .9375rem; margin-top: auto; }
.h-links a { color: var(--ink); text-underline-offset: 4px; }
.h-links a:hover { color: var(--red); }

/* O cachecol pendurado, ao alto */
.h-hang { position: sticky; top: 76px; height: calc(100svh - 88px); background: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.h-hang-in { position: relative; width: 100%; flex: 1; container-type: size; }
.h-rot { position: absolute; left: 50%; top: 50%; width: calc(100cqh - 48px); transform: translate(-50%, -50%) rotate(-90deg); transition: opacity 1.6s ease; }
.h-rot.is-off { opacity: 0; }
.h-flip { margin: 0 0 20px; background: var(--ink); color: #fff; border: 0; border-radius: 0; min-height: 48px; padding: 0 20px; font: 600 .9375rem var(--f-text); cursor: pointer; transition: background-color .18s; }
.h-flip:hover { background: #000; }

/* ---------- 2. Clubes ---------- */
.h-show { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; background: var(--field); }
.h-plate { margin: 40px; aspect-ratio: 1; align-self: center; position: relative; overflow: hidden; background: var(--red); }
.h-plate .p-half { position: absolute; top: 0; bottom: 0; width: 50%; }
.h-plate .p-crest { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 40 / 48; transform: translate(-50%, -50%); }
.h-plate .p-crest img, .h-plate .p-crest svg { width: 100%; height: 100%; object-fit: contain; }
.h-show-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 72px var(--m) 72px 32px; }
.h-tabs { display: flex; gap: 28px; flex-wrap: wrap; }
.h-tabs button { background: none; border: 0; padding: 6px 0; font: 600 1.125rem var(--f-text); color: var(--soft-ink); cursor: pointer; border-bottom: 3px solid transparent; }
.h-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.h-desc { margin-top: 48px; max-width: 34ch; }
.h-cells { display: grid; grid-template-columns: 1fr 1fr; }
.h-cell { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 16px; text-decoration: none; font-weight: 600; text-align: center; transition: background-color .18s; }
.h-cell-ink { background: var(--ink); color: #fff !important; }
.h-cell-ink:hover { background: #000; }
.h-cell-tone { background: #E2DFDA; color: var(--ink) !important; }
.h-cell-tone:hover { background: #D6D2CB; }

/* ---------- 3. Como funciona: talão ---------- */
.h-how { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; background: var(--ink); color: #fff; padding: 160px var(--m) !important; }
.h-how-text { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 28px; }
.h-how .h-lead { color: #D9DCE0; }
.h-slip { grid-column: 7 / 12; justify-self: start; width: min(100%, 480px); background: var(--paper); color: var(--ink); padding: 32px 32px 36px; font-size: 1rem; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px)); }
.h-slip h3 { font: 600 1rem var(--f-text); margin-top: 28px; }
.h-slip h3:first-child { margin-top: 0; }
.h-row { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; font-size: 1.0625rem; }
.h-row:first-child { margin-top: 0; }
.h-row i { flex: 1; min-width: 16px; }
.h-row b { font-weight: 600; white-space: nowrap; }
.h-total { background: var(--ink); color: #fff; margin: 28px -32px 0; padding: 0 32px; min-height: 44px; align-items: center; justify-content: space-between; }

/* ---------- 4. O cachecol: folha com recorte ondulado ---------- */
.h-sheet-wrap { background: var(--red); padding: 160px var(--m) !important; display: flex; justify-content: center; }
.h-sheet { width: min(100%, 640px); background: var(--paper); padding: 72px 64px; text-align: center;
  -webkit-mask: radial-gradient(circle at 12px 0, transparent 11px, #000 12px) top / 24px 51% repeat-x, radial-gradient(circle at 12px 100%, transparent 11px, #000 12px) bottom / 24px 51% repeat-x; /* taste-skill-ignore: recorte ondulado da folha (máscara, não cor) */
          mask: radial-gradient(circle at 12px 0, transparent 11px, #000 12px) top / 24px 51% repeat-x, radial-gradient(circle at 12px 100%, transparent 11px, #000 12px) bottom / 24px 51% repeat-x; } /* taste-skill-ignore */
.h-note { font-size: .9375rem; margin-top: 12px; color: var(--soft-ink); }
.h-group { margin-top: 56px; }
.h-group h3 { font: 800 1.375rem var(--f-display); letter-spacing: -.01em; margin-bottom: 18px; }
.h-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; width: min(100%, 420px); margin: 16px auto 0; text-align: left; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.h-item small { display: block; font-size: .875rem; color: var(--soft-ink); margin-top: 2px; }
.h-item b { font-weight: 600; white-space: nowrap; }
.h-hours { margin-top: 56px; font-weight: 600; }

/* ---------- 5. Preço: bilhete ---------- */
.h-ticket-wrap { background: var(--ink); padding: 160px var(--m) !important; display: flex; justify-content: center; }
.h-ticket { position: relative; width: min(100%, 64vw); min-width: 0; aspect-ratio: 2.3 / 1; display: grid; grid-template-columns: 7fr 3fr; background: var(--paper); }
.h-ticket-main { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.h-ticket-main .h-head { font-size: clamp(2rem, 4vw, 4rem); max-width: 10em; }
.h-ticket-main ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 1.0625rem; }
.h-ticket-stub { background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 24px; position: relative; }
.h-ticket-stub::before { content: ""; position: absolute; left: -3px; top: 28px; bottom: 28px; width: 6px;
  background-image: radial-gradient(circle, var(--ink) 3px, transparent 3.5px); background-size: 6px 16px; background-repeat: repeat-y; } /* taste-skill-ignore: picotado de pontos redondos do bilhete */
.h-price { font-size: clamp(3rem, 6vw, 6rem); color: #fff; }
.h-ticket-stub .h-btn { background: var(--ink); }
.h-ticket-stub .h-btn:hover { background: #000; }
.h-notch { position: absolute; left: 70%; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.h-notch-t { top: -14px; } .h-notch-b { bottom: -14px; }

/* ---------- 6. Perguntas: fichas de arquivo ---------- */
.h-faq { padding: 160px var(--m) !important; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.h-faq > .h-head { grid-column: 3 / 11; margin-bottom: 40px; }
.h-cards { grid-column: 3 / 11; padding-top: 40px; }
.h-fc { position: relative; color: #fff; margin-top: -40px; }
.h-fc:nth-child(3n+1) { --c: var(--red); } .h-fc:nth-child(3n+2) { --c: var(--ink); } .h-fc:nth-child(3n) { --c: var(--tone); }
.h-fc:first-child { margin-top: 0; }
.h-fc-q { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.h-tab { display: flex; align-items: center; width: 200px; height: 40px; padding: 0 20px; background: var(--c); font-size: 1rem; font-weight: 600;
  margin-left: min(calc(var(--i, 0) * 150px), calc(var(--i, 0) * (100% - 200px) / 5)); clip-path: polygon(0 100%, 10px 0, calc(100% - 10px) 0, 100% 100%); }
.h-q { display: block; background: var(--c); padding: 22px 28px 46px; font-size: 1.25rem; font-weight: 600; min-height: 96px; }
.h-fc-q:hover .h-q { filter: brightness(1.12); }
.h-fc-a { background: var(--c); padding: 0 28px 52px; margin-top: -24px; }
.h-fc-a p { max-width: 50ch; font-size: 1.0625rem; color: #F2F3F4; }

/* ---------- 7. Fecho ---------- */
.h-cta { position: relative; height: 100svh; min-height: 640px; background: #0B0D10; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.h-giant { position: absolute; inset: 32px var(--m) 24px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; font-size: var(--step-giant); line-height: 1; text-align: center; pointer-events: none; }
.h-cta-mid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 var(--m); }
.h-cta-row { display: flex; align-items: center; gap: 40px; }
.h-cta-row .h-btn { min-width: 220px; }
.h-or { font-size: 1.125rem; color: #B4B9BF; }
.h-cta-mid p { font-size: 1rem; color: #B4B9BF; }

/* ---------- 8. A marca em blocos ---------- */
.h-mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 200px; padding: 0 var(--m); background: var(--paper); }
.h-mark-row { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.h-mark-row:first-child { flex: 3; margin-right: 28px; } .h-mark-row:last-child { flex: 8; }
.h-mark span { flex: 1; display: flex; align-items: center; justify-content: center; font: 800 clamp(2rem, 6vw, 6.5rem)/1 var(--f-display); color: var(--paper); }

/* ---------- Entradas ---------- */
.h .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.h .rv.in { opacity: 1; transform: none; }
.no-js .h .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .h .rv { opacity: 1; transform: none; transition: none; }
  .h-rot { transition: none; }
}

/* ---------- Telemóvel ---------- */
@media (max-width: 860px) {
  .h-hero { grid-template-columns: 1fr; padding: 12px !important; min-height: 0; }
  .h-hang { order: -1; position: relative; top: 0; height: auto; padding: 40px 12px 48px; }
  .h-hang-in { container-type: normal; display: flex; flex-direction: column; gap: 14px; }
  .h-rot { position: static; width: 100%; transform: none; }
  .h-rot.is-off { opacity: 1; }
  .h-flip { display: none; }
  .h-card { margin-top: -24px; position: relative; z-index: 1; margin-left: 12px; margin-right: 12px; }
  .h-stripe { height: 40px; }
  .h-card-in { padding: 32px 20px 24px; gap: 28px; }
  .h-display { font-size: 11vw; }
  .h-show { grid-template-columns: 1fr; min-height: 0; }
  .h-plate { margin: 16px; }
  .h-show-text { padding: 24px 16px 64px; }
  .h-desc { margin-top: 20px; }
  .h-cells { grid-template-columns: 1fr; }
  .h-cell { min-height: 60px; }
  .h-how { grid-template-columns: 1fr; padding: 96px 16px !important; gap: 40px; }
  .h-how-text, .h-slip { grid-column: 1; }
  .h-slip { width: 100%; padding: 28px 20px 56px; }
  .h-total { margin: 24px -20px 0; padding: 0 20px; }
  .h-sheet-wrap { padding: 96px 10px !important; }
  .h-sheet { padding: 56px 28px; }
  .h-item { width: 100%; font-size: 1rem; }
  .h-group h3 { font-size: 1.25rem; }
  .h-ticket-wrap { padding: 96px 20px !important; }
  .h-ticket { width: 100%; aspect-ratio: auto; grid-template-columns: 1fr; }
  .h-ticket-main .h-head { font-size: 9vw; }
  .h-ticket-main ul { grid-template-columns: 1fr; }
  .h-ticket-stub::before { left: 28px; right: 28px; top: -3px; bottom: auto; width: auto; height: 6px; background-size: 16px 6px; background-repeat: repeat-x; }
  .h-price { font-size: 16vw; }
  .h-notch { display: none; }
  .h-faq { grid-template-columns: 1fr; padding: 96px 16px !important; }
  .h-faq > .h-head, .h-cards { grid-column: 1; }
  .h-faq > .h-head { font-size: 9vw; }
  .h-tab { width: 120px; padding: 0 12px; font-size: .9375rem; margin-left: min(calc(var(--i, 0) * 48px), calc(var(--i, 0) * (100% - 120px) / 5)); }
  .h-q { font-size: 1.125rem; padding: 18px 20px 42px; min-height: 88px; }
  .h-fc-a { padding: 0 20px 48px; }
  .h-fc-a p { font-size: 1rem; }
  .h-giant { font-size: 18vw; }
  .h-cta-row { flex-direction: column; gap: 12px; width: 72vw; }
  .h-cta-row .h-btn { width: 100%; min-width: 0; }
  .h-mark { flex-direction: column; align-items: stretch; height: 30svh; padding: 0 16px; }
  .h-mark-row { height: 50%; }
  .h-mark-row:first-child { margin-right: 0; width: 37.5%; flex: none; }
  .h-mark-row:last-child { flex: none; }
  .h-mark span { font-size: 9vw; }
}

/* Para clubes */
.h-pc-hero { min-height: calc(100svh - 72px); align-items: center; }
.h-pc-hero .h-how-text { gap: 32px; }
.h-pc-hero .h-display { max-width: 8em; }
.h-slip-t { font: 800 1.5rem/1.1 var(--f-display); letter-spacing: -.01em; margin-bottom: 20px !important; }
.h-slip-t + .h-row { margin-top: 0; }

/* Capa: frase curta + preço numa linha própria */
.h-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: -8px; }
.h-sentence { max-width: 30ch; font-size: var(--step-lead); line-height: 1.4; margin-top: 0; }
.h-price-line { font-size: var(--step-body); color: var(--soft-ink); }
.h-price-line b { font: 800 1.75rem/1 var(--f-display); color: var(--ink); letter-spacing: -.01em; margin-right: 4px; }
.h-display { max-width: 11em; }
@media (max-width: 860px) { .h-display { font-size: 10.5vw; max-width: none; } }
.h-hero .h-display { font-size: clamp(2.5rem, 1rem + 3.4vw, 4.75rem); max-width: none; white-space: nowrap; }
@media (max-width: 860px) { .h-hero .h-display { font-size: 9vw; } }
