/**
 * Component styles for the Chatter That Matters flow.
 *
 * Every colour and font here is a var(--...) pointing at css/theme.css —
 * that's the only file you should need to edit to re-skin the app.
 */

*{box-sizing:border-box;}
html,
body {
  height: 100%;
  height: 100dvh;
}
body{
  margin: 0;
  position:relative;
  background:
    radial-gradient(ellipse 65% 45% at 14% 6%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 96%, var(--accent-glow-soft), transparent 62%),
    var(--bg-deep);
  color:var(--text);
  font-family:var(--font-body);
  overflow: hidden;
}

/* ambient grain (procedural noise — not a themed colour, safe to leave as-is) */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  opacity:0.07;
  mix-blend-mode:overlay;
  z-index:1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/**
 * The app is just the page — full width on a phone, and settled into a
 * comfortable reading-width column on wider screens the same way any
 * ordinary responsive site narrows its content on desktop. It has no
 * background of its own (no seam, no "panel floating on the page" look):
 * it shows the body's background straight through. Individual cards
 * (.text-card, .who-card, .notify-card, etc.) are the only elements
 * with a surface colour — see css/theme.css's --bg-panel.
 * * The shell fills the viewport and never scrolls itself: .app-header and * .app-bottom are fixed-height flex items that stay pinned in place,
 and * .stage (flex:1, overflow-y:auto below) is the only part that scrolls.
 */
.app-shell{
  position:relative;
  z-index:2;
  width:100%;
  height: 100%;
  display:flex;
  flex-direction:column;
  overflow: hidden;
}

/* ---------- header / progress ---------- */
.app-header{
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:27px 26px 12px;
  flex-shrink:0;
}
.wordmark{
  display:flex;
  align-items:center;
  margin-bottom: 20px;
}
.wordmark img{
  height:26px;
  width:auto;
  display:block;
  border-radius:6px;
}

.progress-track{
  display:flex;
  gap:6px;
}
.progress-seg{
  flex:1;
  height:4px;
  border-radius:3px;
  background:var(--wash-strong);
  overflow:hidden;
  position:relative;
}
.progress-seg .fill{
  position:absolute; inset:0;
  width:0%;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:3px;
  transition:width .5s cubic-bezier(.65,0,.35,1);
  box-shadow:0 0 16px 1px var(--accent-soft-strong);
}

/* ---------- stage ---------- */
.stage{
  width:100%;
  max-width:480px;
  margin:0 auto;
  flex:1;
  min-height: 0;
    overflow-y: overlay;
    -webkit-overflow-scrolling: touch;
    padding: 0 26px 24px;
  position:relative;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
    scrollbar-width: thin;
}

/* ---------- custom scrollbars ---------- */
html{
  scrollbar-width:thin;
  scrollbar-color:var(--border-strong) transparent;
}
::-webkit-scrollbar{
  width:6px;
  height:6px;
}
::-webkit-scrollbar-track{
  background:transparent;
}
::-webkit-scrollbar-thumb{
  background:var(--border-strong);
  border-radius:10px;
}
::-webkit-scrollbar-thumb:hover{
  background:var(--accent);
}

.step{
  display:none;
  animation:enter .45s cubic-bezier(.2,.9,.3,1);
}
.step.active{display:block;}

