:root {
  --ink: #17213f;
  --paper: #eaf7ff;
  --paper-strong: #fff4fb;
  --line: #17213f;
  --red: #ff5aa7;
  --yellow: #ddff5a;
  --mint: #7cf4bc;
  --blue: #55b9ff;
  --lilac: #cdb9ff;
  --sticker: #ffffff;
  --shadow: 8px 8px 0 #17213f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 90, 167, 0.34), transparent 20rem),
    radial-gradient(circle at 86% 8%, rgba(85, 185, 255, 0.36), transparent 24rem),
    radial-gradient(circle at 62% 78%, rgba(221, 255, 90, 0.28), transparent 26rem),
    linear-gradient(90deg, rgba(23, 33, 63, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 63, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  content: "YOUTH MEME LAB";
  position: fixed;
  top: 118px;
  left: -54px;
  z-index: -1;
  padding: 14px 42px;
  border: 3px solid rgba(23, 33, 63, 0.65);
  background: #ff7abb;
  color: #ffffff;
  font-family: "Archivo Black", sans-serif;
  font-size: 1rem;
  transform: rotate(-11deg);
  box-shadow: 5px 5px 0 rgba(23, 33, 63, 0.45);
}

body::after {
  content: "✦  ☆  ✧";
  position: fixed;
  right: 28px;
  top: 98px;
  z-index: -1;
  color: #43a9ff;
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 3px 3px 0 #ddff5a;
  transform: rotate(8deg);
}

button,
input {
  font: inherit;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}

.brand,
.nav-links,
.topbar-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 12px 4px 12px 4px;
  background: linear-gradient(135deg, var(--yellow), var(--mint));
  box-shadow: 4px 4px 0 var(--line);
  font-family: "Archivo Black", sans-serif;
  font-size: 0.85rem;
}

.nav-links {
  gap: 22px;
  font-weight: 700;
}

.topbar-action,
.prompt-row button,
.primary-action,
.secondary-action,
.gif-action,
.remix-action,
.mode-button,
.personal-upload,
.personal-remix-button,
.expression-button,
.type-button,
.filter-button,
.file-control,
.quick-prompts button {
  border: 2px solid var(--line);
  border-radius: 10px 3px 10px 3px;
  background: var(--sticker);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.topbar-action {
  padding: 10px 16px;
  background: var(--yellow);
}

button:hover,
.topbar-action:hover,
.file-control:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: 42px 0 74px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.3rem, 10vw, 7.7rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
}

.prompt-panel {
  max-width: 720px;
  border: 3px solid var(--line);
  border-radius: 18px 6px 18px 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 251, 0.92)),
    var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}

.prompt-panel::before {
  content: "YOUTH WARNING";
  position: absolute;
  top: -24px;
  right: 24px;
  padding: 7px 11px;
  border: 2px solid var(--line);
  background: var(--red);
  color: #ffffff;
  font-family: "Archivo Black", sans-serif;
  font-size: 0.72rem;
  transform: rotate(4deg);
  box-shadow: 3px 3px 0 var(--line);
}

.type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.type-button {
  padding: 8px 10px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--line);
}

.type-button.is-active {
  background: var(--yellow);
  color: #2144c7;
}

.type-hint {
  margin: 0 0 14px;
  font-weight: 900;
}

.prompt-panel label,
.controls label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.prompt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 10px;
}

.prompt-row input,
.expression-prompt-label input,
.controls input[type="text"] {
  min-width: 0;
  width: 100%;
  border: 2px solid var(--line);
  background: #ffffff;
  padding: 14px;
  font-weight: 700;
  border-radius: 12px 4px 12px 4px;
}

.expression-prompt-label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-weight: 900;
}

.prompt-row button,
.primary-action {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--red), #ff8ad0);
  color: #ffffff;
}

.api-status {
  min-height: 24px;
  max-width: 720px;
  margin: 16px 0 0;
  font-weight: 900;
}

.api-status.is-error {
  color: #b42318;
}

.api-status.is-success {
  color: #067647;
}

.api-status.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7a2e00;
}

.api-status.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--line);
  animation: pulse 800ms ease-in-out infinite alternate;
}

.upload-state {
  margin: 10px 0 0;
  font-weight: 900;
}

.upload-state.is-ready {
  color: #067647;
}

.caption-results {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-top: 22px;
}

.caption-chip {
  border: 2px solid var(--line);
  background: #ffffff;
  border-radius: 13px 4px 13px 4px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 3px 3px 0 var(--line);
  font-weight: 800;
}

.freshness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 18px;
  font-weight: 900;
}

