/* ── RESTAURANTS LANDING - page-scoped extensions of styles.css ───────── */

.reels-eyebrow{background:var(--accent-soft);border-bottom:1px solid rgba(75,123,245,0.15);padding:12px 24px;text-align:center}
.reels-eyebrow__text{font-size:1rem;font-weight:700;color:var(--accent-dark);letter-spacing:-0.01em;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.reels-eyebrow__badge{background:transparent;color:var(--accent-dark);font-size:0.65rem;font-weight:700;padding:2px 6px;border:1px solid var(--accent-dark);border-radius:100px;text-transform:uppercase;letter-spacing:0.06em}
.reels-eyebrow__tick{color:var(--accent);font-size:1.1rem;line-height:1}
@media(max-width:768px){
  .reels-eyebrow{padding:16px 16px}
  .reels-eyebrow__text{font-size:1.05rem;display:block;line-height:1.4}
  .reels-eyebrow__badge{display:block;width:fit-content;margin:0 auto 8px;font-size:0.68rem;padding:4px 12px}
}

.reels-hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.reels-hero-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:var(--surface-card);border:1px solid var(--border);border-radius:100px;font-size:0.78rem;font-weight:600;color:var(--ink-muted)}
.reels-hero-badge svg{width:14px;height:14px;color:var(--accent-dark)}
@media(max-width:768px){.reels-hero-badges{justify-content:center}}

/* Hero before/after carousel - photo-in → reel-out, 3 examples on rotation */
.hero__bafr{display:flex;flex-direction:column;gap:18px;width:100%;max-width:420px;margin:0 auto}
.hero__bafr-stage{position:relative;width:100%;aspect-ratio:18 / 16}
.hero__bafr-pair{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;opacity:0;transform:scale(0.985);transition:opacity 0.55s ease,transform 0.55s ease;pointer-events:none}
.hero__bafr-pair.is-active{opacity:1;transform:scale(1);pointer-events:auto}
.hero__bafr-card{aspect-ratio:9/16;border-radius:18px;overflow:hidden;background:#000;box-shadow:var(--shadow-xl)}
.hero__bafr-card img,.hero__bafr-card video{width:100%;height:100%;object-fit:cover;display:block}
.hero__bafr-meta{display:flex;flex-direction:column;align-items:center;gap:6px}
.hero__bafr-labels{display:flex;gap:18px;align-items:center;font-size:0.72rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--ink-muted)}
.hero__bafr-arrow{color:var(--accent-dark);font-size:1rem;font-weight:400;letter-spacing:0}
.hero__bafr-sector{font-size:0.95rem;color:var(--ink);font-weight:500;font-family:var(--font-display);font-style:italic}
.hero__bafr-dots{display:flex;gap:8px;margin-top:6px}
/* The visible dot stays 8px via a ::before, but the button itself is 24×24
   so the tap target meets WCAG 2.5.8 / Lighthouse target-size minimums. */
.hero__bafr-dot{width:24px;height:24px;background:transparent;border:none;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative}
.hero__bafr-dot::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--border);transition:background 0.2s,transform 0.2s}
.hero__bafr-dot:hover::before{background:var(--ink-muted)}
.hero__bafr-dot.is-active::before{background:var(--accent-dark);transform:scale(1.25)}
@media(max-width:768px){
  .hero__bafr{max-width:340px}
  .hero__bafr-card{border-radius:14px}
}

/* ── DEMO ─────────────────────────────────────────────────────────────── */
.demo{padding:48px 0;background:linear-gradient(180deg,var(--surface) 0%,var(--surface-warm) 100%);position:relative;overflow:hidden}
@media(min-width:768px){.demo{padding:64px 0}}
.demo::before{content:'';position:absolute;top:-200px;left:-200px;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,var(--accent-glow) 0%,transparent 70%);pointer-events:none}
.demo__header{text-align:center;margin-bottom:24px;position:relative;z-index:1}
.demo__sub{font-size:1rem;color:var(--ink-muted);max-width:640px;margin:6px auto 0;line-height:1.5}

.demo__card{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:var(--radius-xl);padding:0;box-shadow:var(--shadow-md);position:relative;z-index:1}
@media(max-width:600px){.demo__card{border-radius:var(--radius-lg)}}

/* Tab nav - duplicated at the top AND bottom of the card so navigation
   is always within reach, no matter how far the user has scrolled. */
