/* ==========================================================================
   The Lightbulb Shop, coming soon landing page
   Design tokens and metrics follow the Find Your Light reference exactly.
   No build step. This file is served as written.
   ========================================================================== */

:root {
  --ink:   #1d1d1f;  /* headlines, buttons, dark panel            */
  --sub:   #56565a;  /* body copy, darkened for readability       */
  --muted: #6e6e72;  /* eyebrows, numbers, small labels           */
  --line:  #e4e4e6;  /* hairlines and input borders               */
  --soft:  #f5f5f7;  /* soft panels                               */
  --white: #ffffff;

  /* #77777a was the original muted grey. At the 11px and 12px sizes it is
     used at, it measures 4.46:1 on white and 4.10:1 on the soft panel, which
     is below the WCAG AA threshold of 4.5:1. --muted is three shades darker
     and clears AA on both (5.08:1 and 4.66:1) while reading the same. */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
          "Helvetica Neue", Arial, sans-serif;

  --maxw: 1176px;
  --navw: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; }

/* A single, obvious focus ring everywhere. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.founder :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  font-size: 14px;
  z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------------ nav -- */

nav {
  max-width: var(--navw);
  height: 76px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
nav img { width: 228px; height: auto; display: block; }

.navcta {
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #c9c9cb;
  border-radius: 30px;
  padding: 10px 17px;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.navcta:hover { border-color: var(--ink); background: var(--soft); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  text-align: center;
  background: var(--soft);
  padding: 66px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero img.hero-brand {
  width: min(510px, 78vw);
  height: auto;
  object-fit: contain;
  margin: 0 0 35px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  text-wrap: balance;
  font-size: clamp(54px, 7.8vw, 110px);
  line-height: 1;
  letter-spacing: -.073em;
  font-weight: 600;
  margin: 14px 0 20px;
}

.hero .lede {
  text-wrap: balance;
  font-size: 22px;
  line-height: 1.48;
  letter-spacing: -.025em;
  color: #535356;
  max-width: 660px;
}

/* -------------------------------------------------------------- sections -- */

.section {
  max-width: var(--maxw);
  margin: auto;
  padding: 58px 28px 64px;
}
.sectionhead { text-align: center; margin-bottom: 32px; }
.sectionhead .eyebrow { margin-bottom: 15px; }

h2 {
  text-wrap: balance;
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.1;
  margin: 0 0 9px;
}
.sectionhead p,
.founder p {
  color: var(--sub);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.015em;
}
.sectionhead p { max-width: 620px; margin-inline: auto; text-wrap: balance; }

/* ------------------------------------------------------------- the vision -- */

.ecosystem { padding-top: 70px; padding-bottom: 68px; }
.ecosystem .sectionhead { margin-bottom: 40px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars article {
  padding: 27px 24px 25px;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--line);
}
.pillars article:first-child { padding-left: 0; }
.pillars article:last-child  { border-right: 0; padding-right: 0; }

.number {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .08em;
}
.pillars h3 {
  font-size: 29px;
  letter-spacing: -.045em;
  margin: 12px 0 8px;
  font-weight: 600;
}
.pillars p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--sub);
  max-width: 240px;
}
.status {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: auto;
  padding-top: 19px;
}
.status.active { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------- the first chapter -- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile {
  background: var(--soft);
  border-radius: 19px;
  min-height: 240px;
  padding: 31px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tile svg {
  height: 40px;
  width: 40px;
  margin-bottom: 26px;
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile h3 {
  font-size: 27px;
  letter-spacing: -.045em;
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 600;
}
.tile p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--sub);
  max-width: 265px;
}

/* ------------------------------------------------------------- the founder -- */

.founder {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 63px 24px 68px;
}
.founder .eyebrow { color: #b1b1b5; }
.founder h2 { margin: 14px 0 12px; }
.founder p { max-width: 610px; margin: auto; color: #c4c4c7; }
.founder .button {
  margin-top: 25px;
  background: var(--white);
  color: var(--ink);
}
.founder .button:hover { background: #e8e8ea; }

/* -------------------------------------------------------------- buttons -- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 30px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease;
}
.button:hover { background: #424245; }

/* ----------------------------------------------------------------- footer -- */

footer {
  background: var(--soft);
  color: #69696c;
  font-size: 12px;
  padding: 23px 28px;
}
footer > div {
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
footer a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 920px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars article { padding: 21px 18px; min-height: 190px; }
  .pillars article:nth-child(odd)  { padding-left: 0; }
  .pillars article:nth-child(even) { padding-right: 0; border-right: 0; }
  .pillars article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .tile { min-height: 0; padding: 26px 24px; }
  .tile svg { margin-bottom: 19px; }
}

@media (max-width: 700px) {
  nav { height: 65px; padding: 0 19px; gap: 12px; }
  nav img { width: 180px; }
  .navcta { font-size: 11px; padding: 8px 13px; }

  .hero { padding: 52px 21px 52px; }
  .hero img.hero-brand { width: min(310px, 82vw); margin-bottom: 30px; }
  h1 { font-size: clamp(46px, 12vw, 65px); margin: 12px 0 18px; }
  .hero .lede { font-size: 19px; max-width: 420px; }

  .section { padding: 44px 18px 48px; }
  .ecosystem { padding-top: 48px; padding-bottom: 36px; }
  .ecosystem .sectionhead { margin-bottom: 25px; }
  .pillars h3 { font-size: 25px; }
  .pillars p { font-size: 14px; }

  .founder { padding: 48px 22px 52px; }
  footer > div { flex-direction: column; gap: 6px; }
}

@media (max-width: 400px) {
  nav img { width: 145px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article,
  .pillars article:nth-child(odd),
  .pillars article:nth-child(even) {
    padding: 20px 0;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pillars article:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Signup form
   Two instances on the page, in the hero and near the footer. Both share
   this styling and the same code in app.js.
   ========================================================================== */

.signup {
  width: 100%;
  max-width: 560px;
  margin: 34px auto 0;
  text-align: left;
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Email and first name sit side by side once there is room. */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field > label:not(.consent),
.waitlist legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
.field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.waitlist input[type="email"],
.waitlist input[type="text"] {
  font-family: inherit;
  font-size: 16px;            /* 16px stops iOS Safari zooming on focus */
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.waitlist input::placeholder { color: #9a9a9e; }
.waitlist input:hover { border-color: #cfcfd2; }
.waitlist input:focus { border-color: var(--ink); }
.waitlist input[aria-invalid="true"] { border-color: #b3261e; }

/* -------------------------------------------------------- interest radios -- */

.waitlist fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 3px; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s ease;
}
.choice:hover { border-color: #cfcfd2; }
.choice input { margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); }

/* ---------------------------------------------------------------- consent -- */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sub);
  cursor: pointer;
}
.consent input { margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* ---------------------------------------------------------------- errors -- */

.error {
  font-size: 13px;
  line-height: 1.4;
  color: #b3261e;
  margin: 0;
  min-height: 0;
}
.error:empty { display: none; }

.formerror {
  font-size: 14px;
  line-height: 1.5;
  color: #b3261e;
  background: #fdf0ef;
  border: 1px solid #f3c9c5;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
}
.formerror:empty { display: none; }

/* -------------------------------------------------------------- honeypot -- */

/* Hidden from sighted people and from assistive technology, without relying
   on display:none alone, which the better bots simply skip over. The input
   also carries aria-hidden, tabindex -1 and autocomplete off in the markup. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------------------------- turnstile -- */

/* Centre the widget so it lines up with the centred submit button. */
.turnstile { min-height: 65px; display: flex; justify-content: center; }
.turnstile:empty { min-height: 0; }

/* --------------------------------------------------------------- actions -- */

.waitlist .button { align-self: flex-start; padding: 14px 26px; font-size: 15px; }
.waitlist .button[disabled] { opacity: .55; cursor: default; }
.waitlist .button[disabled]:hover { background: var(--ink); }

.fineprint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.fineprint a { text-decoration: underline; }

/* --------------------------------------------------------------- success -- */

.success { text-align: left; padding: 4px 0; }
.success h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.05em;
  margin: 0 0 8px;
}
.success p { font-size: 17px; line-height: 1.5; color: var(--sub); }

/* ------------------------------------------------- bottom signup section -- */

.join {
  max-width: var(--maxw);
  margin: auto;
  padding: 64px 28px 72px;
  text-align: center;
}
.join .signup { margin-top: 30px; }
@media (max-width: 700px) {
  .join { padding: 48px 18px 54px; }
}

/* The hero form sits on the soft panel, so centre its contents. */
.hero .signup { text-align: left; }
.hero .waitlist .button,
.join .waitlist .button { align-self: center; }
.hero .success,
.join .success { text-align: center; }

/* Only shown when JavaScript is unavailable. */
.nojs {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sub);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.nojs a { text-decoration: underline; }

/* ==========================================================================
   Prose pages (privacy)
   ========================================================================== */

.prose {
  max-width: 720px;
  margin: auto;
  padding: 44px 28px 80px;
}
.prose .pagetitle {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.04;
  margin: 14px 0 10px;
}
.prose .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}
.prose h2 {
  font-size: 23px;
  letter-spacing: -.035em;
  line-height: 1.25;
  margin: 38px 0 10px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 24px 0 8px;
}
.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.62;
  color: var(--sub);
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose .callout {
  background: var(--soft);
  border-radius: 19px;
  padding: 22px 24px;
  margin: 0 0 14px;
}
.prose .callout p:last-child { margin-bottom: 0; }

.backlink {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  /* Padded out to clear the 24px minimum target size (WCAG 2.2 SC 2.5.8).
     It is a standalone navigation link, so the inline exception does not
     apply to it the way it does to a link inside a sentence. */
  display: inline-block;
  padding: 7px 2px;
}
.backlink:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 700px) {
  .prose { padding: 32px 20px 56px; }
  .prose h2 { font-size: 21px; margin-top: 30px; }
}
