/* Playmarks enquiry site. Mobile first. Palette and type match the mailshot. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-800-latin.woff2") format("woff2");
}

:root {
  --orange: #FE390F;
  --deep: #D9310C;
  --navy: #1B2A4A;
  --sun: #FFC629;
  --sky: #2A9DF4;
  --cream: #FFF7F0;
  --white: #FFFFFF;
  --muted: #4A5670;
  --line: #EADFD4;
  --field: #C9BFB6;
  --error: #B3261E;
  --head: "Nunito", Arial, Helvetica, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --radius: 16px;
  --gutter: 20px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--deep); text-underline-offset: 2px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: var(--white);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

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

h1, h2, h3, .head {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.15;
  margin: 0;
}

/* ---------------------------------------------------------------- header */
.site-head { padding-block: 18px 4px; }
.site-head .logo { display: inline-block; }
.site-head .logo img { width: 160px; height: auto; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: 10px 28px; }
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero .lead { margin: 0 0 16px; color: var(--navy); font-size: 16px; }

.hero-grid { display: grid; gap: 20px; grid-template-areas: "intro" "form" "steps"; }
.hero-intro { grid-area: intro; }
.form-card { grid-area: form; }
.steps-box { grid-area: steps; }

/* offer panel */
.offer {
  background: var(--sun);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
  align-items: start;
}
.offer .tag {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--navy);
  color: var(--white);
  font-family: var(--head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  border-radius: 999px;
  padding: 5px 13px;
}
.offer img { width: 76px; height: 76px; border-radius: 10px; }
.offer h2 { font-size: 22px; margin-bottom: 4px; }
.offer .offer-line { margin: 0 0 8px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.offer .terms { margin: 0; font-size: 13px; line-height: 1.45; }

/* form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 18px 24px;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(27, 42, 74, 0.06);
}
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card .intro { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

.field { margin-bottom: 16px; }
.field label, .group legend {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.req, .opt {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-left: 4px;
}
.hint { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 6px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--field);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 48px;
}
textarea { min-height: 96px; resize: none; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
input:focus, select:focus, textarea:focus { border-color: var(--sky); outline: 3px solid rgba(42, 157, 244, 0.25); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { display: block; color: var(--error); font-size: 14px; font-weight: 700; margin-top: 6px; }
.field-error:empty { display: none; }

.pair { display: grid; gap: 0 14px; }

.group { border: 0; padding: 0; margin: 0 0 16px; }
.checks { display: grid; gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 46px;
  cursor: pointer;
  font-size: 16px;
}
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--deep); flex: none; }
.check:has(input:checked) { border-color: var(--deep); background: #FFF1EC; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--deep);
  color: var(--white);
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 18px;
  line-height: 1.2;
  padding: 17px 22px;
  min-height: 56px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: #B92A0A; color: var(--white); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.small { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

.form-status {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 16px;
}
.form-status:empty { display: none; }
.form-status.is-error { background: #FDECEA; color: var(--error); border: 1.5px solid #F4C2BE; }

.thanks { text-align: left; }
.thanks .badge { margin-bottom: 14px; }
.thanks h2 { font-size: 26px; margin-bottom: 8px; }
.thanks p { margin: 0 0 10px; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: 34px; }
.section h2 { font-size: 26px; margin-bottom: 6px; }
.section .sub { margin: 0 0 18px; color: var(--muted); }

/* gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery .frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1 / 1;
  box-shadow: 0 1px 0 var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { padding: 8px 2px 0; }
.gallery figcaption strong { display: block; font-family: var(--head); font-weight: 800; letter-spacing: 0.3px; font-size: 16px; line-height: 1.3; }
.gallery figcaption span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* trust tiles */
.tiles { display: grid; gap: 12px; }
.tile {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.badge {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
}
.badge svg { width: 20px; height: 20px; }
.badge.orange { background: var(--orange); }
.badge.sun { background: var(--sun); }
.badge.sky { background: var(--sky); }
.tile strong { display: block; font-family: var(--head); font-weight: 800; letter-spacing: 0.3px; font-size: 18px; line-height: 1.2; }
.tile .sub-line { display: block; font-size: 15px; color: var(--muted); }

/* contact */
.contact {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.contact h2 { font-size: 24px; margin-bottom: 6px; }
.contact p { margin: 0 0 14px; }
.contact .ways { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact a {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 12px 14px;
  font-family: var(--head); font-weight: 800; letter-spacing: 0.3px; font-size: 18px;
  word-break: break-word;
}
.contact a:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.contact a svg { width: 22px; height: 22px; flex: none; color: var(--sun); }

/* footer */
.site-foot { padding-block: 26px 40px; font-size: 14px; color: var(--muted); }
.site-foot p { margin: 0 0 8px; }
.site-foot a { color: var(--muted); }

/* ---------------------------------------------------------------- privacy page */
.doc { background: var(--white); border-radius: var(--radius); padding: 24px 20px 30px; margin-bottom: 10px; }
.doc h1 { font-size: 30px; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 4px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--head); font-weight: 800; letter-spacing: 0.3px; }
.table-scroll { overflow-x: auto; }
.back { display: inline-block; margin: 6px 0 18px; font-weight: 700; }

/* ---------------------------------------------------------------- larger screens */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .site-head .logo img { width: 220px; }
  .hero h1 { font-size: 38px; }
  .offer { grid-template-columns: 150px 1fr; padding: 22px; }
  .offer img { width: 150px; height: 150px; }
  .offer h2 { font-size: 28px; }
  .offer .terms { font-size: 14px; }
  .offer .offer-line { font-size: 17px; }
  .pair { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { flex-direction: column; text-align: center; padding: 22px 16px; }
  .contact .ways { grid-template-columns: 1fr 1fr; }
  .doc { padding: 36px 40px 40px; }
}

@media (min-width: 960px) {
  .site-head { padding-block: 30px 10px; }
  .hero { padding-block: 16px 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-areas: "left form"; gap: 36px; align-items: start; }
  .hero-left { display: flex; flex-direction: column; gap: 24px; grid-area: left; }
  .hero h1 { font-size: 46px; }
  .form-card { padding: 28px 28px 30px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: 44px; }
  .section h2 { font-size: 30px; }
  .contact { padding: 32px 36px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; }
  .contact p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.section.tight { padding-top: 0; }

/* tick boxes as wrapping chips */
.checks.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.checks.chips .check { padding: 9px 14px 9px 11px; min-height: 44px; border-radius: 999px; }

/* how it works */
.steps-box { background: var(--white); border-radius: var(--radius); padding: 20px 18px; }
.steps-box h2 { font-size: 22px; margin-bottom: 12px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sky); color: var(--white);
  font-family: var(--head); font-weight: 800; font-size: 18px;
  display: grid; place-items: center;
}
.steps li:nth-child(2)::before { background: var(--orange); }
.steps li:nth-child(3)::before { background: var(--navy); }
.steps strong { font-family: var(--head); font-weight: 800; letter-spacing: 0.3px; font-size: 17px; line-height: 1.25; align-self: end; }
.steps span { font-size: 15px; color: var(--muted); }

/* provider table becomes stacked cards on phones */
@media (max-width: 559px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; left: -10000px; }
  .doc tr { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 12px; }
  .doc td { border: 0; padding: 8px 0; }
  .doc td::before { content: attr(data-label); display: block; font-family: var(--head); font-weight: 800; letter-spacing: 0.3px; font-size: 14px; color: var(--muted); }
}

/* reCAPTCHA v3 badge: hidden, with Google's required notice shown under the form instead */
.grecaptcha-badge { visibility: hidden; position: fixed !important; bottom: 0; right: 0; }
.recaptcha-note { margin-top: 6px; }

/* contact block: narrower on large screens */
@media (min-width: 960px) {
  .contact { max-width: 860px; margin-inline: auto; grid-template-columns: 1fr auto; }
  .contact .ways { grid-template-columns: 1fr; justify-items: start; }
  .contact a { width: auto; padding-inline: 16px 20px; }
}

/* the left column (logo, offer, how it works) is one block; on phones its parts slot around the form */
@media (max-width: 959px) { .hero-left { display: contents; } }
.hero { padding-top: 20px; }
.hero-logo { display: inline-block; margin-bottom: 14px; }
.hero-logo img { width: 160px; height: auto; }
@media (min-width: 560px) { .hero-logo img { width: 220px; } }
@media (min-width: 960px) { .hero { padding-top: 32px; } .hero-logo { margin-bottom: 18px; } }
/* stays in view while the form scrolls, on screens tall enough to show the whole column */
@media (min-width: 960px) and (min-height: 800px) {
  .hero-left { position: sticky; top: 24px; align-self: start; }
}

/* footer centred */
.site-foot { text-align: center; }

/* tighter left column on desktop so it fits on shorter laptop screens while sticky */
@media (min-width: 960px) {
  .hero h1 { font-size: 42px; }
  .hero .lead { margin-bottom: 14px; }
  .offer { grid-template-columns: 124px 1fr; padding: 18px 20px; gap: 10px 16px; }
  .offer img { width: 124px; height: 124px; }
  .offer h2 { font-size: 26px; }
  .hero-left { gap: 18px; }
  .steps-box { padding: 16px 18px; }
  .steps-box h2 { margin-bottom: 10px; }
  .steps { gap: 10px; }
}
