/*
  styles.css: how everything looks.
  The "design tokens" below are the brand in one place: change a colour
  here and it changes across every page.
*/

:root {
  /* Colours */
  --bg: #FAF6EF;          /* warm off-white page */
  --surface: #FFFDF8;     /* cards, slightly lighter than the page */
  --ink: #2B211C;         /* main text, deep brown-black */
  --ink-soft: #5E514A;    /* secondary text */
  --line: #E4D9C8;        /* hairlines and borders */
  --accent: #B4471F;      /* terracotta: buttons, highlights */
  --accent-dark: #933A18; /* button hover */
  --accent-soft: #F4E3D7; /* pale terracotta backgrounds */
  --error: #A8231A;       /* form error messages */

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Young Serif", Georgia, serif;           /* logo only */
  --font-hand: "Caveat", "Comic Sans MS", cursive;      /* the "un" in the logo only */

  /* Spacing and shape */
  --gutter: 20px;
  --max: 1080px;
  --radius: 14px;
  --tap: 52px; /* minimum height for anything you tap */

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* stronger: nothing (even mid-animation) can make the page scroll sideways */
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
}

.nowrap { white-space: nowrap; }

/* WhatsApp links hide themselves until a number is set in config.js */
[data-link][hidden], [data-needs][hidden] { display: none !important; }

p { margin: 0; }
a { color: var(--accent); }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 10;
}

/* Small uppercase label above section titles */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 26px; height: 26px; }

/* ---------- Logo: "un" bursting out of a bubble around "bubble" ----------
   Extras can be switched off with classes: no-fill, no-shine, no-burst,
   no-float, no-bounce. Change font-size on .ub-logo to resize everything. */

.ub-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-logo);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px; /* comfortable tap target */
}
.ub-logo .un {
  position: relative;
  z-index: 2;
  margin-right: -0.2em;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.25em;
  color: var(--accent);
  transform: rotate(-12deg) translateY(-0.18em);
}
.ub-logo .bub {
  position: relative;
  z-index: 1;
  padding: 0.12em 0.45em 0.2em 0.42em;
}
.ub-logo .bub-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
}
.ub-logo .letters span { display: inline-block; }
.ub-logo .letters span:nth-child(odd)  { transform: translateY(-0.05em) rotate(-4deg); }
.ub-logo .letters span:nth-child(even) { transform: translateY(0.04em) rotate(4deg); }

/* Little bubbles floating off the top-right */
.ub-logo .floaties {
  position: absolute;
  right: -0.35em;
  top: -0.55em;
  width: 0.7em;
  height: 0.7em;
}
.ub-logo .floaties i {
  position: absolute;
  border: 0.06em solid var(--ink);
  border-radius: 50%;
  animation: float-up 3.2s ease-in-out infinite;
}
.ub-logo .floaties i:nth-child(1) { width: 0.26em; height: 0.26em; left: 0; bottom: 0; }
.ub-logo .floaties i:nth-child(2) { width: 0.18em; height: 0.18em; left: 0.36em; bottom: 0.22em; animation-delay: -1.1s; }
.ub-logo .floaties i:nth-child(3) { width: 0.12em; height: 0.12em; left: 0.22em; bottom: 0.52em; animation-delay: -2.2s; }

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.12em); }
}

.ub-logo.no-fill .bub-fill,
.ub-logo.no-shine .bub-shine,
.ub-logo.no-burst .bub-burst,
.ub-logo.no-float .floaties { display: none; }
.ub-logo.no-bounce .letters span { transform: none; }

/* ---------- Hero ---------- */

.hero { padding: 48px 0 56px; }
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--surface);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 10vw, 4.6rem);
}
.hero h1 em { font-style: italic; }

/* "verified" gets a hand-drawn terracotta underline */
.verified {
  color: var(--accent);
  white-space: nowrap;
  padding-bottom: 0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 2, 80 11, 120 6 S 180 3, 198 7' fill='none' stroke='%23B4471F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 0.22em no-repeat;
}

