/* ===================================================
   Einblick – schoettle.media CI
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Miriam+Libre:wght@400;700&family=Fira+Sans:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
  --orange:       #ff5912;
  --orange-dark:  #d94a0a;
  --orange-light: #fff2ed;
  --text:         #333333;
  --text-light:   #666666;
  --text-lighter: #999999;
  --bg:           #f8f8f8;
  --white:        #ffffff;
  --border:       #e4e4e4;
  --footer-bg:    #333333;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 6px rgba(0,0,0,.06);
  --shadow:       0 2px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 48px rgba(0,0,0,.13);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Miriam Libre', serif;
  font-weight: 400;
  line-height: 1.2;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Animations ──────────────────────────────────── */
@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.step-enter { animation: stepIn 0.32s var(--ease-out) both; }

/* ── Layout ──────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 28px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Fira Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s ease, transform .2s var(--ease-bounce), box-shadow .18s ease, color .18s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.3) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.btn:active::after { opacity: 1; }
.btn:active { transform: scale(0.97) !important; }

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,89,18,.3);
  text-decoration: none;
}
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text-light); font-weight: 400; padding: 10px 16px; }
.btn--ghost:hover { color: var(--text); text-decoration: none; }
.btn--large { padding: 16px 40px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Forms ───────────────────────────────────────── */
.input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Fira Sans', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,89,18,.1);
}
.input::placeholder { color: #bbb; }
textarea.input { resize: vertical; min-height: 96px; }

.input-group { margin-bottom: 14px; }
.input-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.input-group .hint { font-size: .78rem; color: var(--text-lighter); margin-top: 5px; line-height: 1.5; }

/* URL rows */
.url-row { display: flex; gap: 0; margin-bottom: 8px; animation: stepIn .25s var(--ease-out) both; }
.url-row .input { flex: 1; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.url-row__remove {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 14px;
  cursor: pointer;
  color: var(--text-lighter);
  font-size: 1rem;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
}
.url-row__remove:hover { background: #fde8e8; color: #c00; }

.add-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 2px;
  transition: opacity .15s;
}
.add-url-btn:hover { opacity: .7; }

/* ── Divider ─────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-lighter);
  font-size: .82rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Header ──────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}
.header__logo { height: 75px; width: auto; }
.header__back { position: absolute; left: 12px; }

/* ── Hero ────────────────────────────────────────── */
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-18px, -14px) scale(1.04); }
}
@keyframes floatSlowRev {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(14px, -10px) scale(1.03); }
}

.hero {
  background: linear-gradient(160deg, var(--white) 55%, #fff4ef 100%);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .09;
  top: -280px;
  right: -200px;
  pointer-events: none;
  animation: floatSlow 14s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .07;
  bottom: -130px;
  left: -80px;
  pointer-events: none;
  animation: floatSlowRev 10s ease-in-out infinite;
}
.hero__decor {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2.5px solid var(--orange);
  opacity: .13;
  top: 30px;
  left: calc(50% + 120px);
  pointer-events: none;
  animation: floatSlow 8s ease-in-out infinite 2s;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}
.hero__cta { position: relative; }

/* ── How it works ────────────────────────────────── */
.how {
  padding: 60px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.how__step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s var(--ease-bounce), box-shadow .2s;
}
.how__step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.how__num {
  font-family: 'Miriam Libre', serif;
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 14px;
}
.how__step h3 { font-size: .95rem; margin-bottom: 8px; }
.how__step p  { font-size: .85rem; color: var(--text-light); }

/* ── Wizard ──────────────────────────────────────── */
.wizard { padding: 48px 0 80px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
}

.wizard__header { margin-bottom: 36px; }
.wizard__step-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.wizard__header h2 { font-size: 1.7rem; margin-bottom: 8px; }
.wizard__header p  { color: var(--text-light); font-size: .93rem; }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Progress */
.progress { height: 3px; background: var(--border); border-radius: 2px; margin-bottom: 32px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--orange); border-radius: 2px; transition: width .45s var(--ease-out); }

