/*
  Briofield landing page — plain CSS, no framework, no build step.

  DESIGN RULES (from the app itself, constants/theme.ts):
    - Brand blue is #27508F, exactly what the app uses for filled buttons
      and controls. Nothing else is called "the blue" on this page.
    - TEXT is black or white only. No colored text, anywhere. Blue is a
      background and border color here, never a text color.
    - High contrast, obvious, not minimalist. This is a page for someone
      opening it on a phone in a work truck, not a design portfolio.
    - Mobile-first: base styles target a phone, a media query widens things
      for a bigger screen.
*/

:root {
  --blue: #27508f;
  --black: #000000;
  --white: #ffffff;
  --gray-line: #dcdcdc;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Only visually hidden, never removed from the tab order or from screen
   readers — used for the one <label> whose text is redundant next to a
   placeholder. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------- */
/* Header: wordmark left, language toggle right                          */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--blue);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/*
  THE LANGUAGE TOGGLE HAS TO BE FOUND BY SOMEONE WHO CANNOT READ THIS PAGE.
  It always shows BOTH "English" and "Español" side by side, not two-letter
  codes and not a globe icon — a visitor scanning for their own language
  reads their own word instantly, regardless of which page they landed on.
  The current language is a solid white pill (unmistakably "you are here");
  the other is a plain white link on the blue.
*/
.lang-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}

.lang-toggle a,
.lang-toggle span {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.lang-toggle .current {
  background: var(--white);
  color: var(--black);
}

.lang-toggle a {
  color: var(--white);
  border: 1.5px solid var(--white);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero {
  background: var(--blue);
  color: var(--white);
  padding: 48px 20px 56px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero .subline {
  color: var(--white);
  font-size: clamp(17px, 4vw, 20px);
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 46ch;
}

/* ---------------------------------------------------------------------- */
/* Email capture                                                         */
/* ---------------------------------------------------------------------- */

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.lead-form input[type='email'] {
  font-size: 17px;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  background: var(--white);
  color: var(--black);
  width: 100%;
}

.lead-form input[type='email']::placeholder {
  color: #6b6b6b;
}

.lead-form input[type='email']:focus {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.lead-form button {
  font-size: 17px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

.lead-form button:hover {
  background: #f0f0f0;
}

.lead-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

/*
  The honeypot field. A real visitor never sees this — off-screen, not
  display:none, because some bots skip display:none fields specifically to
  evade this exact trick. tabindex="-1" also keeps it out of the tab order
  for anyone tabbing through with a keyboard.
*/
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.trust-note {
  color: var(--white);
  opacity: 0.8;
  font-size: 13px;
  margin: 12px 0 0;
}

.lead-message {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  min-height: 1.5em;
}

/* Errors still use white-on-blue text here (the hero background), never a
   colored red — high contrast is carried by weight and the icon-free "!"
   prefix added in the HTML, not by a text color. */
.lead-message--error {
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* ---------------------------------------------------------------------- */
/* "What it does"                                                        */
/* ---------------------------------------------------------------------- */

.section {
  padding: 48px 20px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  color: var(--black);
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 800;
  margin: 0 0 28px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-list li {
  border-left: 4px solid var(--blue);
  padding-left: 16px;
}

.feature-list strong {
  display: block;
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 2px;
}

.feature-list span {
  color: var(--black);
  font-size: 16px;
}

/* ---------------------------------------------------------------------- */
/* "Who it's for"                                                        */
/* ---------------------------------------------------------------------- */

.audience {
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}

.audience .section-inner {
  border-left: 4px solid var(--blue);
  padding-left: 16px;
}

.audience h2 {
  margin-bottom: 12px;
}

.audience p {
  color: var(--black);
  font-size: 17px;
  margin: 0;
  max-width: 60ch;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.site-footer {
  padding: 24px 20px 40px;
  text-align: center;
}

.site-footer p {
  color: var(--black);
  font-size: 13px;
  margin: 0;
  opacity: 0.7;
}

/* ---------------------------------------------------------------------- */
/* Wider screens                                                         */
/* ---------------------------------------------------------------------- */

@media (min-width: 640px) {
  .lead-form {
    flex-direction: row;
  }

  .lead-form input[type='email'] {
    flex: 1;
  }

  .lead-form button {
    flex-shrink: 0;
  }
}
