/* v7.4 draft: whole viewer restyled after closerprints.com (theme.css :root palette, Playfair Display 500 headings,
   Instrument Sans body, forest pill buttons, gold accents). Social row + "Make your own card" added. */
:root {
  --cream: #F7F4EC; --cream-2: #EFEADC; --forest: #1F3A2E; --forest-deep: #16281F; --gold: #C1A270; --sage: #7C8B7E; --charcoal: #22301F;
  --line: rgba(31,58,46,.14); --cc-gold: #C1A270;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@font-face { font-family: "Playfair Display"; src: url(fonts/PlayfairDisplay.woff) format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/PlayfairDisplay-Italic.woff) format("woff"); font-style: italic; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/InstrumentSans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--cream); color: var(--charcoal); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

#stage { position: fixed; inset: 0; background: #000; overflow: hidden; }
#stage video, #stage canvas { object-fit: cover; }

.screen { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); text-align: center; overflow-y: auto; }

/* welcome + message */
.cc-screen { justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 22px max(14px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 55% at 50% 32%, rgba(193,162,112,.15), transparent 62%), var(--cream); }
.cc-head { width: 100%; display: flex; justify-content: center; padding: 14px 0 0; flex: none; }
.cc-logo { display: inline-flex; align-items: center; gap: 10px; }
.cc-logo img { display: block; width: 34px; height: 25px; }
.cc-logo__word { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--forest); line-height: 1; }
.cc-body { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; margin: auto 0; padding: 18px 0 10px; }
.cc-title { font-family: var(--serif); font-weight: 500; color: var(--forest); font-size: clamp(30px, 8.6vw, 40px); line-height: 1.08;
  letter-spacing: -.01em; margin: 0 0 14px; max-width: 360px; }
.cc-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.cc-lead { font-size: 16.5px; line-height: 1.5; color: var(--sage); margin: 0; max-width: 330px; }
#msg-body { margin-bottom: 26px; }
.cc-lead b { color: var(--forest); font-weight: 600; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 28px; text-align: left; font-size: 15.5px; color: var(--charcoal); }
.steps li { counter-increment: s; margin: 10px 0; display: flex; align-items: center; gap: 12px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--forest);
  background: rgba(255,255,255,.45); font-family: var(--serif); font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex: none; }
.btn { appearance: none; border: 0; border-radius: 999px; background: var(--forest); color: var(--cream); font: 500 16.5px/1.2 var(--sans);
  padding: 17px 34px; min-width: 250px; box-shadow: 0 12px 28px -14px rgba(31,58,46,.45); transition: transform .2s ease, opacity .2s ease; cursor: pointer; }
.btn:active { transform: translateY(1px); background: var(--forest-deep); }
.btn:disabled { background: #B9BDB2; color: var(--cream); box-shadow: none; }
.link { appearance: none; background: none; border: 0; color: var(--forest); font: 500 14.5px var(--sans); text-decoration: underline;
  text-decoration-color: rgba(31,58,46,.35); text-underline-offset: 4px; margin-top: 14px; padding: 8px; cursor: pointer; }
.link.light { color: #fff; text-decoration-color: rgba(255,255,255,.6); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hint { font-size: 13px; color: var(--sage); margin-top: 12px; max-width: 320px; }

/* footer: social row (kept small so "Tap to start" stays the main action) */
.cc-foot { width: 100%; max-width: 420px; flex: none; border-top: 1px solid var(--line); padding-top: 14px; }
.cc-foot__cap { margin: 0 0 10px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.cc-social { display: flex; justify-content: center; align-items: center; gap: 10px; }
.cc-social__btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--forest); background: rgba(255,255,255,.35);
  font: 500 13.5px/1 var(--sans); }
.cc-social__btn svg { width: 19px; height: 19px; display: block; }
.cc-social__site { padding: 0 16px; }
.cc-social__btn:active { background: var(--cream-2); }

/* scanning */
.overlay { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.overlay .link { pointer-events: auto; position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); }
.scan-frame { position: relative; width: min(62vw, 300px); aspect-ratio: 5 / 7; animation: breathe 2.4s ease-in-out infinite; }
.scan-frame span { position: absolute; width: 34px; height: 34px; border: 4px solid var(--cream); filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.scan-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.scan-frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.scan-frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.scan-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.scan-text { margin-top: 22px; background: rgba(22,40,31,.78); color: var(--cream); font: 500 15.5px var(--sans); padding: 10px 18px; border-radius: 999px; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .95 } 50% { transform: scale(1.03); opacity: .7 } }
.cc-make-pill { pointer-events: auto; position: fixed; z-index: 6; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 52px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: rgba(247,244,236,.94); color: var(--forest); border-radius: 999px; padding: 11px 20px;
  font: 500 14.5px/1 var(--sans); box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: cc-in .5s ease both; }
@keyframes cc-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.pill { position: fixed; z-index: 6; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  border: 0; border-radius: 999px; background: var(--cream); color: var(--forest); font: 500 15px var(--sans); padding: 10px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* plain player */
.dark { background: var(--forest-deep); }
#player-video { width: 100%; max-height: 72vh; max-width: 600px; background: #000; border-radius: 12px; }
.cc-end { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; width: 100%; max-width: 340px; animation: cc-fade .5s ease both; }
.cc-end__line { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--cream); }
.cc-btn-light { background: var(--cream) !important; color: var(--forest) !important; }
.cc-end .cc-social__btn { color: var(--cream); border-color: rgba(247,244,236,.22); background: transparent; }
@keyframes cc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* v7.3: "something special is on its way" screen. Styled after closerprints.com
   (cream / forest / gold, Playfair Display headings, Instrument Sans body, pill buttons). Scoped to .cc-soon only. */
.cc-soon { --cc-cream: #F7F4EC; --cc-cream-2: #EFEADC; --cc-forest: #1F3A2E; --cc-gold: #C1A270; --cc-sage: #7C8B7E; --cc-charcoal: #22301F;
  --cc-line: rgba(31,58,46,.14);
  background: radial-gradient(120% 60% at 50% 30%, rgba(193,162,112,.16), transparent 62%), var(--cc-cream);
  color: var(--cc-charcoal); font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  justify-content: flex-start; padding: max(12px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom)); }
