/*
 * Temporary Production landing page. The demo's design values, restated as plain CSS (no application code):
 * src/index.css (@theme colors, radii, Geist), src/site/ui/tokens.ts (DISPLAY_TITLE, SECTION_EYEBROW),
 * src/productShell/foundationPattern.ts (FOUNDATION_GRID), the shadcn Button and Input, SiteHeader and SiteFooter.
 * scripts/landing/__tests__/landingSite.test.ts keeps the colors equal to src/index.css.
 *
 * Phase 1 marketing release (Founder approval, 2026-10-12): the page keeps its basic structure and takes the approved
 * identity: the editorial serif headline (--font-display, the demo's stack) and Option C, Balanced (navy section label and
 * neutral hero wash; Defend Blue stays on the button, links and focus).
 */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-brand: #0056fb;
  --color-brand-strong: #0043c7;
  --color-brand-soft: #eef4ff;
  --color-ink: #0b1a33;
  --color-canvas: #f7f9fc;
  --color-positive-foreground: #065f46;
  --color-critical-soft: #fef2f2;
  --color-critical-foreground: #b91c1c;
  --color-attention-soft: #fffbeb;
  --color-attention-foreground: #92400e;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --radius-card: 0.75rem;
  --radius-control: 0.5rem;
  --font-public: "Geist Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Charter", "Source Serif 4", Georgia, "Times New Roman", serif;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px var(--color-brand);
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--color-ink);
  font-family: var(--font-public);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

/* Header (SiteHeader): white bar, hairline, the wordmark. */
.site-header {
  border-bottom: 1px solid var(--slate-200);
  background: #ffffff;
}

.header-bar {
  display: flex;
  align-items: center;
  height: 4rem;
}

.wordmark {
  border-radius: var(--radius-control);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  text-decoration: none;
}

/* Hero (HomePage): the neutral canvas wash (Option C) and the Foundation line grid. */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--slate-200);
  background: linear-gradient(to bottom, var(--color-canvas), #ffffff 50%, #ffffff);
}

.grid-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(15 23 42 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 23 42 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-inner {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .hero-inner {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* DISPLAY_TITLE: the editorial serif. */
.display-title {
  max-width: 60rem;
  font-family: var(--font-display);
  font-size: 2.125rem;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--color-ink);
}

@media (min-width: 640px) {
  .display-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .display-title {
    font-size: 3.75rem;
  }
}

.hero-lead {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--slate-600);
}

@media (min-width: 640px) {
  .hero-lead {
    font-size: 1.25rem;
  }
}

.hero-soon {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-ink);
}

.hero-action {
  margin-top: 2rem;
}

/* The hero photograph (Founder decision 2026-10-16): the content on the left and the photograph on the right from
   1024px, below the content on smaller screens. A fixed aspect ratio keeps the page still while the image loads; the
   crop keeps her face and the phone in view. The image is AI-generated and labeled on the photograph. */
.hero-with-photo {
  display: grid;
  gap: 2rem;
}

.hero-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  background: #e9e4dc;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
}

.hero-photo-label {
  position: absolute;
  left: 0.625rem;
  bottom: 0.625rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  background: rgb(11 26 51 / 0.78);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .hero-with-photo {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 3.5rem;
  }

  .hero-photo {
    aspect-ratio: 4 / 5;
  }

  .hero-photo img {
    object-position: 60% 40%;
  }
}

/* Primary Button (shadcn default, Foundation blue). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.button-primary {
  background: var(--color-brand);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--color-brand-strong);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* What we're building: plain text, no cards or icons (Decision 2). */
.building {
  padding: 3.5rem 0;
}

@media (min-width: 640px) {
  .building {
    padding: 4.5rem 0;
  }
}

/* SECTION_EYEBROW */
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink);
}

.building-list {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .building-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.building-list > div {
  border-top: 1px solid var(--slate-200);
  padding-top: 1.25rem;
}

.building-list dt {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.building-list dd {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--slate-600);
}

/* Contact the Foundation (the Contact Us form, ContactPage.tsx). */
.contact {
  border-top: 1px solid var(--slate-200);
  background: var(--color-canvas);
  padding: 3.5rem 0 4rem;
  scroll-margin-top: 0;
}

.contact:focus {
  outline: none;
}

@media (min-width: 640px) {
  .contact {
    padding: 4.5rem 0 5rem;
  }
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2.5rem;
  }
}

