/* =========================================================
   New Canon landing page styles
   "Mobile first" means the basic styles are for phones.
   The @media (min-width: ...) block near the bottom adds
   changes for bigger screens.
   ========================================================= */

/* ---------- Brand colors in one place ----------
   Change a color here and it changes everywhere.
   Rule: the accent #E7FF00 only goes on dark backgrounds.
   Black text on #E7FF00 is fine. #E7FF00 text on white is NOT. */
:root {
  --bg: #000000;        /* true black, so the logo's black box blends in */
  --surface: #151515;   /* slightly lighter boxes (cards, form) */
  --border: #2A2A2A;    /* thin dividing lines */
  --text: #F2F2F2;      /* main text, off-white */
  --muted: #B8B8B8;     /* quieter text, still readable on black */
  --accent: #E7FF00;    /* New Canon yellow-green */
  --error: #FF9B9B;     /* soft red, readable on black */
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Basic reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;  /* padding no longer makes boxes wider than expected */
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;  /* about 17px, comfortable on phones */
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);  /* yellow-green links are fine because the background is black */
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* A clear outline when someone moves through the page with the keyboard */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--accent);
}

/* Keeps text from stretching too wide on big screens */
.container {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Top section ---------- */
.hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  margin: 0 auto 0.75rem;
  max-width: 26rem;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.intro-video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.status-pill {
  display: inline-block;
  margin: 1.25rem 0 0;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ---------- Pitch ---------- */
.pitch {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.cards {
  display: grid;
  gap: 1rem;            /* space between the two cards */
  margin: 1.5rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card li {
  margin-bottom: 0.6rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Signup form ---------- */
.signup {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.signup-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.field {
  margin: 0 0 1.25rem;
}

fieldset.field {
  border: 0;
  padding: 0;
}

label,
legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;     /* 16px or more stops iPhones from zooming in */
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #444;
  border-radius: 8px;
}

input[type="email"]::placeholder {
  color: #8A8A8A;
}

/* Red border when signup.js marks a field as wrong */
input[aria-invalid="true"] {
  border-color: var(--error);
}

/* Radio buttons and the checkbox */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.choices .choice {
  padding: 0.6rem 0.9rem;   /* big enough to tap with a thumb */
  border: 1px solid #444;
  border-radius: 8px;
  align-items: center;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);  /* checked boxes turn yellow-green */
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}

.consent span {
  color: var(--muted);
}

/* Main button: black text on yellow-green (readable) */
.button {
  display: inline-block;
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.25rem;
  color: #000;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.92);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Success and error messages */
.form-status {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-status.is-success {
  border-color: var(--accent);
  color: var(--accent);
}

.form-status.is-error {
  border-color: var(--error);
  color: var(--error);
}

/* Honeypot: moved off screen (not display:none, which some bots skip) */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 1rem;
  height: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.small {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ---------- Gentle entrance animation ----------
   Everyone gets a quick fade.
   Only people who have NOT asked for reduced motion
   also get the small upward slide. */
.hero .container {
  animation: fade-in 0.3s ease-out both;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .container {
    animation: rise-in 0.7s ease-out both;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Bigger screens (tablets and computers) ---------- */
@media (min-width: 48rem) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .tagline {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;   /* the two cards sit side by side */
  }

  .signup-form {
    padding: 1.75rem;
  }

  .button {
    width: auto;
  }
}