/* The selfie / LinkedIn / phone trust box above the button */
.verify-box {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 420px;
}
.verify-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.verify-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}
.verify-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.verify-list svg {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.hero-sub {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 32ch;
}
.hero-cta { margin-top: 28px; }
.hero-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero-art {
  max-width: 240px;
  margin: 0 auto;
}
.hero-art .ring circle {
  transform-origin: center;
  transform-box: fill-box;
  animation: drift 6s ease-in-out infinite;
}
.hero-art .ring circle:nth-child(2) { animation-delay: -1s; }
.hero-art .ring circle:nth-child(3) { animation-delay: -2s; }
.hero-art .ring circle:nth-child(4) { animation-delay: -3s; }
.hero-art .ring circle:nth-child(5) { animation-delay: -4s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.section-head { margin-bottom: 32px; }
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 6.5vw, 2.8rem);
}
.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
}
.step-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); }

/* Trust strip */
.trust {
  background: var(--ink);
  color: var(--bg);
  padding: 40px 0;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}
.trust-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.4;
}
.trust-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #E8A27F; /* lighter terracotta so it reads on dark */
}
.trust-list li:last-child { grid-column: 1 / -1; }

/* Experiences, styled like a café menu */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.menu-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}
.menu-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  padding-top: 3px;
}
.menu-name { font-size: 1.4rem; }
.menu-blurb { margin-top: 6px; color: var(--ink-soft); }
.menu-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-price {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.menu-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 20px;
  color: var(--ink-soft);
  animation: fade-up 0.3s ease;
}

/* Closing call to action */
.final-cta {
  text-align: center;
  padding: 72px 0;
  background: var(--accent-soft);
}
.final-cta h2 { font-size: clamp(2rem, 7vw, 3rem); }
.final-cta p {
  margin: 14px auto 28px;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer a {
  color: var(--ink);
  display: inline-block;
  padding: 10px 0; /* bigger tap area */
}

/* ---------- Privacy page ---------- */

.privacy { max-width: 680px; padding-top: 40px; padding-bottom: 56px; }
.privacy h1 { margin-top: 10px; font-size: clamp(2rem, 8vw, 2.8rem); }
.privacy-lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft); }
.privacy section { margin-top: 36px; }
.privacy h2 { font-size: 1.4rem; margin-bottom: 10px; }
.privacy p + p, .privacy ul + p { margin-top: 10px; }
.privacy ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.privacy-note {
  margin-top: 44px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 0.95rem;
}
.privacy-date { margin-top: 10px; font-weight: 600; }

/* =====================================================================
   QUIZ PAGE
   ===================================================================== */

.quiz-page { min-height: 100vh; }