.section-title {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}

.contact-intro p {
  margin-top: 1rem;
}

.muted {
  color: var(--slate-600);
  line-height: 1.625;
}

.small {
  font-size: 0.875rem;
}

.card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

@media (min-width: 640px) {
  .card {
    padding: 2rem;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
}

.optional {
  font-weight: 400;
  color: var(--slate-600);
}

.hint {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  color: var(--slate-600);
}

/* Input / Textarea (shadcn, the uplift focus ring). */
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-control);
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-ink);
}

textarea {
  margin-top: -0.75rem;
  min-height: 9rem;
  resize: vertical;
  font-size: 0.9375rem;
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--color-brand);
}

textarea[aria-invalid="true"] {
  border-color: var(--color-critical-foreground);
}

.field-error {
  margin-top: -0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-critical-foreground);
}

.outcome:empty {
  display: none;
}

.outcome-message {
  border-radius: var(--radius-control);
  border: 1px solid #fecaca;
  background: var(--color-critical-soft);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-critical-foreground);
}

.outcome-message.attention {
  border-color: rgb(217 119 6 / 0.3);
  background: var(--color-attention-soft);
  color: var(--color-attention-foreground);
}

/* Human verification status (Founder decision 2026-10-09, Option A): a polite live region by Send. */
.verification {
  min-height: 1.5rem;
  margin-bottom: -0.75rem;
  font-size: 0.875rem;
  outline: none;
}

.verification-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5rem;
  color: var(--slate-600);
}

.verification-line.is-done {
  color: var(--color-positive-foreground);
}

.verification-line.is-failed {
  color: var(--color-critical-foreground);
}

.verification-icon {
  position: relative;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  border: 2px solid currentColor;
  border-radius: 9999px;
}

.verification-line.is-progress .verification-icon {
  border-right-color: transparent;
  animation: verification-spin 0.9s linear infinite;
}

.verification-line.is-done .verification-icon::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.0625rem;
  width: 0.25rem;
  height: 0.5rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.verification-line.is-failed .verification-icon::after {
  content: "!";
  position: absolute;
  inset: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 0.75rem;
  text-align: center;
}

.verification-retry {
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.125rem;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.verification-retry:hover {
  color: var(--color-brand-strong);
}

.verification-retry:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@keyframes verification-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-foot {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  border-top: 1px solid var(--slate-200);
  padding-top: 1.5rem;
}

.form-foot .button {
  width: 100%;
}

@media (min-width: 640px) {
  .form-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .form-foot .button {
    width: auto;
  }
}

.privacy-note {
  margin-top: -0.5rem;
}

.done {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.done[hidden],
.form[hidden] {
  display: none;
}

.done-title {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}

.done-title:focus {
  outline: none;
}

/* Footer (SiteFooter): the navy band. */
.site-footer {
  background: var(--color-ink);
  color: var(--slate-300);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}

@media (min-width: 640px) {
  .footer-legal {
    text-align: right;
  }
}

/* 404 page */
.not-found {
  padding: 5rem 0 6rem;
}

.not-found p {
  margin-top: 1rem;
}

.not-found .button {
  margin-top: 2rem;
}

/*
 * Independent Landing Page publishing (Founder decision 2026-10-09): landing.js replaces the published words as the
 * page loads. Until it has (or has given up, after one second), the marked words are held back so the page's older
 * words do not flash first. Without the script, they appear after 1.2 seconds. Layout is kept, so nothing moves.
 */
[data-site-content] {
  animation: landing-content-hold 0s linear 1.2s both;
}

html[data-content="ready"] [data-site-content] {
  animation: none;
}

@keyframes landing-content-hold {
  from {
    visibility: hidden;
  }

  to {
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .verification-line.is-progress .verification-icon {
    animation: none;
  }

  .button {
    transition: none;
  }
}