.freshness-strip span {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--line);
  padding: 9px 11px;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.personal-remix-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 1fr;
  gap: 12px;
  margin-top: 14px;
}

.personal-upload,
.personal-remix-button {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 10px 14px;
}

.personal-upload {
  background: linear-gradient(135deg, var(--blue), #8ddcff);
  color: #ffffff;
}

.personal-remix-button {
  background: var(--mint);
}

.personal-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.expression-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.expression-presets span {
  font-weight: 900;
}

.expression-button {
  padding: 8px 11px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--line);
}

.expression-button.is-active {
  background: var(--yellow);
  color: #2144c7;
}

.quick-prompts button {
  padding: 9px 11px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--line);
  font-size: 0.9rem;
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.sample-card {
  position: absolute;
  display: grid;
  align-content: space-between;
  width: min(88%, 380px);
  min-height: 230px;
  border: 3px solid var(--line);
  border-radius: 20px 8px 20px 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}

.sample-card::before {
  content: "";
  position: absolute;
  inset: 55px 18px 18px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 28%, #ffffff 0 10%, transparent 11%),
    linear-gradient(135deg, transparent 0 45%, rgba(23, 33, 63, 0.9) 45% 52%, transparent 52%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(137, 216, 255, 0.35));
}

.sample-card::after {
  content: "✦";
  position: absolute;
  right: 18px;
  top: 14px;
  color: var(--yellow);
  font-size: 2.2rem;
  text-shadow: 2px 2px 0 var(--line);
}

.sample-card p,
.sample-tag {
  position: relative;
  z-index: 1;
}

