/* Intellecta Survey — brand: dark bg, white rounded CTAs, magenta→purple gradient strokes */
:root {
  --bg: #0b0b14;
  --bg-2: #15101f;
  --bg-3: #1c1426;
  --text: #f5f3fb;
  --text-dim: #b3aac8;
  --muted: #6e6680;
  --magenta: #d00080;
  --magenta-2: #e00080;
  --purple: #902080;
  --purple-2: #5a1860;
  --grad: linear-gradient(135deg, #5a1860 0%, #902080 30%, #d00080 70%, #e00080 100%);
  --grad-soft: linear-gradient(135deg, rgba(208,0,128,.18) 0%, rgba(144,32,128,.18) 100%);
  --stroke: 1px solid rgba(208,0,128,.45);
  --stroke-soft: 1px solid rgba(208,0,128,.18);
  --shadow: 0 18px 60px -10px rgba(208,0,128,.25), 0 6px 24px -8px rgba(0,0,0,.6);
  --radius: 18px;
  --radius-pill: 999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(208,0,128,.10), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(144,32,128,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }

/* Layout */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  border-bottom: var(--stroke-soft);
  position: sticky; top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11,11,20,.7);
  z-index: 10;
}
.site-header .brand { display: inline-flex; align-items: center; }
.site-header .brand img { height: 30px; width: auto; display: block; }
.site-nav a { color: var(--text-dim); font-size: 14px; }

.site-main { padding: 0; max-width: 1100px; margin: 0 auto; }
.site-footer {
  border-top: var(--stroke-soft);
  padding: 28px 36px; text-align: center;
  color: var(--muted); font-size: 13px;
  margin-top: 80px;
}
.site-footer a { color: var(--text-dim); border-bottom: 1px dotted rgba(255,255,255,.2); }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); margin-top: 0; }
h3 { font-size: 18px; margin-bottom: .35em; }
p { margin: 0 0 1em; color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; color: var(--magenta-2); }