@keyframes enter{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

h1.step-title{
  font-family:var(--font-heading);
  font-style:italic;
  font-weight:500;
  font-size:32px;
  line-height:1.14;
  margin:6px 0 14px;
  text-wrap:balance;
  color:var(--text);
}
h1.step-title .step-title-small{
  display:block;
  font-family:var(--font-body);
  font-style:normal;
  font-weight:600;
  font-size:15px;
  line-height:1.4;
  color:var(--text-dim);
  margin-top:4px;
}
p.step-sub{
  font-weight:700;
  font-size:16.5px;
  line-height:1.5;
  color:var(--text-dim);
  margin:0 0 24px;
  max-width:30ch;
}

/* back button */
.back-btn{
  display:none;
  align-items:center;
  gap:6px;
  background:none;
  border:none;
  color:var(--text-faint);
  font-family:var(--font-body);
  font-size:14.5px;
  font-weight:600;
  padding:6px 0 18px;
  cursor:pointer;
}
.back-btn.show{display:inline-flex;}
.back-btn:hover{color:var(--text-dim);}
.back-btn svg{width:16px;height:16px;}

/* ---------- toggle ---------- */
.mode-toggle{
  display:flex;
  background:var(--wash);
  border:none;
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.35);
  border-radius:100px;
  padding:4px;
  margin-bottom:20px;
  position:relative;
}
.mode-toggle button{
  flex:1;
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:none;
  background:none;
  padding:14px 0;
  font-family:var(--font-body);
  font-weight:700;
  font-size:13px;
  color:var(--text-dim);
  cursor:pointer;
  border-radius:100px;
  transition:color .3s;
}
.mode-toggle button svg{
  width:27px; height:27px;
  flex-shrink:0;
}
.mode-toggle button.active{color:var(--ink);}
.mode-toggle .slider{
  position:absolute;
  top:4px; left:4px;
  width:calc(50% - 4px);
  height:calc(100% - 8px);
  background:linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius:100px;
  transition:transform .35s cubic-bezier(.65,0,.35,1);
  z-index:1;
  box-shadow:0 3px 10px -2px var(--accent-soft-strong);
}
.mode-toggle.mode-text .slider{
  transform:translateX(100%);
}

/* text mode */
.text-card{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  min-height:184px;
  display:flex;
  align-items:center;
  transition:border-color 0.15s ease;
}
.text-card:focus-within{border-color:var(--accent);}
textarea{
  width:100%;
  background:none;
  border:none;
  outline:none;
  resize:none;
  overflow-y:hidden;
  color:var(--text);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.55;
  text-align:center;
}
textarea::placeholder{color:var(--text-dim); font-weight:700; font-size:14px;}
.char-count{
  display:flex;
  justify-content:flex-end;
  font-family:var(--font-body);
  font-size:11px;
  color:var(--text-faint);
  font-variant-numeric:tabular-nums;
  margin-top:6px;
}

