/* International Wire — quiz package B. Shared theme: layout shell, header, hero, footer, quiz dialog. */

@font-face {
  font-family: "IW Display";
  src: url("media/fonts/display-regular.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IW Text";
  src: url("media/fonts/text-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --iw-ink: #201e1e;
  --iw-navy: #0b1e4e;
  --iw-coral: #ed5257;
  --iw-coral-dark: #df434a;
  --iw-coral-glow: rgba(237, 82, 87, .18);
  --iw-mute: #737373;
  --iw-sand: #f4efea;
  --iw-sand-soft: #f6f1ed;
  --iw-cream: #fffcfa;
  --iw-paper: #f5f5f5;
  --iw-rule: #dedede;
  --iw-field: #c7c7c7;
  --iw-blush: #fce6e5;
  --iw-blush-light: #fff2f1;
  --iw-blush-pale: #fff0ef;
  --iw-disabled: #b8b8b8;
  --iw-font: "IW Display", Arial, sans-serif;
  --iw-font-alt: "IW Text", Arial, sans-serif;
  --iw-ease: cubic-bezier(.2, .7, .15, 1);
  --iw-band: calc(100% - 12.5rem);
  --iw-band-max: 107.5rem;
  --iw-radius: 1.5rem;
  font-family: var(--iw-font);
  color: var(--iw-ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; }
body.iw-lock { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: .1875rem solid var(--iw-navy); outline-offset: .1875rem; }

/* ---- Entrance animation (CSS only) ---- */
@keyframes iw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes iw-rise { from { translate: 0 1.5rem; } to { translate: 0 0; } }
[data-fx] {
  animation: iw-fade .75s ease both, iw-rise .75s var(--iw-ease) both;
  animation-delay: var(--fx, 0s);
}
[data-fx="60"]  { --fx: .06s; }
[data-fx="100"] { --fx: .1s; }
[data-fx="120"] { --fx: .12s; }
[data-fx="190"] { --fx: .19s; }
[data-fx="200"] { --fx: .2s; }
[data-fx="240"] { --fx: .24s; }
[data-fx="250"] { --fx: .25s; }
[data-fx="260"] { --fx: .26s; }
[data-fx="280"] { --fx: .28s; }
[data-fx="330"] { --fx: .33s; }

/* ---- Buttons ---- */
.iw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .5rem;
  background: var(--iw-coral);
  color: #fff;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.iw-btn:hover { background: var(--iw-coral-dark); transform: translateY(-.125rem); box-shadow: 0 .5rem 1.25rem var(--iw-coral-glow); }
.iw-btn:active { transform: translateY(0); box-shadow: none; }
.iw-btn:disabled { background: var(--iw-disabled); cursor: not-allowed; box-shadow: none; transform: none; }
.iw-btn-sm { min-width: 6.6875rem; height: 2.5rem; padding: 0 .75rem; font-size: 1rem; font-weight: 400; letter-spacing: -.02em; }
.iw-btn-lg { width: 15.625rem; height: 3.5rem; margin-top: 3.625rem; font-size: 1.125rem; }
.iw-btn-card { width: 16.25rem; height: 3.5rem; margin-top: auto; flex: 0 0 auto; font-size: 1.125rem; }

/* ---- Shell + header ---- */
.iw-wrap { max-width: 120rem; margin: 0 auto; }
.iw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--iw-band);
  max-width: var(--iw-band-max);
  height: 5.5rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.iw-logo { color: var(--iw-navy); font-size: 1.4375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.iw-nav { display: flex; align-items: center; gap: 1.5rem; }
.iw-about { color: var(--iw-ink); font-family: var(--iw-font-alt); font-size: 1rem; text-decoration: none; }

@media (max-width: 99.9375em) and (min-width: 56.3125em) {
  .iw-top { width: calc(100% - 5rem); }
}
@media (max-width: 56.25em) {
  .iw-top { width: 100%; max-width: none; height: 4rem; padding: 0 1.25rem; }
  .iw-logo { font-size: 1.125rem; }
  .iw-nav { gap: 0; }
  .iw-about { display: none; }
  .iw-btn-sm { width: 6.875rem; min-width: 6.875rem; height: 2.25rem; font-size: .9375rem; font-weight: 500; }
}
@media (max-width: 23.125em) {
  .iw-top { padding: 0 1rem; }
  .iw-logo { font-size: 1rem; }
}

/* ---- Blurred glows (shared by hero and thank-you banner) ---- */
.iw-glow {
  position: absolute;
  display: block;
  width: 168.734375rem;
  height: 149.481875rem;
  max-width: none;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: no-repeat 0 0 / 100% 100%;
  transform: rotate(14.59deg);
}
.iw-glow-a { left: 36.25rem; top: -100rem; background-image: url("media/glow-a.svg"); }
.iw-glow-b { left: 9.6875rem; top: 26.875rem; background-image: url("media/glow-b.svg"); }
@media (max-width: 56.25em) { .iw-glow { display: none; } }

/* ---- Hero ---- */
.iw-hero {
  position: relative;
  width: var(--iw-band);
  max-width: var(--iw-band-max);
  height: 59.5rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--iw-radius);
  background: var(--iw-sand);
  isolation: isolate;
  clip-path: inset(0 round var(--iw-radius));
  will-change: transform;
}
.iw-hero-text { position: absolute; z-index: 2; top: 15.75rem; left: 7.5rem; width: 47.5rem; }
.iw-h1 { margin: 0; font-size: 5rem; line-height: 1.17; font-weight: 600; letter-spacing: -.025em; }
.iw-lead { max-width: 46.25rem; margin: 1.375rem 0 0; font-size: 1.8125rem; line-height: 1.25; font-weight: 400; }
.iw-art {
  position: absolute;
  z-index: 1;
  top: 8.4375rem;
  left: 81.125rem;
  width: 26.25rem;
  height: 39.375rem;
  max-width: none;
  object-fit: cover;
  transform: rotate(6.55deg);
  pointer-events: none;
}
.iw-card {
  position: absolute;
  z-index: 3;
  top: 9.375rem;
  left: 55.625rem;
  display: flex;
  flex-direction: column;
  width: 35.625rem;
  height: 39.6875rem;
  padding: 2.5625rem 2.4375rem 2.8125rem;
  overflow: hidden;
  border: 1px solid rgba(222, 199, 191, .32);
  border-radius: 1.75rem;
  background: var(--iw-cream);
}
.iw-kicker { margin: 0 0 2rem; color: var(--iw-coral); font-size: 1.125rem; font-weight: 500; }
.iw-card-h { margin: 0; font-size: 2.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.iw-card-p { margin: 2.375rem 0 0; font-size: 1.375rem; line-height: 1.25; }

@media (max-width: 99.9375em) and (min-width: 56.3125em) {
  .iw-hero { width: calc(100% - 5rem); height: min(59.5rem, 59vw); min-height: 39.375rem; }
  .iw-hero-text { top: 26.5%; left: 7%; width: 43%; }
  .iw-h1 { font-size: clamp(2.875rem, 4.16vw, 5rem); }
  .iw-lead { font-size: clamp(1.1875rem, 1.5vw, 1.8125rem); }
  .iw-btn-lg { margin-top: 6%; }
  .iw-art { top: 14%; left: 75.5%; width: 24.5%; height: 66%; }
  .iw-card { top: 15.8%; left: 51.7%; width: 33.2%; height: 66.7%; padding: 2.4% 2.3% 2.6%; border-radius: 1.5rem; }
  .iw-kicker { margin-bottom: 6%; font-size: clamp(.8125rem, 1vw, 1.125rem); }
  .iw-card-h { font-size: clamp(1.6875rem, 2.08vw, 2.5rem); }
  .iw-card-p { margin-top: 8%; font-size: clamp(1rem, 1.15vw, 1.375rem); }
}
@media (max-width: 56.25em) {
  .iw-hero {
    width: calc(100% - 2rem);
    max-width: 37.5rem;
    height: auto;
    min-height: 55rem;
    margin-top: .75rem;
    padding: 4.0625rem 1.5rem 3.125rem;
    border-radius: 1.125rem;
    background: var(--iw-sand-soft);
    clip-path: inset(0 round 1.125rem);
  }
  .iw-art { display: none; }
  .iw-hero-text { position: relative; top: auto; left: auto; width: 100%; }
  .iw-h1 { font-size: 2.25rem; line-height: 2.6875rem; letter-spacing: -.025em; }
  .iw-lead { max-width: 25rem; margin-top: 3.75rem; font-size: 1.125rem; line-height: 1.25; }
  .iw-btn-lg { width: 13.4375rem; height: 2.875rem; margin-top: 2.125rem; font-size: .9375rem; }
  .iw-card {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% + 1rem);
    height: auto;
    min-height: 25.625rem;
    margin: 2.4375rem -.5rem 0;
    padding: 1.625rem 1.25rem .875rem;
    border: 0;
    border-radius: 1rem;
    background: #fff;
  }
  .iw-kicker { margin-bottom: 1.6875rem; font-size: .8125rem; }
  .iw-card-h { font-size: 1.875rem; line-height: 1.18; }
  .iw-wide-only { display: none; }
  .iw-card-p { margin-top: 1.8125rem; font-size: 1.125rem; line-height: 1.25; }
  .iw-btn-card { width: 13.75rem; height: 2.875rem; margin-top: auto; font-size: .9375rem; }
}
@media (max-width: 23.125em) {
  .iw-hero { padding: 3.4375rem 1.25rem 2.5rem; }
  .iw-h1 { font-size: 2rem; line-height: 1.18; }
  .iw-lead { margin-top: 2.875rem; }
  .iw-card { width: calc(100% + .5rem); margin-left: -.25rem; margin-right: -.25rem; }
  .iw-card-h { font-size: 1.6875rem; }
  .iw-card-p { font-size: 1.0625rem; }
}

/* ---- Footer ---- */
.iw-foot { width: var(--iw-band); max-width: var(--iw-band-max); height: 21.875rem; margin: 13.125rem auto 0; }
.iw-foot-line { height: 1px; margin: 0; border: 0; background: var(--iw-rule); }
.iw-logo-lg { display: inline-block; margin-top: 3.0625rem; font-size: 2rem; }
.iw-foot-row { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2.9375rem; font-size: 1.0625rem; }
.iw-foot-note { margin: 0; color: var(--iw-mute); }
.iw-legal { display: flex; gap: 1.125rem; padding-right: .625rem; white-space: nowrap; }
.iw-legal a { color: inherit; text-decoration: none; }
.iw-legal a:hover, .iw-legal a:focus-visible { text-decoration: underline; }

@media (max-width: 99.9375em) and (min-width: 56.3125em) {
  .iw-foot { width: calc(100% - 5rem); height: 21.875rem; margin-top: 12vw; }
}
@media (max-width: 56.25em) {
  .iw-foot { width: 100%; height: auto; min-height: 10.875rem; margin: 0; padding: 1.6875rem 1.25rem 1.375rem; }
  .iw-foot-line { display: none; }
  .iw-logo-lg { margin: 0; font-size: 1.125rem; }
  .iw-foot-row { display: block; margin-top: 1.0625rem; font-size: .75rem; }
  .iw-legal { gap: .6875rem; margin-top: 2rem; padding: 0; color: var(--iw-ink); font-size: .8125rem; }
}

/* ---- Quiz dialog ---- */
@keyframes iw-dim { from { opacity: 0; } to { opacity: 1; } }
@keyframes iw-pop { from { opacity: 0; transform: translateY(1.5rem) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes iw-step-in { from { opacity: 0; transform: translateY(.875rem); } to { opacity: 1; transform: none; } }
@keyframes iw-step-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-.75rem); } }

.iw-quiz {
  width: min(47.5rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 3rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--iw-radius);
  background: #fff;
  color: var(--iw-ink);
  box-shadow: 0 1rem 3.75rem rgba(0, 0, 0, .1);
  overflow-y: auto;
}
.iw-quiz[open] { animation: iw-pop .35s cubic-bezier(.2, .75, .2, 1) both; }
.iw-quiz::backdrop { background: rgba(0, 0, 0, .48); animation: iw-dim .3s ease both; }
.iw-x {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--iw-mute);
  font-size: 1.9375rem;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s ease, background-color .2s ease;
}
.iw-x:focus-visible { opacity: 1; }
.iw-x:hover { background: var(--iw-paper); }
.iw-stage { min-height: 100%; }
.iw-step.iw-enter { animation: iw-step-in .3s var(--iw-ease) both; }
.iw-step.iw-leave { animation: iw-step-out .18s ease-in both; }