.quiz-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding-bottom: 10px;
}
.quiz-top-row {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr); /* logo centred, sides share the rest */
  gap: 8px;
  align-items: center;
  min-height: 72px;
}
.quiz-logo { justify-self: center; font-size: 1.35rem; }
.back-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.back-btn svg { width: 20px; height: 20px; }
.back-btn:hover { border-color: var(--ink); }
.back-btn[hidden] { display: grid; visibility: hidden; }
.quiz-count {
  justify-self: end;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.progress-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.progress-dots span {
  width: 28px;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  transition: background 0.3s;
}
.progress-dots span.done { background: var(--accent); }
.progress-dots[hidden], .progress-bar[hidden] { display: none; }

/* One screen of the quiz */
.quiz-main {
  padding-top: 20px;
  padding-bottom: 48px;
  max-width: 620px;
  outline: none;
}
.screen-in-forward { animation: slide-in-right 0.35s ease both; }
.screen-in-back { animation: slide-in-left 0.35s ease both; }
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

.q-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.q-title {
  margin-top: 10px;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 1.15;
  outline: none;
}
.q-help {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* Answer buttons */
.choices {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.choice {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 500 1.05rem/1.35 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.choice:hover { border-color: var(--ink-soft); }
.choice:active { transform: scale(0.98); }
.choice-key {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.choice.is-multi .choice-key { border-radius: 8px; color: transparent; }
.choice[aria-pressed="true"],
.choice[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice[aria-pressed="true"] .choice-key,
.choice[aria-checked="true"] .choice-key {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.choice[aria-pressed="true"] { animation: pop 0.25s ease; }
@keyframes pop {
  50% { transform: scale(1.02); }
}

/* Reassurance card that appears under a chosen worry */
.reassure {
  margin: 8px 0 4px 44px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink);
  animation: fade-up 0.3s ease both;
}
.reassure textarea { margin-top: 8px; }

/* Slider question */
.slider-wrap { margin-top: 36px; }
.slider-value {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  min-height: 1.4em;
}
.slider {
  width: 100%;
  margin: 14px 0 6px;
  accent-color: var(--accent);
  height: 32px;
  cursor: pointer;
}
.slider-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.slider-ends span:last-child { text-align: right; }

.screen-actions { margin-top: 28px; }
.screen-actions .btn { width: 100%; }
.form-error {
  margin-top: 12px;
  color: var(--error);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Intro screen */
.intro { text-align: center; padding-top: 24px; }
.intro .q-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
.intro .q-help { font-size: 1.1rem; max-width: 30ch; margin: 14px auto 0; }
.intro-art { width: 180px; margin: 0 auto 8px; }
.intro .screen-actions { max-width: 340px; margin: 32px auto 0; }
.intro-meta { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }

/* "About you" form */
.form { margin-top: 24px; display: grid; gap: 22px; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hint { font-size: 0.88rem; color: var(--ink-soft); margin-top: -4px; margin-bottom: 8px; }
.input, textarea.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.4 var(--font-body);
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error {
  margin-top: 6px;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 500;
}
.field-error:empty { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
  transition: all 0.15s;
}
.pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pills[aria-invalid="true"] .pill span { border-color: var(--error); }

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
}
.or-divider::before, .or-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--line);
}
.verify-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 8px;
}
.verify-group .input { background: var(--bg); }

.field .check,
.check {
  display: flex;
  font-weight: 400;
  margin-bottom: 0;
  gap: 12px;
  align-items: flex-start;
  min-height: 48px;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check span { line-height: 1.45; }

/* ---------- Persona reveal ---------- */

.reveal-loading {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
}
.loading-bubbles { display: flex; gap: 10px; }
.loading-bubbles i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: bubble-bounce 0.9s ease-in-out infinite;
}
.loading-bubbles i:nth-child(2) { animation-delay: 0.15s; background: var(--accent-soft); }
.loading-bubbles i:nth-child(3) { animation-delay: 0.3s; background: var(--accent); }
@keyframes bubble-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.15); }
}

/* The 4:5 card, made to be screenshotted */
.persona-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  padding: 22px 24px 20px;
  border-radius: 24px;
  background: var(--card-bg);
  color: var(--card-fg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(43, 33, 28, 0.45);
  animation: card-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes card-in {
  from { opacity: 0; transform: scale(0.85) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.card-brand {
  font-family: var(--font-logo);
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}
.card-art {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8px 0;
}
.card-art svg { width: 62%; max-height: 100%; }
.card-art .solid { fill: currentColor; stroke: none; }
.card-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.card-name {
  margin-top: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.3rem, 11vw, 2.9rem);
  line-height: 1;
}
.card-line {
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.4;
}
.card-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  font-size: 0.75rem;
  opacity: 0.8;
}

.result-body { margin-top: 32px; animation: fade-up 0.5s 0.3s ease both; }
.result-title { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
.result-points {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}
.result-points h2,
.next-steps h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.result-points p { margin-top: 6px; font-size: 1.05rem; }

.share { margin-top: 28px; text-align: center; }
.share .btn { width: 100%; }
.share-status { margin-top: 10px; font-weight: 600; min-height: 1.4em; word-break: break-all; }
.share-tip { font-size: 0.9rem; color: var(--ink-soft); }

.next-steps {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.next-lead { margin-top: 8px; font-weight: 600; }
.next-steps ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
}
.result-home { margin-top: 24px; text-align: center; }
.result-home a { display: inline-block; padding: 12px 0; color: var(--ink); }

@media (min-width: 760px) {
  .result-points { grid-template-columns: 1fr 1fr; }
}

/* Spam trap: invisible to people, bots fill it in */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Motion ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero-copy > * { animation: fade-up 0.6s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.4s; }

/* Only hide .reveal sections when JavaScript is running to show them again */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Items inside a section cascade in one after another (site.js sets --i: 0, 1, 2…) */
.js .reveal .stagger {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 1.3, 0.4, 1);
  transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}
.js .reveal.is-visible .stagger { opacity: 1; transform: none; }

/* ---------- Quirky extras ---------- */

/* A squishy wobble, used on buttons and the logo */
@keyframes jelly {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.08, 0.92); }
  50% { transform: scale(0.95, 1.05); }
  70% { transform: scale(1.03, 0.97); }
}
.btn:hover,
.hero-cta .btn:hover { animation: jelly 0.55s ease; }
.hero-cta .btn { animation: jelly 0.7s 1.8s ease both; } /* one wobble after the page loads */