/* video mode */
.video-card{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:18px;
  padding:28px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.capture-prompt{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:8px 0;
}
.capture-btn{
  width:76px; height:76px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  background:linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow:0 10px 26px -8px var(--accent-soft-strong), 0 0 0 8px var(--accent-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s;
}
.capture-btn:active{transform:scale(0.94);}
.capture-btn svg{width:30px;height:30px;color:var(--ink);}
.capture-caption{
  margin-top:16px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:14px;
  color:var(--text-dim);
}

.video-thumb{
  display:none;
  position:relative;
  width:100%;
  max-width:210px;
  aspect-ratio:3/4;
  margin:0 auto;
  border-radius:16px;
  overflow:hidden;
  background:#000;
  box-shadow:0 16px 34px -16px rgba(0,0,0,0.7);
}
.video-thumb.show{display:block;}
.video-thumb video{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  background:#000;
}
.video-thumb .play-toggle{
  position:absolute; inset:0;
  margin:auto;
  width:52px; height:52px;
  border-radius:50%;
  background:rgba(10,9,13,0.55);
  border:1px solid rgba(255,255,255,0.28);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  cursor:pointer;
}
.video-thumb .play-toggle svg{width:20px;height:20px;}
.video-thumb .play-toggle .icon-play{display:block; margin-left:2px;}
.video-thumb .play-toggle .icon-pause{display:none;}
.video-thumb.playing .play-toggle .icon-play{display:none;}
.video-thumb.playing .play-toggle .icon-pause{display:block;}
.video-thumb .delete-btn{
  position:absolute; top:8px; right:8px;
  width:30px; height:30px;
  border-radius:50%;
  background:rgba(10,9,13,0.6);
  border:1px solid rgba(255,255,255,0.28);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  cursor:pointer;
}
.video-thumb .delete-btn svg{width:14px;height:14px;}

/* ---------- sticky selection bar ---------- */
.selection-bar{
  position:sticky;
  top:0;
  z-index:6;
  display:flex;
  align-items:center;
  gap:11px;
  background:color-mix(in srgb, var(--bg-panel) 88%, transparent);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid var(--border);
  border-radius:14px;
  padding:9px 14px;
  margin-bottom:14px;
  box-shadow:0 10px 24px -12px rgba(0,0,0,0.6);
  transition:border-color .3s, box-shadow .3s;
}
.selection-bar.filled{
  border-color:var(--accent-soft-strong);
  box-shadow:0 10px 24px -12px rgba(0,0,0,0.6), 0 0 0 1px var(--accent-soft);
}
.sel-avatar{
  width:36px; height:36px;
  border-radius:50%;
  flex-shrink:0;
  background:var(--bg-panel);
  color:var(--text-faint);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  border:1.5px solid var(--border-strong);
}
.sel-avatar svg{width:18px;height:18px;}
.sel-avatar img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
.sel-text{display:flex; flex-direction:column; min-width:0; justify-content:center;}
.sel-name{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:15px;
  color:var(--text-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color .3s;
}
.selection-bar.filled .sel-name{color:var(--text);}

/* ---------- celebrity grid ---------- */
.cast-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.cast-card{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  aspect-ratio:3/3.7;
  cursor:pointer;
  border:2px solid transparent;
  background:var(--bg-panel);
  transition:border-color .3s, opacity .3s, transform .2s;
}
.cast-card:active{transform:scale(0.97);}
.cast-card img{
  position:absolute; inset:0;
  z-index:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(0.82) contrast(1.1) brightness(0.9);
}
.cast-card::before{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background:var(--accent-glow-soft);
  mix-blend-mode:overlay;
}
.cast-card::after{
  content:"";
  position:absolute; inset:0;
  z-index:2;
  background:linear-gradient(180deg, rgba(10,9,13,0) 38%, rgba(8,7,10,0.94) 100%);
}
.cast-card .info{
  position:absolute; left:0; right:0; bottom:0;
  padding:12px 12px 11px;
  z-index:3;
}
.cast-card .role{
  display:block;
  margin:0 0 3px;
  font-family:var(--font-body);
  font-weight:800;
  font-size:10.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  background:linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--accent);
}
.cast-card .name{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:15.5px;
  color:var(--text);
  line-height:1.25;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.cast-card .badge{
  position:absolute;
  top:9px; right:9px;
  width:22px; height:22px;
  border-radius:50%;
  background:rgba(10,9,13,0.55);
  border:1px solid rgba(255,255,255,0.25);
  z-index:4;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s, border-color .25s;
}
.cast-card .badge svg{
  width:11px;height:11px;
  color:var(--ink);
  opacity:0;
  transform:scale(0.5);
  transition:opacity .2s, transform .2s;
}
.cast-card.selected{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent), 0 10px 26px -8px var(--accent-soft-strong);
}
.cast-card.selected .badge{
  background:var(--accent);
  border-color:var(--accent);
}
.cast-card.selected .badge svg{opacity:1; transform:scale(1);}
.cast-grid.has-selection .cast-card:not(.selected){opacity:0.42;}

.cast-card--all{
  background:
    radial-gradient(ellipse 80% 65% at 50% 35%, var(--accent-soft), transparent 70%),
    var(--bg-panel);
}
.cast-card--all .all-icon{
  position:absolute; inset:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-bottom:30px;
  color:var(--accent);
}
.cast-card--all .all-icon svg{width:34px;height:34px;}

/* ---------- step 3 ---------- */
.who-card{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:20px;
  padding:28px 20px 22px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.avatar-frame{
  position:relative;
  display:inline-flex;
  cursor:pointer;
}
.avatar-picker{
  width:92px; height:92px;
  border-radius:50%;
  border:1.5px dashed var(--border-strong);
  background:var(--bg-panel);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  flex-shrink:0;
  overflow:hidden;
  transition:border-color .3s;
}
.avatar-frame:hover .avatar-picker{border-color:var(--accent-2);}
.avatar-placeholder-icon{width:28px;height:28px;color:var(--text-faint);}
.avatar-initial{
  position:absolute; inset:0;
  display:none;
  align-items:center; justify-content:center;
  font-family:var(--font-heading);
  font-weight:600;
  font-size:38px;
  color:#fff;
  text-transform:uppercase;
}
.avatar-frame.has-initial .avatar-picker{border-style:solid; border-color:transparent;}
.avatar-frame.has-initial .avatar-placeholder-icon{display:none;}
.avatar-frame.has-initial .avatar-initial{display:flex;}
.avatar-picker img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  display:none;
}
.avatar-frame.has-photo .avatar-picker{border-style:solid; border-color:var(--border-strong);}
.avatar-frame.has-photo img{display:block;}
.avatar-frame.has-photo .avatar-placeholder-icon,
.avatar-frame.has-photo .avatar-initial{display:none;}
.avatar-edit-badge{
  position:absolute;
  bottom:0; right:0;
  width:26px;height:26px;
  border-radius:50%;
  background:var(--accent);
  display:flex;
  align-items:center;justify-content:center;
  border:2px solid var(--bg-panel);
  box-shadow:0 4px 10px -3px rgba(0,0,0,0.5);
}
.avatar-edit-badge svg{width:12px;height:12px;color:#fff;}
.avatar-edit-icon-remove{display:none;}
.avatar-frame.has-photo .avatar-edit-icon-camera{display:none;}
.avatar-frame.has-photo .avatar-edit-icon-remove{display:block;}
.avatar-hint{
  margin-top:12px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:14px;
  color:var(--text-dim);
}
.avatar-hint .optional-tag{
  font-weight:600;
  color:var(--text-faint);
}

.field-card{
  width:100%;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:15px 16px;
  margin-top:22px;
}
.field-card label{
  display:block;
  font-family:var(--font-body);
  font-weight:700;
  font-size:14px;
  color:var(--text-dim);
  margin-bottom:6px;
}
.field-card input[type="text"]{
  width:100%;
  background:none;
  border:none;
  outline:none;
  color:var(--text);
  font-family:var(--font-body);
  font-size:18px;
}
.field-card input::placeholder{color:var(--text-faint);}
.field-card input:focus-visible{outline:none;}
.field-card:focus-within{border-color:var(--accent);}

/* ---------- success ---------- */
.success-wrap{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  text-align:left;
  padding-top:14px;
}
.success-head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.success-ring{
  width:42px; height:42px;
  flex-shrink:0;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 70%);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 6px var(--accent-soft), 0 10px 20px -8px var(--accent-soft-strong);
}
.success-ring svg{width:18px;height:18px;color:var(--ink);}
.success-wrap h1{
  font-family:var(--font-heading);
  font-style:italic;
  font-weight:500;
  font-size:20px;
  line-height:1.25;
  flex:1;
  min-width:0;
  margin:0;
}
.success-wrap .recap{
  width:100%;
  text-align:left;
  margin-bottom:16px;
}
.success-wrap .recap .row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  padding:5px 0;
  border-bottom:1px solid var(--border);
}
.success-wrap .recap .row:last-child{border-bottom:none;}
.success-wrap .recap .row span:first-child{color:var(--text-faint);}
.success-wrap .recap .row span:last-child{color:var(--text-dim); font-weight:600; text-align:right; max-width:60%;}

.event-image{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:16px;
  overflow:hidden;
  margin-bottom:18px;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--bg-panel);
  border:1px solid var(--border);
}
.event-image img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.event-image::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,9,13,0) 55%, rgba(8,7,10,0.55) 100%);
}