.sample-card p {
  align-self: end;
  margin: 96px 0 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.sample-tag {
  width: max-content;
  border: 2px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 900;
}

.sample-card-a {
  top: 0;
  right: 28px;
  background: #ddff5a;
  transform: rotate(3deg);
}

.sample-card-b {
  top: 178px;
  left: 0;
  background: #7cf4bc;
  transform: rotate(-5deg);
}

.sample-card-c {
  right: 0;
  bottom: 0;
  background: #ff8ec3;
  transform: rotate(5deg);
}

.trend-lab {
  padding: 46px 0 60px;
}

.trend-heading {
  align-items: start;
}

.trend-heading p:last-child {
  max-width: 460px;
  margin: 0;
  font-weight: 800;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trend-card {
  display: grid;
  min-height: 250px;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border: 3px solid var(--line);
  border-radius: 18px 6px 18px 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.trend-card:nth-child(1) {
  background: #ddff5a;
}

.trend-card:nth-child(2) {
  background: #8ddcff;
}

.trend-card:nth-child(3) {
  background: #ff8ec3;
}

.trend-card:nth-child(4) {
  background: #cdb9ff;
}

.trend-card strong {
  width: max-content;
  border: 2px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.trend-card h3 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.trend-card p {
  margin: 0;
  font-weight: 800;
}

.trend-meter {
  display: grid;
  gap: 7px;
}

.trend-meter span {
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.trend-meter span::before {
  content: "";
  display: block;
  width: var(--score);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--mint));
}

.format-lab {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.format-lab article {
  border: 3px solid var(--line);
  border-radius: 16px 5px 16px 5px;
  background: #ffffff;
  box-shadow: 5px 5px 0 var(--line);
  padding: 18px;
}

.format-lab span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.format-lab h3 {
  margin: 14px 0 8px;
  font-family: "Archivo Black", sans-serif;
  line-height: 1;
}

.format-lab p {
  margin: 0;
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
  margin: 42px calc(50% - 50vw) 0;
  padding: 56px max(18px, calc(50vw - 590px));
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 90, 167, 0.35), transparent 18rem),
    radial-gradient(circle at 86% 18%, rgba(124, 244, 188, 0.24), transparent 20rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #1e2f5b;
  background-size: 28px 28px;
}

.editor-panel,
.canvas-panel {
  border: 3px solid var(--line);
  border-radius: 20px 8px 20px 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.editor-panel {
  padding: 20px;
  position: sticky;
  top: 16px;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading h2 {
  font-size: 2.25rem;
}

.controls {
  display: grid;
  gap: 18px;
}

.file-control {
  display: grid;
  place-items: center;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue), #77d9ff);
  color: #ffffff;
}

.secondary-action {
  padding: 14px 18px;
  background: var(--yellow);
}

.gif-action {
  padding: 14px 18px;
  background: #ff8ec3;
}

.share-panel {
  display: grid;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 16px 5px 16px 5px;
  background:
    linear-gradient(90deg, rgba(85, 185, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(85, 185, 255, 0.14) 1px, transparent 1px),
    #ffffff;
  background-size: 14px 14px;
  box-shadow: 4px 4px 0 var(--line);
  padding: 12px;
}

.share-panel p {
  margin: 0;
  font-weight: 900;
}

.share-grid,
.share-downloads {
  display: grid;
  gap: 8px;
}

.share-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-downloads {
  grid-template-columns: 1fr;
}

.share-grid button,
.share-downloads button {
  min-height: 38px;
  border: 2px solid var(--line);
  border-radius: 12px 4px 12px 4px;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--line);
  cursor: pointer;
  font-weight: 900;
}

.share-grid button:nth-child(1),
.share-grid button:nth-child(4) {
  background: var(--yellow);
}

.share-grid button:nth-child(2),
.share-grid button:nth-child(5) {
  background: #ff8ec3;
}

.share-grid button:nth-child(3),
.share-grid button:nth-child(6) {
  background: #8ddcff;
}

.share-grid button:nth-child(7) {
  grid-column: 1 / -1;
  background: #cdb9ff;
}

.share-downloads button {
  background: var(--lilac);
}

.file-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

select {
  width: 100%;
  border: 2px solid var(--line);
  background: #ffffff;
  border-radius: 10px 3px 10px 3px;
  padding: 12px;
  font-weight: 800;
}

input[type="range"] {
  accent-color: var(--red);
}

.swatches {
  display: flex;
  gap: 10px;
}

.meme-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mode-button {
  min-height: 42px;
  padding: 8px 10px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--line);
}

.mode-button.is-active {
  background: var(--yellow);
  color: #2144c7;
}

.remix-action {
  padding: 14px 18px;
  background: var(--mint);
}

.swatch {
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  border-radius: 50%;
}

.swatch.is-active {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.canvas-panel {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(10px, 2vw, 18px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #243a70;
}

canvas {
  display: block;
  width: 100%;
  max-width: min(100%, 760px);
  height: auto;
  max-height: min(78vh, 760px);
  aspect-ratio: 1;
  background: #222222;
  border: 3px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 0 0 3px var(--line), 10px 10px 0 rgba(23, 33, 63, 0.65);
}

.templates {
  padding: 52px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.template-search-label {
  display: grid;
  max-width: 520px;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 900;
}

.template-search-label input {
  border: 2px solid var(--line);
  background: #ffffff;
  padding: 13px 14px;
  font-weight: 800;
  border-radius: 12px 4px 12px 4px;
}

.filter-button {
  padding: 10px 14px;
}

.filter-button.is-active {
  background: var(--yellow);
  color: #2144c7;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.empty-state,
.paste-hint {
  margin: 0;
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  border: 3px solid var(--line);
  background: #ffffff;
  border-radius: 16px 5px 16px 5px;
  box-shadow: 5px 5px 0 var(--line);
  padding: 18px;
}

.template-card {
  border: 3px solid var(--line);
  border-radius: 18px 6px 18px 6px;
  background: #ffffff;
  box-shadow: 5px 5px 0 var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.template-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--line);
}

.template-thumb {
  display: grid;
  min-height: 170px;
  place-items: center;
  border-bottom: 3px solid var(--line);
  font-family: "Archivo Black", sans-serif;
  font-size: 3rem;
  text-shadow: 3px 3px 0 #ffffff;
}

.template-meta {
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(85, 185, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(85, 185, 255, 0.12) 1px, transparent 1px),
    #ffffff;
  background-size: 14px 14px;
}

.template-meta h3 {
  margin: 0 0 6px;
}

.template-meta p {
  margin: 0;
  font-weight: 700;
}

.pricing {
  padding: 54px 0 88px;
}

.pricing .section-heading > p {
  max-width: 560px;
  margin: 0;
  font-weight: 800;
}

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

.pricing-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 3px solid var(--line);
  border-radius: 22px 8px 22px 8px;
  background:
    linear-gradient(90deg, rgba(85, 185, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(85, 185, 255, 0.12) 1px, transparent 1px),
    #ffffff;
  background-size: 16px 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.pricing-card.is-featured {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    var(--yellow);
  transform: rotate(-1deg);
}

.pricing-badge {
  width: max-content;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ff8ec3;
  box-shadow: 3px 3px 0 var(--line);
  padding: 7px 11px;
  font-weight: 900;
}

.pricing-card h3 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.pricing-card p,
.pricing-card li,
.pricing-note {
  font-weight: 850;
}

.pricing-card p,
.pricing-card ul {
  margin: 0;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.pricing-action {
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  font-weight: 900;
}

.pricing-note {
  min-height: 24px;
  margin: 18px 0 0;
}

.pricing-note.is-error {
  color: #b42318;
}

.pricing-note.is-loading {
  color: #7a2e00;
}

.pricing-note.is-success { color: #17643a; }

.template-modal[hidden] {
  display: none;
}

.template-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.template-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 63, 0.62);
  backdrop-filter: blur(5px);
}

.template-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 38px));
  overflow: auto;
  border: 3px solid var(--line);
  border-radius: 24px 8px 24px 8px;
  background:
    linear-gradient(90deg, rgba(85, 185, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(85, 185, 255, 0.12) 1px, transparent 1px),
    #ffffff;
  background-size: 18px 18px;
  box-shadow: 12px 12px 0 var(--line);
}

.template-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
  cursor: pointer;
  font-weight: 900;
}

.template-modal-preview {
  display: grid;
  min-height: 420px;
  place-items: center;
  border-right: 3px solid var(--line);
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(4rem, 10vw, 7rem);
  text-shadow: 5px 5px 0 #ffffff;
}

.template-modal-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px 32px;
}

.template-modal-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.template-modal-copy p {
  margin: 0;
  font-weight: 800;
  font-size: 1.08rem;
}

.template-modal-lines {
  display: grid;
  gap: 10px;
}

.template-modal-lines span {
  border: 2px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--line);
  padding: 12px 14px;
  font-family: "Archivo Black", sans-serif;
  line-height: 1;
}

.template-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-modal-tags span {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--mint);
  padding: 6px 10px;
  font-weight: 900;
}

.template-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    position: static;
  }

  .hero-stage {
    min-height: 460px;
  }

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

  .trend-grid,
  .format-lab,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    gap: 12px;
  }

  .topbar-action {
    padding: 9px 12px;
  }

  .prompt-row,
  .personal-remix-row,
  .control-grid,
  .template-grid,
  .trend-grid,
  .format-lab,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .hero-stage {
    min-height: 620px;
  }

  .sample-card {
    width: 92%;
  }

  .sample-card-a,
  .sample-card-b,
  .sample-card-c {
    left: 4%;
    right: auto;
  }

  .sample-card-a {
    top: 0;
  }

  .sample-card-b {
    top: 196px;
  }

  .sample-card-c {
    top: 392px;
    bottom: auto;
  }

  .workspace {
    margin-top: 28px;
    padding: 28px 11px;
  }

  .template-modal-card {
    grid-template-columns: 1fr;
  }

  .template-modal-preview {
    min-height: 220px;
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }

  .template-modal-copy {
    padding: 28px 18px;
  }

  .editor-panel,
  .canvas-panel {
    box-shadow: 4px 4px 0 var(--line);
  }

  canvas {
    max-height: none;
  }
}

