@font-face {
  font-family: Inter;
  src: url(/fonts/brand-1.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url(/fonts/brand-3.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --navy: #002d5c;
  --paper: #fdfbf7;
  --line: #d5d4cd;
  --muted: #4f606c;
  color: #092f50;
  background: var(--paper);
  font: 100%/1.45 Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure, fieldset, legend, h1, h2, p { margin: 0; }
body { min-width: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, summary, .tile, .consent { cursor: pointer; }
button, .whatsapp { min-height: 44px; }
button {
  padding: .65rem .5rem;
  border: 1px solid var(--navy);
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  font-weight: 650;
}
.primary { background: var(--navy); color: white; }
button:disabled { cursor: default; }
.primary:disabled { color: #425665; background: #dce3ea; border-color: #c6d0d9; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible,
.tile:has(:focus-visible) { outline: 3px solid #ab581a; outline-offset: 3px; }
.wrap { width: min(calc(100% - 36px), 960px); margin-inline: auto; }
header { background: var(--navy); color: white; }
.mast { display: flex; justify-content: space-between; align-items: center; min-height: 46px; }
.mast span { font-size: .82rem; }
.wordmark { font: 600 1.15rem Georgia, serif; letter-spacing: .12em; text-decoration: none; }
h1, h2, legend { font: 600 1rem/1.13 "Playfair Display", Georgia, serif; letter-spacing: -.035em; }
h1 { margin: 15px 0; font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2, legend { font-size: 1.46rem; margin-bottom: 7px; }
fieldset, legend { padding: 0; border: 0; min-width: 0; }
hr { margin: 15px 0; border: 0; border-top: 1px solid var(--line); }
.sr-only, .tile input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.tile { position: relative; display: block; text-align: center; border-radius: 6px; font-size: .85rem; font-weight: 650; }
.picture { display: block; border-radius: 6px; overflow: hidden; }
.picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.suit .picture { aspect-ratio: 1.1; }
.suit .tux { transform: scale(1.75); transform-origin: 53% 27%; }
.suit .caption { display: block; padding-top: 5px; }
.suit:has(:checked) .picture { outline: 2px solid var(--navy); outline-offset: 1px; }
.suit:has(:checked)::after {
  content: "✓"; position: absolute; top: 4px; right: 4px; border: 1px solid white; border-radius: 50%;
  color: white; background: var(--navy); width: 21px; height: 21px; line-height: 20px;
}
.scene { overflow: hidden; border: 1px solid #9da9af; }
.scene .picture { aspect-ratio: 1.78; border-radius: 0; }
.scene .caption { display: block; padding: 6px 1px; }
.scene:has(:checked) { background: var(--navy); color: white; border-color: var(--navy); }
.scene:has(:checked) .caption::after { content: " ✓"; }
#studio { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 15px; }
.choices, .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 7px; }
.help, figcaption, details p, #photo-state, #progress { color: var(--muted); font-size: .86rem; }
#photo-state:not(:empty), #progress:not(:empty) { margin-top: 10px; }
.photo-ready { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
#thumbnail { width: 70px; height: 88px; object-fit: contain; background: #eeeae3; border-radius: 4px; }
#remove { font-size: .875rem; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; min-height: 44px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0; accent-color: var(--navy); }
details { margin-left: 29px; }
summary { width: fit-content; min-height: 44px; align-content: center; font-size: .88rem; font-weight: 650; }
details p { margin-bottom: 12px; }
#generate { width: 100%; }
#comparison, .fit { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 22px; }
.pair { max-width: 600px; }
.pair img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #eeeae3; }
.booking { display: grid; gap: 6px; margin-top: 14px; }
.booking input { min-height: 44px; min-width: 0; border: 1px solid #8a959c; border-radius: 5px; padding: 6px; color: inherit; background: white; }
.whatsapp { display: inline-flex; align-items: center; justify-content: center; border-radius: 24px; background: #25d366; color: #073822; font-weight: 650; text-decoration: none; padding: 9px 17px; }
.booking .whatsapp { margin-top: 4px; }
footer { padding: 28px 0; color: var(--muted); font-size: .82rem; }
.contact-dock { text-align: right; padding: 5px max(14px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)); background: var(--paper); }
.floating { font-size: .875rem; }
@media (max-width: 719px) {
  body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  .page { flex: 1; min-height: 0; overflow-y: auto; }
  .contact-dock { min-height: calc(49px + max(6px,env(safe-area-inset-bottom))); }
}
@media (min-width: 720px) {
  .mast { min-height: 55px; }
  h1 { margin: 32px 0 24px; }
  .workspace { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(20px,4vw,52px); align-items: start; }
  .suit .picture { aspect-ratio: .76; }
  #studio { margin: 0; padding: 0 0 0 24px; border: 0; border-left: 1px solid var(--line); }
  .fit { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
  .booking { margin: 0; }
  .contact-dock { position: fixed; bottom: 10px; right: 4px; background: transparent; }
  footer { padding-bottom: 82px; }
}
