/* frfr web — original landing + ask pages
   brand: sky #5FB9FF / deep sky #4DA3FF, hand #FFD400 / gold #E8B000, navy #0B3A6A
   voice: lowercase, chunky, confident. no clutter. */

:root {
  --sky: #5FB9FF;
  --sky-deep: #4DA3FF;
  --sky-light: #A8DCFF;
  --sky-hot: #7EC8FF;
  --hand: #FFD400;
  --hand-lite: #FFE14D;
  --gold: #E8B000;
  --navy: #0B3A6A;
  --navy-deep: #072844;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.92);
  --glass-well: rgba(255, 255, 255, 0.72);
  --shadow: rgba(11, 58, 106, 0.22);
  --font: "Nunito", "Avenir Next", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 28px;
  --lip: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--sky-deep);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { height: 100%; }

body {
  min-height: 100dvh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- sky ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 560px at 85% -8%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(900px 520px at -15% 110%, rgba(62, 148, 234, 0.55), transparent 55%),
    linear-gradient(180deg, #9AD6FF 0%, #5FB9FF 46%, #4DA3FF 100%);
}

.sky-dots {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.7) 1.15px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.25) 80%);
}

.sky-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
}
.sky-glow-a {
  width: 280px; height: 280px;
  right: -60px; top: 12%;
  background: rgba(255, 255, 255, 0.45);
}
.sky-glow-b {
  width: 360px; height: 360px;
  left: -120px; bottom: -80px;
  background: rgba(77, 163, 255, 0.9);
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 62px;
  padding: 0 22px 3px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.16s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.btn .shine,
.btn::after {
  /* shine is a child span */
}

.shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}

.shine::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 46%;
  left: -60%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: shine-sweep 3.6s ease-in-out 1.1s infinite;
}

