/* Vertical: dental · Demo campaign "Your Practice"
   Owns: demo palette, image-led ad creatives, landing page mock.
   A future vertical replaces this file and its content pack; the shell stays. */

[data-vertical='dental'] {
  --yp-deep: #0B0B0C;
  --yp-night: #000000;
  --yp-ink: #0B0B0C;
  --yp-porcelain: #F4F3F1;
  --yp-porcelain-2: #E9E7E3;
  --yp-accent: #F4B26B;       /* warm amber: picks up the rim light in the imagery */
  --yp-accent-soft: #FBE3C6;
  --yp-accent-ink: #8A4B0F;   /* amber text on light, 6.1:1 */
  --yp-text-2: #55524D;
  --yp-line: #E4E1DC;
}

.yp-mono {
  flex: none; display: inline-grid; place-items: center;
  width: 9.4cqi; aspect-ratio: 1; border-radius: 50%;
  background: var(--yp-deep); color: var(--yp-accent);
  font-size: 3.4cqi; font-weight: 800; letter-spacing: .02em; line-height: 1;
}

/* ─── Ad creatives (4:5, image-led) ──────────────────────────────────── */
.adc {
  position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: #000; color: #fff; font-family: var(--font-sans);
}
.adc-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Finished creative supplied as one image (content: ad.creative) */
.adc-final { width: 100%; height: 100%; object-fit: cover; }
.is-animated .adc-final,
html[data-mix='static-2-animated-1'] [data-mix-target] .adc-final { animation: adc-push 5.2s ease-in-out infinite alternate; }
.adc--dark::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .18) 34%, rgba(0, 0, 0, 0) 52%); }
.adc--light { background: #fff; color: var(--yp-ink); }
.adc-copy { position: absolute; left: 7.5cqi; right: 7.5cqi; top: 8cqi; display: grid; justify-items: start; gap: 3.4cqi; }
.adc-eyebrow { font-size: 3.2cqi; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; line-height: 1; color: var(--yp-accent); }
.adc--light .adc-eyebrow { color: var(--yp-accent-ink); }
.adc-headline {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12.6cqi; line-height: .94; letter-spacing: -.04em; text-wrap: balance;
}
.adc-sub { display: block; max-width: 82%; font-size: 4.3cqi; line-height: 1.32; font-weight: 500; opacity: .84; }
.adc--question .adc-headline { font-size: 15.6cqi; max-width: 78%; }
.adc--steps .adc-headline { font-size: 10.6cqi; max-width: 52%; }
.adc--detail .adc-copy { top: auto; bottom: 7.5cqi; }
.adc--detail.adc--dark::after { background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .3) 34%, rgba(0, 0, 0, 0) 52%); }
.adc--detail .adc-headline { font-size: 11.4cqi; max-width: 74%; }
.adc--detail .adc-sub { max-width: 70%; }
.adc-steps { position: absolute; left: 7.5cqi; bottom: 7.5cqi; display: grid; gap: 2.2cqi; width: 58%; }
.adc-step {
  display: flex; align-items: center; gap: 3cqi; padding: 2.8cqi 3.2cqi;
  border-radius: 2.8cqi; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 4.1cqi; font-weight: 650; line-height: 1.15; color: #fff;
}
.adc-step-n { display: grid; place-items: center; width: 6.6cqi; aspect-ratio: 1; flex: none; border-radius: 50%; background: var(--yp-accent); color: #0A0A0A; font-size: 3.3cqi; font-weight: 800; }

/* Animated ad (replaces a static one in the "2 static + 1 animated" mix): a slow push-in */
@keyframes adc-push { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.6%, 1.2%); } }
.is-animated .adc-img,
html[data-mix='static-2-animated-1'] [data-mix-target] .adc-img { animation: adc-push 5.2s ease-in-out infinite alternate; }