/* Hero */
.hero { padding: 64px 36px 32px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-copy .kicker {
  display: inline-block; padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: var(--stroke);
  background: var(--grad-soft);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
  margin: 0 0 18px;
}
.hero-copy .lede { font-size: 17px; color: var(--text-dim); max-width: 56ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.cta-sub { color: var(--muted); font-size: 14px; }

.hero-aside { display: grid; gap: 14px; }
.badge-card {
  position: relative; padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: var(--stroke);
  box-shadow: var(--shadow);
}
.badge-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.badge-num { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; }
.badge-text { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 16px; cursor: pointer;
  transition: transform .12s ease, box-shadow .25s ease, background .2s ease;
  border: 0; line-height: 1;
}
.btn-primary {
  background: #fff; color: #1a0820;
  box-shadow: 0 8px 28px -6px rgba(208,0,128,.55), 0 0 0 1px rgba(255,255,255,.04);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 38px -6px rgba(208,0,128,.7); opacity: 1; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(255,255,255,.15);
}
.btn-block { width: 100%; padding: 18px 28px; font-size: 17px; }

/* Sections */
.props { padding: 32px 36px; }
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.prop { padding: 24px; border-radius: var(--radius); border: var(--stroke-soft); background: rgba(255,255,255,.02); }
/* Icon shapes are loaded as CSS masks so the magenta brand colour comes from
   background-color (the source SVGs use stroke="#000000" which would be invisible
   on the dark theme). */
.prop-icon {
  width: 44px; height: 44px;
  margin-bottom: 12px;
  background-color: var(--magenta-2);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;   mask-position: center;
  -webkit-mask-size: contain;      mask-size: contain;
}
.prop-icon--hourglass { -webkit-mask-image: url("/where-do-i-start/static/img/hourglass.svg"); mask-image: url("/where-do-i-start/static/img/hourglass.svg"); }
.prop-icon--star      { -webkit-mask-image: url("/where-do-i-start/static/img/star.svg");      mask-image: url("/where-do-i-start/static/img/star.svg"); }
.prop-icon--house     { -webkit-mask-image: url("/where-do-i-start/static/img/house.svg");     mask-image: url("/where-do-i-start/static/img/house.svg"); }

.testimonials { padding: 32px 36px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  padding: 26px; border-radius: var(--radius);
  background: var(--grad-soft); border: var(--stroke-soft);
  position: relative;          /* anchor for sparkle decorations */
}
.testimonial blockquote { margin: 0 0 14px; color: var(--text); font-size: 15.5px; line-height: 1.5; position: relative; z-index: 1; }
.testimonial footer { color: var(--text-dim); font-size: 13.5px; position: relative; z-index: 1; }
.testimonial footer strong { display: block; color: var(--text); }
.testimonial .role { color: var(--muted); }

/* ---- Sparkle decorations (fire once when the testimonials section enters view) ---- */
.testimonial .sparkle {
  position: absolute;
  width: 16px; height: 16px;
  background-color: var(--magenta-2);
  -webkit-mask: url("/where-do-i-start/static/img/star.svg") center/contain no-repeat;
          mask: url("/where-do-i-start/static/img/star.svg") center/contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transform: scale(.3) rotate(0deg);
  filter: drop-shadow(0 0 6px rgba(224,0,128,.6));
  z-index: 0;
}
/* Per-sparkle position + size variation. --base-delay is the within-wave timing;
   the per-card offset (--card-offset) staggers the three cards. */
.testimonial .sparkle--1 { top: -10px;   left:  -10px; width: 22px; height: 22px; --base-delay: 0.15s; }
.testimonial .sparkle--2 { top: -8px;    right: -6px;  width: 14px; height: 14px; --base-delay: 0.55s; }
.testimonial .sparkle--3 { bottom: -8px; right: -10px; width: 20px; height: 20px; --base-delay: 1.20s; }
.testimonial .sparkle--4 { bottom: -10px; left: 36%;   width: 12px; height: 12px; --base-delay: 2.10s; }
.testimonial .sparkle--5 { top: 40%;     left:  -12px; width: 14px; height: 14px; --base-delay: 3.00s; }

/* Each "wave" lasts ~5s. With a 15s cycle that's ~33% of the timeline active,
   ~67% idle. Then it loops infinitely. */
@keyframes sparkle-twinkle-loop {
  0%   { opacity: 0; transform: scale(.3) rotate(0deg); }
  4%   { opacity: 1; transform: scale(1.15) rotate(60deg); }
  9%   { opacity: 1; transform: scale(.95) rotate(180deg); }
  13%  { opacity: 0; transform: scale(.45) rotate(320deg); }
  100% { opacity: 0; transform: scale(.3) rotate(0deg); }
}

/* Sparkle loop fires once .sparkles-on is added (by IntersectionObserver).
   15s duration, infinite, with per-sparkle and per-card delays so the wave
   feels natural rather than synchronised. */
.testimonials.sparkles-on .testimonial .sparkle {
  animation: sparkle-twinkle-loop 15s ease-out var(--base-delay, 0s) infinite;
}
.testimonials.sparkles-on .testimonial:nth-child(2) .sparkle { animation-delay: calc(var(--base-delay, 0s) + 0.20s); }
.testimonials.sparkles-on .testimonial:nth-child(3) .sparkle { animation-delay: calc(var(--base-delay, 0s) + 0.40s); }

@media (prefers-reduced-motion: reduce) {
  .testimonial .sparkle { display: none; }
}

.how { padding: 40px 36px; }
.how-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.how-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--radius); border: var(--stroke-soft); background: rgba(255,255,255,.02); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 16px;
}