@keyframes shine-sweep {
  0%, 18% { left: -60%; opacity: 0; }
  28% { opacity: 1; }
  62% { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

.btn-gold {
  color: var(--navy);
  background: linear-gradient(180deg, #FFE66A 0%, #FFD400 58%, #F3C400 100%);
  box-shadow:
    0 var(--lip) 0 var(--gold),
    0 12px 22px var(--shadow),
    inset 0 2px 0 rgba(255,255,255,0.55);
}

.btn-navy {
  color: var(--white);
  background: linear-gradient(180deg, #16497F 0%, #0B3A6A 62%, #0A335E 100%);
  box-shadow:
    0 var(--lip) 0 var(--navy-deep),
    0 12px 22px var(--shadow),
    inset 0 2px 0 rgba(255,255,255,0.18);
}

.btn:hover { filter: brightness(1.04); }

.btn:active,
.btn.is-pressed {
  transform: translateY(6px);
  box-shadow:
    0 1px 0 currentColor,
    0 4px 10px var(--shadow),
    inset 0 2px 0 rgba(255,255,255,0.28);
  filter: brightness(0.98);
  transition-duration: 0.08s;
}

.btn-gold:active, .btn-gold.is-pressed {
  box-shadow:
    0 1px 0 var(--gold),
    0 4px 10px var(--shadow),
    inset 0 2px 0 rgba(255,255,255,0.4);
}
.btn-navy:active, .btn-navy.is-pressed {
  box-shadow:
    0 1px 0 var(--navy-deep),
    0 4px 10px var(--shadow),
    inset 0 2px 0 rgba(255,255,255,0.14);
}

.btn[disabled],
.btn.is-disabled {
  cursor: default;
  filter: saturate(0.85) brightness(1);
  opacity: 0.55;
  box-shadow:
    0 4px 0 var(--gold),
    0 8px 14px rgba(11,58,106,0.12),
    inset 0 2px 0 rgba(255,255,255,0.4);
  transform: none;
}
.btn-navy[disabled], .btn-navy.is-disabled {
  box-shadow:
    0 4px 0 var(--navy-deep),
    0 8px 14px rgba(11,58,106,0.12),
    inset 0 2px 0 rgba(255,255,255,0.14);
}
.btn[disabled] .shine, .btn.is-disabled .shine { display: none; }

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 8px 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.foot a {
  text-decoration: none;
  padding: 8px 4px;
  color: var(--navy);
  opacity: 0.82;
}
.foot a:hover { opacity: 1; }

/* home / lander layout lives in lander.css */

/* ---------- ask page ---------- */
.page-ask .wrap {
  padding: 28px 22px 16px;
  padding-top: max(36px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 440px;
  margin: 0 auto;
}

.ask-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.ask-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.ask-brand .hand { height: 36px; width: auto; }
.ask-brand .word { height: 24px; width: auto; }

.ask-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.prompt-card {
  background: var(--glass);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow:
    0 16px 36px rgba(11, 58, 106, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #16497F, #0B3A6A);
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.05em;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 var(--navy-deep), 0 8px 14px rgba(11,58,106,0.2);
  text-transform: lowercase;
}

.who-text { min-width: 0; }
.uname {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(11, 58, 106, 0.62);
  line-height: 1.1;
}
.prompt {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--navy);
}

.composer {
  position: relative;
}
#message,
.composer textarea {
  width: 100%;
  height: 148px;
  resize: none;
  border: 0;
  border-radius: 18px;
  padding: 16px 16px 20px;
  background: var(--glass-well);
  box-shadow: inset 0 1px 3px rgba(11,58,106,0.08);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--navy);
  outline: none;
  display: block;
}
.composer textarea::placeholder {
  color: rgba(11, 58, 106, 0.32);
}
.composer textarea:focus {
  box-shadow:
    inset 0 1px 3px rgba(11,58,106,0.08),
    0 0 0 3px rgba(11, 58, 106, 0.18);
}

.btn-send { margin-top: 16px; }

.ask-form.is-shake .prompt-card {
  animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(5px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.ask-bottom {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

/* sent state */
.sent {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 12px 0 8px;
}
.page-ask.is-sent .ask-form { display: none; }
.page-ask.is-sent .ask-bottom .btn { display: none; }
.page-ask.is-sent .sent { display: flex; }

.sent-pop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: pop-in 0.62s cubic-bezier(0.34, 1.7, 0.42, 1) both;
}

@keyframes pop-in {
  0% { transform: scale(0.55) translateY(18px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.sent-badge {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(180deg, #FFE66A 0%, #FFD400 58%, #F3C400 100%);
  box-shadow:
    0 8px 0 var(--gold),
    0 16px 28px rgba(11,58,106,0.2),
    inset 0 2px 0 rgba(255,255,255,0.55);
  display: grid;
  place-items: center;
  color: var(--navy);
}
.sent-badge svg { width: 46px; height: 46px; }

.sent-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(52px, 14vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--white);
  text-shadow:
    0 2px 0 rgba(11, 58, 106, 0.08),
    0 16px 34px rgba(11, 58, 106, 0.2);
}
.hook span { white-space: nowrap; }

.text-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(11,58,106,0.25);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  opacity: 0;
  animation: confetti-burst 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(1); }
}

/* ---------- legal ---------- */
.page-legal .wrap {
  padding: 28px 22px 32px;
  padding-top: max(28px, env(safe-area-inset-top));
  max-width: 720px;
  margin: 0 auto;
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 28px;
}
.legal-brand .hand { height: 44px; width: auto; }
.legal-brand .word { height: 30px; width: auto; }

.draft-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--hand);
  box-shadow: 0 3px 0 var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.legal-card {
  background: var(--glass);
  border-radius: 28px;
  padding: 28px 24px 32px;
  box-shadow: 0 16px 36px rgba(11,58,106,0.14);
}
.legal-card h1 {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 52px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--navy);
}
.legal-card p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.legal-card p.note {
  background: rgba(95, 185, 255, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .page-ask .wrap {
    max-width: 440px;
    padding-top: 56px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .phone { filter: drop-shadow(0 22px 30px rgba(11, 58, 106, 0.3)); }
}

.legal-card h2 {
  margin: 22px 0 8px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.legal-card .updated {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(11, 58, 106, 0.55);
}

.ask-error {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0B3A6A;
  text-align: center;
  background: rgba(255,255,255,0.72);
  border-radius: 12px;
  padding: 8px 12px;
}
.avatar.has-photo { color: transparent; }

.ask-legal {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  text-align: center;
  color: var(--navy);
  opacity: 0.82;
}
.ask-legal a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.report-link {
  display: block;
  margin: 0 auto 4px;
  color: var(--navy);
  opacity: 0.8;
}
.report-form {
  margin-top: 16px;
  background: var(--glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(11, 58, 106, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-title {
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-align: center;
}
.report-form select,
.report-form textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--glass-well);
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  outline: none;
}
.report-form select:focus,
.report-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(11, 58, 106, 0.18);
}
.report-thanks {
  margin-top: 16px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
}

/* legal pages: readable typography + table of contents */
.legal-card { max-width: 720px; }
.legal-toc {
  list-style: none;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: rgba(95, 185, 255, 0.22);
  border-radius: 16px;
}
.legal-toc li { margin: 0; }
.legal-toc a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-card h2 {
  scroll-margin-top: 20px;
}
.legal-card h3 {
  margin: 16px 0 8px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--navy);
  scroll-margin-top: 20px;
}
.legal-card ul, .legal-card ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.legal-card li { margin: 0 0 6px; }
.legal-card a { color: var(--navy); font-weight: 800; }
.page-legal .wrap { max-width: 760px; }

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border-radius: 14px;
  background: rgba(95, 185, 255, 0.18);
}
.legal-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.legal-card th, .legal-card td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 58, 106, 0.12);
}
.legal-card th { font-weight: 900; }
.legal-card tr:last-child td { border-bottom: 0; }
.legal-card code {
  font-size: 0.92em;
  background: rgba(11, 58, 106, 0.08);
  border-radius: 6px;
  padding: 0 5px;
}
.privacy-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.privacy-form input, .privacy-form select, .privacy-form textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--glass-well, rgba(255,255,255,0.7));
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* ---------- v6 public link page (NGL-style, frfr branded) ---------- */
.page-ask {
  --theme-a: #5CDBFF;
  --theme-b: #7A4DFF;
  --theme-c: #FF3E8A;
  --ask-ink: #111111;
  --ask-muted: rgba(17, 17, 17, 0.38);
  --ask-fg: #ffffff;
  --ask-fg-soft: rgba(255, 255, 255, 0.82);
  color: var(--ask-ink);
}

.page-ask .sky-dots { display: none; }

.page-ask .sky {
  overflow: hidden;
  background: linear-gradient(165deg, var(--theme-a) 0%, var(--theme-b) 48%, var(--theme-c) 100%);
}
.page-ask .sky::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(closest-side at 18% 12%, color-mix(in srgb, var(--theme-a) 85%, #fff) 0%, transparent 62%),
    radial-gradient(closest-side at 92% 88%, color-mix(in srgb, var(--theme-c) 80%, #ff7ab8) 0%, transparent 58%),
    linear-gradient(125deg, var(--theme-a), var(--theme-b) 50%, var(--theme-c));
  animation: sky-drift 18s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
.page-ask .sky-glow {
  display: block;
  opacity: 0.5;
  filter: blur(64px);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
.page-ask .sky-glow-a {
  background: var(--theme-c);
  width: 320px; height: 320px;
  right: -80px; top: 8%;
}
.page-ask .sky-glow-b {
  background: var(--theme-a);
  width: 380px; height: 380px;
  left: -120px; bottom: -90px;
}
@keyframes sky-drift {
  from { transform: translate3d(-5%, -4%, 0) scale(1.1) rotate(-2deg); }
  to { transform: translate3d(5%, 5%, 0) scale(1.1) rotate(2deg); }
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, -6%, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .page-ask .sky::before,
  .page-ask .sky-glow { animation: none !important; }
}

.page-ask .wrap {
  padding: 16px 20px 18px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 430px;
  margin: 0 auto;
}

.page-ask .ask-brand {
  display: flex;
  justify-content: center;
  margin: 2px 0 14px;
}

.page-ask .ask-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.page-ask .ask-brand .hand { height: 32px; width: auto; }
.page-ask .ask-brand .word { height: 22px; width: auto; }

.page-ask .word-on-dark { display: none; }
.page-ask .word-on-light { display: block; }
.page-ask.theme-top-dark .ask-brand .word-on-dark,
.page-ask.skin-voltage .ask-brand .word-on-dark,
.page-ask.skin-heat .ask-brand .word-on-dark { display: block; }
.page-ask.theme-top-dark .ask-brand .word-on-light,
.page-ask.skin-voltage .ask-brand .word-on-light,
.page-ask.skin-heat .ask-brand .word-on-light { display: none; }
.page-ask.theme-bottom-dark .sent-lockup .word-on-dark,
.page-ask.skin-voltage .sent-lockup .word-on-dark,
.page-ask.skin-heat .sent-lockup .word-on-dark { display: block; }
.page-ask.theme-bottom-dark .sent-lockup .word-on-light,
.page-ask.skin-voltage .sent-lockup .word-on-light,
.page-ask.skin-heat .sent-lockup .word-on-light { display: none; }
.page-ask .ask-brand .word-on-dark,
.page-ask .sent-lockup .word-on-dark {
  filter: drop-shadow(0 1px 10px rgba(20, 10, 50, 0.45));
}

.page-ask .prompt-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(8, 40, 80, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-ask .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 16px 12px;
}

.page-ask .avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--theme-b), var(--theme-c));
  color: #ffffff;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.05em;
  display: grid;
  place-items: center;
  box-shadow: none;
  text-transform: lowercase;
  overflow: hidden;
}

.page-ask .who-text { min-width: 0; flex: 1; }
.page-ask .uname {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1.1;
  opacity: 0.92;
}
.page-ask .prompt {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.12;
  color: #111111;
}

.page-ask .composer {
  position: relative;
  background: color-mix(in srgb, var(--theme-a) 38%, #ffffff);
}

.page-ask .composer textarea,
.page-ask #message {
  width: 100%;
  height: 152px;
  resize: none;
  border: 0;
  border-radius: 0;
  padding: 16px 72px 18px 18px;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--ask-ink);
  outline: none;
  display: block;
}

.page-ask .composer textarea::placeholder {
  color: var(--ask-muted);
}

.page-ask .composer textarea:focus {
  box-shadow: none;
}

.page-ask .dice {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 3px rgba(11, 58, 106, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.page-ask .dice:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.page-ask .dice:active { transform: scale(0.94); }

.page-ask .dice.is-roll {
  animation: dice-roll 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dice-roll {
  0% { transform: rotate(0deg) scale(1); }
  35% { transform: rotate(-220deg) scale(1.18); }
  70% { transform: rotate(-400deg) scale(1.06); }
  100% { transform: rotate(-360deg) scale(1); }
}

.page-ask .ask-anon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--ask-fg);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(8, 40, 80, 0.25);
}

.page-ask .ask-anon .hand {
  height: 20px;
  width: auto;
}

.page-ask.theme-mid-light .ask-anon {
  color: var(--navy);
  text-shadow: none;
}

.page-ask .btn-send {
  display: none;
  margin-top: 16px;
}

.page-ask.is-composing .btn-send { display: inline-flex; }

.page-ask .btn-pill {
  height: 60px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 0 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.page-ask .btn-pill .shine::before {
  top: -35%;
  bottom: -35%;
  width: 12%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    rgba(255,255,255,0) 42%,
    rgba(255,255,255,0.26) 50%,
    rgba(255,255,255,0) 58%,
    transparent 100%
  );
  transform: skewX(-24deg);
  animation: shine-sweep 3.4s ease-in-out 0.8s infinite;
}
.page-ask .btn-hero {
  height: 68px;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.page-ask .btn-pill:hover { filter: brightness(1.08); }

.page-ask .btn-pill:active,
.page-ask .btn-pill.is-pressed {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  filter: none;
}

.page-ask .btn-pill[disabled],
.page-ask .btn-pill.is-disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.page-ask .ask-form.is-shake .prompt-card {
  animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.page-ask .ask-dock {
  margin-top: 28px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

/* No count: keep card + CTA as one group and split leftover space
   above the logo and below the footer so the mid band is not a void. */
.page-ask:not(.has-today-count):not(.is-composing):not(.is-sent):not(.is-reporting) .wrap {
  justify-content: center;
}
.page-ask:not(.has-today-count):not(.is-composing):not(.is-sent):not(.is-reporting) .ask-stage {
  flex: 0 0 auto;
}

.page-ask.is-sent .wrap,
.page-ask.is-reporting .wrap {
  justify-content: center;
}
.page-ask.is-sent .ask-stage,
.page-ask.is-reporting .ask-stage {
  flex: 1 1 auto;
  justify-content: center;
}
.page-ask.is-composing .wrap {
  justify-content: flex-start;
}

/* Real count: NGL-style — card stays up top, count + CTA sit at the bottom. */
.page-ask.has-today-count .ask-stage {
  flex: 1 1 auto;
}
.page-ask.has-today-count .ask-dock {
  margin-top: auto;
  padding-top: 12px;
}

.page-ask.is-composing .ask-dock,
.page-ask.is-sent .ask-dock,
.page-ask.is-reporting .ask-dock,
.page-ask.is-sent .ask-form,
.page-ask.is-sent .ask-brand {
  display: none;
}

.page-ask .today-count {
  margin: 0 0 2px;
  text-align: center;
  color: var(--ask-fg);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(8, 40, 80, 0.25);
}

.page-ask.theme-bottom-light .today-count,
.page-ask.theme-bottom-light .ask-legal,
.page-ask.theme-bottom-light .ask-legal a,
.page-ask.theme-bottom-light .ask-links a,
.page-ask.theme-bottom-light .ask-links button,
.page-ask.theme-bottom-light .ask-links .dot,
.page-ask.theme-bottom-light .report-thanks,
.page-ask.theme-bottom-light .text-link {
  color: var(--navy);
  text-shadow: none;
  opacity: 0.86;
}

.page-ask .ask-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.page-ask .ask-links a,
.page-ask .ask-links button {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  color: var(--ask-fg-soft);
  opacity: 0.84;
  padding: 8px 5px;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(8, 40, 80, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.page-ask .ask-links a:hover,
.page-ask .ask-links button:hover { opacity: 1; }

.page-ask .ask-links a:focus-visible,
.page-ask .ask-links button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

.page-ask .ask-links .dot {
  color: var(--ask-fg-soft);
  opacity: 0.45;
  padding: 0 1px;
  pointer-events: none;
  user-select: none;
}

.page-ask .ask-legal {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  text-align: center;
  color: var(--ask-fg-soft);
  opacity: 0.7;
  text-shadow: 0 1px 8px rgba(8, 40, 80, 0.28);
}

.page-ask .ask-legal a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-ask .text-link {
  color: var(--ask-fg);
  text-shadow: 0 1px 8px rgba(8, 40, 80, 0.25);
}

.page-ask .sent {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  width: 100%;
  padding: 12px 0 8px;
}

.page-ask.is-sent .sent { display: flex; }

.page-ask .sent-pop {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-ask .sent-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
}

.page-ask .sent-lockup .hand { height: 48px; width: auto; }
.page-ask .sent-lockup .word { height: 30px; width: auto; }

.page-ask .sent-title {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: clamp(56px, 16vw, 76px);
  letter-spacing: -0.07em;
  line-height: 0.9;
  color: var(--ask-fg);
  text-shadow: 0 8px 28px rgba(20, 10, 50, 0.25);
}
.page-ask .sent-sub {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ask-fg);
  opacity: 0.86;
  text-shadow: 0 1px 8px rgba(20, 10, 50, 0.25);
}
.page-ask .sent .btn-hero {
  margin: 0 0 16px;
}

.page-ask.theme-bottom-light .sent-title,
.page-ask.theme-bottom-light .sent-sub {
  color: var(--navy);
  text-shadow: none;
}

.page-ask .sent .btn-pill { width: 100%; }

.page-ask .ask-error {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  padding: 8px 12px;
}

.page-ask .report-form {
  margin-top: 16px;
}

.page-ask .report-thanks {
  margin-top: 16px;
  text-align: center;
  font-weight: 800;
  color: var(--ask-fg);
}

.page-ask.is-reporting .ask-form {
  display: none;
}

@media (min-width: 900px) {
  .page-ask .wrap {
    max-width: 430px;
    padding-top: 48px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-ask .dice.is-roll { animation: none !important; }
}


/* hidden attribute must win over later display:flex rules */
.page-ask [hidden] { display: none !important; }

.page-ask .composer {
  background: color-mix(in srgb, var(--theme-a) 52%, #ffffff);
}

.page-ask .dice svg {
  width: 22px;
  height: 22px;
  display: block;
}

.page-ask .report-form .text-link,
.page-ask .report-form .report-title {
  color: var(--navy);
  text-shadow: none;
}

.page-ask .who {
  padding: 14px 16px 10px;
}


.page-ask .dice svg {
  width: 28px;
  height: 28px;
  display: block;
}

.page-ask .composer {
  background: color-mix(in srgb, var(--theme-b) 26%, #ffffff);
}

.page-ask .who {
  padding: 16px 16px 12px;
}

.page-ask .uname {
  font-size: 15px;
}

.confetti i.is-emoji {
  width: auto;
  height: auto;
  background: none;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  border-radius: 0;
}

@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(1); }
}

.page-ask.skin-heat {
  --theme-a: #6ED3FF;
  --theme-b: #FF9A3C;
  --theme-c: #FF3F6E;
}
.page-ask.skin-voltage {
  --theme-a: #5CDBFF;
  --theme-b: #7A4DFF;
  --theme-c: #FF3E8A;
}

.page-ask .prompt-card {
  box-shadow: 0 16px 40px rgba(20, 10, 50, 0.22);
}

.page-ask .confetti i,
.confetti i { animation-duration: 1.25s; }

/* Confetti falls behind the sent copy, small shapes only */
.page-ask .wrap { z-index: 2; }
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.confetti i,
.page-ask .confetti i {
  position: absolute;
  top: -16px;
  width: 5px;
  height: 9px;
  border-radius: 1.5px;
  opacity: 0;
  font-size: 0;
  line-height: 0;
  background-image: none;
  animation: confetti-fall 1.9s linear forwards;
}
.confetti i.is-emoji { display: none; }
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  10% { opacity: 0.85; }
  80% { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), 110vh, 0) rotate(var(--r, 180deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti i,
  .page-ask .confetti i { animation: none !important; display: none; }
}

/* Optical vertical balance for the default cluster */
.page-ask:not(.has-today-count):not(.is-composing):not(.is-sent):not(.is-reporting) .wrap {
  justify-content: center;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
@media (max-height: 700px) {
  .page-ask .ask-brand { margin: 0 0 10px; }
  .page-ask:not(.has-today-count) .ask-dock { margin-top: 18px; }
  .page-ask .composer textarea,
  .page-ask #message { height: 124px; }
  .page-ask .wrap {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