.notify-card{
  position:relative;
  background:
    radial-gradient(ellipse 120% 90% at 15% -10%, var(--accent-soft), transparent 60%),
    var(--bg-panel);
  border:1px solid var(--accent-soft-strong);
  border-radius:20px;
  padding:22px;
  width:100%;
  text-align:left;
  margin-bottom:18px;
  box-shadow:0 0 0 1px var(--accent-soft), 0 18px 40px -18px var(--accent-soft-strong), 0 0 34px -10px var(--accent-soft);
  overflow:hidden;
}
.notify-badge{
  width:42px; height:42px;
  border-radius:50%;
  flex-shrink:0;
  background:linear-gradient(145deg, var(--accent-2), var(--accent));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 6px var(--accent-soft), 0 10px 20px -8px var(--accent-soft-strong);
  animation:badge-glow 2.6s ease-in-out infinite;
}
@keyframes badge-glow{
  0%,100%{box-shadow:0 0 0 6px var(--accent-soft), 0 10px 20px -8px var(--accent-soft-strong);}
  50%{box-shadow:0 0 0 9px var(--accent-soft), 0 10px 26px -6px var(--accent-soft-strong);}
}
.notify-badge svg{width:19px;height:19px;color:var(--ink);}
.notify-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.notify-head h2{
  font-family:var(--font-heading);
  font-style:italic;
  font-weight:600;
  font-size:19px;
  line-height:1.15;
  color:var(--text);
  margin:0;
}
.notify-sub{
  font-size:14.5px;
  color:var(--text-dim);
  margin:0 0 18px;
  line-height:1.5;
}
.notify-sub strong{color:var(--text); font-weight:700;}
.contact-toggle{
  display:flex;
  background:var(--wash);
  border:none;
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.35);
  border-radius:100px;
  padding:4px;
  margin-bottom:14px;
  position:relative;
  width:100%;
}
.contact-toggle button{
  flex:1;
  position:relative;
  z-index:2;
  border:none;
  background:none;
  padding:12px 18px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:14.5px;
  color:var(--text-dim);
  cursor:pointer;
  border-radius:100px;
  transition:color .3s;
}
.contact-toggle button.active{color:var(--ink);}
.contact-toggle .csl{
  position:absolute;
  top:4px; left:4px;
  width:calc(50% - 4px);
  height:calc(100% - 8px);
  background:var(--accent);
  border-radius:100px;
  transition:transform .3s cubic-bezier(.65,0,.35,1);
  z-index:1;
  box-shadow:0 3px 10px -2px var(--accent-soft-strong);
}
.contact-toggle.is-email .csl{transform:translateX(100%);}
.notify-input-row{
  display:flex;
  align-items:center;
  background:var(--bg-panel);
  border:1.5px solid var(--border-strong);
  border-radius:16px;
  padding:4px;
  margin-bottom:14px;
  transition:border-color .2s;
}
.notify-input-row:focus-within{border-color:var(--accent);}
.notify-input-row input{
  flex:1;
  min-width:0;
  background:none;
  border:none;
  outline:none;
  color:var(--text);
  font-family:var(--font-body);
  font-size:18px;
  padding:14px 16px 14px 10px;
}
.notify-input-row input::placeholder{color:var(--text-faint);}
.select-wrap{
  position:relative;
  flex-shrink:0;
  display:flex;
  align-items:center;
}
.select-wrap .select-chevron{
  position:absolute;
  right:8px; top:50%;
  transform:translateY(-50%);
  width:10px; height:6px;
  color:var(--text-dim);
  pointer-events:none;
}
.country-code{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background:none;
  border:none;
  outline:none;
  color:var(--text);
  font-family:var(--font-body);
  font-weight:700;
  font-size:17px;
  padding:14px 22px 14px 18px;
  margin:0;
  cursor:pointer;
}
.country-code option{color:var(--bg-panel);}
.input-divider{
  width:1px;
  align-self:stretch;
  margin:8px 0;
  background:var(--border-strong);
  flex-shrink:0;
}
.notify-input-row.email-mode .select-wrap,
.notify-input-row.email-mode .input-divider{display:none;}
.notify-input-row.invalid{border-color:#e5484d;}
.notify-error{
  display:block;
  margin:-6px 0 14px 4px;
  color:#ff9b9e;
  font-family:var(--font-body);
  font-size:12.5px;
  font-weight:600;
}
.notify-error[hidden]{display:none;}
.notify-send{
  width:100%;
  padding:17px;
  border:none;
  border-radius:100px;
  background:linear-gradient(120deg, var(--accent), var(--accent-2));
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:800;
  font-size:16.5px;
  cursor:pointer;
  transition:transform .15s, opacity .2s, box-shadow .25s;
  box-shadow:0 10px 24px -10px var(--accent-soft-strong), 0 0 24px -6px var(--accent-soft);
}
.notify-send:active{transform:scale(0.98);}
.notify-send:disabled{opacity:0.35; cursor:not-allowed; box-shadow:none;}
.notify-done{
  display:none;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:14px;
  color:var(--accent-2);
  padding:4px 2px;
}
.notify-done.show{display:flex;}
.notify-done svg{width:16px;height:16px;flex-shrink:0;}
.notify-card.done .contact-toggle,
.notify-card.done .notify-input-row,
.notify-card.done .notify-send{display:none;}
.notify-anim{
  display:none;
  width:100%;
  max-width:220px;
  aspect-ratio:16/9;
  margin:6px auto 0;
}
.notify-card.done .notify-anim{display:block;}

/* ---------- footer ---------- */
/**
 * Fixed-height bar pinned at the bottom of the (non-scrolling) shell,
 so * the CTA is always reachable regardless of how far .stage is scrolled.
 *
 * The bar itself spans the full page width — like any ordinary bottom * action bar — so its background never reads as a boxed panel;
 only its * content (.app-footer, .app-legal) is centred to match the rest of the * page.
 */
.app-bottom {
  z-index:30;
  flex-shrink:0;
  width:100%;
  background:var(--bg-deep);
  border-top:1px solid var(--border);
  box-shadow:0 -20px 40px -20px rgba(0,0,0,0.55);
}
.app-footer{
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:14px 26px 10px;
}
.app-legal{
  width:100%;
  max-width:480px;
  margin:0 auto;
  text-align:center;
  /* env(safe-area-inset-bottom) keeps this clear of the home-indicator
     area on notched phones. */
  padding:10px 26px calc(16px + env(safe-area-inset-bottom, 0px));
  font-family:var(--font-body);
  font-size:11px;
  color:var(--text-faint);
  letter-spacing:0.01em;
}
.app-legal a{
  color:var(--text-dim);
  text-decoration:none;
}
.app-legal a:hover,
.app-legal a:focus-visible{
  color:var(--accent);
  text-decoration:underline;
}

.photo-attribution-link{
  display:flex;
  justify-content:center;
  width:100%;
  margin-top:14px;
  font-family:var(--font-body);
  font-size:11px;
  letter-spacing:0.01em;
}
.photo-attribution-link a{
  background:linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--accent);
  font-weight:800;
  text-decoration:none;
}
.photo-attribution-link a:hover,
.photo-attribution-link a:focus-visible{
  text-decoration:underline;
}

