/* ============================================================
   Wrldfi - Plain CSS from v0 Tailwind design
   Zero framework dependency. Deployable to Fasthosts static hosting.
   ============================================================ */

/* ── CSS Custom Properties (from globals.css :root) ── */
:root {
  /* Warm institutional paper palette */
  --background: oklch(0.925 0.014 84);
  --foreground: oklch(0.24 0.012 72);
  --card: oklch(0.955 0.012 86);
  --card-foreground: oklch(0.24 0.012 72);
  --popover: oklch(0.955 0.012 86);
  --popover-foreground: oklch(0.24 0.012 72);

  /* Deep ledger green as the single brand accent */
  --primary: oklch(0.38 0.058 162);
  --primary-foreground: oklch(0.955 0.014 88);

  --secondary: oklch(0.89 0.018 86);
  --secondary-foreground: oklch(0.28 0.012 72);

  --muted: oklch(0.895 0.016 86);
  --muted-foreground: oklch(0.46 0.014 74);

  --accent: oklch(0.38 0.058 162);
  --accent-foreground: oklch(0.955 0.014 88);

  --destructive: oklch(0.45 0.115 32);

  --positive: oklch(0.42 0.06 160);
  --loss: oklch(0.46 0.12 33);

  --border: oklch(0.8 0.02 82);
  --input: oklch(0.8 0.02 82);
  --ring: oklch(0.38 0.058 162);

  --radius: 0.15rem;

  /* Font stacks - matched to v0 @theme inline */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Derived radii */
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
  outline-color: color-mix(in srgb, var(--ring) 40%, transparent);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  font-feature-settings: "ss01", "cv01";
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Tabular figures for all monospace/data contexts */
.font-mono,
code,
pre {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ── Utility: .label (from globals.css @utility) ── */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;           /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* ── Container ── */
.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ── Section defaults ── */
.section {
  border-bottom: 1px solid var(--border);
}

.section-headline {
  margin-top: 1.25rem;          /* mt-5 */
  font-family: var(--font-serif);
  font-size: 1.875rem;          /* text-3xl */
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-headline {
    font-size: 2.75rem;         /* md:text-[2.75rem] */
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;            /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;       /* px-6 py-3 */
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, transparent);
}

.btn-sm {
  padding: 0.5rem 1rem;          /* px-4 py-2 */
}

.btn-text-link {
  gap: 0.5rem;
  color: var(--foreground);
  background: transparent;
  border: none;
  padding: 0;
}

.btn-text-link .arrow {
  transition: transform 0.2s ease;
}

.btn-text-link:hover .arrow {
  transform: translateX(0.25rem);  /* group-hover:translate-x-1 */
}

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  height: 4rem;                   /* h-16 */
  max-width: 72rem;               /* max-w-6xl */
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .header-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.logo-link {
  flex-shrink: 0;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-monogram {
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--foreground) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;           /* text-[13px] */
  font-weight: 500;
  line-height: 1;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;             /* text-xl */
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--foreground);
}

/* Nav */
.nav-primary {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-primary {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;             /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

/* ── Hero ── */
.section-hero {
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 0;                  /* gap-y-10 */
  padding-top: 4rem;              /* pt-16 */
  padding-bottom: 3.5rem;         /* pb-14 */
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;                  /* md:gap-x-10 */
    padding-top: 6rem;            /* md:pt-24 */
    padding-bottom: 5rem;         /* md:pb-20 */
  }
}

.hero-copy {
  /* full width by default */
}

@media (min-width: 768px) {
  .hero-copy {
    grid-column: span 8;          /* md:col-span-8 */
  }
}

.hero-headline {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 3.75rem;           /* sm:text-6xl */
  }
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 4.2rem;            /* md:text-[4.2rem] */
  }
}

.hero-subhead {
  margin-top: 1.75rem;             /* mt-7 */
  max-width: 42rem;                /* max-w-2xl - widened from 36rem */
  font-size: 1.125rem;             /* text-lg */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2.25rem;             /* mt-9 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 1rem;
}

/* Hero meta rail */
.hero-meta {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .hero-meta {
    grid-column: span 4;           /* md:col-span-4 */
    border-left: 1px solid var(--border);
    padding-left: 2rem;            /* md:pl-8 */
  }
}

.hero-meta-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 1.75rem;                /* gap-y-7 */
}