/* ── Choice cards (Step 2 style + Step 3 palette — identical layout) ── */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.choice-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 14px 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s var(--ease-bounce), box-shadow .2s;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.choice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.choice-card.active { border-color: var(--orange); background: var(--orange-light); box-shadow: 0 0 0 2px rgba(255,89,18,.15); }
.choice-card__visual { font-size: 2rem; line-height: 1; }
.choice-card__name   { font-size: .875rem; font-weight: 700; }
.choice-card__desc   { font-size: .75rem; color: var(--text-light); line-height: 1.4; }

/* Swatches in palette cards */
.palette-swatches { display: flex; gap: 6px; justify-content: center; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }

/* ── Auto-option (below "oder") ──────────────────── */
.auto-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s, background .2s, transform .15s;
  background: var(--white);
}
.auto-option:hover { border-color: var(--orange); transform: translateY(-1px); }
.auto-option.active { border-color: var(--orange); background: var(--orange-light); }
.auto-option__icon  { font-size: 1.5rem; flex-shrink: 0; }
.auto-option__title { font-weight: 600; font-size: .9rem; margin-bottom: 3px; }
.auto-option__desc  { font-size: .82rem; color: var(--text-light); line-height: 1.5; }

/* ── Info toggle ─────────────────────────────────── */
.info-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-lighter);
  padding: 0 0 0 6px;
  font-size: .95rem;
  line-height: 1;
  transition: color .15s;
  vertical-align: middle;
}
.info-toggle:hover { color: var(--orange); }

/* ── Modal overlay ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 40px 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: stepIn .25s var(--ease-out);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--orange);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: .9rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.modal__close:hover { background: var(--orange-dark); transform: scale(1.1); }
.modal__title {
  font-family: 'Miriam Libre', serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-right: 32px;
}
.modal__body p { font-size: .875rem; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; }
.modal__body p:last-child { margin-bottom: 0; }
.modal__body strong { color: var(--text); font-weight: 600; }

/* ── Info box ────────────────────────────────────── */
.info-box {
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin-top: 20px;
}
.info-box p { font-size: .82rem; color: var(--text-light); line-height: 1.6; margin-bottom: 6px; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--text); }

/* ── Loading ─────────────────────────────────────── */
@keyframes stagePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}
@keyframes stageGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,89,18,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(255,89,18,0); }
}

.loading { padding: 80px 0; text-align: center; }

.loading-stages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: nowrap;
}
.loading-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .2;
  transition: opacity .5s ease;
}
.loading-stage.done { opacity: 1; }
.loading-stage.done .loading-stage__icon {
  animation: stagePulse .6s var(--ease-bounce), stageGlow .6s ease;
  background: var(--orange-light);
  border-color: var(--orange);
}
.loading-stage__icon {
  width: 52px; height: 52px; font-size: 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s, border-color .4s;
}
.loading-stage__label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-lighter);
  transition: color .4s;
}
.loading-stage.done .loading-stage__label { color: var(--orange); }

.loading-stage__connector {
  width: 20px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 22px;
}

.loading__status {
  font-size: .95rem; color: var(--text-light);
  min-height: 1.65em; margin-bottom: 24px;
  animation: fadeIn .4s ease;
}
.loading__bar { max-width: 360px; margin: 0 auto; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loading__bar-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width 2s var(--ease-out); }

/* ── Preview ─────────────────────────────────────── */
.preview-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.preview-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.preview-bar__logo { height: 36px; }
.preview-bar__sep { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }

