:root {
  /* VeryQuote brand palette (see README for the canonical hex values) */
  --brand-primary: #51344d; /* deep plum */
  --brand-secondary: #a98ba3; /* soft lavender */
  --brand-cta: #e76f51; /* coral */
  --brand-cream: #faf7f2; /* warm cream */
  --brand-ink: #292629; /* dark text */
  --brand-white: #ffffff;

  /* Tints/shades derived from the palette above for backgrounds, borders,
     hover states, and muted text — small adjustments for contrast only,
     the same plum/lavender/coral/cream identity throughout. */
  --bg-1: #fffdfb;
  --bg-2: var(--brand-cream);
  --bg-3: #f1e6ef;
  --ink: var(--brand-ink);
  --ink-muted: #6f5c6b;
  --disc-muted: #8c7b89;
  --accent: var(--brand-cta);
  --accent-2: var(--brand-primary);
  --card-border: #ece0ea;
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-chip: 16px;
  --max-width: 1100px;
  --font: "Nunito", "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fffdfb;
}

a {
  color: var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
}

.mqx {
  background-image: radial-gradient(120% 70% at 50% 0%, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  min-height: 100vh;
}

/* Header */
.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wm {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.wm-very {
  font-weight: 800;
  color: var(--ink);
}

.wm-quote {
  font-weight: 900;
  color: var(--accent-2);
}

.nge {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* SEP note */
.sepnote {
  max-width: 760px;
  margin: 2px auto 0;
  padding: 0 18px;
  font-size: 0.84375rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

/* Main quiz area */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 18px 30px;
  text-align: center;
}

.mary {
  width: 110px;
  margin: 4px auto 0;
}

.mary svg {
  width: 100%;
  height: auto;
  display: block;
}

.bubble {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin: 16px auto 0;
  background: #ffffff;
  border: 2px solid var(--bg-1);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 20px rgba(81, 52, 77, 0.14);
  padding: 18px 22px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}

.bubble .caret {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--bg-1);
}

.sub {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 10px 0 0;
  min-height: 1.4em;
}

.area {
  max-width: 400px;
  width: 100%;
  margin: 16px auto 0;
}

/* Chip buttons */
.chips {
  display: grid;
  gap: 12px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-chip);
  padding: 14px 18px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.chip .em {
  font-size: 1.5rem;
  line-height: 1;
}

/* Solid CTA button */
.go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  border: 0;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 1.3125rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(231, 111, 81, 0.35);
  text-decoration: none;
  gap: 8px;
}

.go:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Final CTA step */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.final-consent {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 380px;
}

/* Legal pages */
.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: left;
}

.legal-main h1 {
  font-size: 1.5rem;
  color: var(--accent-2);
  margin-top: 0;
}

.legal-main h2 {
  font-size: 1.1rem;
  color: var(--accent-2);
  margin: 28px 0 8px;
}

.legal-main p,
.legal-main li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.legal-main ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-main li {
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--ink-muted) !important;
  font-size: 0.85rem !important;
}

/* Disclaimer block */
.disc {
  max-width: var(--max-width);
  margin: 90px auto 0;
  padding: 36px 18px 30px;
  text-align: center;
  border-top: 1px solid rgba(41, 38, 41, 0.08);
}

.disc p {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--disc-muted);
}

.tpmo-placeholder {
  border: 1px dashed var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(231, 111, 81, 0.08);
}

.tpmo-placeholder strong {
  color: var(--accent);
}

.footer-legal {
  font-size: 0.75rem !important;
}

.ref-code {
  font-family: monospace;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.footer-links a {
  color: var(--disc-muted);
  text-decoration: underline;
}

/* Responsive: stack header + shrink type on narrow screens */
@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bubble {
    font-size: 1.1rem;
    padding: 16px 18px;
  }

  .sepnote {
    font-size: 0.8rem;
  }

  .go {
    font-size: 1.1rem;
    height: 56px;
  }
}