.ub-logo:hover .bub { animation: jelly 0.6s ease; }
.ub-logo:hover .un { animation: un-hop 0.5s ease; }
@keyframes un-hop {
  0%, 100% { transform: rotate(-12deg) translateY(-0.18em); }
  40% { transform: rotate(-22deg) translateY(-0.55em); }
}

/* Hero: your circle slowly orbits "you", who gently pulses */
.hero-art .ring {
  transform-box: view-box;
  transform-origin: 150px 150px;
  animation: orbit 60s linear infinite;
}
.hero-art .you-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: you-pulse 3.2s ease-in-out infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes you-pulse { 50% { transform: scale(1.07); } }

/* Hero: soft bubbles drifting up in the background */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero-bubbles i {
  position: absolute;
  bottom: -40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: rise 16s linear infinite;
}
.hero-bubbles i:nth-child(1) { left: 6%;  width: 18px; height: 18px; animation-delay: 0s; }
.hero-bubbles i:nth-child(2) { left: 22%; width: 10px; height: 10px; animation-delay: -5s; animation-duration: 12s; }
.hero-bubbles i:nth-child(3) { left: 48%; width: 26px; height: 26px; animation-delay: -9s; animation-duration: 20s; }
.hero-bubbles i:nth-child(4) { left: 70%; width: 12px; height: 12px; animation-delay: -2s; }
.hero-bubbles i:nth-child(5) { left: 88%; width: 20px; height: 20px; animation-delay: -12s; animation-duration: 18s; }
.hero-bubbles i:nth-child(6) { left: 36%; width: 8px;  height: 8px;  animation-delay: -7s; animation-duration: 11s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.35; }
  50% { transform: translate(16px, -45vh); }
  90% { opacity: 0.25; }
  100% { transform: translate(-8px, -90vh); opacity: 0; }
}

/* "verified": the underline draws itself in, then the ticks pop in one by one */
.verified { background-size: 0% 0.22em; animation: underline-draw 0.7s 0.7s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
@keyframes underline-draw { to { background-size: 100% 0.22em; } }
.verify-list svg { animation: tick-pop 0.45s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.verify-list li:nth-child(1) svg { animation-delay: 1s; }
.verify-list li:nth-child(2) svg { animation-delay: 1.15s; }
.verify-list li:nth-child(3) svg { animation-delay: 1.3s; }
@keyframes tick-pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }

/* How it works: numbers wiggle as they arrive */
.reveal.is-visible .step-num { animation: wiggle 0.7s calc(var(--i, 0) * 90ms + 0.4s) ease both; }
@keyframes wiggle {
  25% { transform: rotate(-10deg) scale(1.12); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-4deg); }
}

/* Menu: the number spins a little when you hover an experience */
.menu-num { transition: transform 0.3s cubic-bezier(0.2, 1.6, 0.4, 1); }
.menu-item:hover .menu-num { transform: rotate(-14deg) scale(1.25); }

/* Quiz intro bubbles bob gently */
.intro-art circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 4.5s ease-in-out infinite;
}
.intro-art circle:nth-of-type(2) { animation-delay: -1s; }
.intro-art circle:nth-of-type(3) { animation-delay: -2s; }
.intro-art circle:nth-of-type(4) { animation-delay: -3s; }

/* Persona reveal: bubbles burst out around the card */
.card-stage { position: relative; }
.card-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}
.card-burst i {
  position: absolute;
  left: calc(var(--s) / -2);
  top: calc(var(--s) / -2);
  width: var(--s);
  height: var(--s);
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgba(244, 227, 215, 0.6);
  opacity: 0;
  animation: burst 1s var(--d) cubic-bezier(0.1, 0.8, 0.3, 1) both;
}
@keyframes burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  15% { opacity: 1; }
  70% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.5); }
}

/* Respect people who've asked their phone for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .reveal .stagger { opacity: 1; transform: none; }
  .verified { background-size: 100% 0.22em; }
  .hero-bubbles, .card-burst { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Bigger screens ---------- */

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero { padding: 80px 0 96px; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .hero-art { max-width: 380px; }
  .section { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { grid-template-columns: 1fr; }
  .step-num { grid-row: auto; margin-bottom: 8px; }
  .trust-list { grid-template-columns: repeat(5, 1fr); }
  .trust-list li:last-child { grid-column: auto; }
  .menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .experiences .section-head,
  .faq .section-head { max-width: 560px; }
  .faq-list { max-width: 760px; }
}