/* Start card */
.start-card {
  padding: 36px;
  margin: 60px 24px 24px;
}
.start-inner {
  position: relative;
  padding: 44px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: var(--stroke);
  box-shadow: var(--shadow);
  max-width: 720px; margin: 0 auto;
}
.start-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.start-inner h2 { margin-bottom: 4px; }
.start-inner > p { color: var(--text-dim); margin-bottom: 22px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.04); color: var(--text); font-size: 16px;
  border: 1px solid rgba(255,255,255,.1);
  outline: none; transition: border-color .15s ease, background .15s ease;
  font-family: inherit;
}
.form-row input:focus, .form-row select:focus { border-color: var(--magenta); background: rgba(208,0,128,.06); }
.form-row input::placeholder { color: rgba(255,255,255,.25); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.micro { color: var(--muted); font-size: 13px; text-align: center; margin: 16px 0 0; }

/* Question screens */
.q-wrap { max-width: 720px; margin: 60px auto; padding: 0 24px; }
.q-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.q-progress-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.q-progress-bar > span { display: block; height: 100%; background: var(--grad); transition: width .35s ease; }
.q-progress-text { font-size: 12px; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }

.q-card {
  position: relative; padding: 40px 36px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: var(--stroke); box-shadow: var(--shadow);
}
.q-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.q-card h2 { font-size: 26px; }
.q-card .hint { color: var(--text-dim); margin-bottom: 28px; }
.q-options { display: grid; gap: 12px; margin-top: 8px; }
.q-option {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  cursor: pointer; transition: all .15s ease;
  color: var(--text); font-size: 16px;
  position: relative;
}
.q-option:hover { border-color: var(--magenta); background: rgba(208,0,128,.06); }
.q-option.is-selected { border-color: var(--magenta); background: rgba(208,0,128,.10); }
.q-option input[type=radio] { accent-color: var(--magenta); width: 18px; height: 18px; }
.q-option .q-label { flex: 1; }
.q-option .q-inline-input {
  flex: 1; max-width: 240px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); outline: none; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; margin-left: 8px;
}
.q-option .q-inline-input:focus { border-color: var(--magenta); background: rgba(208,0,128,.08); }
.q-option .q-inline-input--number { max-width: 110px; }

/* Free-text block (multi-select questions only — sits below the options grid). */
.q-free-block { margin-top: 14px; }
.q-free-block label {
  display: block; margin-bottom: 8px;
  color: var(--text-dim); font-size: 13px;
}
.q-free-block label em {
  color: var(--magenta-2); font-style: normal; font-weight: 600;
}
.q-free-block textarea {
  width: 100%;
  min-height: 64px;     /* ~2 lines visible */
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  border: 1px solid rgba(255,255,255,.12);
  outline: none;
  font-family: inherit;
  resize: vertical;
  transition: border-color .15s ease, background .15s ease;
}
.q-free-block textarea:focus {
  border-color: var(--magenta);
  background: rgba(208,0,128,.06);
}
.q-free-block textarea::placeholder { color: rgba(255,255,255,.30); }

/* Multi-select: hide native checkbox, render a big custom tick. */
.q-option--check input[type=checkbox] {
  position: absolute; opacity: 0; pointer-events: none;
}
.q-option--check .q-check {
  display: inline-block; flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.04);
  position: relative;
  transition: all .15s ease;
}
.q-option--check:hover .q-check { border-color: var(--magenta); }
.q-option--check.is-selected .q-check {
  background: var(--grad);
  border-color: var(--magenta-2);
  box-shadow: 0 0 0 3px rgba(208,0,128,.18);
}
.q-option--check.is-selected .q-check::after {
  content: "";
  position: absolute;
  left: 7px; top: 2px;
  width: 8px; height: 14px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.q-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; }
.q-back { color: var(--text-dim); font-size: 14px; }

/* Ticker */
.ticker {
  position: fixed; top: 90px; right: 24px;
  width: 270px; max-width: calc(100vw - 32px);
  padding: 14px 16px;
  border-radius: 14px; background: rgba(20,15,30,.85);
  border: var(--stroke-soft); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--text-dim);
  z-index: 5; box-shadow: 0 8px 28px -10px rgba(0,0,0,.6);
}
.ticker h4 { margin: 0 0 8px; color: var(--text); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ticker ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticker li { display: flex; align-items: center; gap: 8px; }
.ticker .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.12); flex-shrink: 0; transition: background .3s ease; }
.ticker li.done .dot { background: var(--magenta); box-shadow: 0 0 0 3px rgba(208,0,128,.2); }
.ticker li.done { color: var(--text); }

