/* ===== Settings: change colours, widths and fonts here ===== */
:root {
  --font: "Roboto", Arial, sans-serif;
  --banner-bg: #dd1717;
  --banner-text: #ffffff;
  --text: #111111;
  --body-text: #222222;
  --frame-border: #5b6b78;
  --page-bg: #ffffff;
  --outer-bg: #f2f2f2;
  --max-width: 720px;   /* overall page width on desktop */
  --video-width: 100%;  /* video width inside the page */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 16px;   /* space around the page so it isn't flush with the window */
  font-family: var(--font);
  background: var(--outer-bg);
  color: var(--text);
}

#page {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--page-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* 1. Top Banner */
#top-banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  padding: 14px 16px;
}
#top-banner p {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  line-height: 1.2;
}

#content { padding: 8px 16px 40px; }

/* 2. Headline */
#headline {
  margin: 18px 0 10px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1.1;
}

/* 3. Sub-headline */
#subheadline {
  margin: 0 0 16px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.4rem, 5.5vw, 2rem);
}

/* 4. Video */
#video { width: var(--video-width); margin: 0 auto; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--frame-border);
  background: #fff;
}
.video-frame iframe,
.video-frame video,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
}
.play-icon { width: 17%; height: auto; }
.placeholder-label {
  color: #3d3fb0;
  font-weight: 400;
  font-size: clamp(1.1rem, 5vw, 2.2rem);
  letter-spacing: 0.02em;
}

/* 5. Video Note */
#video-note {
  margin: 14px 0 18px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.75rem, 2.8vw, 0.9rem);
  line-height: 1.7;
}

/* 6. Main Text */
#main-text {
  padding: 0 4%;
  color: var(--body-text);
}
#main-text p {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 4.4vw, 1.4rem);
  line-height: 1.2;
}

/* 7. Sign-up Form */
#signup {
  margin: 28px 4% 0;
  padding: 24px 20px;
  background: #fff6f6;
  border: 2px solid var(--banner-bg);
  border-radius: 8px;
  text-align: center;
}
#signup-heading { margin: 0 0 8px; font-size: clamp(1.3rem, 5vw, 1.7rem); line-height: 1.2; }
#signup-text { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.4; }
#signup-error { margin: 0 0 12px; color: #b00020; font-weight: 700; }
#signup-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; }
#signup-form input[type="email"] {
  width: 100%; padding: 14px; font: inherit; font-size: 1rem;
  border: 1px solid var(--frame-border); border-radius: 6px;
}
#signup-button {
  padding: 14px; font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer;
  color: #fff; background: var(--banner-bg); border: 0; border-radius: 6px;
}
#signup-button:hover { filter: brightness(0.92); }
#signup-note { margin: 12px 0 0; font-size: 0.8rem; color: #666; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hp { position: absolute; left: -9999px; }

/* 8. Footer */
#footer {
  padding: 20px 16px 28px;
  border-top: 1px solid #e3e3e3;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}
#footer nav { margin-bottom: 8px; }
#footer a { color: #666; text-decoration: underline; }
#footer a:hover { color: var(--text); }
#footer nav span { margin: 0 8px; color: #bbb; }
#footer .copyright { margin: 0; font-size: 0.8rem; }

@media (max-width: 480px) {
  body { padding: 16px 8px; }
}

@media (min-width: 720px) {
  #content { padding: 16px 32px 60px; }
  #main-text { padding: 0 2%; }
}

/* ===== Legal pages (terms.html, privacy.html) ===== */
.legal { padding: 24px 24px 8px; line-height: 1.6; color: var(--body-text); }
.legal h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 4px; }
.legal h2 { font-size: 1.15rem; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 1rem; }
.legal .updated { color: #777; font-size: 0.9rem; margin: 0 0 16px; }
.legal .back { display: inline-block; margin-bottom: 16px; color: #3d3fb0; }

/* ===== Checklist page ===== */
.checklist h2 { margin-top: 28px; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 8px 0 8px 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 18px; height: 18px; border: 2px solid var(--text); border-radius: 3px;
}
.print-note { margin-top: 24px; color: #666; font-size: 0.9rem; }
@media print {
  body { padding: 0; background: #fff; }
  #page { box-shadow: none; max-width: none; }
  .back, .print-note, #footer { display: none; }
}