.demo__tabs{display:flex;border-bottom:1px solid var(--border);background:var(--surface);border-radius:var(--radius-xl) var(--radius-xl) 0 0;overflow:hidden}
.demo__tabs--bottom{border-bottom:none;border-top:1px solid var(--border)}
.demo__tab{flex:1;padding:18px 12px;background:none;border:none;font-family:inherit;font-size:0.95rem;font-weight:600;color:var(--ink-muted);cursor:pointer;border-bottom:3px solid transparent;border-top:3px solid transparent;transition:color 0.2s,border-color 0.2s,background 0.2s;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.demo__tab:hover{color:var(--ink);background:#fff}
.demo__tab.is-active{color:var(--accent-dark);background:#fff}
.demo__tabs:not(.demo__tabs--bottom) .demo__tab.is-active{border-bottom-color:var(--accent-dark)}
.demo__tabs--bottom .demo__tab.is-active{border-top-color:var(--accent-dark)}
.demo__tab-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--border-light);color:var(--ink-muted);font-size:0.72rem;font-weight:700}
.demo__tab.is-active .demo__tab-num{background:var(--accent-dark);color:#fff}
.demo__tab-label{font-weight:600}

/* Tab panels - stacked content + prev/next nav at the bottom */
.demo__tab-panel{padding:24px 36px 64px;position:relative;height:800px}
.demo__tab-panel > .demo__brand-layout,
.demo__tab-panel > .demo__ship-content{height:100%}
/* All three panels render at the same fixed height (800px) so switching tabs
   doesn't shift the layout. Brand and Style flex to fill the available space. */
.demo__tab-panel[data-tab-panel="brand"]{display:flex;flex-direction:column;gap:12px}
.demo__tab-panel[data-tab-panel="brand"] > .demo__brand-layout{height:auto;flex:1;min-height:0}
.demo__tab-panel[data-tab-panel="brand"] .demo__brand-form{justify-content:space-between;height:100%}
.demo__tab-panel[data-tab-panel="brand"] .demo__brand-preview-side{align-self:center;justify-self:center;margin:0 auto}
.demo__tab-panel[data-tab-panel="build"]{display:flex;flex-direction:column;gap:14px}
.demo__build-clip-block--below{margin:0}
.demo__brand-preview-side--bottom{align-self:center;margin:0 auto;width:auto}
.demo__brand-preview-side--bottom .demo__build-tour-row{justify-content:center}
.demo__tab-panel > .demo__ship-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.demo__panel-nav{display:contents}
.demo__panel-nav > *:first-child{position:absolute;left:18px;bottom:14px;z-index:5}
.demo__panel-nav > *:last-child{position:absolute;right:18px;bottom:14px;z-index:5}
.demo__panel-nav > span{display:none}
@media(max-width:600px){
  .demo__tab-panel{height:auto;min-height:auto}
  /* All mobile widths: flow Back / Next as a flex row at the natural end of
     the panel content rather than absolute-positioned over the bottom
     padding. Avoids the empty-space-under-buttons artefact and gives them
     equal flex widths so they never overlap. */
  .demo__panel-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;flex-shrink:0;margin-top:auto;padding-top:8px}
  .demo__panel-nav > *:first-child,
  .demo__panel-nav > *:last-child{position:static;left:auto;right:auto;bottom:auto}
  .demo__panel-nav > span{display:none}
  .demo__panel-nav > .btn{padding:10px 14px;font-size:0.86rem;flex:1 1 0;min-width:0;text-align:center;white-space:nowrap}
  /* Tight bottom padding now that the nav flows in document order. */
  .demo__tab-panel{padding:24px 24px 24px}
  .demo__tab-panel[data-tab-panel="build"]{padding-bottom:24px}
  .demo__tab-panel[data-tab-panel="brand"]{padding-bottom:24px}
  /* Make the ship panel a flex column too, so the nav row ends up below
     the ship-content rather than getting pushed off by justify-content. */
  .demo__tab-panel[data-tab-panel="ship"]{display:flex;flex-direction:column;gap:14px}
  .demo__tab-panel[data-tab-panel="ship"] > .demo__ship-content{height:auto;justify-content:flex-start;flex:0 1 auto}
}
@media(max-width:380px){
  .demo__panel-nav > .btn{padding:9px 10px;font-size:0.78rem}
}
.demo__tab-panel[hidden]{display:none}
@media(max-width:600px){.demo__tab-panel{padding:24px 24px 90px}}
.demo__tab-nav{display:flex;justify-content:space-between;align-items:center;margin-top:32px;gap:12px}
.demo__tab-nav span{display:inline-block;width:1px}
.demo__tab-nav .btn{flex-shrink:0}
/* Inline variant - sits inside the Brand it form column at the bottom */
.demo__tab-nav--inline{margin-top:8px}
.demo__tab-nav--end{justify-content:flex-end;gap:8px}

/* First section in a panel - no top border (would be ugly under the tabs) */
.demo__tab-panel .demo__section:first-of-type{padding-top:0;margin-top:0;border-top:none}

.demo__section{margin-top:32px}
.demo__section:first-of-type{margin-top:0}
.demo__section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:14px;gap:12px;flex-wrap:wrap}
.demo__section-label{font-size:0.78rem;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:var(--ink);display:flex;align-items:center;gap:10px}
.demo__section-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;background:var(--accent-soft);color:var(--accent-dark);border-radius:50%;font-size:0.72rem;font-weight:700;letter-spacing:0}
.demo__section-hint{font-size:0.78rem;color:var(--ink-muted);font-weight:500}
.demo__section-hint.demo__hint--locked{display:inline-flex;align-items:center;gap:5px}
.demo__section-hint.demo__hint--locked svg{width:12px;height:12px;flex-shrink:0;color:var(--ink-muted)}

