:root {
  --paper: #fbf6ec;
  --paper-deep: #f2eadb;
  --ink: #090807;
  --muted: #5f5a54;
  --line: rgba(9, 8, 7, 0.18);
  --line-strong: rgba(9, 8, 7, 0.42);
  --pink: #ff2f7d;
  --pink-dark: #d91660;
  --blue: #24a8ff;
  --tomato: #ef3d2f;
  --lime: #c9ff28;
  --white: #fffdf7;
  --shadow: 0 22px 70px rgba(16, 10, 8, 0.16);
  --tight: "Bricolage Grotesque", "Zen Kaku Gothic New", system-ui, sans-serif;
  --display: "Ultra", "Zen Kaku Gothic New", Georgia, serif;
  --mono: "Space Mono", Consolas, monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--tight);
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(9, 8, 7, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 8, 7, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(36, 168, 255, 0.16) 0 7%, transparent 7% 76%, rgba(239, 61, 47, 0.12) 76% 82%, transparent 82%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(255, 47, 125, 0.055) 38px 44px);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

video {
  background: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  translate: 0 -140%;
  padding: 10px 12px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  translate: 0 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 12px 32px;
  background: rgba(251, 246, 236, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 48px auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  font-size: 1.35rem;
}

.brand img {
  width: 48px;
  aspect-ratio: 1;
  object-fit: contain;
}

.site-header nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-header nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  border-color: var(--pink);
}

.header-cta,
.button,
.final-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms;
}

.header-cta {
  color: var(--white);
  background: var(--pink);
  box-shadow: 5px 5px 0 var(--ink);
}

.header-cta:hover,
.button:hover,
.final-link:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(520px, 1.14fr);
  gap: 48px;
  align-items: start;
  min-height: auto;
  padding: 42px 66px 38px;
  border-bottom: 1px solid var(--line);
}

.hero.section-reveal {
  opacity: 1;
  transform: none;
}

.paper-edge {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.paper-edge-left {
  left: 0;
  top: 120px;
  width: 18px;
  height: 75%;
  background: repeating-linear-gradient(
    180deg,
    var(--white) 0 34px,
    rgba(36, 168, 255, 0.2) 34px 36px,
    var(--white) 36px 70px
  );
  border-right: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  min-width: 0;
  padding-top: 50px;
}

.zine-kicker {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.hero-logo-sticker {
  position: absolute;
  right: 8px;
  top: 0;
  width: 180px;
  filter: drop-shadow(10px 14px 0 rgba(9, 8, 7, 0.18));
  transform: rotate(-7deg);
  animation: paper-place 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 620px;
  font-family: var(--display);
  font-size: 6.2rem;
  line-height: 0.96;
  font-weight: 900;
}

.hero h1 span {
  color: var(--pink);
}

.hero h1::after {
  content: "";
  display: block;
  width: 180px;
  height: 8px;
  margin: 22px 0 0 8px;
  background: var(--pink);
  border-radius: 999px;
  transform: rotate(-4deg);
}

.hero-note {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--pink-dark);
  font-family: var(--tight);
  font-size: 1.3rem;
  line-height: 1.55;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-paper {
  background: var(--white);
}

.cover-cuts {
  position: absolute;
  left: -12px;
  top: 648px;
  display: grid;
  grid-template-columns: 150px 150px;
  gap: 18px;
  min-height: 190px;
}

.cover-cut {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(9, 8, 7, 0.12);
}

.cover-cut video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-cut span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.cover-cut-one {
  transform: rotate(-6deg);
}

.cover-cut-two {
  transform: rotate(5deg) translateY(22px);
}

.create-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 247, 0.92)),
    var(--white);
  border: 2px solid rgba(9, 8, 7, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: none;
}

.create-panel::before,
.create-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.create-panel::before {
  right: -38px;
  top: 68px;
  width: 130px;
  height: 56px;
  background: rgba(36, 168, 255, 0.16);
  border: 1px solid rgba(36, 168, 255, 0.3);
  transform: rotate(-17deg);
}

.create-panel::after {
  right: 22px;
  top: 18px;
  width: 110px;
  height: 28px;
  background: rgba(239, 61, 47, 0.22);
  transform: rotate(4deg);
}

.panel-topline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-topline span {
  color: var(--pink);
  font-size: 1.25rem;
}

.upload-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px;
  gap: 14px;
  align-items: stretch;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border: 2px dashed rgba(9, 8, 7, 0.28);
  border-radius: 8px;
  transition: border-color 180ms, background 180ms, transform 180ms;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone:hover,