.cc-soon__head { width: 100%; display: flex; justify-content: center; padding: 12px 0 0; }
.cc-logo { display: inline-flex; align-items: center; gap: 8px; }
.cc-logo img { display: block; width: 32px; height: 24px; }
.cc-logo__word { font-family: "Playfair Display", Georgia, serif; font-size: 18px; font-weight: 500; color: var(--cc-forest); line-height: 1; }
.cc-soon__body { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; margin: auto 0; padding: 24px 0 8px; }
.cc-soon__art { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; margin: 0 0 24px;
  border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FBF9F3, var(--cc-cream-2)); box-shadow: inset 0 0 0 1px rgba(193,162,112,.35), 0 18px 40px -26px rgba(31,58,46,.35); }
.cc-soon__glow { position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193,162,112,.34), rgba(193,162,112,0) 68%); animation: cc-glow 3.4s ease-in-out infinite; }
.cc-soon__env { position: relative; width: 92px; height: 68px; filter: drop-shadow(0 14px 18px rgba(31,58,46,.22)); animation: cc-float 3.4s ease-in-out infinite; }
.cc-soon__sparkle { position: absolute; fill: var(--cc-gold); animation: cc-twinkle 2.8s ease-in-out infinite; }
.cc-soon__sparkle.s1 { width: 16px; top: 10px; right: 4px; }
.cc-soon__sparkle.s2 { width: 10px; top: 40px; left: -4px; animation-delay: .9s; }
.cc-soon__sparkle.s3 { width: 12px; bottom: 6px; right: 14px; animation-delay: 1.7s; }
@keyframes cc-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes cc-glow { 0%,100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes cc-twinkle { 0%,100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cc-soon__glow, .cc-soon__env, .cc-soon__sparkle { animation: none; } }
.cc-eyebrow { display: block; font-family: "Instrument Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cc-gold); margin: 0 0 14px; }
.cc-soon__title { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1.05; letter-spacing: -.01em;
  color: var(--cc-forest); margin: 0 0 18px; max-width: 340px; }
.cc-soon__title em { font-style: italic; font-weight: 400; color: var(--cc-gold); white-space: nowrap; }
.cc-soon__sub { font-size: 16px; line-height: 1.55; color: var(--cc-sage); margin: 0; max-width: 330px; }
.cc-soon__sub b { font-weight: 600; color: var(--cc-forest); }
.cc-rule { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.cc-rule span { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--cc-gold)); }
.cc-rule span:last-child { background: linear-gradient(90deg, var(--cc-gold), transparent); }
.cc-rule svg { width: 13px; height: 12px; fill: var(--cc-gold); }
.cc-soon__tip { font-size: 14.5px; line-height: 1.55; color: var(--cc-sage); margin: 0; max-width: 310px; }
.cc-soon__foot { width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: 28px; }
.cc-btn-primary { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--cc-forest); color: var(--cc-cream); border: none; border-radius: 999px; padding: 17px 34px;
  font: 500 15.5px/1.2 "Instrument Sans", sans-serif; letter-spacing: normal; text-transform: none;
  box-shadow: 0 12px 28px -14px rgba(31,58,46,.45); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; cursor: pointer; }
