:root {
  --ink: #28121f;
  --muted: #765f6d;
  --plum: #68144f;
  --plum-dark: #300a25;
  --gold: #bd8431;
  --paper: #fffaf8;
  --line: rgba(76, 32, 61, .14);
  --glass: rgba(255, 255, 255, .72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbf5f7;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background:
  radial-gradient(circle at 85% 8%, rgba(225, 171, 205, .36), transparent 31rem),
  radial-gradient(circle at 8% 42%, rgba(247, 211, 166, .28), transparent 28rem),
  #fbf5f7; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { min-height: 76px; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,250,248,.78); backdrop-filter: blur(22px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: white; font: 28px Georgia, serif; background: linear-gradient(145deg, #7a245f, #2c0923); box-shadow: 0 12px 28px rgba(65,8,48,.25); }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.preview-badge { padding: 8px 12px; border-radius: 999px; background: #f5e8ef; color: var(--plum); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.video-nav { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); }
.video-nav a { padding: 8px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 800; }
.video-nav a[aria-current="page"] { color: white; background: var(--plum); }
main { max-width: 1480px; margin: auto; padding: 0 clamp(18px, 4vw, 56px) 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; padding: clamp(48px, 8vw, 100px) 0 42px; }
.hero > * { min-width: 0; }
.eyebrow { margin: 0 0 10px; color: #9b641b; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(42px, 6vw, 82px); line-height: .98; }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.offer-line { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1.1rem; }
.offer-line strong, .offer-line span { backdrop-filter: blur(18px); background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.82); border-radius: 999px; box-shadow: 0 10px 30px rgba(43,11,33,.08); padding: .58rem .9rem; }
.offer-line span { color: var(--muted); }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: #9c8995; font-size: 12px; font-weight: 800; border-radius: 999px; }
.steps li span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 50%; }
.steps .active { color: white; background: var(--plum); }
.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); gap: clamp(24px, 4vw, 58px); align-items: start; }
.controls { min-width: 0; }
.section-heading h2, .form-heading h2 { margin-bottom: 10px; font-size: clamp(32px, 4vw, 52px); }
.section-heading > p:last-child { color: var(--muted); }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0 48px; }
.template-card { position: relative; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 14px; min-height: 110px; padding: 12px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; background: var(--glass); box-shadow: 0 9px 26px rgba(62,24,47,.06); transition: transform .2s, border-color .2s, box-shadow .2s; }
.template-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(62,24,47,.1); }
.template-card.selected { border: 2px solid var(--plum); padding: 11px; background: #fff; }
.template-art { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4/5; width: 74px; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--a), var(--b)); }
.template-art i, .template-art b { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: var(--c); opacity: .38; filter: blur(1px); }
.template-art i { top: -18px; right: -16px; }
.template-art b { bottom: -23px; left: -10px; }
.template-art em { font: normal 25px Georgia, serif; z-index: 1; }
.template-copy strong, .template-copy small { display: block; }
.template-copy strong { margin-bottom: 7px; font-size: 15px; }
.template-copy small { color: var(--muted); line-height: 1.35; }
.checkmark { display: none; position: absolute; top: 9px; right: 9px; width: 23px; height: 23px; border-radius: 50%; place-items: center; color: white; background: var(--plum); font-size: 12px; }
.selected .checkmark { display: grid; }
form { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.8); box-shadow: 0 28px 60px rgba(61,21,45,.08); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 17px; font-size: 13px; font-weight: 800; }
input, textarea { width: 100%; margin-top: 8px; padding: 15px 16px; color: var(--ink); border: 1px solid #d9c9d2; border-radius: 14px; background: #fff; outline: none; }
input:focus, textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 4px rgba(104,20,79,.09); }
textarea { resize: vertical; line-height: 1.45; }
.field-help, .upload-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 500; }
.upload-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px dashed #ba97ac; border-radius: 17px; background: #fff9fc; cursor: pointer; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; background: var(--plum); font-size: 25px; }
.upload-status { color: var(--plum); font-size: 12px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 600; line-height: 1.4; }
.consent-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--plum); }
.errors { margin: 13px 0; padding: 13px 15px; color: #8e172f; border-radius: 12px; background: #fff0f2; font-size: 13px; line-height: 1.5; }
.primary-button, .secondary-button { width: 100%; border: 0; border-radius: 16px; font-weight: 900; }
.primary-button { display: flex; justify-content: space-between; padding: 17px 20px; color: white; background: linear-gradient(110deg, var(--plum), #3d0c30); box-shadow: 0 15px 32px rgba(82,14,61,.22); }
.privacy-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.5; }
.preview-panel { position: sticky; top: 102px; }
.phone-shell { max-width: 520px; margin: 0 auto; padding: 9px; border-radius: 38px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 36px 80px rgba(57,12,43,.19); backdrop-filter: blur(22px); }
.video-canvas { --a: #2b0b21; --b: #a66b91; --c: #f8e8d7; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 9/16; padding: clamp(28px, 5vw, 48px); color: white; border-radius: 31px; background: linear-gradient(155deg, var(--a), var(--b)); isolation: isolate; }
.video-canvas::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 34%, rgba(20,4,15,.76)); }
.light-orb { position: absolute; border-radius: 50%; background: var(--c); opacity: .52; filter: blur(4px); z-index: -2; animation: drift 8s ease-in-out infinite alternate; }
.orb-one { width: 270px; height: 270px; top: -70px; right: -80px; }
.orb-two { width: 170px; height: 170px; top: 30%; left: -70px; animation-delay: -2s; }
@keyframes drift { to { transform: translate(24px, 35px) scale(1.12); } }
.photo-preview { position: absolute; top: 11%; left: 50%; translate: -50% 0; display: grid; place-items: center; overflow: hidden; width: 58%; aspect-ratio: 1; border-radius: 50%; border: 8px solid rgba(255,255,255,.25); background: rgba(255,255,255,.16); box-shadow: 0 22px 60px rgba(0,0,0,.22); }
.photo-preview span { font: 86px Georgia, serif; opacity: .75; }
.photo-preview.has-photo { background-size: cover; background-position: center; }
.photo-preview.has-photo span { display: none; }
.canvas-copy { position: relative; z-index: 1; }
.canvas-copy > p:first-child { margin-bottom: 10px; font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.canvas-copy h2 { margin-bottom: 14px; font-size: clamp(40px, 5vw, 58px); line-height: .95; }
#canvas-message { max-width: 38ch; line-height: 1.5; opacity: .9; }
#canvas-sender { font-size: 13px; }
.play-control { position: absolute; top: 18px; left: 18px; z-index: 3; display: flex; gap: 8px; align-items: center; padding: 8px 10px; color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(20,4,15,.58); backdrop-filter: blur(12px); font-size: 10px; font-weight: 800; }
.play-control span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--plum-dark); background: white; font-size: 8px; }
.preview-watermark { position: absolute; z-index: 4; inset: 50% auto auto 50%; translate: -50% -50%; rotate: -22deg; padding: 8px 13px; color: rgba(255,255,255,.72); border: 2px solid rgba(255,255,255,.5); border-radius: 8px; font-size: clamp(14px,2vw,19px); font-weight: 900; letter-spacing: .13em; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,.32); pointer-events: none; }
.preview-progress { position: absolute; z-index: 4; right: 20px; bottom: 16px; left: 20px; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.26); }
.preview-progress i { display: block; width: 0; height: 100%; background: white; }
.video-canvas.is-playing .photo-preview { animation: preview-photo 16s ease-in-out both; }
.video-canvas.is-playing .canvas-copy { animation: preview-copy 16s ease-in-out both; }
@keyframes preview-photo { 0% { opacity: 0; scale: .86; } 12%,70% { opacity: 1; scale: 1; } 88%,100% { opacity: .28; scale: 1.08; } }
@keyframes preview-copy { 0%,20% { opacity: 0; translate: 0 18px; } 34%,88% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.preview-caption { display: flex; justify-content: space-between; align-items: center; max-width: 520px; margin: 14px auto 0; color: var(--muted); font-size: 12px; }
.preview-caption div { display: flex; gap: 7px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #24a16c; box-shadow: 0 0 0 4px rgba(36,161,108,.12); }
.edit-panel { max-width: 520px; margin: 20px auto 0; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.8); box-shadow: 0 18px 40px rgba(61,21,45,.08); }
.edit-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.edit-heading h3 { margin-bottom: 16px; font-size: 25px; }
.edit-heading > span { white-space: nowrap; padding: 6px 9px; border-radius: 999px; color: var(--plum); background: #f5e8ef; font-size: 11px; font-weight: 800; }
.edit-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.edit-actions button { padding: 8px 10px; color: var(--plum); border: 1px solid #dcbfd0; border-radius: 999px; background: white; font-size: 11px; font-weight: 800; }
.compact-label { font-size: 11px; }
.compact-label textarea { margin-top: 6px; padding: 11px; }
.secondary-button { padding: 13px; color: var(--plum); border: 1px solid var(--plum); background: white; }
.version-history { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.version-history button { padding: 7px 9px; border: 0; border-radius: 9px; color: var(--muted); background: #f5edf2; font-size: 10px; }
.version-history button.active { color: white; background: var(--plum); }
.writing-help { margin: -5px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff9fc; }
.writing-help > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.writing-help span, .version-feedback { color: var(--muted); font-size: 11px; }
.suggestion-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.suggestion-options button, .text-button { padding: 8px 10px; color: var(--plum); border: 1px solid #dcbfd0; border-radius: 999px; background: white; font-size: 11px; font-weight: 800; }
.text-button { margin-top: 9px; }
.version-feedback { min-height: 1.3em; margin: 8px 0 0; }
.approval-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.approval-card h3 { margin-bottom: 8px; font-size: 23px; }
.approval-card > p:not(.eyebrow), .checkout-gate p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-gate { margin-top: 12px; padding: 14px; border-radius: 14px; background: #f7eff4; }
.checkout-gate button { width: 100%; padding: 13px; color: #8e7b87; border: 0; border-radius: 12px; background: #ded4da; font-weight: 900; cursor: not-allowed; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .studio { grid-template-columns: 1fr; }
  .preview-panel { position: static; order: -1; }
  .phone-shell { max-width: 390px; }
}
@media (max-width: 560px) {
  .topbar { min-height: 66px; padding: 10px 14px; }
  .brand-mark { width: 42px; height: 42px; }
  .preview-badge { font-size: 10px; }
  .video-nav { display: none; }
  main { padding-inline: 14px; }
  .hero { padding-top: 38px; }
  h1 { font-size: 44px; }
  .steps { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .steps li { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 7px 6px; }
  .template-grid { grid-template-columns: 1fr; margin-bottom: 30px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .upload-card { grid-template-columns: auto 1fr; }
  .upload-status { grid-column: 2; }
  form { padding: 20px 16px; border-radius: 24px; }
  .phone-shell { max-width: 350px; }
  .video-canvas { padding: 30px; }
  .canvas-copy h2 { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
