:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Cormorant Garamond", Georgia, serif;

  /* Campaign colours from caps.<key>.theme; the rest comes from the site theme in root.css. */
  --cta-from: #27C063;
  --cta-to: #12913F;
  --cta-hover-from: #2FD06E;
  --cta-hover-to: #14A046;
  --cta-shadow: rgba(18, 145, 63, .55);
  --notice-background: #FFF4E5;
  --notice-text: #6A3B00;

  --cta-bg: linear-gradient(180deg, var(--cta-from) 0%, var(--cta-to) 100%);
  --cta-bg-hover: linear-gradient(180deg, var(--cta-hover-from) 0%, var(--cta-hover-to) 100%);
}

html { background: var(--surface); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--main-text);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--main-text); outline-offset: 2px; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.03; text-wrap: balance; }
p { margin: 0; }
img { display: block; max-width: 100%; }

/* shared */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--cta-bg);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
  white-space: nowrap;
  box-shadow: 0 12px 24px -12px var(--cta-shadow), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -12px var(--cta-shadow), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.btn:active { transform: translateY(1px); box-shadow: 0 6px 14px -8px var(--cta-shadow); }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  animation: shine 3.6s ease-in-out infinite;
}
.btn.wide { width: 100%; }
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn::after { animation: none; display: none; } }

.tlink { text-decoration: underline; text-underline-offset: 3px; background: none; }
.kick { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); }
.shot { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--main-background); }
.shot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* top bar */
.qtop { background: var(--surface); border-bottom: 1px solid var(--border); }
.qtop__in { max-width: 760px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.qtop__logo { display: flex; text-decoration: none; align-items: center; gap: 8px; font-family: var(--wordmark); font-weight: 700; font-size: 22px; letter-spacing: .16em; color: var(--main-text); text-transform: uppercase; }
.qtop__logo sup { font-family: var(--body); font-size: 10px; letter-spacing: 0; color: var(--secondary); }
.qtop__step { font-size: 13px; font-weight: 600; color: var(--muted-text); }
.qbar { height: 5px; background: var(--muted-background); }
.qbar i { display: block; width: 0; height: 100%; background: var(--main); transition: width .3s; }

/* quiz body */
.qwrap { max-width: 760px; min-height: 70vh; margin: 0 auto; padding: 44px 20px 90px; }
.qwrap .kick { display: block; text-align: center; }
.qwrap h1 { margin-top: 10px; text-align: center; font-size: clamp(34px, 4.6vw, 52px); }
.qwrap .qp { margin-top: 10px; text-align: center; color: var(--secondary-text); }

.qopts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
@media (max-width: 560px) { .qopts { grid-template-columns: 1fr; } }
.qopts button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.qopts button:hover { border-color: var(--main); transform: translateY(-1px); }
.qopts button[aria-pressed="true"] { border-color: var(--main); background: color-mix(in srgb, var(--main) 6%, var(--surface)); }
.qopts button i {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--muted-background);
  font-style: normal;
  font-family: var(--display);
  font-size: 18px;
  color: var(--secondary);
}

.qnav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-size: 14px; }
.qnav button { min-height: 44px; text-decoration: underline; color: var(--muted-text); }
.qnav__counter { color: var(--muted-text); }

.qstart { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
.qstart .shot { width: 220px; height: 260px; background: transparent; }
.qstart .shot img { height: 250px; width: auto; border-radius: 1rem; object-fit: cover; }
.qstart__note { font-size: 13px; color: var(--muted-text); }

.qres { display: grid; grid-template-columns: 1fr 1.1fr; margin-top: 30px; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--surface); }
@media (max-width: 680px) { .qres { grid-template-columns: 1fr; } }
.qres .shot { min-height: 300px; }
.qres .shot img { height: 260px; width: auto; max-width: 92%; }
.qres__body { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.qres__body h2 { font-size: 36px; }
.qres__body ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 18px; color: var(--secondary-text); }
.qres__price { display: flex; align-items: baseline; gap: 10px; }
.qres__price b { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.qres__price s { color: var(--muted-text); }
.qres .qagain { align-self: center; min-height: 40px; font-size: 14px; color: var(--muted-text); }

.qnote { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--notice-background); color: var(--notice-text); font-size: 14px; }
.qfine { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted-text); }