.iw-ask { display: flex; flex-direction: column; padding: 3.375rem 3.25rem 3.125rem; }
.iw-count { margin: 0; color: var(--iw-mute); font-size: 1.25rem; font-weight: 500; }
.iw-q { margin: 1.875rem 0 0; font-size: 2.625rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.iw-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.125rem; margin-top: 2.375rem; }
.iw-choice {
  width: 100%;
  min-height: 4.5rem;
  padding: 1.125rem 1.25rem;
  border: .125rem solid transparent;
  border-radius: .875rem;
  background: var(--iw-paper);
  color: var(--iw-ink);
  text-align: left;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.iw-choice:hover { background: var(--iw-blush); transform: translateY(-.125rem); }
.iw-choice:active, .iw-choice.iw-picked { border-color: var(--iw-coral); background: var(--iw-blush-light); transform: none; }
.iw-tip { margin: auto 0 0; padding-top: 1.875rem; color: var(--iw-mute); font-size: 1rem; }

.iw-result { padding: 3.75rem 3.25rem; }
.iw-result-h { margin: 0; font-size: 2.5rem; line-height: 1.18; font-weight: 600; letter-spacing: -.02em; }
.iw-result-p { margin: 1.625rem 0 0; font-size: 1.4375rem; line-height: 1.3; }
.iw-form { margin-top: 2.5rem; }
.iw-label { display: block; margin-bottom: .625rem; font-size: 1rem; font-weight: 500; }
.iw-input {
  display: block;
  width: 100%;
  height: 3.625rem;
  padding: 0 1.125rem;
  border: 1px solid var(--iw-field);
  border-radius: .75rem;
  background: #fff;
  color: var(--iw-ink);
  font-size: 1.125rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.iw-input::placeholder { color: var(--iw-mute); opacity: 1; }
.iw-input:focus { outline: none; border-color: var(--iw-coral); box-shadow: 0 0 0 .1875rem rgba(237, 82, 87, .12); }
.iw-send { width: 22.5rem; max-width: 100%; height: 3.375rem; margin-top: 1.25rem; font-size: 1.125rem; }
.iw-help { margin: .75rem 0 0; color: var(--iw-mute); font-size: .9375rem; }
.iw-help[hidden] { display: none; }

@media (max-height: 56.25em) and (min-width: 56.3125em) {
  .iw-ask { padding: 3.625rem 4rem 3rem; }
  .iw-q { margin-top: 1.5625rem; font-size: 2.5rem; }
  .iw-choices { gap: .875rem 1.5rem; margin-top: 2.1875rem; }
  .iw-choice { min-height: 4.5rem; padding: 1rem 1.25rem; font-size: 1.25rem; }
  .iw-tip { margin-top: 2rem; padding: 0; font-size: 1rem; }
  .iw-result { padding-top: 4.375rem; }
  .iw-result-h { font-size: 2.5rem; }
  .iw-result-p { margin-top: 1.75rem; font-size: 1.4375rem; }
  .iw-form { margin-top: 2.5rem; }
  .iw-label { font-size: 1rem; }
  .iw-input { height: 3.75rem; font-size: 1.125rem; }
  .iw-send { height: 3.375rem; margin-top: 1.25rem; font-size: 1.125rem; }
  .iw-help { font-size: 1rem; }
}
@media (max-width: 56.25em) {
  .iw-quiz { width: min(calc(100% - 2rem), 31.25rem); max-height: calc(100dvh - 2rem); border-radius: 1.125rem; }
  .iw-x { top: .875rem; right: .875rem; width: 2rem; height: 2rem; font-size: 1.625rem; }
  .iw-ask { min-height: 0; padding: 3.5rem 1.5rem 1.75rem; }
  .iw-count { font-size: .9375rem; }
  .iw-q { margin-top: 1.25rem; font-size: 1.625rem; line-height: 1.17; letter-spacing: -.02em; }
  .iw-choices { grid-template-columns: 1fr; gap: .75rem; margin-top: 1.75rem; }
  .iw-choice { min-height: 3.5rem; padding: .875rem 1rem; border-radius: .625rem; font-size: 1.0625rem; }
  .iw-tip { padding-top: 1.25rem; font-size: .875rem; }
  .iw-result { min-height: 0; padding: 3.5rem 1.5rem 2rem; }
  .iw-result-h { font-size: 1.8125rem; line-height: 1.17; }
  .iw-result-p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.24; }
  .iw-form { margin-top: 2rem; }
  .iw-label { margin-bottom: .625rem; font-size: .9375rem; }
  .iw-input { height: 3.375rem; padding: 0 .8125rem; border-radius: .5rem; font-size: 1.0625rem; }
  .iw-send { width: 100%; height: 3.25rem; margin-top: 1.25rem; font-size: 1rem; }
  .iw-help { margin-top: .75rem; font-size: .875rem; }
}
@media (max-width: 23.125em) {
  .iw-quiz { width: calc(100% - 1.25rem); }
  .iw-ask, .iw-result { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-fx] { animation: none; opacity: 1; translate: none; }
}