.upload-zone.is-active {
  border-color: var(--pink);
  background: rgba(255, 47, 125, 0.08);
  transform: translateY(-2px);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 rgba(9, 8, 7, 0.16);
}

.upload-icon svg,
.mode-toggle svg,
.floating-upload svg,
.lock-cutout svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-main {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.upload-sub {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.selfie-preview {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 2px solid rgba(9, 8, 7, 0.2);
  border-radius: 6px;
  background: #eadac8;
  box-shadow: 6px 6px 0 rgba(9, 8, 7, 0.1);
  transform: rotate(3deg);
}

.selfie-preview img,
.selfie-preview video,
.selfie-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 132px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-placeholder img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  opacity: 0.82;
}

.panel-step {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  min-height: 42px;
  border: 2px solid rgba(9, 8, 7, 0.2);
  border-radius: 8px;
  background: var(--white);
}

.mode-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 900;
}

.mode-toggle button.is-active {
  color: var(--white);
  background: var(--ink);
}

.style-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.style-chip {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 0;
  padding: 0;
  border: 2px solid rgba(9, 8, 7, 0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 0 0 rgba(9, 8, 7, 0);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms, box-shadow 180ms;
}

.style-chip:hover,
.style-chip.is-selected {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: 5px 5px 0 rgba(255, 47, 125, 0.28);
}

.style-chip video {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.style-chip span {
  display: block;
  min-height: 30px;
  padding: 7px 9px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-chip.is-selected span {
  color: var(--white);
  background: var(--pink);
}

.prompt-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  align-items: stretch;
}

.reference-tile,
.prompt-box {
  min-width: 0;
}

.add-reference {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  min-height: 72px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(9, 8, 7, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.add-reference span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--pink);
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

.prompt-box {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.prompt-box span {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.prompt-box textarea {
  min-height: 72px;
  resize: vertical;
  padding: 12px;
  border: 2px solid rgba(9, 8, 7, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  line-height: 1.45;
}

.prompt-box small {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
}

.generate-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--pink-dark);
  border-radius: 8px;
  font-size: 1.28rem;
  font-weight: 900;
  box-shadow: 7px 7px 0 rgba(9, 8, 7, 0.18);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms;
}

.generate-button:hover {
  transform: translateY(-3px);
  box-shadow: 9px 9px 0 rgba(9, 8, 7, 0.24);
}

.generate-button:disabled {
  cursor: wait;
}

.generate-button.is-generating {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
}

.privacy-line {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.privacy-line::before {
  content: "";
  width: 13px;
  height: 13px;
  margin: 4px 8px 0 0;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.style-index,
.how-it-works,
.reference-spread,
.privacy-band,
.final-cta {
  position: relative;
  padding: 72px 66px;
  border-bottom: 1px solid var(--line);
}

.style-index {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 38px;
  padding-top: 12px;
  background: rgba(255, 253, 247, 0.5);
}

.section-marker span,
.step-number,
.style-no {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
}

.section-marker h2 {
  margin: 10px 0 18px;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1.02;
  font-weight: 900;
}

.section-marker p {
  margin: 0;
  color: var(--pink-dark);
  font-size: 1.18rem;
  font-weight: 900;
}

.style-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 16px;
  min-width: 0;
}

.style-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--white);
  border: 2px solid rgba(9, 8, 7, 0.22);
  box-shadow: 6px 6px 0 rgba(9, 8, 7, 0.1);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms;
}

.style-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 9px 9px 0 rgba(255, 47, 125, 0.22);
}

.style-card video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.style-card h3 {
  min-height: 42px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-no {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 6px;
  color: var(--pink);
  background: var(--white);
}

.how-it-works {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 38px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.step {
  min-width: 0;
}

.step h3 {
  margin: 14px 0 6px;
  font-size: 1.35rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.mini-upload,
.mini-choice,
.mini-output {
  position: relative;
  min-height: 230px;
  padding: 14px;
  background: var(--white);
  border: 2px solid rgba(9, 8, 7, 0.18);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(9, 8, 7, 0.08);
}

.mini-upload video,
.mini-output video {
  width: 100%;
  height: 202px;
  object-fit: cover;
  border-radius: 6px;
}

.floating-upload {
  position: absolute;
  right: -18px;
  bottom: 32px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.mini-choice {
  display: grid;
  align-content: center;
  gap: 14px;
}

.mini-choice button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 900;
}

.mini-choice button.is-active {
  color: var(--white);
  background: var(--ink);
}

.mini-prompt {
  padding: 16px;
  background: var(--paper);
  border: 2px solid rgba(9, 8, 7, 0.14);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 700;
}

.mini-output {
  overflow: hidden;
}

.mini-output span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  font-weight: 900;
  transform: rotate(-8deg);
}

.reference-spread {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  background:
    linear-gradient(90deg, rgba(36, 168, 255, 0.08), transparent 34%),
    rgba(255, 253, 247, 0.62);
}

.reference-board {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
}

.ref-stack {
  position: relative;
  min-height: 270px;
}

.ref-stack video {
  position: absolute;
  width: 150px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #111;
  box-shadow: 7px 7px 0 rgba(9, 8, 7, 0.12);
}

.ref-stack video:first-child {
  left: 0;
  top: 12px;
  transform: rotate(-7deg);
}

.ref-stack video:nth-child(2) {
  right: 18px;
  bottom: 8px;
  transform: rotate(8deg);
}

.ref-plus {
  position: absolute;
  left: 48%;
  top: 42%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 900;
}

.prompt-note {
  padding: 26px;
  background: var(--white);
  border: 2px solid rgba(9, 8, 7, 0.2);
  border-radius: 8px;
  box-shadow: 7px 7px 0 rgba(9, 8, 7, 0.08);
}

.prompt-note strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  text-transform: uppercase;
}

.prompt-note p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 800;
}

.zine-cover {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 3px solid var(--ink);
  background: var(--pink);
  box-shadow: 10px 10px 0 rgba(9, 8, 7, 0.12);
  transform: rotate(3deg);
}

.zine-cover video {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.zine-cover div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.zine-cover span {
  display: block;
  color: var(--pink);
  font-size: 2rem;
  font-weight: 900;
}

.zine-cover strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.privacy-band {
  display: grid;
  grid-template-columns: 140px minmax(0, 0.7fr) minmax(220px, 1fr);
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 47, 125, 0.12), transparent 45%),
    var(--paper);
}

.lock-cutout {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 7px 7px 0 rgba(9, 8, 7, 0.1);
  transform: rotate(-5deg);
}

.lock-cutout svg {
  width: 58px;
  height: 58px;
}

.privacy-band h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1.06;
}