@media (min-width: 768px) {
  .hero-meta-list {
    grid-template-columns: 1fr;    /* md:grid-cols-1 */
  }
}

.meta-item {
  /* spacing handled by gap on parent */
}

.meta-value-serif {
  margin-top: 0.5rem;             /* mt-2 */
  font-family: var(--font-serif);
  font-size: 1.5rem;              /* text-2xl */
  color: var(--foreground);
}

.meta-value-mono {
  margin-top: 0.5rem;             /* mt-2 */
  font-family: var(--font-mono);
  font-size: 0.875rem;            /* text-sm */
  line-height: 1.75;
  color: var(--foreground);
}

/* ── Screenshot placeholder ── */
.screenshot-wrap {
  padding-bottom: 4rem;            /* pb-16 */
}

.screenshot-caption {
  margin-top: 0.75rem;             /* mt-3 */
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .screenshot-wrap {
    padding-bottom: 6rem;          /* md:pb-24 */
  }
}

.screenshot-frame {
  border: 1px solid var(--border);
  background-color: var(--card);
}

.screenshot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 1rem;          /* py-2.5 px-4 */
}

.screenshot-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
}

.screenshot-denom {
  font-family: var(--font-mono);
  font-size: 0.6875rem;            /* text-[11px] */
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.screenshot-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;                /* px-6 */
}

.screenshot-body-hero {
  min-height: 280px;              /* min-h-[280px] */
  padding-top: 5rem;              /* py-20 */
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .screenshot-body-hero {
    min-height: 420px;            /* sm:min-h-[420px] */
  }
}

.screenshot-body-product {
  min-height: 340px;              /* min-h-[340px] */
  padding-top: 4rem;              /* py-16 */
  padding-bottom: 4rem;
}

.screenshot-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}

.screenshot-body {
  position: relative;
}

.screenshot-placeholder {
  text-align: center;
}

.screenshot-placeholder-title {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;             /* text-xl */
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
}

.screenshot-body-product .screenshot-placeholder-title {
  font-size: 1.125rem;            /* text-lg */
}

.screenshot-placeholder-text {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  max-width: 20rem;
  font-size: 0.875rem;            /* text-sm */
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* When image loads, hide placeholder */
.screenshot-body .screenshot-img {
  display: block;
}

.screenshot-body.no-image .screenshot-placeholder {
  display: block;
}

.screenshot-body:not(.no-image) .screenshot-placeholder {
  display: none;
}

/* Dashed-border fallback for missing images */
.screenshot-body.no-image {
  border: 2px dashed var(--border);
  background-color: color-mix(in srgb, var(--muted) 50%, transparent);
}

/* Logo image fallback: dashed border when logo.png is missing */
.logo-img {
  display: none;
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.logo.has-image .logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo.has-image .logo-monogram,
.logo.has-image .logo-wordmark {
  display: none;
}

/* Sticky on desktop */
@media (min-width: 768px) {
  .screenshot-sticky {
    position: sticky;
    top: 6rem;                     /* md:top-24 */
  }
}

/* ── Problem ── */
.section-problem {
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--muted) 40%, transparent); /* bg-muted/40 */
}

.problem-intro {
  max-width: 48rem;                /* max-w-3xl */
  padding-top: 4rem;               /* py-16 */
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .problem-intro {
    padding-top: 5rem;             /* md:py-20 */
    padding-bottom: 5rem;
  }
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);   /* md:grid-cols-3 */
  }
}

.problem-card {
  padding: 2.5rem 0;               /* py-10 */
}

@media (min-width: 768px) {
  .problem-card {
    padding: 3rem 2rem;            /* md:py-12 md:px-8 */
  }

  .problem-card:first-child {
    padding-left: 0;
  }
}