.toggle-group { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.toggle-btn {
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  font-family: 'Fira Sans', sans-serif;
  background: var(--white);
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: background .15s, color .15s;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.toggle-btn:not(:last-child) { border-right: 1px solid var(--border); }
.toggle-btn.active { background: var(--orange); color: var(--white); }

.preview-url {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; color: var(--text-lighter);
  background: var(--bg); padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  max-width: 260px; overflow: hidden; margin-left: auto;
}
.preview-url span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-url button { background: none; border: none; cursor: pointer; color: var(--orange); padding: 0; flex-shrink: 0; }

.preview-frame-wrap {
  flex: 1; overflow: hidden; background: var(--bg);
  display: flex; align-items: flex-start; justify-content: center;
  transition: padding .3s ease;
}
.preview-frame-wrap.mobile { padding: 16px; }
.preview-frame { width: 100%; height: 100%; border: none; transition: width .35s var(--ease-out), box-shadow .35s; }
.preview-frame-wrap.mobile .preview-frame {
  width: 390px; max-height: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
  background: var(--orange); color: var(--white);
  flex-shrink: 0;
  max-height: 300px;
  overflow: hidden;
  transition: max-height .55s var(--ease-out), opacity .4s ease;
  opacity: 1;
}
.cta-section--collapsed {
  max-height: 0;
  opacity: 0;
}
.cta-section__content {
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cta-section__badge { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #ffcebe; margin-bottom: 4px; }
.cta-section__title { font-family: 'Miriam Libre', serif; font-size: 1.25rem; margin-bottom: 3px; }
.cta-section__sub { font-size: .82rem; color: #fff; margin-bottom: 6px; }
.cta-section__ip { font-size: .72rem; color: #ffcebe; line-height: 1.5; max-width: 420px; }
.cta-section__actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn--cta-primary { background: var(--white); color: var(--orange); font-weight: 700; border-radius: var(--radius-sm); }
.btn--cta-primary:hover { background: var(--orange-light); transform: translateY(-2px); text-decoration: none; }
.btn--cta-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); font-weight: 400; border-radius: var(--radius-sm); }
.btn--cta-ghost:hover { border-color: var(--white); text-decoration: none; }

.cta-pull {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 8px 28px;
  cursor: pointer;
  width: 100%;
  font-family: 'Fira Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  transition: background .15s;
}
.cta-pull:hover { background: var(--orange-dark); }

/* ── Footer ──────────────────────────────────────── */
.footer { background: var(--footer-bg); color: #fff; padding: 14px 0; font-size: .78rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: #fff; transition: color .15s; }
.footer a:hover { color: var(--white); text-decoration: none; }
.footer__links { display: flex; gap: 20px; }
.preview-footer { flex-shrink: 0; }

/* ── Cookie bar ──────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--text); color: #fff;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; font-size: .82rem; z-index: 1000;
  animation: stepIn .4s var(--ease-out);
  flex-wrap: wrap;
}
.cookie-bar a { color: #d4d4d4; text-decoration: underline; }
.cookie-bar a:hover { color: var(--white); }
.cookie-bar__close {
  background: var(--white); color: var(--text); border: none;
  padding: 7px 20px; border-radius: var(--radius-sm);
  font-family: 'Fira Sans', sans-serif; font-size: .8rem; font-weight: 600;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
  letter-spacing: .04em; text-transform: uppercase;
}
.cookie-bar__close:hover { background: var(--orange-light); }

/* ── Toast ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: .85rem; z-index: 9999; animation: stepIn .3s var(--ease-out);
  white-space: nowrap;
}
.toast--error   { background: #c0392b; color: var(--white); }
.toast--success { background: var(--text); color: var(--white); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 680px) {
  .header__logo { height: 56px; }
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .how__grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 28px 20px; }
  .loading-stages { flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
  .loading-stage__connector { display: none; }
  .loading-stage__icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .loading-stage__label { display: none; }
  .modal { padding: 32px 24px 28px; }
  .cta-section { flex-direction: column; text-align: center; }
  .cta-section__actions { flex-direction: column; width: 100%; }
  .preview-bar { gap: 8px; }
  .preview-url { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Loading headline ────────────────────────────── */
.loading__headline {
  font-family: 'Miriam Libre', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 36px;
}

/* ── Code preview ────────────────────────────────── */
.code-preview {
  background: #1e1e2e;
  border-radius: var(--radius);
  margin: 28px auto 0;
  max-width: 520px;
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-preview__bar {
  background: #2a2a3d;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.cp-dot--r { background: #ff5f57; }
.cp-dot--y { background: #febc2e; }
.cp-dot--g { background: #28c840; }
.code-preview__title {
  margin-left: 8px;
  font-family: 'Courier New', monospace;
  font-size: .72rem;
  color: #6e6c8e;
}
.code-preview__body {
  padding: 16px 20px;
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  line-height: 1.9;
  color: #cdd6f4;
  white-space: pre;
}
@keyframes cpLineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cp-line { opacity: 0; animation: cpLineIn 0.25s ease forwards; }
.cp-l1  { animation-delay: 0.4s; }
.cp-l2  { animation-delay: 0.75s; }
.cp-l3  { animation-delay: 1.1s; }
.cp-l4  { animation-delay: 1.5s; }
.cp-l5  { animation-delay: 1.85s; }
.cp-l6  { animation-delay: 2.15s; }
.cp-l7  { animation-delay: 2.45s; }
.cp-l8  { animation-delay: 2.75s; }
.cp-l9  { animation-delay: 3.0s; }
.cp-l10 { animation-delay: 3.3s; }
.cp-tag  { color: #89b4fa; }
.cp-attr { color: #cba6f7; }
.cp-str  { color: #a6e3a1; }
.cp-text { color: #cdd6f4; }
.cp-cursor {
  display: inline-block; color: var(--orange);
  animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}

/* ── CTA minimize button ─────────────────────────── */
.cta-section__content { position: relative; }
.cta-section__minimize {
  position: absolute;
  top: 10px; right: 12px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.cta-section__minimize:hover { background: rgba(255,255,255,.3); }

/* ── Gallery ─────────────────────────────────────────── */
.gallery { padding: 60px 0; background: var(--white); border-top: 1px solid var(--border); }
.gallery__header { text-align: center; margin-bottom: 40px; }
.gallery__header h2 { font-size: 1.6rem; margin-bottom: 10px; }
.gallery__header p { color: var(--text-light); font-size: .93rem; max-width: 520px; margin: 0 auto; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform .2s var(--ease-bounce), box-shadow .2s;
}
.gallery-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.gallery-tile__preview {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
  pointer-events: none;
}
.gallery-tile__frame {
  width: 1200px;
  height: 720px;
  border: none;
  transform: scale(0.245);
  transform-origin: top left;
  pointer-events: none;
}
.gallery-tile__meta {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  border-top: 1px solid var(--border);
}
.gallery-tile__icon { font-size: 1.1rem; flex-shrink: 0; }
.gallery-tile__name { flex: 1; font-weight: 600; color: var(--text); }
.gallery-tile__rating { color: #f59e0b; letter-spacing: 1px; }

/* ── Countdown ───────────────────────────────────────── */
.preview-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  background: var(--orange-light);
  color: var(--orange-dark);
  padding: 5px 10px;
  border: 1px solid rgba(255,89,18,.2);
  border-radius: var(--radius-sm);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Rating bar ──────────────────────────────────────── */
.rating-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
  font-size: .85rem;
}
.rating-bar--thanks { color: var(--text-light); }
.rating-bar__label { color: var(--text-light); }
.rating-stars { display: flex; gap: 2px; }
.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color .12s, transform .12s;
}
.star-btn:hover { color: #f59e0b; transform: scale(1.25); }

/* ── CTA email form ──────────────────────────────────── */
.cta-section__email {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cta-email-input {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-family: 'Fira Sans', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.cta-email-input::placeholder { color: rgba(255,255,255,.55); }
.cta-email-input:focus { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.22); }
.cta-email-btn { padding: 9px 18px; font-size: .88rem; }
.cta-email-btn:disabled { opacity: .5; cursor: not-allowed; }
.cta-section__email-sent { font-size: .83rem; color: #fff; margin-top: 8px; }

/* ── Gallery responsive ──────────────────────────────── */
@media (max-width: 680px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery-tile__preview { height: 160px; }
  .gallery-tile__frame { width: 900px; height: 540px; transform: scale(0.244); }
  .rating-bar { padding: 12px 20px; }
  .preview-countdown { font-size: .7rem; }
}

[x-cloak] { display: none !important; }