.privacy-band p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 800;
}

.privacy-band a {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  color: var(--pink-dark);
  border-bottom: 3px solid var(--pink);
  font-weight: 900;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 47, 125, 0.96), rgba(255, 47, 125, 1)),
    var(--pink);
}

.final-cta::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: -28px;
  height: 62px;
  background: var(--paper);
  transform: rotate(-1.5deg);
}

.final-copy {
  position: relative;
  z-index: 1;
}

.stamp {
  display: inline-grid;
  place-items: center;
  min-width: 118px;
  min-height: 64px;
  padding: 10px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  font-weight: 900;
  transform: rotate(-7deg);
}

.final-cta h2 {
  margin: 22px 0 18px;
  max-width: 760px;
  color: var(--white);
  font-family: var(--display);
  font-size: 4.9rem;
  line-height: 0.98;
  text-shadow: 6px 6px 0 rgba(9, 8, 7, 0.18);
}

.final-link {
  width: fit-content;
  min-height: 58px;
  color: var(--ink);
  background: var(--white);
  font-size: 1.35rem;
}

.final-clips {
  position: relative;
  min-height: 320px;
}

.final-clips video {
  position: absolute;
  right: 92px;
  bottom: 0;
  width: 210px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 10px 10px 0 rgba(9, 8, 7, 0.18);
  transform: rotate(-3deg);
}

.final-clips img {
  position: absolute;
  right: 0;
  top: 26px;
  width: 190px;
  filter: drop-shadow(8px 10px 0 rgba(9, 8, 7, 0.18));
  transform: rotate(9deg);
}

.mobile-sticky-cta {
  display: none;
}

