/* ScarletSyren: la landing es una página de manga (estilo noche de ON).
   Tokens: los mismos del motion comic (GN-estilo-manga-on) y de la placa F. */
:root {
  --ink: #000000;       /* página y gutters (estilo noche) */
  --scarlet: #C8102E;   /* borde de viñeta y la palabra SCARLET */
  --blood: #3A0008;     /* sombra dura del botón, filo */
  --bone: #EFE6D8;      /* globos, papel de la viñeta del formulario */
  --paper-ink: #1A1413; /* texto sobre hueso */
  --smoke: #B9AFA4;     /* texto secundario sobre negro (7:1 sobre negro) */

  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --letter: "Comic Neue", "Comic Sans MS", "Chalkboard SE", sans-serif;

  --border: 5px;
  --gutter: 10px;
  --slant: 30px;
}

@font-face { font-family: "Dela Gothic One"; src: url("/fonts/dela-gothic-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("/fonts/comic-neue-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("/fonts/comic-neue-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.5 var(--letter);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }

.page { max-width: 1080px; margin: 0 auto; padding: 14px 12px 40px; }

/* ---------- cabecera ---------- */
.masthead { padding: 4px 2px 12px; }
.wordmark {
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1;
  text-decoration: none;
  letter-spacing: .01em;
}
.w-scarlet { color: var(--scarlet); }
.w-syren { color: var(--bone); }

/* ---------- viñetas ---------- */
.panel { position: relative; background: var(--scarlet); padding: var(--border); }
.panel-in { position: relative; height: 100%; min-width: 0; }
.panel + .panel { margin-top: var(--gutter); }

/* viñeta 1: el corte diagonal de abajo es el gesto de la página */
.panel-open {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding-bottom: var(--border);
}
.panel-open .panel-in {
  background: var(--ink);
  overflow: hidden;
  min-height: 200px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant) + 2px), 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px calc(var(--slant) + 14px);
}
.speed {
  position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg at 62% 58%,
    rgba(239, 230, 216, .16) 0deg 1.4deg, transparent 1.4deg 7deg);
  -webkit-mask: radial-gradient(circle at 62% 58%, transparent 0 15%, #000 42%);
          mask: radial-gradient(circle at 62% 58%, transparent 0 15%, #000 42%);
  pointer-events: none;
}
.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* viñeta 2: sube y se mete bajo el corte de la 1 */
.panel-form {
  margin-top: calc(var(--gutter) - var(--slant)) !important;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--border) + 2px);
}
.panel-form .panel-in {
  background: var(--bone);
  color: var(--paper-ink);
  clip-path: polygon(0 calc(var(--slant) - 2px), 100% 0, 100% 100%, 0 100%);
  padding: calc(var(--slant) + 6px) 16px 22px;
}

.panel-series .panel-in { background: var(--ink); padding: 20px 16px 22px; }