/* Photo in - three columns (upload | sample | pitch), each the same width
   as a Pick Your Reel tile so nothing looms larger than the Reel tiles below. */
/* Build it - Photo + Music side by side. Photo block is sized to match the
   live preview width on the right (~200px); Music fills the remaining space. */
.demo__build-photo-music-row{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:stretch}
@media(max-width:680px){.demo__build-photo-music-row{grid-template-columns:1fr}}
/* Stack title + locked badge vertically (badge on line 2) - applies to both
   photo and music blocks so the headers visually match. */
.demo__build-photo-music-row .demo__brand-block-header{flex-direction:column;align-items:flex-start;gap:4px;flex-wrap:nowrap}
.demo__build-photo-music-row .demo__brand-block-status.demo__brand-block-status--locked{margin-left:0}
.demo__build-photo-block{flex:0 0 auto;width:fit-content}
.demo__build-photo-block .demo__photo-in-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start;width:200px}
.demo__build-photo-block .demo__photo-in{aspect-ratio:9/16;flex-direction:column;padding:10px;text-align:center;gap:8px;align-items:center;justify-content:center;min-height:0;height:auto;width:100%;border-radius:8px}
.demo__build-photo-block .demo__photo-in-icon{width:36px;height:36px;flex-shrink:0}
.demo__build-photo-block .demo__photo-in-icon svg{width:18px;height:18px}
.demo__build-photo-block .demo__photo-in-title{font-size:0.82rem;line-height:1.2}
.demo__build-photo-block .demo__photo-sample{aspect-ratio:9/16;height:auto;width:100%;flex-shrink:0;border-radius:8px}
.demo__photo-pitch{display:flex;flex-direction:column;justify-content:center;gap:8px;padding:0 4px;font-size:0.82rem;color:var(--ink-muted);line-height:1.5}
.demo__photo-pitch p{margin:0;font-weight:600;color:var(--ink)}
.demo__photo-pitch ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.demo__photo-pitch li{position:relative;padding-left:14px;line-height:1.4}
.demo__photo-pitch li::before{content:'';position:absolute;left:2px;top:7px;width:6px;height:6px;border-radius:50%;background:var(--accent-dark)}
.demo__photo-sample{aspect-ratio:9/16;border-radius:var(--radius-lg);overflow:hidden;background:#000;box-shadow:var(--shadow-md)}
.demo__photo-sample img{width:100%;height:100%;object-fit:cover;display:block}
.demo__photo-in{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;aspect-ratio:9/16;padding:18px;border:2px dashed var(--border);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink-muted);font-family:inherit;cursor:pointer;opacity:0.7;transition:opacity 0.2s,transform 0.2s,border-color 0.2s,box-shadow 0.2s;text-align:center}
.demo__photo-in:hover{opacity:0.95;border-color:var(--ink-muted);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.demo__photo-in-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:11px;background:#fff;border:1.5px solid var(--border);color:var(--ink-muted)}
.demo__photo-in-icon svg{width:20px;height:20px}
.demo__photo-in-title{font-family:var(--font-display);font-size:1rem;color:var(--ink);font-weight:400;line-height:1.2}
.demo__photo-in-text{display:inline-flex;align-items:center;gap:5px;font-size:0.72rem;color:var(--ink-muted);line-height:1.3;justify-content:center}
.demo__photo-in-text svg{width:10px;height:10px;flex-shrink:0}

/* Pick your Reel - 3 columns (Hook | Story | Finale), each with arrows */
.demo__picks{display:grid;grid-template-columns:repeat(3,minmax(0,200px));gap:14px;justify-content:start}
@media(max-width:600px){.demo__picks{grid-template-columns:1fr;gap:18px}}
.demo__pick-col{display:flex;flex-direction:column;gap:8px;min-width:0}
.demo__pick-col-label{font-size:0.78rem;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--ink)}
.demo__pick-col-label span{font-weight:500;color:var(--ink-muted);letter-spacing:0;text-transform:none;margin-left:4px;font-size:0.72rem}