/* Reveal */
.reveal-wrap { max-width: 780px; margin: 60px auto; padding: 0 24px; }
.reveal-card {
  position: relative; padding: 44px 40px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(208,0,128,.06), rgba(144,32,128,.04));
  border: var(--stroke); box-shadow: var(--shadow);
}
.reveal-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.reveal-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta-2); margin-bottom: 14px; }
.reveal-headline { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; margin: 0 0 18px; color: var(--text); }
.reveal-bullets { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.reveal-bullets li { padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.04); border: var(--stroke-soft); color: var(--text-dim); font-size: 15.5px; }
.reveal-bullets li::before { content: "▸ "; color: var(--magenta-2); font-weight: 700; }
.reveal-cmp { padding: 16px 18px; border-radius: 12px; background: var(--grad-soft); color: var(--text); font-style: italic; margin-bottom: 24px; }
.reveal-form { margin-top: 30px; padding-top: 28px; border-top: var(--stroke-soft); }
.reveal-form .form-row label { font-size: 14px; text-transform: none; letter-spacing: 0; }
.reveal-spinner { display: flex; flex-direction: column; gap: 18px; align-items: center; padding: 30px 0; color: var(--text-dim); }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--magenta);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Reveal "stage" while phase-2 AI is generating personalised reveal ---- */
.reveal-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 0 36px;
}
.reveal-orb {
  position: relative;
  width: 160px; height: 160px;
  margin-bottom: 22px;
}
/* Concentric magenta rings, each rotating at a different speed. */
.reveal-orb__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(208,0,128,.0);
  border-top-color: rgba(208,0,128,.85);
  border-right-color: rgba(208,0,128,.35);
  animation: orb-spin 2.4s linear infinite;
}
.reveal-orb__ring--1 { inset: 0;  animation-duration: 2.4s; }
.reveal-orb__ring--2 { inset: 10px; animation-duration: 3.6s; animation-direction: reverse; border-top-color: rgba(224,0,128,.7); border-right-color: rgba(208,0,128,.18); }
.reveal-orb__ring--3 { inset: 22px; animation-duration: 5.0s; border-top-color: rgba(255,140,200,.85); border-right-color: rgba(208,0,128,.18); }
/* Pulsing core. */
.reveal-orb__core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, #ffb3d8 0%, #d00080 55%, #5a1860 100%);
  box-shadow: 0 0 32px 10px rgba(208,0,128,.45);
  animation: orb-pulse 2.2s ease-in-out infinite;
}
@keyframes orb-spin  { to { transform: rotate(360deg); } }
@keyframes orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .95; }
  50%      { transform: translate(-50%, -50%) scale(1.18); opacity: 1;   }
}
/* Sparkles orbiting the orb. Each uses a different rotation radius + delay. */
.reveal-orb__spark {
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px;
  background-color: var(--magenta-2);
  -webkit-mask: url("/where-do-i-start/static/img/star.svg") center/contain no-repeat;
          mask: url("/where-do-i-start/static/img/star.svg") center/contain no-repeat;
  margin: -5px 0 0 -5px;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255,80,180,.7));
  animation: orb-orbit 3.6s ease-in-out infinite;
}
.reveal-orb__spark--1 { --r: 84px;  animation-delay: 0.0s; animation-duration: 3.8s; }
.reveal-orb__spark--2 { --r: 92px;  animation-delay: 0.6s; animation-duration: 4.4s; width: 8px; height: 8px; }
.reveal-orb__spark--3 { --r: 78px;  animation-delay: 1.2s; animation-duration: 3.2s; width: 12px; height: 12px; }
.reveal-orb__spark--4 { --r: 96px;  animation-delay: 1.8s; animation-duration: 5.0s; width: 7px;  height: 7px;  }
.reveal-orb__spark--5 { --r: 86px;  animation-delay: 2.4s; animation-duration: 4.0s; width: 11px; height: 11px; }
.reveal-orb__spark--6 { --r: 90px;  animation-delay: 3.0s; animation-duration: 4.6s; width: 9px;  height: 9px;  }
@keyframes orb-orbit {
  0%   { opacity: 0; transform: rotate(0deg)   translateX(var(--r, 88px)) rotate(0deg)   scale(.4); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(420deg) translateX(var(--r, 88px)) rotate(-420deg) scale(1.1); }
}
.reveal-stage__title {
  font-size: 20px; font-weight: 700; color: var(--text);
  margin: 0 0 8px; text-align: center; max-width: 28ch;
  letter-spacing: -0.2px;
}
.reveal-stage__msg {
  font-size: 14.5px; color: var(--magenta-2);
  margin: 0 0 18px; text-align: center; max-width: 38ch;
  min-height: 22px;
  transition: opacity .25s ease;
  font-style: italic;
}
.reveal-stage__sub {
  font-size: 13px; color: var(--text-dim);
  margin: 0; text-align: center; max-width: 38ch;
}
.reveal-stage__sub strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .reveal-orb__ring, .reveal-orb__core, .reveal-orb__spark { animation: none; }
  .reveal-orb__spark { opacity: .7; }
}