/* Borders between cards */
.problem-card:nth-child(n+2) {
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .problem-card:nth-child(n+2) {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.problem-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;              /* text-xl */
  font-weight: 500;
  color: var(--foreground);
}

.problem-card-body {
  margin-top: 1rem;                /* mt-4 */
  max-width: 24rem;                /* max-w-sm */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ── Product ── */
.section-product {
  scroll-margin-top: 4rem;         /* scroll-mt-16 */
  border-bottom: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  row-gap: 3rem;
  padding-top: 4rem;               /* py-16 */
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(12, 1fr);
    padding-top: 6rem;             /* md:py-24 */
    padding-bottom: 6rem;
  }
}

.product-features {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .product-features {
    grid-column: span 7;           /* md:col-span-7 */
  }
}

.feature-list {
  margin-top: 2.5rem;              /* mt-10 */
  border-top: 1px solid var(--border);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-top: 1.5rem;             /* py-6 */
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .feature-item {
    column-gap: 2.5rem;            /* md:gap-x-10 */
  }
}

.feature-tag {
  padding-top: 0.25rem;            /* pt-1 */
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;              /* text-xl */
  font-weight: 500;
  color: var(--foreground);
}

.feature-body {
  margin-top: 0.5rem;              /* mt-2 */
  max-width: 28rem;                /* max-w-md */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.product-screenshot-col {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .product-screenshot-col {
    grid-column: span 5;           /* md:col-span-5 */
  }
}

/* ── Security ── */
.section-security {
  scroll-margin-top: 4rem;         /* scroll-mt-16 */
  border-bottom: 1px solid var(--border);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.security-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--primary-foreground) 60%, transparent);
}

.section-security .section-headline {
  color: var(--primary-foreground);
}

.security-headline {
  max-width: 52rem;                /* widened from 42rem for balance on full-width dark band */
}

.security-grid {
  margin-top: 3rem;                /* mt-12 */
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3.5rem;
  row-gap: 3rem;
  border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 20%, transparent);
  padding-top: 3rem;               /* pt-12 */
}

@media (min-width: 768px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);   /* md:grid-cols-2 */
  }
}

.security-sub-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--primary-foreground) 60%, transparent);
}

.section-security {
  padding-top: 4rem;               /* py-16 */
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-security {
    padding-top: 6rem;             /* md:py-24 */
    padding-bottom: 6rem;
  }
}

/* Security - Never stored list */
.never-list {
  margin-top: 1.5rem;              /* mt-6 */
}

.never-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-foreground) 15%, transparent);
  padding-top: 1rem;               /* py-4 */
  padding-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;              /* text-xl */
}

.never-cross {
  font-family: var(--font-mono);
  font-size: 0.875rem;             /* text-sm */
  color: color-mix(in srgb, var(--primary-foreground) 50%, transparent);
}

.security-note {
  margin-top: 1.5rem;              /* mt-6 */
  max-width: none;                 /* fills the available column width naturally */
  line-height: 1.75;
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
  text-wrap: pretty;
}

/* Security - meta-list overrides for dark background */
.section-security .meta-list {
  margin-top: 1.5rem;
  border-top-color: color-mix(in srgb, var(--primary-foreground) 20%, transparent);
}

.section-security .meta-row {
  border-bottom-color: color-mix(in srgb, var(--primary-foreground) 15%, transparent);
}

.section-security .meta-label {
  color: var(--primary-foreground);
}

.section-security .meta-value {
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
}

/* ── Audience ── */
.section-audience {
  scroll-margin-top: 4rem;         /* scroll-mt-16 */
  border-bottom: 1px solid var(--border);
  padding-top: 4rem;               /* py-16 */
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-audience {
    padding-top: 6rem;             /* md:py-24 */
    padding-bottom: 6rem;
  }
}

.audience-intro {
  max-width: 42rem;                /* max-w-2xl */
}

.audience-grid {
  margin-top: 3rem;                /* mt-12 */
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.audience-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;               /* min-h-[220px] */
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 1.75rem;                /* p-7 */
}

.audience-ref {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* text-xs */
  letter-spacing: 0.16em;
  color: var(--primary);
}

.audience-card-title {
  margin-top: 1.5rem;              /* mt-6 */
  font-family: var(--font-serif);
  font-size: 1.25rem;              /* text-xl */
  font-weight: 500;
  line-height: 1.375;
  color: var(--foreground);
}

.audience-card-body {
  margin-top: 0.75rem;             /* mt-3 */
  font-size: 0.875rem;             /* text-sm */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ── Early Access ── */
.section-early-access {
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--muted) 40%, transparent); /* bg-muted/40 */
}

.early-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 1.5rem;
  row-gap: 2.5rem;
  padding-top: 4rem;               /* py-16 */
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .early-grid {
    grid-template-columns: auto 1fr;
    column-gap: 3rem;
    padding-top: 6rem;             /* md:py-24 */
    padding-bottom: 6rem;
  }
}