/* ---------- globos y cartuchos ---------- */
.bubble {
  position: relative;
  display: inline-block;
  margin: 0;
  background: #fff;
  color: #000;
  border: 2.5px solid #000;
  border-radius: 50% / 46%;
  padding: .9em 1.4em;
  font-family: var(--letter);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.bubble::after { /* cola corta */
  content: ""; position: absolute; width: 18px; height: 18px;
  background: #fff; border-right: 2.5px solid #000; border-bottom: 2.5px solid #000;
  bottom: -10px; left: 30%; transform: skewX(28deg) rotate(45deg);
}
.bubble-open { position: relative; z-index: 1; align-self: flex-start; max-width: 16ch; font-size: clamp(21px, 6vw, 34px); padding: .7em 1.2em; }
.bubble-form { font-size: clamp(22px, 6.4vw, 38px); margin-bottom: 14px; padding: .6em 1.2em; }
.bubble-done { font-size: 24px; margin-bottom: 14px; }

.caption {
  position: relative; z-index: 1;
  align-self: flex-end;
  max-width: 30ch;
  margin: 18px 0 0;
  background: var(--bone);
  color: var(--paper-ink);
  border: 2px solid #000;
  padding: 8px 12px;
  font-size: 15.5px;
  line-height: 1.35;
}

@media (prefers-reduced-motion: no-preference) {
  .bubble-open { animation: pop .42s cubic-bezier(.2, 1.6, .4, 1) .15s both; }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- formulario ---------- */
.lede { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.signup label { display: block; font-weight: 700; margin-bottom: 6px; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.signup input[type="email"] {
  width: 100%; min-width: 0;
  font: 400 18px/1.2 var(--letter);
  padding: 13px 14px;
  border: 2.5px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
}
.signup input[aria-invalid="true"] { border-color: var(--scarlet); }
.btn-cta {
  font: 700 18px/1.15 var(--letter);
  min-height: 52px;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--bone);
  background: var(--ink);
  border: 2.5px solid #000;
  box-shadow: 5px 5px 0 var(--scarlet);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn-cta:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--scarlet); }
.btn-cta[disabled] { opacity: .6; cursor: progress; }
.field-msg { min-height: 1.4em; margin: 8px 0 0; font-weight: 700; color: #8E0B21; }
.consent { font-size: 14.5px; line-height: 1.4; margin: 6px 0 0; color: #3B322F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done p { margin: 0 0 6px; }

.promises { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 2px dashed rgba(0, 0, 0, .35); }
.promises li { margin: 0 0 8px; padding-left: 22px; position: relative; font-size: 16px; }
.promises li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; background: var(--scarlet); transform: rotate(45deg); }

.inbox { margin: 18px 0 0; }
.inbox figcaption { font-size: 15px; margin-bottom: 6px; }
.inbox-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  background: #fff; border: 1.5px solid #000; padding: 10px 12px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; color: #202124;
}
.inbox-from { font-weight: 700; }
.inbox-subject { font-weight: 600; }
.inbox-preview { color: #5F6368; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- la serie: tres mini viñetas, es una secuencia real ---------- */
.panel-series h2 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 5vw, 28px); margin: 0 0 14px; line-height: 1.15; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.act { border: 2px solid var(--smoke); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.act-name { font-weight: 700; font-size: 18px; }
.act-name small { display: block; font-weight: 400; font-size: 15px; color: var(--smoke); }
.act-state { font-size: 15px; color: var(--smoke); white-space: nowrap; }
.act.is-out { border-color: var(--scarlet); }
.act.is-out .act-state a { color: var(--bone); font-weight: 700; }

/* ---------- pie ---------- */
.foot { margin-top: 26px; color: var(--smoke); font-size: 15px; }
.foot p { margin: 0 0 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { display: inline-block; padding: 8px 0; min-height: 40px; min-width: 40px; text-align: center; }

/* ---------- puerta 18+ ---------- */
.gate { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 16px; }
.gate[hidden] { display: none; }
.gate-card { max-width: 420px; background: var(--bone); color: var(--paper-ink); border: var(--border) solid var(--scarlet); padding: 22px 20px; }
.gate-card h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.btn-quiet { padding: 12px 6px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- desde tablet: el formulario al lado ---------- */
@media (min-width: 720px) {
  .field-row { flex-direction: row; }
  .field-row input[type="email"] { flex: 1; }
  .acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .act { flex-direction: column; }
}

/* ---------- banner con imagen ---------- */
.panel-open .panel-in { min-height: 240px; }
.art { object-position: 50% 40%; }
.panel-open .panel-in::after { /* velo oscuro abajo para que se lea el cartucho */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none;
}
.panel-open .bubble, .panel-open .caption { z-index: 2; }
/* globo del banner en 91 (numpad): arriba a la derecha, cola corta hacia abajo a la izquierda */
.panel-open .bubble-open { align-self: flex-end; }
.panel-open .bubble-open::after { left: 30%; transform: scaleX(-1) skewX(28deg) rotate(45deg); }

/* ---------- tiras de imágenes ---------- */
.strip-title { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 5.4vw, 30px); line-height: 1.15; margin: 26px 0 12px; color: var(--bone); }
.strip-sub { margin: -6px 0 14px; color: var(--smoke); }
.bride-grid, .wardrobe-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { background: var(--scarlet); padding: 4px; }
.shot figure { margin: 0; position: relative; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 935; object-fit: cover; background: #1a1a1a; }
.shot figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--bone); color: var(--paper-ink);
  border-top: 2px solid #000; border-right: 2px solid #000;
  padding: 4px 9px; font-size: 15px; font-weight: 700;
}
.wardrobe, .cast { margin-top: 6px; }

@media (min-width: 720px) {
  .wardrobe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel-open .panel-in { min-height: 380px; }
}

/* ---------- desktop: banner arriba, formulario y la novia lado a lado ---------- */
@media (min-width: 960px) {
  :root { --slant: 44px; }
  .panel-open .panel-in { min-height: 460px; padding: 30px 30px calc(var(--slant) + 22px); }
  .duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; margin-top: var(--gutter); }
  .panel-form { margin-top: 0 !important; clip-path: none; padding: var(--border); }
  .panel-form .panel-in { clip-path: none; padding: 26px 26px 24px; }
  .bride .strip-title { margin-top: 0; }
  .field-row { flex-direction: column; }
  .caption { font-size: 16px; }
}

.duo + .panel-series { margin-top: 22px; }
