/* Lookout — one stylesheet, mobile first. */

/* ---------- Fonts (self-hosted, subset to Latin) ---------- */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --pine: #2F6B4F;
  --deep-pine: #1F3A2C;
  --marigold: #E5A23A;
  --marigold-hover: #F0B85A;
  --paper: #F6F0E4;
  --surface: #FFFCF5;
  --cream: #EFE6D3;
  --gold-text: #7A5310;
  --ink: #1F2A24;
  --body: #3D4A42;
  --muted: #5C5A4F;
  --border: #D9CDB4;
  --rule: #E3D8C2;          /* decorative dividers and card outlines */
  --control-border: #958866; /* form controls: 3.4:1 on surface (WCAG 1.4.11) */
  --error: #9B2C1F;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-body: Inter, -apple-system, system-ui, sans-serif;

  --page-max: 1120px;
  --gutter: 20px;
  --section-y: 56px;
}

@media (min-width: 600px) {
  :root { --gutter: 24px; --section-y: 80px; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

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

h1, h2, h3, p { margin: 0; }

a { color: var(--pine); text-underline-offset: 0.15em; }
a:hover { color: var(--deep-pine); }

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
}

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--deep-pine);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn--pine { background: var(--pine); color: #fff; }
.btn--pine:hover { background: var(--deep-pine); color: #fff; }

.btn--marigold {
  min-height: 56px;
  padding: 0 28px;
  background: var(--marigold);
  color: var(--deep-pine);
  font-weight: 900;
  font-size: 19px;
}
.btn--marigold:hover { background: var(--marigold-hover); color: var(--deep-pine); }
.btn--marigold:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 36px; height: 39px; flex: none; }
.brand span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.site-header .btn { flex: none; padding: 0 16px; font-size: 15px; }

@media (min-width: 400px) {
  .brand { gap: 10px; }
  .brand span { font-size: 24px; }
  .site-header .btn { padding: 0 20px; font-size: 16px; }
}
@media (min-width: 600px) {
  .site-header .wrap { padding-block: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 24px var(--section-y);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 6vw + 16px, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--deep-pine);
}

.hero-lede {
  margin-top: 20px;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 600;
}

.hero-meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Phone illustration */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
}

.phone {
  flex: none;
  width: 250px;
  height: 500px;
  padding: 10px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(31, 58, 44, 0.22);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  border-radius: 35px;
  background: var(--paper);
  text-align: center;
}
.phone-screen img { width: 150px; height: 162px; }
.phone-title {
  margin-top: 18px;
  font-size: 30px;
  color: var(--deep-pine);
}
.phone-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--body);
}
.phone-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  border-radius: 14px;
  background: var(--pine);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

/* The second mascot overlaps the phone; hidden on small phones so nothing spills. */
.hero-mascot {
  display: none;
  flex: none;
  width: 150px;
  height: 162px;
  margin-left: -40px;
  margin-bottom: -10px;
}
@media (min-width: 480px) {
  .hero-mascot { display: block; }
}

@media (min-width: 600px) {
  .hero { padding-top: 48px; }
  .hero-lede { margin-top: 24px; font-size: 20px; }
  .hero-actions { margin-top: 32px; }
  .eyebrow-pill { font-size: 14px; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    padding-bottom: 72px;
  }
}

/* ---------- Section headings ---------- */
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep-pine);
}

/* ---------- How it works ---------- */
.how {
  background: var(--surface);
  padding-block: var(--section-y);
}

.grid {
  display: grid;
  gap: 16px;
}
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 32px; }
.grid--uses { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 16px; }
@media (min-width: 600px) {
  .grid { gap: 24px; }
  .grid--uses { margin-top: 24px; }
}

.card {
  padding: 24px;
  border-radius: 24px;
}
@media (min-width: 600px) { .card { padding: 28px; } }

.card--step { background: var(--paper); }
.card--use { border: 1.5px solid var(--rule); }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
}
.card--step h3 { margin-top: 18px; }
.card--use h3 { font-size: 20px; color: var(--pine); }
.card p {
  margin-top: 8px;
  color: var(--body);
}

/* ---------- Story ---------- */
.story {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: var(--section-y);
}
@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 48px;
    padding-block: 88px;
  }
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  padding: 24px;
  border: 2px dashed #C9B88F;
  border-radius: 28px;
  background: var(--cream);
  color: #6B5A33;
  font-size: 15px;
  text-align: center;
}
@media (max-width: 899px) {
  .photo-placeholder { aspect-ratio: 4 / 3; margin-inline: auto; }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.quote {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  color: var(--deep-pine);
}
.quote p { margin: 0; }

.story-body {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}
.story-sign {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

/* ---------- Waitlist ---------- */
.waitlist {
  padding: var(--section-y) 16px;
}
@media (min-width: 600px) { .waitlist { padding-inline: var(--gutter); } }

.panel {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(20px, 5vw, 48px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(31, 58, 44, 0.1);
}
@media (min-width: 600px) { .panel { border-radius: 32px; } }

.panel-intro {
  margin-top: 10px;
  color: var(--body);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}

.label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--muted); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--control-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming in on focus */
}
.input::placeholder { color: #757060; opacity: 1; }
.input:focus-visible { outline-offset: 1px; border-color: var(--pine); }
textarea.input { resize: vertical; min-height: 96px; }

.hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Chips: real radios/checkboxes, styled as pills */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--control-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chip input:hover + span { border-color: var(--pine); }
.chip input:checked + span {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--body);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--pine);
}

/* Honeypot: off-screen, hidden from assistive tech and tab order */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile:empty { display: none; }

.form-error {
  padding: 14px 16px;
  border-radius: 12px;
  background: #FBEAE5;
  color: var(--error);
  font-weight: 600;
}
.form-error[hidden] { display: none; }

.form .btn--marigold { width: 100%; }

.fine-print {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  padding: 24px var(--gutter) var(--section-y);
}
.faq .section-title { font-size: clamp(28px, 3.5vw, 36px); }
.faq-list { margin-top: 12px; }
.faq-item {
  padding: 20px 0;
  border-bottom: 1.5px solid var(--rule);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
}
.faq-item p {
  margin-top: 8px;
  line-height: 1.55;
  color: var(--body);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1.5px solid var(--rule);
  padding-block: 20px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
}
.footer-links { display: flex; gap: 12px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.footer-note { flex-basis: 100%; }

/* ---------- Thanks page ---------- */
.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  margin-inline: auto;
  padding: 40px var(--gutter) 32px;
  text-align: center;
}
.thanks img { width: 132px; height: 143px; }
.thanks h1 {
  margin-top: 20px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep-pine);
}
.thanks-lede {
  margin-top: 12px;
  color: var(--body);
}
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  list-style: none;
  text-align: left;
}
.next-steps li { display: flex; gap: 12px; }
.next-steps p { font-size: 15px; line-height: 1.45; }
.mini-num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 14px;
}
.thanks .btn--marigold {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  font-size: 18px;
}
.follow {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.back-home { margin-top: 8px; font-size: 14px; }
.back-home a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Privacy page ---------- */
.prose {
  max-width: 720px;
  margin-inline: auto;
  padding: 24px var(--gutter) var(--section-y);
  color: var(--body);
}
.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  color: var(--deep-pine);
}
.prose h2 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--deep-pine);
}
.prose p,
.prose ul { margin: 12px 0 0; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.draft-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border: 2px dashed #C9B88F;
  border-radius: 12px;
  background: var(--cream);
  color: var(--gold-text);
  font-weight: 600;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.grid--steps { margin-bottom: 0; padding: 0; list-style: none; }
