/*
 * Coming-soon page. Colors repeat the app's tokens (src/app/globals.css):
 * light theme only, no purple, no gradients or blur, green only for success.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --brand-blue: #1d4ed8;
  --brand-blue-hover: #1e40af;
  --brand-navy: #0f2a4a;
  --brand-navy-raised: #1b3a5f;
  --brand-tint: #eff6ff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --success-subtle: #f0fdf4;
  --success-strong: #166534;
  --destructive-subtle: #fef2f2;
  --destructive-strong: #991b1b;
  --ring: var(--brand-blue);
  --radius: 0.5rem;
}

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

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

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--slate-900);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--brand-navy);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--brand-blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-blue-hover);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-navy);
  font-weight: 600;
}

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

/* Header */

.site-header {
  background: var(--brand-navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.logo:hover {
  color: #ffffff;
}

.logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-blue);
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  color: var(--slate-200);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.header-link:hover {
  background: var(--brand-navy-raised);
  color: #ffffff;
}

.site-header :focus-visible {
  outline-color: #93c5fd;
}

/* Hero and sign-up */

.hero {
  padding: 3rem 0 3.5rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0;
  }
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr 26rem;
    column-gap: 3.5rem;
  }

  .hero-inner > .signup-card {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

.badge {
  justify-self: start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-blue-hover);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.25rem;
  text-wrap: balance;
}

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

.lead {
  max-width: 40rem;
  color: var(--slate-600);
  font-size: 1.125rem;
  line-height: 1.7;
}

.signup-card {
  scroll-margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: calc(var(--radius) * 1.5);
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.08);
}

.signup-title {
  font-size: 1.25rem;
}

.signup-form,
.remove-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.remove-form {
  max-width: 28rem;
  margin-top: 1.5rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
}

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

input,
select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-500);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--slate-900);
  font: inherit;
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 0;
  border-color: var(--ring);
}

/* Honeypot: hidden from people, visible to simple bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand-blue);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button-outline {
  justify-self: start;
  border-color: var(--slate-500);
  background: #ffffff;
  color: var(--slate-900);
}

.button-outline:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

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

.button-light:hover {
  background: var(--slate-100);
  color: var(--brand-navy);
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.form-status[data-state="ok"] {
  background: var(--success-subtle);
  color: var(--success-strong);
}

.form-status[data-state="error"] {
  background: var(--destructive-subtle);
  color: var(--destructive-strong);
}

.fine-print {
  color: var(--slate-600);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Sections */

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--slate-200);
}

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

.section.alt {
  background: var(--slate-50);
}

.section h2 {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .section h2 {
    font-size: 1.75rem;
  }
}

.section-lead {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: var(--slate-600);
}

/* Readable line length, keeping the section aligned with the others. */
:where(.prose) > * {
  max-width: 48rem;
}

.prose p {
  margin-top: 1rem;
  color: var(--slate-600);
}

.feature-grid {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

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

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid h3 {
  padding-top: 1rem;
  border-top: 3px solid var(--brand-blue);
  font-size: 1rem;
}

.feature-grid p {
  margin-top: 0.5rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
}

.entity-list {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
}

@media (min-width: 640px) {
  .entity-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .entity-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.entity-list > div {
  padding: 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #ffffff;
}

.entity-list dt {
  color: var(--brand-navy);
  font-weight: 600;
}

.entity-list dd {
  margin: 0.5rem 0 0;
  color: var(--slate-600);
  font-size: 0.9375rem;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.checklist li {
  position: relative;
  padding: 0.875rem 1rem 0.875rem 3.25rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  counter-increment: item;
}

.checklist li::before {
  content: counter(item);
  position: absolute;
  left: 1rem;
  top: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq details {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #ffffff;
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  color: var(--slate-900);
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.cta {
  padding: 2.5rem 1.5rem;
  border-radius: calc(var(--radius) * 1.5);
  background: var(--brand-navy);
}

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

.cta h2 {
  color: #ffffff;
}

.cta p {
  max-width: 40rem;
  margin: 0.75rem 0 1.5rem;
  color: var(--slate-200);
}

.cta :focus-visible {
  outline-color: #93c5fd;
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: 0.875rem;
}

.site-footer p + p {
  margin-top: 0.5rem;
}

/* Result page served by subscribe.php when JavaScript is off. */

.result {
  max-width: 36rem;
  padding: 4rem 0;
}

.result p {
  margin: 1rem 0 1.5rem;
  color: var(--slate-600);
}

/* Guides and glossary (generated by npm run landing:guides, decision 157) */

.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-list li {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.guide-list a {
  font-weight: 600;
}

.guide-list p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.guide-header {
  padding-top: 2rem;
}

.guide-header h1 {
  max-width: 48rem;
  margin-top: 1.25rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-navy);
}

@media (min-width: 640px) {
  .guide-header h1 {
    font-size: 2.5rem;
  }
}

.guide-header .lead {
  max-width: 48rem;
  margin-top: 1rem;
}

.guide-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--slate-500);
}

.breadcrumbs a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--slate-600);
}

.guide-layout {
  display: grid;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }

  .guide-aside {
    position: sticky;
    top: 5rem;
  }
}

.guide-body {
  display: grid;
  gap: 2.5rem;
  min-width: 0;
  max-width: 48rem;
}

.guide-body section {
  display: grid;
  gap: 1rem;
  scroll-margin-top: 5rem;
}

.guide-body h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.guide-body p,
.guide-body li {
  line-height: 1.65;
}

.guide-body ul,
.guide-body ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.5rem;
}

.toc {
  padding: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.guide-body .toc h2 {
  font-size: 0.875rem;
}

.toc ol {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.note {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background: var(--brand-tint);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.faq-list > div {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  scroll-margin-top: 5rem;
}

.faq-list dt {
  font-weight: 600;
}

.faq-list dd {
  margin: 0.5rem 0 0;
  color: var(--slate-600);
  line-height: 1.6;
}

.disclaimer {
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  border-top: 1px solid var(--slate-200);
}

.letters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

.site-footer a {
  color: inherit;
}

.sample {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  font-size: 0.9375rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}

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

.sample figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--brand-navy);
}

.sample p {
  margin-top: 0.75rem;
}