/* ---------- sending overlay ---------- */
.sending-overlay{
  position:absolute;
  inset:0;
  z-index:40;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:var(--overlay-scrim);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  transition:opacity .25s ease;
}
.sending-overlay.show{display:flex;}
.sending-overlay.in{opacity:1;}
.sending-anim{width:104px; height:104px;}
.sending-label{
  font-family:var(--font-heading);
  font-style:italic;
  font-weight:500;
  font-size:20px;
  color:var(--text);
  letter-spacing:0.01em;
}
.cta{
  width:100%;
  padding:17px;
  border:none;
  border-radius:100px;
  background:linear-gradient(120deg, var(--accent), var(--accent-2));
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:800;
  font-size:16.5px;
  letter-spacing:0.01em;
  cursor:pointer;
  transition:opacity .25s, transform .15s, box-shadow .25s;
  box-shadow:0 10px 28px -8px var(--accent-soft-strong), 0 0 30px -6px var(--accent-soft);
}
.cta:active{transform:scale(0.98);}
.cta:disabled{
  opacity:0.32;
  cursor:not-allowed;
  box-shadow:none;
}
.cta.hide{display:none;}
.submit-error{
  margin:0 0 10px;
  padding:10px 14px;
  border-radius:12px;
  background:color-mix(in srgb, #e5484d 16%, transparent);
  color:#ff9b9e;
  font-family:var(--font-body);
  font-size:13px;
  text-align:center;
}
.submit-error[hidden]{display:none;}

input:focus-visible, button:focus-visible{
  outline:2px solid var(--accent-2);
  outline-offset:2px;
}
textarea:focus-visible{outline:none;}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}