/* Pause / reduce: continuous loops stop */
html.motion-paused .adc *, .is-offscreen .adc * { animation-play-state: paused !important; }
html.motion-reduced .adc * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .adc * { animation: none !important; } }

/* ─── Landing page mock (container queries, no heading elements) ─────── */
.lp { container-type: inline-size; background: #fff; color: var(--yp-ink); font-family: var(--font-sans); text-align: left; }
.fc-lp .lp-inner { will-change: transform; }
.lp-nav { display: flex; align-items: center; gap: 2.4cqi; padding: 1.7cqi 3.4cqi; border-bottom: 1px solid var(--yp-line); background: #fff; }
.lp-logo { display: inline-flex; align-items: center; gap: 1cqi; font-size: 1.75cqi; font-weight: 750; letter-spacing: -.01em; color: var(--yp-deep); white-space: nowrap; }
.lp-logo .yp-mono { width: 3.3cqi; font-size: 1.2cqi; }
.lp-links { display: flex; gap: 2.6cqi; margin-left: auto; font-size: 1.45cqi; font-weight: 560; color: var(--yp-text-2); white-space: nowrap; }
.lp-navcta { padding: 1.15cqi 1.9cqi; border-radius: 999px; background: var(--yp-deep); color: #fff; font-size: 1.4cqi; font-weight: 700; white-space: nowrap; }
.lp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2cqi;
  min-height: 34cqi; padding: 5.2cqi 4.4cqi 4.8cqi; color: #fff; background: #050505;
}
.lp-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.lp-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .72) 40%, rgba(5, 5, 5, 0) 66%); }
.lp-eyebrow { display: block; font-size: 1.3cqi; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--yp-accent); }
.lp-title {
  position: relative; display: block; margin-top: 1.7cqi;
  font-family: var(--font-display); font-weight: 700;
  font-size: 5.2cqi; line-height: .96; letter-spacing: -.04em; text-wrap: balance;
}
.lp-lead { display: block; margin-top: 1.9cqi; max-width: 44ch; font-size: 1.7cqi; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 1.2cqi; margin-top: 2.8cqi; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 1.45cqi 2.3cqi; border-radius: 999px; font-size: 1.5cqi; font-weight: 750; white-space: nowrap; transition: box-shadow var(--dur-state) var(--ease-out); }
.lp-btn--primary { background: var(--yp-accent); color: #0A0A0A; }
.lp-btn--ghost { border: 1px solid rgba(255, 255, 255, .34); color: #fff; }
.lp-btn--block { width: 100%; }
.lp-hero-art { position: relative; align-self: stretch; min-height: 24cqi; }
.lp-how { position: relative; padding: 4.8cqi 4.4cqi; background: var(--yp-porcelain); }
.lp-kicker { display: block; font-family: var(--font-display); font-weight: 700; font-size: 3.1cqi; line-height: 1; letter-spacing: -.03em; color: var(--yp-deep); }
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6cqi; margin-top: 2.4cqi; }
.lp-step { display: grid; gap: .9cqi; align-content: start; padding: 2.2cqi; border-radius: 1.6cqi; background: #fff; border: 1px solid var(--yp-line); }
.lp-step-n { display: grid; place-items: center; width: 3.2cqi; aspect-ratio: 1; border-radius: 50%; background: var(--yp-deep); color: var(--yp-accent); font-size: 1.4cqi; font-weight: 800; }
.lp-step-t { font-size: 1.75cqi; font-weight: 750; color: var(--yp-deep); }
.lp-step-d { font-size: 1.42cqi; line-height: 1.45; color: var(--yp-text-2); }
.lp-fit { display: grid; gap: .8cqi; padding: 4cqi 4.4cqi; border-top: 1px solid var(--yp-line); }
.lp-fit-t { font-family: var(--font-display); font-weight: 700; font-size: 2.6cqi; letter-spacing: -.02em; color: var(--yp-deep); }
.lp-fit-d { font-size: 1.6cqi; color: var(--yp-text-2); max-width: 60ch; }
.lp-link { display: inline-flex; align-items: center; gap: .6cqi; margin-top: .6cqi; font-size: 1.5cqi; font-weight: 750; color: var(--yp-accent-ink); }
.lp-link-icon { width: 1.8cqi; height: 1.8cqi; }
.lp-form {
  position: relative; display: grid; gap: 1.5cqi; margin: 0 4.4cqi 4.4cqi; padding: 3.2cqi;
  border-radius: 2.2cqi; background: #fff; border: 1px solid var(--yp-line);
  box-shadow: 0 1px 0 rgba(10, 10, 10, .04), 0 14px 30px -18px rgba(10, 10, 10, .35);
  transition: box-shadow var(--dur-state) var(--ease-out);
}
.lp-form-t { font-family: var(--font-display); font-weight: 700; font-size: 2.6cqi; letter-spacing: -.02em; color: var(--yp-deep); }
.lp-field { display: grid; gap: .6cqi; }
.lp-field-l { font-size: 1.35cqi; font-weight: 650; color: var(--yp-text-2); }
.lp-field-i { display: block; height: 4.4cqi; border-radius: 1cqi; border: 1px solid #D9D5CF; background: #FCFBFA; }
.lp-chips { display: flex; gap: .8cqi; }
.lp-chip { padding: .9cqi 1.6cqi; border-radius: 999px; border: 1px solid #D9D5CF; font-size: 1.35cqi; font-weight: 650; color: var(--yp-text-2); }
.lp-chip.is-on { background: var(--yp-deep); border-color: var(--yp-deep); color: #fff; }
.lp-form .lp-btn--primary { background: var(--yp-deep); color: #fff; padding-block: 1.7cqi; font-size: 1.6cqi; }
.lp-form-note { font-size: 1.3cqi; color: var(--yp-text-2); }
.lp-foot { display: flex; justify-content: space-between; gap: 2cqi; padding: 2.4cqi 4.4cqi; border-top: 1px solid var(--yp-line); font-size: 1.3cqi; color: var(--yp-text-2); }
.lp-logo--sm { font-size: 1.4cqi; }
.lp-logo--sm .yp-mono { width: 2.8cqi; font-size: 1cqi; }

/* Landing tags ("From ad 1") and highlight states driven by the explorer/preview */
.lp-landtag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .6cqi;
  padding: .7cqi 1.4cqi; border-radius: 999px; background: var(--signal, #FF6700); color: #0A0A0A;
  font-family: var(--font-sans); font-size: 1.3cqi; font-weight: 750; letter-spacing: .02em; white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.96); transition: opacity var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-out);
  pointer-events: none;
}
.lp-title .lp-landtag { left: 0; top: -3.8cqi; }
.lp-hero-art .lp-landtag { right: 8%; top: 6%; }
.lp-how .lp-landtag { right: 4.4cqi; top: 4.2cqi; }
[data-source='1'] .lp-landtag[data-landtag='hero-title'],
[data-source='2'] .lp-landtag[data-landtag='how'],
[data-source='3'] .lp-landtag[data-landtag='hero-art'] { opacity: 1; transform: none; }
.lp [data-land].is-lit { box-shadow: 0 0 0 .35cqi var(--signal, #FF6700); border-radius: 1.2cqi; }
.lp-title.is-lit { box-shadow: none; text-decoration: underline; text-decoration-color: var(--signal, #FF6700); text-decoration-thickness: .35cqi; text-underline-offset: .8cqi; }
.lp.is-next .lp-form { box-shadow: 0 0 0 .4cqi var(--signal, #FF6700), 0 20px 40px -18px rgba(10, 10, 10, .4); }
.lp.is-next [data-lp-submit] { animation: lp-pulse 1.8s var(--ease-out) 1 .5s both; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 103, 0, 0); } 35% { box-shadow: 0 0 0 1.2cqi rgba(255, 103, 0, .28); } 100% { box-shadow: 0 0 0 0 rgba(255, 103, 0, 0); } }

/* Mobile layout of the demo page (narrow frames, phones) */
@container (max-width: 400px) {
  .lp-nav { padding: 3.4cqi 5cqi; gap: 3cqi; }
  .lp-logo { font-size: 4.4cqi; gap: 2cqi; }
  .lp-logo .yp-mono { width: 7.4cqi; font-size: 2.8cqi; }
  .lp-links { display: none; }
  .lp-navcta { margin-left: auto; padding: 2.2cqi 3.4cqi; font-size: 3.4cqi; }
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 2cqi; min-height: 0; padding: 8cqi 6cqi 0; }
  .lp-hero-img { object-position: 72% 100%; }
  .lp-hero::before { background: linear-gradient(180deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .78) 46%, rgba(5, 5, 5, 0) 78%); }
  .lp-eyebrow { font-size: 3.2cqi; }
  .lp-title { font-size: 10.6cqi; margin-top: 3cqi; }
  .lp-lead { font-size: 4.2cqi; margin-top: 3.4cqi; }
  .lp-actions { gap: 2.4cqi; margin-top: 5cqi; }
  .lp-btn { font-size: 3.8cqi; padding: 3.4cqi 5cqi; }
  .lp-actions .lp-btn--primary { width: 100%; }
  .lp-actions .lp-btn--ghost { display: none; }
  .lp-hero-art { min-height: 56cqi; margin: 0 -6cqi; }
  .lp-how { padding: 8cqi 6cqi; }
  .lp-kicker { font-size: 7.4cqi; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 3cqi; margin-top: 4.6cqi; }
  .lp-step { grid-template-columns: auto 1fr; column-gap: 3.4cqi; padding: 4.4cqi; border-radius: 4cqi; }
  .lp-step-n { grid-row: span 2; width: 7.6cqi; font-size: 3.4cqi; }
  .lp-step-t { font-size: 4.4cqi; }
  .lp-step-d { font-size: 3.6cqi; }
  .lp-fit { padding: 7cqi 6cqi; gap: 2cqi; }
  .lp-fit-t { font-size: 6.4cqi; }
  .lp-fit-d { font-size: 4cqi; }
  .lp-link { font-size: 3.8cqi; gap: 1.6cqi; }
  .lp-link-icon { width: 4.4cqi; height: 4.4cqi; }
  .lp-form { margin: 0 5cqi 7cqi; padding: 6cqi; gap: 3.4cqi; border-radius: 5cqi; }
  .lp-form-t { font-size: 6.6cqi; }
  .lp-field { gap: 1.6cqi; }
  .lp-field-l { font-size: 3.4cqi; }
  .lp-field-i { height: 10.4cqi; border-radius: 2.4cqi; }
  .lp-chips { gap: 2cqi; flex-wrap: wrap; }
  .lp-chip { font-size: 3.3cqi; padding: 2cqi 3.4cqi; }
  .lp-form .lp-btn--primary { font-size: 4cqi; padding-block: 4cqi; }
  .lp-form-note { font-size: 3.3cqi; }
  .lp-foot { flex-direction: column; padding: 5cqi 6cqi; font-size: 3.2cqi; }
  .lp-logo--sm { font-size: 3.6cqi; }
  .lp-logo--sm .yp-mono { width: 6.4cqi; font-size: 2.4cqi; }
  .lp-landtag { font-size: 3.2cqi; padding: 1.6cqi 3cqi; }
  .lp-title .lp-landtag { top: -8cqi; }
  .lp-how .lp-landtag { top: 8cqi; right: 6cqi; }
  .lp [data-land].is-lit { box-shadow: 0 0 0 .9cqi var(--signal, #FF6700); border-radius: 3cqi; }
  .lp.is-next .lp-form { box-shadow: 0 0 0 1cqi var(--signal, #FF6700); }
}