@keyframes pulse {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-2px) scale(1.12);
  }
}

/* Geometric web layout */
:root { --ink:#171717; --paper:#f4f5f0; --paper-strong:#fff; --line:#171717; --red:#ff5d47; --yellow:#f4e85c; --mint:#8bd8b8; --blue:#7eb4f6; --lilac:#c6b4ef; --shadow:none; }
html { scroll-behavior:smooth; }
body { background:var(--paper); font-family:"Space Grotesk",sans-serif; }
body::before,body::after,.prompt-panel::before,.sample-card::before,.sample-card::after { display:none; }
.site-shell { width:min(1440px,100%); }
.topbar { position:sticky; top:0; z-index:20; min-height:72px; padding:12px clamp(20px,4vw,64px); border-bottom:1px solid var(--line); background:rgba(244,245,240,.94); backdrop-filter:blur(14px); }
.brand-mark { width:40px; height:40px; border:1px solid var(--line); border-radius:8px; background:var(--red); color:#fff; box-shadow:none; }
.nav-links { gap:8px; padding:5px; border:1px solid #d3d4ce; border-radius:999px; background:#fff; }
.nav-links a { padding:7px 11px; border-radius:999px; font-size:.82rem; }
.nav-links a:hover { background:#eceee8; }
.topbar-action,.prompt-row button,.primary-action,.secondary-action,.gif-action,.remix-action,.mode-button,.personal-upload,.personal-remix-button,.expression-button,.type-button,.filter-button,.file-control,.quick-prompts button { border:1px solid var(--line); border-radius:8px; box-shadow:none; }
.topbar-action { background:var(--ink); color:#fff; }
button:hover,.topbar-action:hover,.file-control:hover { transform:translateY(-2px); box-shadow:none; }
.hero { grid-template-columns:minmax(0,1.12fr) minmax(390px,.88fr); gap:clamp(28px,5vw,72px); min-height:calc(100vh - 72px); padding:clamp(52px,7vw,104px) clamp(20px,4vw,64px); background:#f4f5f0; }
h1 { max-width:830px; font-size:clamp(3.2rem,7vw,7rem); line-height:.94; }
h2 { font-size:clamp(2rem,4vw,3.8rem); line-height:1; }
.eyebrow { color:#555850; font-size:.74rem; }
.hero-text { margin:24px 0 30px; color:#4c4e49; }
.prompt-panel { max-width:760px; padding:clamp(16px,2vw,24px); border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:none; }
.type-picker,.expression-presets,.quick-prompts { gap:8px; }
.type-button,.expression-button,.quick-prompts button { box-shadow:none; }
.type-button.is-active,.expression-button.is-active,.mode-button.is-active,.filter-button.is-active { background:var(--ink); color:#fff; }
.prompt-row input,.expression-prompt-label input,.controls input[type="text"],.template-search-label input,select { border:1px solid #bfc1ba; border-radius:8px; background:#f8f9f6; }
.freshness-strip { border:0; border-radius:8px; background:#e4e6df; box-shadow:none; }
.hero-stage { position:static; display:grid; grid-template-columns:1fr 1fr; gap:12px; min-height:0; padding:12px; border:1px solid var(--line); border-radius:12px; background:#1b1b1b; }
.stage-heading { grid-column:1/-1; display:flex; justify-content:space-between; padding:8px 6px 14px; color:#fff; font-size:.78rem; text-transform:uppercase; }
.sample-card { position:static; display:flex; width:auto; min-height:190px; flex-direction:column; justify-content:space-between; padding:20px; border:0; border-radius:8px; box-shadow:none; transform:none; }
.sample-card:hover { transform:translateY(-3px); }
.sample-card-a { grid-column:1/-1; min-height:250px; background:var(--red); }
.sample-card-b { background:var(--blue); }
.sample-card-c { background:var(--yellow); }
.sample-card p { max-width:430px; font-size:clamp(1.45rem,2.8vw,2.6rem); line-height:1; }
.sample-card-b p,.sample-card-c p { font-size:clamp(1.15rem,1.8vw,1.55rem); }
.sample-tag { align-self:flex-start; border:1px solid currentColor; border-radius:999px; background:transparent; box-shadow:none; }
.card-route { display:flex; align-items:center; justify-content:space-between; border-top:1px solid rgba(23,23,23,.3); padding-top:12px; font-weight:800; }
.trend-lab,.templates,.pricing { padding:clamp(64px,8vw,112px) clamp(20px,4vw,64px); }
.trend-lab { margin:0; border:0; background:#f0ded4; }
.trend-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.trend-card,.format-lab article,.template-card,.pricing-card,.editor-panel,.canvas-panel,.share-panel { border:1px solid var(--line); border-radius:8px; box-shadow:none; }
.trend-card { min-height:290px; padding:18px; }
.trend-card:hover,.template-card:hover { transform:translateY(-3px); box-shadow:none; }
.format-lab { grid-template-columns:1.3fr 1fr 1fr; gap:12px; }
.format-lab article { min-height:200px; padding:20px; }
.workspace { grid-template-columns:minmax(300px,.38fr) minmax(0,.62fr); gap:16px; margin:0; padding:clamp(64px,8vw,112px) clamp(20px,4vw,64px); background:#cfdccf; }
.editor-panel { top:88px; padding:22px; }
.canvas-panel { background:#202020; }
canvas { border:1px solid #fff; border-radius:6px; box-shadow:none; }
.templates { background:#f4f5f0; }
.template-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.template-thumb { border-bottom:1px solid var(--line); }
.template-meta { background:#fff; }
.pricing { background:#d7d2eb; }
.pricing-grid { gap:12px; }
.pricing-card,.pricing-card.is-featured { border-radius:8px; background:#fff; transform:none; }
.pricing-card.is-featured { background:var(--yellow); }
.pricing-badge,.pricing-action,.template-modal-card,.template-modal-lines span,.template-modal-tags span,.template-modal-close { border-width:1px; border-radius:8px; box-shadow:none; }
@media (max-width:1024px) { .hero,.workspace{grid-template-columns:1fr}.hero-stage{grid-template-columns:1fr 1fr}.editor-panel{position:static}.trend-grid,.template-grid,.pricing-grid,.format-lab{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:680px) { .site-shell{width:100%}.topbar{padding:10px 14px}.brand>span:last-child{display:none}.hero{padding:36px 14px 56px}h1{font-size:clamp(2.8rem,15vw,4.4rem)}.prompt-panel{border-radius:10px;padding:14px}.hero-stage,.trend-grid,.template-grid,.pricing-grid,.format-lab{grid-template-columns:1fr}.sample-card-a{grid-column:auto}.sample-card,.sample-card-a{min-height:210px}.trend-lab,.templates,.pricing,.workspace{padding:56px 14px}.section-heading{align-items:start;flex-direction:column}.trend-grid,.template-grid,.pricing-grid{gap:14px}.trend-card,.template-card,.pricing-card{min-height:auto} }
.example-showcase{padding:clamp(64px,8vw,112px) clamp(20px,4vw,64px);border-top:1px solid var(--line);background:#171717;color:#fff}.example-heading{align-items:end;margin-bottom:32px}.example-heading .eyebrow{color:#aeb0a9}.example-heading>p{max-width:460px;margin:0;color:#c6c8c1;font-weight:600}.example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.example-card{display:grid;min-width:0;min-height:510px;grid-template-rows:54% 46%;padding:0;overflow:hidden;border:1px solid #3c3c3c;border-radius:8px;background:#f8f8f3;color:var(--ink);cursor:pointer;text-align:left;transition:transform 180ms ease,border-color 180ms ease}.example-card:hover{border-color:#fff;transform:translateY(-4px)}.example-card-featured{grid-column:span 2}.example-card-wide{grid-column:span 2;grid-template-columns:48% 52%;grid-template-rows:1fr}.example-scene{position:relative;display:block;min-height:0;overflow:hidden}.scene-deadline{background:#ff654f}.scene-chat{background:#79acf0}.scene-camera{background:#f0df5d}.scene-meeting{background:#92d4b5}.scene-dating{background:#c5afe8}.scene-face{position:absolute;left:50%;bottom:-18%;width:58%;aspect-ratio:1;border:3px solid #171717;border-radius:48% 48% 44% 44%;background:#ffd6ad;transform:translateX(-50%)}.scene-face i{position:absolute;top:31%;width:13%;aspect-ratio:1;border-radius:50%;background:#171717}.scene-face i:first-child{left:24%}.scene-face i:nth-child(2){right:24%}.scene-face b{position:absolute;left:50%;top:58%;width:28%;height:24%;border:3px solid #171717;border-radius:50% 50% 44% 44%;background:#fff;transform:translateX(-50%)}.scene-chat .scene-face i:first-child,.scene-dating .scene-face i:first-child{height:4px;border-radius:4px}.scene-chat .scene-face b{height:4px;border:0;border-radius:4px;background:#171717}.scene-clock{position:absolute;top:18px;right:18px;padding:9px 12px;border:2px solid #171717;border-radius:6px;background:#fff;font-family:"Archivo Black",sans-serif;font-size:1.2rem}.scene-window{position:absolute;inset:20px 46% 40% 20px;border:2px solid #171717;background:repeating-linear-gradient(90deg,#f8d9c6 0 22%,#171717 22% 24%)}.chat-bubble{position:absolute;z-index:2;top:22px;left:14px;padding:8px 12px;border:2px solid #171717;border-radius:999px;background:#fff;font-weight:800}.chat-bubble:nth-child(2){top:68px;right:14px;left:auto}.camera-flash{position:absolute;top:-20%;right:-10%;width:65%;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.72)}.scene-camera .scene-face{width:72%;transform:translateX(-50%) rotate(-5deg)}.meeting-tile{position:absolute;top:16px;left:16px;width:25%;aspect-ratio:1.15;border:2px solid #171717;border-radius:5px;background:#fff}.meeting-tile:nth-child(2){left:38%}.meeting-tile:nth-child(3){right:16px;left:auto}.heart-one,.heart-two{position:absolute;top:20px;left:18%;color:#ff5d47;font-size:3.4rem;transform:rotate(-12deg)}.heart-two{top:52px;right:15%;left:auto;font-size:2rem;transform:rotate(15deg)}.example-copy{display:flex;min-width:0;flex-direction:column;padding:18px}.example-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px;font-size:.68rem}.example-meta b{padding:5px 8px;border:1px solid currentColor;border-radius:999px}.example-meta em{color:#686a64;font-style:normal}.example-copy>strong{font-family:"Archivo Black",sans-serif;font-size:clamp(1.25rem,1.7vw,1.8rem);line-height:1.02}.example-punchline{margin-top:8px;color:#5d5f59;font-weight:700}.example-route{display:flex;align-items:center;justify-content:space-between;margin-top:auto;border-top:1px solid #c9cac5;padding-top:13px;font-weight:800}@media(max-width:1024px){.example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.example-card-featured{grid-column:span 2}}@media(max-width:680px){.example-showcase{padding:56px 14px}.example-heading{align-items:start}.example-grid{grid-template-columns:1fr;gap:14px}.example-card,.example-card-featured,.example-card-wide{grid-column:auto;min-height:470px;grid-template-columns:1fr;grid-template-rows:54% 46%}}

.how-it-works {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .75fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
}
.section-label {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--yellow);
  font-family: "Archivo Black", sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
}
.how-copy h2 { max-width: 720px; font-size: clamp(2.7rem, 5vw, 5.2rem); }
.how-lead {
  max-width: 700px;
  margin: 26px 0 34px;
  color: #4e504a;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.65;
}
.how-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.how-steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.how-steps li > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--line);
  font-family: "Archivo Black", sans-serif;
  font-size: 1.25rem;
}
.how-steps strong { display: block; margin: 3px 0 5px; font-size: 1.02rem; }
.how-steps p { max-width: 650px; margin: 0; color: #5b5d57; line-height: 1.55; }
.how-demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .72fr) 58px minmax(250px, 1fr);
  align-items: center;
  min-width: 0;
}
.demo-input-card {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f5f5ef;
  box-shadow: 7px 7px 0 var(--line);
}
.demo-kicker, .demo-output-card figcaption span { font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.demo-input-card > p {
  margin: 18px 0 28px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.04;
}
.demo-input-card mark { background: var(--yellow); color: inherit; }
.demo-settings { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-settings span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .66rem;
  font-weight: 800;
}
.demo-connector { position: relative; z-index: 1; display: grid; place-items: center; }
.demo-connector span { width: 100%; border-top: 2px solid var(--line); }
.demo-connector span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.demo-connector b {
  position: absolute;
  padding: 4px 6px;
  background: #fff;
  font-size: .62rem;
  text-transform: uppercase;
}
.demo-output-card {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--line);
  transform: rotate(1.5deg);
}
.demo-output-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.demo-output-card figcaption { display: grid; gap: 3px; padding: 12px 14px; border-top: 1px solid var(--line); }
.demo-output-card figcaption strong { font-size: .84rem; }
.demo-action {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 900;
}
.checkout-modal {
  width: min(520px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(20, 20, 20, 0.22);
}

.checkout-modal::backdrop {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(3px);
}

.checkout-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.checkout-modal-head .eyebrow { margin: 0 0 5px; }
.checkout-modal-head h2 { margin: 0; font-size: 1.55rem; line-height: 1.2; }

.checkout-modal-close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.checkout-modal-copy {
  margin: 16px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-modal form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.checkout-modal input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.checkout-modal input:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(20, 20, 20, 0.1);
}

.checkout-modal-status {
  min-height: 22px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-modal-status.is-error { color: #b42318; }

.checkout-modal-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.checkout-modal-actions button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.checkout-cancel { background: #fff; color: var(--ink); }
.checkout-continue { background: var(--ink); color: #fff; }
.checkout-modal-actions button:disabled { cursor: wait; opacity: 0.65; }

.checkout-trust {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .checkout-modal { width: calc(100% - 24px); padding: 20px; }
  .checkout-modal-actions { grid-template-columns: 1fr; }
  .checkout-continue { grid-row: 1; }
}

.account-page {
  min-height: 100vh;
  padding: 24px;
  background: #f4f5f0;
}

.account-header {
  display: flex;
  width: min(1040px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.account-back,
.account-support {
  color: var(--ink);
  font-weight: 700;
}

.account-panel {
  width: min(680px, 100%);
  margin: 80px auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-panel h1 {
  margin: 5px 0 12px;
  font-size: clamp(2rem, 6vw, 4rem);
}

.account-claim {
  display: grid;
  gap: 9px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f5f0;
}

.account-claim[hidden] {
  display: none;
}

.account-claim label {
  margin-top: 4px;
  font-weight: 700;
}

.account-claim input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.account-claim button {
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-claim p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.account-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 20px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.account-details[hidden] {
  display: none;
}

.account-details div {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-details span,
.account-email {
  color: var(--muted);
}

.account-details strong {
  font-size: 1.35rem;
  text-transform: capitalize;
}

.account-support {
  display: inline-block;
  margin-top: 18px;
}

@media (max-width: 520px) {
  .account-page { padding: 16px; }
  .account-panel { margin-top: 48px; padding: 20px; }
  .account-details { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .how-it-works { grid-template-columns: 1fr; }
  .how-demo { max-width: 760px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .how-it-works { padding: 56px 14px; }
  .how-copy h2 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .how-steps li { grid-template-columns: 48px 1fr; gap: 14px; }
  .how-steps li > span { width: 48px; height: 48px; box-shadow: 3px 3px 0 var(--line); }
  .how-demo { grid-template-columns: 1fr; gap: 20px; }
  .demo-input-card { max-width: 88%; }
  .demo-connector { display: none; }
  .demo-output-card { width: 88%; margin-left: auto; transform: rotate(1deg); }
  .demo-action { grid-column: 1; width: 88%; margin-top: 0; margin-left: auto; }
}

.example-scene img,
.template-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.example-card:hover .example-scene img,
.template-card:hover .template-thumb img { transform: scale(1.035); }
.template-thumb { min-height: 0; aspect-ratio: 1; overflow: hidden; }
.template-modal-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

.sample-card {
  display: grid;
  padding: 0;
  overflow: hidden;
}
.sample-card-a {
  grid-template-columns: minmax(0, 1.3fr) minmax(190px, .7fr);
  min-height: 310px;
}
.sample-card-b,
.sample-card-c {
  grid-template-rows: 58% 42%;
  min-height: 310px;
}
.shortcut-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #dedfd9;
}
.shortcut-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}
.sample-card:hover .shortcut-visual > img { transform: scale(1.035); }
.shortcut-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  background: #f8f8f3;
}
.shortcut-copy .sample-tag {
  width: max-content;
  margin-bottom: 16px;
}
.sample-card .shortcut-copy p {
  margin: 0;
  font-size: clamp(1.1rem, 1.65vw, 1.55rem);
  line-height: 1;
}
.shortcut-copy .card-route { margin-top: auto; }
.shortcut-stack { background: #7eb4f6; }
.shortcut-stack img {
  position: absolute;
  top: 13%;
  left: 8%;
  width: 54%;
  height: 75%;
  border: 2px solid var(--line);
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 5px 5px 0 rgba(23, 23, 23, .3);
}
.shortcut-stack img:nth-child(2) { top: 8%; left: 24%; transform: rotate(3deg); }
.shortcut-stack img:nth-child(3) { top: 15%; left: 41%; transform: rotate(6deg); }
.sample-card:hover .shortcut-stack img:nth-child(2) { transform: rotate(1deg) translateY(-3px); }
.sample-card:hover .shortcut-stack img:nth-child(3) { transform: rotate(4deg) translateY(-3px); }
.shortcut-editor { background: #f4e85c; }
.shortcut-editor img { filter: saturate(.82); }
.preview-caption {
  position: absolute;
  top: 14px;
  right: 12px;
  left: 12px;
  padding: 6px;
  border: 1px dashed #fff;
  background: rgba(23, 23, 23, .7);
  color: #fff;
  font-family: "Archivo Black", sans-serif;
  font-size: .72rem;
  text-align: center;
}
.preview-tools {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.preview-tools i {
  width: 13px;
  height: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.preview-tools i:first-child { background: #fff; }
.preview-tools i:nth-child(2) { background: #f4e85c; }
.preview-tools i:nth-child(3) { background: #ff5d47; }
.preview-tools b { font-size: .65rem; }
@media (max-width: 680px) {
  .sample-card-a,
  .sample-card-b,
  .sample-card-c {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(230px, 58vw) auto;
    min-height: 410px;
  }
  .shortcut-copy { min-height: 180px; }
}

.trend-card {
  display: grid;
  grid-template-rows: minmax(190px, 48%) 1fr;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.trend-visual {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.trend-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.trend-card:hover .trend-visual img { transform: scale(1.035); }
.trend-visual strong {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
}
.trend-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  background: #fff;
}
.trend-content h3 { margin-top: 0; }
.trend-content .trend-meter { margin-top: auto; }
@media (max-width: 680px) {
  .trend-card {
    grid-template-rows: minmax(250px, 68vw) auto;
    min-height: 500px;
  }
  .trend-content { min-height: 220px; }
}

.billing-disclosure {
  max-width: 760px;
  margin: 22px 0 0;
  color: #4f504b;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.55;
}
.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #171717;
  color: #fff;
}
.site-footer nav, .legal-footer { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav { justify-content: center; }
.site-footer nav a, .legal-footer a { text-decoration: underline; text-underline-offset: 4px; }
.site-footer p { margin: 0; color: #bfc1ba; font-size: .78rem; }
.legal-body { background: #f4f5f0; }
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}
.legal-page h1 { max-width: none; margin-bottom: 36px; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.legal-page h2 { margin: 36px 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); }
.legal-page p { color: #464842; font-size: 1.02rem; line-height: 1.7; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { font-family: "Archivo Black", sans-serif; font-size: clamp(1.15rem, 4vw, 2rem); }
.legal-footer {
  justify-content: center;
  padding: 28px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .site-footer nav { justify-content: start; }
}