.cc-btn-primary:active { transform: translateY(1px); }
.cc-btn-primary:disabled { opacity: .6; box-shadow: none; }
.cc-soon__status { min-height: 1.4em; font-size: 13.5px; color: var(--cc-sage); margin: 14px 0 0; }
.cc-soon__status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cc-gold);
  margin: 0 8px 1px 0; vertical-align: middle; animation: cc-twinkle 2.4s ease-in-out infinite; }

/* v7.4: welcome/message logo slightly larger than the "on its way" screen's */
.cc-head .cc-logo img { width: 34px; height: 25px; }
.cc-head .cc-logo__word { font-size: 20px; }
.cc-screen .cc-rule { margin: 20px 0 16px; }
@media (max-height: 700px) { .steps { margin-bottom: 20px; } .steps li { margin: 7px 0; } .cc-rule { margin: 16px 0 12px; } }

/* v7.5: larger text for phone readability (Yarin, Oct 30). Sizes only; copy, colours, fonts, logo and layout unchanged. */
.cc-head .cc-logo img { width: 40px; height: 29px; }
.cc-head .cc-logo__word { font-size: 23px; }
.cc-title { font-size: clamp(35px, 9.8vw, 46px); max-width: 380px; margin-bottom: 16px; }
#welcome-title em { display: block; } /* keep v7.4's line break: "Someone sent you a / little more love" */
.cc-lead { font-size: clamp(18px, 5.1vw, 19.5px); max-width: 350px; text-wrap: balance; }
.steps { font-size: 18.5px; }
.steps li { gap: 13px; }
.steps li::before { width: 30px; height: 30px; font-size: 16px; }
.btn { font-size: 19.5px; padding: 18px 34px; min-width: 270px; min-height: 58px; }
.link { font-size: clamp(16px, 4.5vw, 17px); min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; margin-top: 10px; }
.hint { font-size: 15.5px; max-width: 340px; line-height: 1.4; }
.cc-foot { padding-top: 14px; }
.cc-foot__cap { font-size: 13px; margin-bottom: 10px; }
.cc-social { gap: 12px; }
.cc-social__btn { height: 48px; min-width: 48px; font-size: 16.5px; padding: 0 12px; }
.cc-social__btn svg { width: 23px; height: 23px; }
.cc-social__site { padding: 0 20px; }
.scan-text { font-size: 18.5px; padding: 12px 22px; max-width: calc(100vw - 32px); }
.cc-make-pill { font-size: 17.5px; padding: 15px 24px; min-height: 48px; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 58px); }
.pill { font-size: 17.5px; padding: 13px 22px; min-height: 48px; }
.cc-end__line { font-size: clamp(20px, 5.8vw, 23px); text-wrap: balance; }
.cc-btn-primary { font-size: 18.5px; padding: 18px 34px; min-height: 56px; }
.cc-soon__head .cc-logo img { width: 38px; height: 28px; }
.cc-soon__head .cc-logo__word { font-size: 21.5px; }
.cc-eyebrow { font-size: 14px; }
.cc-soon__title { font-size: 39px; max-width: 360px; }
.cc-soon__sub { font-size: 19px; max-width: 350px; }
.cc-soon__tip { font-size: 17px; max-width: 330px; }
.cc-soon__status { font-size: 15.5px; }
@media (max-height: 700px) {
  .cc-title { font-size: clamp(33px, 9.4vw, 44px); margin-bottom: 12px; }
  .cc-body { padding: 10px 0 6px; }
  .cc-screen .cc-rule { margin: 12px 0 10px; }
  .steps { margin-bottom: 16px; } .steps li { margin: 6px 0; }
  .cc-head { padding-top: 8px; }
  .cc-foot { padding-top: 10px; } .cc-foot__cap { margin-bottom: 8px; }
  #player-video { max-height: 62vh; } .cc-end { margin-top: 12px; gap: 10px; } #player-close { margin-top: 6px; }
  .cc-soon__art { width: 112px; height: 112px; margin-bottom: 14px; } .cc-soon__env { width: 74px; height: 55px; }
  .cc-soon__body { padding: 14px 0 4px; } .cc-eyebrow { margin-bottom: 10px; } .cc-soon__title { font-size: 36px; margin-bottom: 14px; }
  .cc-soon .cc-rule { margin: 14px 0 12px; } .cc-soon__foot { margin-top: 18px; }
}