/* Carousel - single visible tile on top, radio option list UNDER it */
.demo__carousel{display:flex;flex-direction:column;gap:10px;min-width:0}
.demo__clips,.demo__outros{position:relative;min-width:0}
.demo__clip,.demo__outro-tile{display:none}
.demo__clip.is-selected,.demo__outro-tile.is-selected{display:block;cursor:default;min-width:0}
/* Per-tile head no longer used - labels live in the option list below */
.demo__clip-head,.demo__outro-tile-head{display:none}

/* Option list - radio + label rows, current selection highlighted */
.demo__option-list{display:flex;flex-direction:column;gap:2px}
.demo__option-list--two-col{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}
.demo__option-list--three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 12px}
@media(max-width:680px){.demo__option-list--three-col{grid-template-columns:1fr}}
.demo__option-list.is-disabled{opacity:0.4;pointer-events:none;filter:grayscale(1)}
.demo__option{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;font-size:0.82rem;color:var(--ink-muted);transition:background 0.15s,color 0.15s;line-height:1.3;user-select:none;position:relative}
label.demo__option{cursor:pointer}
label.demo__option:hover{background:var(--surface);color:var(--ink)}
.demo__option.is-selected{color:var(--ink)}
.demo__option.is-previewing{background:var(--accent-soft)}
.demo__option input{position:absolute;opacity:0;pointer-events:none}
.demo__option-toggle{display:inline-flex;align-items:center;cursor:pointer;padding:2px;margin:-2px}
.demo__option-toggle:hover .demo__option-box{border-color:var(--ink-muted)}
.demo__option-box{flex-shrink:0;width:16px;height:16px;border:1.5px solid var(--border);border-radius:4px;display:inline-flex;align-items:center;justify-content:center;background:#fff;transition:all 0.15s;color:#fff}
.demo__option-box svg{width:10px;height:10px;opacity:0;transition:opacity 0.15s}
.demo__option input:checked + .demo__option-box{background:var(--accent-dark);border-color:var(--accent-dark)}
.demo__option input:checked + .demo__option-box svg{opacity:1}
.demo__option-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.demo__build-tour-tabs-card .demo__option[role="button"]{cursor:pointer}
/* Gate the hover-underline to real-pointer devices. Touch devices keep
   :hover sticky after a tap, which then beats the strikethrough on a skipped
   clip (higher specificity wins) and leaves the row underlined-without-
   strikethrough until something else is tapped. */
@media (hover: hover) {
  .demo__build-tour-tabs-card .demo__option[role="button"]:hover .demo__option-label{text-decoration:underline;color:var(--ink)}
}
.demo__option.is-previewing .demo__option-label{color:var(--accent-dark)}
.demo__build-tour-tabs-card .demo__option[role="button"]:focus-visible{outline:2px solid var(--accent-dark);outline-offset:1px}
.demo__clip-video{aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#000}
.demo__clip-video video{width:100%;height:100%;object-fit:cover;display:block}

/* Music chips - 6-col grid on desktop so all options fit on one row */
.demo__music{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
@media(max-width:680px){.demo__music{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.demo__music{grid-template-columns:1fr}}
.demo__music-chip{display:flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;background:#fff;border:2px solid var(--border);border-radius:100px;font-family:inherit;font-size:0.72rem;color:var(--ink);font-weight:500;transition:all 0.2s;position:relative;min-width:0;overflow:hidden}
.demo__music-chip.is-selected{border-color:var(--accent-dark);background:var(--accent-soft);color:var(--accent-dark);font-weight:700}
.demo__music-chip.is-playing{border-color:var(--accent-dark)}
.demo__music-chip-play,.demo__music-chip-padlock{width:22px;height:22px;border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:none;padding:0;cursor:pointer}
.demo__music-chip-play{background:var(--accent-dark)}
.demo__music-chip-padlock{background:var(--ink-muted)}
.demo__music-chip-play:hover{background:var(--accent)}
.demo__music-chip-play svg{width:9px;height:9px;fill:#fff;display:block;color:#fff}
.demo__music-chip-play svg polyline,.demo__music-chip-play svg line{stroke:#fff}
.demo__music-chip-padlock svg{width:10px;height:10px;display:block}
.demo__music-chip-label{flex:1;min-width:0;border:none;background:none;padding:0;font:inherit;color:inherit;font-weight:inherit;text-align:left;cursor:pointer;overflow:hidden;display:flex;align-items:center;gap:6px}
.demo__music-chip-label:hover .demo__music-chip-name{text-decoration:underline}
.demo__music-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.demo__music-chip-tick{width:14px;height:14px;border:1.5px solid var(--border);border-radius:3px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#fff;color:transparent;transition:all 0.15s}
.demo__music-chip-tick svg{width:10px;height:10px;display:block}
.demo__music-chip.is-selected .demo__music-chip-tick{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.demo__music-chip-tick-only{padding:0;flex-shrink:0;flex:0 0 auto}
.demo__music-chip-input{flex:1;min-width:0;border:1px solid var(--border-light);background:#fff;font:inherit;font-size:0.7rem;color:var(--ink);padding:3px 8px;border-radius:6px;outline:none;height:22px}
.demo__music-chip-input:focus{border-color:var(--accent-dark)}
.demo__music-chip-input::placeholder{color:var(--ink-muted);opacity:0.7}

/* Handle row - base 50/50 (input + button). The --with-pic variant adds
   a leading 42px avatar (used by the Branding section). */
.demo__outro-handle-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
/* Avatar sits to the right of the Instagram button */
.demo__outro-handle-row--with-pic{grid-template-columns:1fr 64px;align-items:start;position:relative}
.demo__outro-handle-row--with-pic > .demo__inline-avatar{order:3}
@media(max-width:520px){
  .demo__outro-handle-row{grid-template-columns:1fr}
  .demo__outro-handle-row--with-pic > .btn--ig{grid-column:1 / -1;order:4}
}

/* Inline avatar with Instagram-stories style gradient ring (border = gradient, padding = white gap) */
.demo__inline-avatar{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-family:var(--font-display);font-size:1.5rem;align-self:end;border:3px solid transparent;padding:2px;background:linear-gradient(#fff,#fff) padding-box,conic-gradient(from 45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888,#f09433) border-box;box-sizing:border-box}
/* Avatar bottom-aligns with the input box; absolute-positioned so it can
   protrude UP into the title area without pushing the input down. */
.demo__outro-handle-row--with-pic > .demo__inline-avatar{position:absolute;right:0;bottom:0;align-self:auto}
.demo__inline-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
/* Mobile: switch the row to flex so the avatar sits as a real RIGHT-side
   sibling instead of an absolute overlay. The desktop overlay starts to
   visually clash with the input as the row narrows past ~520px. Declared
   AFTER the desktop absolute rule so the cascade picks this version. */
@media(max-width:680px){
  .demo__outro-handle-row--with-pic{display:flex;flex-direction:row;align-items:center;gap:10px;grid-template-columns:none}
  .demo__outro-handle-row--with-pic > .demo__outro-input-wrap{order:1;flex:1;min-width:0}
  .demo__outro-handle-row--with-pic > .demo__inline-avatar{order:2;position:static;width:52px;height:52px;flex-shrink:0;align-self:center;right:auto;bottom:auto}
}
@media(max-width:380px){
  .demo__outro-handle-row--with-pic{gap:8px}
  .demo__outro-handle-row--with-pic > .demo__inline-avatar{width:42px;height:42px}
}
.demo__outro-input-wrap{position:relative;min-width:0}
.demo__outro-input-prefix{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-weight:700;color:var(--ink-muted);pointer-events:none;font-size:0.95rem}
.demo__outro-input-wrap input{width:100%;padding:11px 14px 11px 30px;border:1px solid var(--border);border-radius:10px;font-family:inherit;font-size:0.95rem;background:#fff;color:var(--ink)}
/* Watermark input has no prefix; reset to standard padding */
.demo__watermark-panels .demo__outro-input-wrap input{padding-left:14px}
.demo__outro-input-wrap input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}
.demo__outro-input-spinner{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--accent-dark);border-radius:50%;opacity:0;transition:opacity 0.2s;animation:demoSpin 0.7s linear infinite;pointer-events:none}
.demo__outro-input-spinner.is-loading{opacity:1}
@keyframes demoSpin{to{transform:translateY(-50%) rotate(360deg)}}

/* Watermark "Fetch logo" button - paired with the website input */
.demo__outro-input-prefix--web{font-size:0.78rem;font-weight:500;color:var(--ink-muted);left:12px}
.demo__outro-input-wrap input.has-prefix-web{padding-left:60px}
.btn--watermark{background:var(--ink);color:#fff;border:none;padding:11px 16px;border-radius:10px;font-weight:600;font-size:0.88rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;transition:background 0.2s,transform 0.2s;width:100%;white-space:nowrap}
.btn--watermark:hover{background:var(--ink-light);transform:translateY(-1px)}
.btn--watermark:disabled{opacity:0.65;cursor:default;transform:none}
.btn--watermark svg{width:15px;height:15px;flex-shrink:0}

/* Watermark - thumb sits inline to the RIGHT of the input + Fetch button */
.demo__watermark-controls{display:grid;grid-template-columns:1fr 64px;gap:12px;align-items:end;position:relative}
.demo__watermark-panels{min-width:0}
.demo__watermark-controls > .demo__inline-thumb{order:2}
.demo__inline-thumb{width:64px;height:64px;border-radius:10px;background:#fff;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:8px;flex-shrink:0}
/* Lift the watermark thumb up so its top aligns with the White/Original toggle. */
.demo__watermark-controls > .demo__inline-thumb{position:absolute;right:0;bottom:0}
.demo__inline-thumb img{max-width:100%;max-height:100%;object-fit:contain;display:none}
.demo__inline-thumb.has-logo img{display:block}
.demo__inline-thumb.has-logo .demo__inline-thumb-empty{display:none}
.demo__inline-thumb-empty{font-size:1.2rem;color:var(--ink-muted);font-weight:300}

/* Watermark - same proportional rules in every preview, sized via container
   query units so it scales with whichever preview it's sitting in (not its
   wrapper). 12% of container height, capped at 60% of container width.
   The cqh/cqw units need `container-type: size` on the parent preview. */
.demo__preview{container-type:size}
.demo__outro-watermark-corner{position:absolute;top:8%;right:14%;z-index:4;opacity:0;transition:opacity 0.4s ease 0.3s;pointer-events:none}
.demo__outro-watermark-corner.has-logo{opacity:1}
.demo__outro-watermark-corner img{height:8cqh;max-width:30cqw;width:auto;display:block;object-fit:contain;filter:brightness(0) invert(1)}
.demo__outro-watermark-corner [data-outro-watermark-text]{display:none;font-family:var(--font-brand-display,var(--font-display));color:#fff;font-size:5cqh;font-weight:600;line-height:1;white-space:nowrap;letter-spacing:0.02em;text-shadow:0 1px 6px rgba(0,0,0,0.25)}
body.is-text-watermark .demo__outro-watermark-corner [data-outro-watermark-text]:not(:empty){display:block}
body.is-text-watermark .demo__outro-watermark-corner img{display:none}

/* "Use my Instagram" CTA + collapsible email-capture form */
.btn--ig{background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);color:#fff;border:none;padding:11px 16px;border-radius:10px;font-weight:600;font-size:0.88rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;transition:transform 0.2s,box-shadow 0.2s;box-shadow:0 3px 12px rgba(220,39,67,0.28);width:100%;white-space:nowrap}
.btn--ig:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(220,39,67,0.38)}
.btn--ig svg{width:16px;height:16px;fill:currentColor;flex-shrink:0}
.btn--ig:disabled{opacity:0.65;cursor:default;transform:none}
/* Header variant: compact, sits in the block header next to the title */
.btn--ig--header{width:auto;padding:5px 12px;font-size:0.78rem;border-radius:100px;box-shadow:0 2px 6px rgba(220,39,67,0.25);flex:0 0 auto}
.btn--ig--header svg{width:13px;height:13px}

.demo__ig-status{margin-top:8px;font-size:0.78rem;color:var(--ink-muted);min-height:1.1em;line-height:1.4}
.demo__ig-status.ok{color:#2e7d32;font-weight:600}
.demo__ig-status.err{color:#c0392b;font-weight:600}

.demo__ig-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;flex-wrap:wrap}
.demo__ig-status-row .demo__ig-status{margin-top:0;flex:1;min-width:0}
.demo__ig-disable{display:inline-flex;align-items:center;gap:5px;font-size:0.78rem;color:var(--ink-muted);cursor:pointer;user-select:none;flex-shrink:0}
.demo__ig-disable input{margin:0;cursor:pointer;accent-color:var(--accent-dark)}
.demo__ig-disable:hover{color:var(--ink)}


.demo__outro-text-field{display:flex;flex-direction:column;gap:5px}
.demo__outro-text-field > span{font-size:0.74rem;font-weight:600;color:var(--ink-muted);letter-spacing:0.02em}
.demo__outro-text-field > span em{font-style:normal;font-weight:400;color:var(--ink-muted);opacity:0.7}
.demo__outro-text-field input{padding:10px 12px;border:1px solid var(--border);border-radius:9px;font-family:inherit;font-size:0.88rem;background:#fff;color:var(--ink)}
.demo__outro-text-field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}

.demo__outro-effect-label{margin-top:18px;margin-bottom:8px;font-size:0.74rem;font-weight:600;color:var(--ink-muted);letter-spacing:0.02em}

/* Brand it tab - form on the left, single live preview on the right */
.demo__brand-layout{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:start}
@media(max-width:680px){.demo__brand-layout{grid-template-columns:1fr;gap:20px}}
.demo__brand-form{display:flex;flex-direction:column;gap:16px;min-width:0}
.demo__brand-block{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--surface);border:1px solid var(--border-light);border-radius:12px;min-width:0;position:relative}
/* Tighter gap on the Instagram block - input sits closer to its title */
.demo__brand-block:has(.demo__outro-handle-row--with-pic){gap:8px}
.demo__brand-block-label{font-size:0.78rem;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--ink);display:inline-flex;align-items:center;gap:6px;width:fit-content}
.demo__brand-block-icon{width:14px;height:14px;flex-shrink:0;fill:#dc2743}
.demo__brand-block-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0}
/* Indent the watermark header so White/Original aligns with the input's right edge */
.demo__brand-block:has(.demo__watermark-controls) .demo__brand-block-header{padding-right:76px}
.demo__brand-block-status{margin-left:auto;text-align:right;flex:0 1 auto;min-width:0;font-size:0.78rem;color:var(--ink-muted)}
.demo__brand-block-header .demo__watermark-tint{margin-left:auto;flex:0 0 auto}
/* Field-level status: small italic line that appears UNDER the input row.
   Empty by default (hidden) so it doesn't reserve space. */
.demo__field-status{font-size:0.78rem;color:var(--ink-muted);line-height:1.3;margin-top:2px}
.demo__field-status:empty{display:none}
.demo__field-status.ok{color:var(--accent-dark)}
.demo__field-status.err{color:#b3261e}
@media(max-width:520px){.demo__brand-block-status{text-align:left;flex-basis:100%}}
.demo__brand-block-status.demo__brand-block-status--locked{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;background:var(--surface);border:1px solid var(--border);border-radius:100px;font-size:0.7rem;text-transform:uppercase;letter-spacing:0.04em;color:var(--ink-muted);flex:0 0 auto;width:fit-content;margin-left:auto;text-align:left}
.demo__brand-block-status.demo__brand-block-status--locked svg{width:11px;height:11px}
.demo__brand-block-toggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none;width:fit-content}
.demo__brand-block-toggle input{margin:0;cursor:pointer;accent-color:var(--accent-dark);width:16px;height:16px}
.demo__brand-block-toggle:has(input:not(:checked)) > span{color:var(--ink-muted);text-decoration:line-through;text-decoration-color:var(--border)}
/* Section info icon + custom tooltip - instant on hover, dark pill above */
.demo__brand-block-info{position:relative;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:var(--ink-muted);cursor:help;flex-shrink:0;margin-left:2px}
.demo__brand-block-info svg{width:100%;height:100%}
.demo__brand-block-info:hover,.demo__brand-block-info:focus{color:var(--accent-dark);outline:none}
/* Tooltip pops BELOW the icon so it never gets clipped by the card's
   overflow:hidden when icons sit near the top of the panel. */
.demo__brand-block-info::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:8px 12px;border-radius:8px;font-size:0.76rem;font-weight:500;letter-spacing:0;text-transform:none;white-space:normal;width:max-content;max-width:260px;line-height:1.4;opacity:0;pointer-events:none;z-index:1000;box-shadow:0 6px 18px rgba(0,0,0,0.18);text-align:left}
.demo__brand-block-info::before{content:'';position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);border:6px solid transparent;border-bottom-color:var(--ink);opacity:0;pointer-events:none;z-index:1000}
.demo__brand-block-info:hover::after,.demo__brand-block-info:focus::after,
.demo__brand-block-info:hover::before,.demo__brand-block-info:focus::before{opacity:1}
.demo__brand-block:has(.demo__brand-block-toggle input:not(:checked)) > *:not(.demo__brand-block-header):not(.demo__brand-block-toggle){opacity:0.45;pointer-events:none}
.demo__brand-block-sub{margin-top:6px;display:flex;flex-direction:column;gap:6px}
.demo__brand-block-sub-label{font-size:0.72rem;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-muted)}

/* Brand it preview - single 9:16 outro card on the right */
.demo__brand-preview-side{display:flex;flex-direction:column;gap:8px;align-items:center;align-self:start;width:220px;flex-shrink:0}
/* Floating label sits ABOVE the card without pushing the card down */
.demo__brand-preview-card-wrap{position:relative;width:220px}
.demo__brand-preview-side--tour .demo__brand-preview-card-wrap{width:160px}
/* When both Text and Instagram are disabled there is no outro at all - hide
   the whole card so the user sees no preview. */
.demo__brand-preview-side.is-empty .demo__brand-outro-card,
.demo__brand-preview-side.is-empty .demo__brand-preview-card-wrap{visibility:hidden}
.demo__brand-preview-side.is-empty .demo__scene-dots{display:none}
/* Glass-effect floating label - bottom-middle of the dark preview card */
.demo__brand-preview-floating-label{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,0.18);backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);border:1px solid rgba(255,255,255,0.3);padding:4px 12px;border-radius:100px;font-size:0.62rem;font-weight:700;text-transform:uppercase;letter-spacing:0.09em;color:#fff;z-index:5;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,0.18),inset 0 1px 0 rgba(255,255,255,0.25)}
.demo__brand-next-spacer{flex:1 1 auto;min-height:8px;width:100%}
.demo__brand-next{align-self:flex-end;margin-top:auto}
.demo__brand-next-row{display:flex;gap:8px;align-self:stretch;justify-content:flex-end;margin-top:auto}
@media(max-width:680px){
  .demo__brand-preview-side{align-self:auto}
  .demo__brand-next-spacer{display:none}
  .demo__brand-next,.demo__brand-next-row{align-self:stretch;margin-top:8px}
}

/* Build it - Hook / Story / Finale share one gray block, 3 internal columns */
.demo__panel-intro{text-align:center;max-width:560px;margin:0 auto}
.demo__panel-intro-title{font-family:var(--font-display);font-size:1.5rem;font-weight:400;color:var(--ink);line-height:1.15;margin:0 0 6px}
.demo__panel-intro-title em{font-style:italic;color:var(--accent-dark)}
.demo__panel-intro-text{font-size:0.92rem;color:var(--ink-muted);line-height:1.45;margin:0}

/* 3-column tour: [Photo in] [Reel out] [Hook/Story/Finale]. The grid mirrors
   the 3-column width of the Music Options grid below - both span the full
   brand-block content area at the same gap. */
.demo__build-tour-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
/* Mobile: Photo + Reel out share the top row (small portrait cards side
   by side - the visual demo). The Clip Library lives below, narrower than
   the full grid width and packed into a 3-col chip layout per section so
   it doesn't run tall. Every desktop flex:1 / aspect-ratio rule is reset
   so the card hugs its content with no empty stretch space. */
@media(max-width:680px){
  .demo__build-tour-grid{grid-template-columns:1fr 1fr;grid-template-areas:"options options" "photo reel";gap:10px 10px;justify-items:center;align-items:start}
  .demo__build-tour-grid > .demo__build-tour-col:nth-child(1){grid-area:photo;max-width:140px;width:100%}
  .demo__build-tour-grid > .demo__build-tour-col:nth-child(3){grid-area:reel;max-width:140px;width:100%}
  .demo__build-tour-grid > .demo__build-tour-col--tabs{grid-area:options;width:100%;max-width:360px;justify-self:center;align-self:start}
  .demo__build-tour-grid > .demo__build-tour-col--tabs .demo__build-tour-tabs-card{flex:0 0 auto;aspect-ratio:auto;height:auto;overflow:visible;gap:3px;padding:2px}
  .demo__build-tour-tabs-head{padding:2px 4px 4px}
  .demo__build-tour-tabs-card .demo__build-clip-section{flex:0 0 auto;min-height:0;gap:1px}
  .demo__build-tour-tabs-card .demo__build-clip-section-label{font-size:0.6rem;padding:0 2px}
  /* The big one: kill the desktop flex:1 + space-around on the option-list
     and the flex:1 1 auto on options - those were what created the empty
     space when the card was forced to 9:16. */
  .demo__build-tour-tabs-card .demo__option-list{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;justify-content:stretch}
  .demo__build-tour-tabs-card .demo__option{flex:0 0 auto;padding:4px 5px;font-size:0.68rem;gap:2px;min-width:0}
  .demo__build-tour-tabs-card .demo__option-label{font-size:0.68rem}
  .demo__build-tour-tabs-card .demo__option-skip{width:14px;height:14px}
  .demo__build-tour-tabs-card .demo__option-skip svg{width:9px;height:9px}
  /* Compact LIVE badge inline in the chip - smaller font, smaller dot, but
     visible so the user can see which clip is currently playing. */
  .demo__build-tour-tabs-card .demo__option .demo__build-preview-live{font-size:0.46rem;padding:1px 4px;gap:3px;letter-spacing:0.06em}
  .demo__build-tour-tabs-card .demo__option .demo__build-preview-live::before{width:3px;height:3px}
}
.demo__build-tour-col{display:flex;flex-direction:column;gap:8px;min-width:0}
.demo__build-tour-col-label{font-size:0.72rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--ink-muted);text-align:center}
.demo__build-tour-col .demo__build-example-photo,
.demo__build-tour-col .demo__brand-preview-card-wrap,
.demo__build-tour-col .demo__build-preview-card,
.demo__build-tour-tabs-card{width:100%;max-width:none;flex:1}
.demo__build-tour-col .demo__build-example-photo,
.demo__build-tour-col .demo__build-preview-card{aspect-ratio:9/16}
.demo__build-tour-col .demo__brand-preview-card-wrap{aspect-ratio:9/16}

/* Sections column: a single card listing all 9 clips grouped by Hook /
   Story / Finale. The auto-cycle rotates through the full nine; the parent
   section header lights up + the clip itself is highlighted as it plays. */
.demo__build-tour-col--tabs{min-width:0}
.demo__build-tour-tabs-card{display:flex;flex-direction:column;gap:6px;background:transparent;border:none;border-radius:0;padding:2px 3px;aspect-ratio:9/16;overflow:visible;min-height:0;position:relative}