.early-copy {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .early-copy {
    /* natural width, no span needed */
  }
}

.early-text {
  margin-top: 1.5rem;              /* mt-6 */
  max-width: none;                 /* fills the 5-col copy area naturally */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.early-terms {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .early-terms {
    /* fills remaining space after .early-copy */
  }
}

/* ── Shared label+body two-column pattern (.meta-list / .meta-row) ── */
.meta-list {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  align-self: start;
  color: var(--foreground);
}

.meta-value {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ── Signup Form ── */
.section-signup {
  scroll-margin-top: 4rem;         /* scroll-mt-16 */
  border-bottom: 1px solid var(--border);
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  row-gap: 2.5rem;
  padding-top: 4rem;               /* py-16 */
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .signup-grid {
    grid-template-columns: 1fr;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 6rem;             /* md:py-24 */
    padding-bottom: 6rem;
  }
}

.signup-copy {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .signup-copy {
    text-align: center;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.signup-headline {
  font-size: 1.875rem;             /* text-3xl */
}

@media (min-width: 768px) {
  .signup-headline {
    font-size: 2.25rem;            /* md:text-4xl */
  }
}

.signup-text {
  margin-top: 1.5rem;              /* mt-6 */
  max-width: none;                 /* fills the 4-col copy area */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.signup-form-col {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .signup-form-col {
    /* full width - stacked below copy */
  }
}

/* Signup form */
.signup-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;                     /* gap-6 */
  max-width: none;
}

@media (min-width: 640px) {
  .signup-form {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;                     /* gap-2 */
}

.field-full {
  grid-column: 1 / -1;             /* sm:col-span-2 */
}

.field-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
  color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);   /* focus:ring-1 focus:ring-primary */
}

.field-input:focus-visible {
  outline: none;
}

select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.field-submit {
  /* sm:col-span-2 already handled by .field-full */
}

.btn-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  background-color: var(--primary);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-foreground);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

@media (min-width: 640px) {
  .btn-submit {
    width: auto;                   /* sm:w-auto */
  }
}

.btn-submit:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, transparent);
}

.field-note {
  margin-top: 1rem;                /* mt-4 */
  font-size: 0.875rem;             /* text-sm */
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* Form success state */
.form-success {
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background-color: var(--card);
  padding: 2rem;
}

@media (min-width: 768px) {
  .form-success {
    padding: 2.5rem;               /* md:p-10 */
  }
}

.form-success-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary) !important;
}

.form-success-title {
  margin-top: 1rem;                /* mt-4 */
  font-family: var(--font-serif);
  font-size: 1.5rem;               /* text-2xl */
  line-height: 1.375;
  color: var(--foreground);
}

.form-success-text {
  margin-top: 0.75rem;             /* mt-3 */
  max-width: 28rem;                /* max-w-md */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ── Footer ── */
.site-footer {
  background-color: var(--background);
}

.site-footer > .container {
  /* padding handled by container */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;               /* py-12 */
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
    padding-top: 4rem;             /* md:py-16 */
    padding-bottom: 4rem;
  }
}

.footer-brand {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 7;           /* md:col-span-7 - widened from 5 to fill dead right columns */
  }
}

.footer-disclaimer {
  margin-top: 1.25rem;             /* mt-5 */
  max-width: 24rem;                /* max-w-sm */
  font-size: 0.875rem;             /* text-sm */
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.footer-contact {
  /* full width on mobile */
}

@media (min-width: 768px) {
  .footer-contact {
    grid-column: span 5;
    grid-column-start: 8;          /* md:col-span-5 md:col-start-8 - fills columns 8-12 alongside expanded brand */
  }
}

.footer-email {
  margin-top: 0.75rem;             /* mt-3 */
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;             /* text-sm */
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.footer-email:hover {
  text-decoration-color: var(--foreground);
}

.footer-privacy {
  margin-top: 1.5rem;             /* mt-6 */
}

.footer-privacy-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.footer-privacy-link:hover {
  text-decoration-color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;             /* py-6 */
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy,
.footer-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

/* ── Honeypot (spam trap) ── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Scroll-reveal animations (for IntersectionObserver in main.js) ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive adjustments ── */
@media (max-width: 767px) {
  /* Header mobile - hide nav, keep logo + CTA */
  .nav-primary {
    display: none;
  }

  .header-inner {
    gap: 1rem;
  }
}