@keyframes paper-place {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-3deg) scale(0.98);
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 36px 64px;
  }

  .hero-copy {
    padding-top: 32px;
  }

  .hero-logo-sticker {
    right: 26px;
    width: 150px;
  }

  .cover-cuts {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 34px;
  }

  .style-index,
  .how-it-works,
  .reference-spread,
  .privacy-band,
  .final-cta {
    padding-inline: 36px;
  }

  .style-track {
    overflow-x: auto;
    grid-template-columns: repeat(6, 170px);
    padding-bottom: 10px;
  }

  .reference-board {
    grid-template-columns: 1fr 1fr;
  }

  .zine-cover {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 18px;
  }

  .site-header nav {
    display: none;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .brand {
    grid-template-columns: 42px auto;
    font-size: 1.08rem;
  }

  .brand img {
    width: 42px;
  }

  .hero {
    min-height: auto;
    padding: 34px 18px 52px;
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .hero-logo-sticker {
    position: relative;
    right: auto;
    top: auto;
    width: 128px;
    margin-bottom: 12px;
  }

  .hero-note {
    font-size: 1.05rem;
  }

  .cover-cuts {
    grid-template-columns: 1fr 1fr;
  }

  .create-panel {
    padding: 18px;
  }

  .upload-row,
  .prompt-grid,
  .style-index,
  .how-it-works,
  .reference-spread,
  .privacy-band,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .upload-row {
    gap: 12px;
  }

  .selfie-preview {
    transform: none;
  }

  .style-picker {
    grid-template-columns: 1fr;
  }

  .style-chip {
    grid-template-columns: 96px 1fr;
    align-items: center;
  }

  .style-chip video {
    width: 96px;
    height: 88px;
    aspect-ratio: auto;
  }

  .style-chip span {
    min-height: 0;
    white-space: normal;
  }

  .style-index,
  .how-it-works,
  .reference-spread,
  .privacy-band,
  .final-cta {
    padding: 48px 18px;
  }

  .style-index {
    padding-top: 14px;
  }

  .section-marker h2 {
    font-size: 2.35rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .reference-board {
    grid-template-columns: 1fr;
  }

  .ref-stack {
    min-height: 280px;
  }

  .privacy-band h2 {
    font-size: 2.25rem;
  }

  .final-cta h2 {
    font-size: 3.2rem;
  }

  .final-clips {
    min-height: 260px;
  }

  .final-clips video {
    left: 0;
    right: auto;
    width: 170px;
  }

  .final-clips img {
    right: 14px;
    width: 150px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 82px;
  }

  .site-header {
    grid-template-columns: 1fr;
    min-height: 64px;
    padding: 9px 18px;
  }

  .header-cta {
    display: none;
  }

  .hero h1 {
    max-width: calc(100vw - 36px);
    font-size: 2.65rem;
    line-height: 0.92;
  }

  .hero h1 br {
    display: none;
  }

  .hero h1::after {
    width: 126px;
    height: 6px;
    margin-top: 12px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 14px 18px 34px;
  }

  .hero-copy {
    order: 2;
    display: grid;
    gap: 12px;
    padding-top: 2px;
    padding-left: 0;
  }

  .create-panel {
    order: 1;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 6px 6px 0 rgba(9, 8, 7, 0.12);
  }

  .zine-kicker {
    margin-bottom: 0;
    font-size: 0.68rem;
  }

  .hero-logo-sticker {
    display: none;
  }

  .hero-note {
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
    line-break: anywhere;
    margin-top: 0;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: none;
  }

  .button,
  .final-link {
    width: min(100%, calc(100vw - 36px));
  }

  .cover-cuts {
    display: none;
  }

  .panel-topline {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .panel-topline span {
    font-size: 1rem;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  .upload-zone {
    min-height: 118px;
  }

  .selfie-preview {
    display: none;
  }

  .mode-toggle {
    min-height: 48px;
  }

  .mode-toggle button,
  .generate-button,
  .add-reference {
    min-height: 52px;
  }

  .style-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
  }

  .style-chip {
    flex: 0 0 72%;
    grid-template-columns: 92px 1fr;
    scroll-snap-align: start;
  }

  .style-chip video {
    width: 92px;
    height: 78px;
  }

  .prompt-grid {
    gap: 10px;
  }

  .prompt-box textarea {
    min-height: 80px;
  }

  .generate-button {
    font-size: 1.08rem;
  }

  .privacy-line {
    font-size: 0.82rem;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    color: var(--white);
    background: var(--pink);
    border: 2px solid var(--ink);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--ink);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
    transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-sticky-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .style-index,
  .how-it-works,
  .reference-spread,
  .privacy-band,
  .final-cta {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 3.05rem;
  }

  .cover-cuts {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-cut {
    max-width: 220px;
  }

  .cover-cut-two {
    justify-self: end;
    transform: rotate(4deg) translateY(-40px);
    margin-bottom: -24px;
  }

  .upload-zone,
  .selfie-preview,
  .preview-placeholder {
    min-height: 118px;
  }

  .mode-toggle {
    grid-template-columns: 1fr 1fr;
  }

  .style-track {
    grid-template-columns: repeat(6, 152px);
  }

  .final-cta h2 {
    font-size: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}