/* Thanks */
.thanks-wrap { max-width: 900px; margin: 60px auto; padding: 0 24px; }
.thanks-card {
  padding: 40px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: var(--stroke); box-shadow: var(--shadow);
  text-align: center;
}
.thanks-card h1 { font-size: 36px; }
.calendar-frame {
  width: 100%; min-height: 720px; border: 0;
  border-radius: 18px; background: #fff;
  margin-top: 24px;
}
.calendar-fallback { margin-top: 24px; padding: 32px; border: var(--stroke-soft); border-radius: 18px; }

/* Admin */
.admin-wrap { max-width: 1180px; margin: 30px auto; padding: 0 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table tr:hover td { background: rgba(208,0,128,.05); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.pill-new      { background: rgba(255,255,255,.08); color: var(--text); }
.pill-running  { background: rgba(208,0,128,.15); color: var(--magenta-2); }
.pill-done     { background: rgba(80,200,120,.15); color: #7be29c; }
.pill-completed{ background: rgba(80,200,120,.18); color: #7be29c; }
.pill-suspect  { background: rgba(255,80,80,.15); color: #ff9a9a; }
.pill-hi       { background: var(--grad); color: #fff; font-weight: 600; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 11, 20, .72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  position: relative;
  width: 100%; max-width: 480px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1b1228, #150e1f);
  border: var(--stroke);
  box-shadow: var(--shadow);
}
.modal-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1.5px; background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.modal-card h3 { font-size: 18px; color: var(--text); }
.modal-card code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--text); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Admin auto-refresh: subtle pulse on changed stat + highlight on brand-new rows. */
@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(208,0,128,0); }
  35%  { box-shadow: 0 0 0 4px rgba(208,0,128,.18); }
  100% { box-shadow: 0 0 0 0 rgba(208,0,128,0); }
}
.badge-card.pulse { animation: badge-pulse 800ms ease-out 1; }
@keyframes row-new-flash {
  0%   { background: rgba(208,0,128,.16); }
  100% { background: transparent; }
}
.admin-table tr.row-new td { animation: row-new-flash 2.4s ease-out 1; }

/* Flash banners on admin pages */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.flash-ok  { background: rgba(80,200,120,.12); color: #7be29c; border: 1px solid rgba(80,200,120,.3); }
.flash-err { background: rgba(255,80,80,.10);  color: #ff9a9a; border: 1px solid rgba(255,80,80,.3); }

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 40px 24px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .prop-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .ticker { position: static; width: auto; margin: 0 24px 24px; }
  .start-card { margin: 30px 12px; padding: 12px; }
  .start-inner { padding: 28px 22px; }
  .reveal-card, .q-card { padding: 28px 22px; }
}
