/* Reid's PHYX Creator Program design, with text colours lifted to WCAG AA where the
   original aqua sat behind or under small text. */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/raleway-latin.woff2") format("woff2");
}

:root {
  --teal: #176a7a;
  --aqua: #27baa6;
  --aqua-on-teal: #7fe0d2;
  --pale: #e9f1f2;
  --navy: #093548;
  --bg: #ffffff;
  --surface: #e9f1f2;
  --text: #093548;
  --muted: rgba(9, 53, 72, 0.78);
  --line: rgba(23, 106, 122, 0.18);
  --field-line: #5e8c96;
  --focus: #093548;
  --link: #176a7a;
  --hero-bg: #176a7a;
  --hero-text: #ffffff;
  --card: #ffffff;
  --no: #b3412f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #062734;
    --surface: #093548;
    --text: #e9f1f2;
    --muted: rgba(233, 241, 242, 0.78);
    --line: rgba(233, 241, 242, 0.16);
    --field-line: #7fa9b2;
    --focus: #7fe0d2;
    --link: #7fe0d2;
    --hero-bg: #0b4a57;
    --card: #0b3d52;
    --no: #f08a76;
  }
}
:root[data-theme="dark"] {
  --bg: #062734;
  --surface: #093548;
  --text: #e9f1f2;
  --muted: rgba(233, 241, 242, 0.78);
  --line: rgba(233, 241, 242, 0.16);
  --field-line: #7fa9b2;
  --focus: #7fe0d2;
  --link: #7fe0d2;
  --hero-bg: #0b4a57;
  --card: #0b3d52;
  --no: #f08a76;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.top :focus-visible,
.hero :focus-visible {
  outline-color: #ffffff;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: #ffffff;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.2px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}
h3 {
  font-size: 20px;
  font-weight: 700;
}
p {
  margin: 0 0 14px;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 62ch;
}
section {
  padding: 88px 0;
}
.alt {
  background: var(--surface);
}

/* header */
.top {
  background: var(--hero-bg);
  color: var(--hero-text);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo {
  width: 140px;
  height: auto;
}
.sub {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--aqua);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 3px;
  border: 2px solid var(--aqua);
  transition:
    background 0.2s,
    color 0.2s;
}
.btn:hover {
  background: #ffffff;
  color: var(--navy);
}
.top .btn {
  padding: 9px 16px;
  font-size: 14px;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}
.btn.ghost:hover {
  background: #ffffff;
  color: var(--teal);
}

/* hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 56px 0 0;
  overflow: hidden;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 span {
  display: block;
  color: var(--aqua-on-teal);
}
.hero .lede {
  color: rgba(255, 255, 255, 0.9);
}
.fine {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}
.nopost {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--aqua);
  border-radius: 0 6px 6px 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 62ch;
}
.nopost svg {
  flex: none;
  color: var(--aqua-on-teal);
  margin-top: 1px;
}
.nopost b {
  color: #ffffff;
}
.hero-copy {
  padding-bottom: 64px;
}

/* phone */
.phone {
  position: relative;
  justify-self: center;
  width: min(320px, 100%);
  aspect-ratio: 9/17.5;
  background: #062734;
  border-radius: 38px 38px 0 0;
  padding: 12px 12px 0;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.25);
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px 28px 0 0;
  background: #000000;
}
.play {
  position: absolute;
  inset: 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 39, 52, 0.25);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 28px 28px 0 0;
  font: inherit;
}
.play span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.play[hidden] {
  display: none;
}
.tag {
  position: absolute;
  left: -36px;
  top: 56px;
  background: #ffffff;
  color: var(--navy);
  padding: 12px 16px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.35;
  max-width: 220px;
}
.tag b {
  display: block;
  font-size: 15px;
}

/* steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  border-top: 3px solid var(--aqua);
  padding-top: 18px;
}
.steps li::before {
  content: counter(s);
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: var(--link);
  line-height: 1;
  margin-bottom: 12px;
}
.steps p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 8px;
}

/* storyboard */
.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 36px;
}
.shot figure {
  margin: 0;
}
.shot img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 4px;
}
.shot .n {
  font-weight: 800;
  color: var(--link);
  font-size: 14px;
  margin-top: 8px;
}
.shot .vo {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  margin-top: 2px;
}

/* say / don't */
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.rule {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}
.rule h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.rule ul {
  margin: 0;
  padding-left: 20px;
}
.rule li {
  margin-bottom: 10px;
}
.rule h3::before {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none;
}
.yes h3::before {
  content: "\2713";
  background: var(--aqua);
  color: var(--navy);
}
.no h3::before {
  content: "\2715";
  background: var(--no);
  color: #ffffff;
}
.rule.no {
  border-color: color-mix(in srgb, var(--no) 35%, transparent);
}

/* register */
.reg {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.check {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.check li {
  padding: 6px 0 6px 32px;
  position: relative;
  font-size: 16px;
}
.check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--navy);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check li.abn-note {
  font-size: 15px;
  color: var(--muted);
  padding-left: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.check li.abn-note::before {
  display: none;
}
.abn-note a,
.privacy a {
  color: var(--link);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(9, 53, 72, 0.08);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  min-width: 0;
}
label,
legend {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  padding: 0;
}
.opt {
  font-weight: 400;
  color: var(--muted);
}
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--field-line);
  border-radius: 4px;
  padding: 12px 14px;
  min-height: 48px;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aqua) 35%, transparent);
}
[aria-invalid="true"] {
  border-color: var(--no) !important;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border: 1.5px solid var(--field-line);
  border-radius: 999px;
  padding: 9px 16px;
  margin: 0;
  cursor: pointer;
}
.pills label:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--aqua) 14%, transparent);
}
.pills label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.ticks {
  display: grid;
  gap: 12px;
  margin: 6px 0 20px;
  border: 0;
  padding: 0;
}
.ticks legend {
  margin-bottom: 10px;
}
.tick label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
}
.pills input[type="radio"] {
  margin: 0;
}
.field-err {
  color: var(--no);
  font-weight: 600;
  font-size: 14px;
  margin: 6px 0 0;
}
.tick .field-err {
  margin-left: 30px;
}
.err {
  color: var(--no);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 14px;
}
.submit {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.hint {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.captcha {
  margin: 0 0 16px;
  min-height: 65px;
}
.privacy {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.5;
}
.hp,
.sr {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.done {
  text-align: center;
  padding: 28px 8px;
}
.done svg {
  margin: 0 auto 14px;
}
.done h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.done p {
  color: var(--muted);
  margin: 0;
}

.terms {
  font-size: 13px;
  color: var(--muted);
  padding: 32px 0 48px;
}
.terms p {
  max-width: 80ch;
}

@media (max-width: 900px) {
  .hero .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-copy {
    padding-bottom: 12px;
  }
  .tag {
    left: -10px;
  }
  .steps,
  .rules,
  .reg {
    grid-template-columns: 1fr;
  }
  .reg {
    gap: 28px;
  }
  .board {
    grid-template-columns: repeat(4, 1fr);
  }
  .sub {
    display: none;
  }
  section {
    padding: 64px 0;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }
  .board {
    grid-template-columns: repeat(2, 1fr);
  }
  .top .btn {
    display: none;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 22px;
  }
  .tag {
    left: 0;
  }
}
