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

:root {
  --bg: #040712;
  --bg-elevated: #070b1a;
  --bg-muted: #0b0f1f;
  --bg-accent: #10172f;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --primary: #38bdf8;
  --primary-soft: rgba(56, 189, 248, 0.15);
  --primary-strong: #0ea5e9;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --danger: #f97373;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.5);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--text);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* Containers & sections */

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

.section {
  padding: 4rem 0;
}

.section-muted {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
}

.section-accent {
  background: radial-gradient(circle at top right, #0f172a 0, #020617 60%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-intro {
  max-width: 46rem;
  margin: 0.75rem 0 2rem;
  color: var(--text-soft);
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.6), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 44px;
  width: 44px;
  border-radius: 0.9rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.site-nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.75);
}

.site-nav .nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-strong), #22c55e);
  color: #020617;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.85rem);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  color: var(--text-soft);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hero-footnote {
  font-size: 0.85rem;
  color: var(--text-soft);
  max-width: 32rem;
}

.hero-visual img {
  width: 100%;
  max-width: 460px;
  display: block;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #020617;
  box-shadow: 0 14px 32px rgba(8, 47, 73, 0.85);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), #22c55e);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-soft);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--text);
  box-shadow: var(--shadow-subtle);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Pill grid & pills */

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-soft);
  text-decoration: none; /* important so <a> pills look right */
  cursor: default;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.08s ease;
}

/* Make pill behave like button when it's a link */
a.pill {
  cursor: pointer;
}

.pill:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-1px);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.3rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: var(--text-soft);
}

.card ul {
  padding-left: 1.15rem;
  margin: 0.4rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Timeline */

.timeline {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.timeline-number {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border: 1px solid rgba(56, 189, 248, 0.7);
}

.timeline-content h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-soft);
}

.timeline-cta {
  margin-top: 1.5rem;
}

/* Intake layout */

.intake {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.intake-copy h2 {
  margin-top: 0;
}

.intake-list {
  margin: 1rem 0 0.75rem;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.intake-list li + li {
  margin-top: 0.25rem;
}

/* Forms */

.intake-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1.4rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.3rem;
}

legend {
  font-weight: 600;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: var(--text-soft);
}

.field label span {
  color: var(--danger);
  margin-left: 0.15rem;
}

.field-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

textarea {
  resize: vertical;
  min-height: 2.5rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 1);
}

.field-help {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

/* Checkbox grid */

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.4rem 0.75rem;
  margin-top: 0.35rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.checkbox input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--primary-strong);
}

/* FAQ layout */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.faq h2 {
  margin-top: 0;
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

.faq-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-soft);
}

.faq-cta {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 1.3rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: var(--shadow-soft);
}

.faq-cta h3 {
  margin-top: 0;
}

.faq-contact {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Misc text styles */

.muted {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.form-disclaimer {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top, #020617 0, #000 55%);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand {
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.footer-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.footer-links a:hover {
  border-color: rgba(148, 163, 184, 0.6);
}

/* Links */

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-strong);
}

/* Responsive adjustments */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
    text-align: center;
  }

  .hero-visual img {
    margin: 0 auto;
  }

  .intake {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    display: none; /* simple approach for now on small screens */
  }

  .site-header {
    position: static;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .intake-form {
    padding: 1.25rem 1.1rem;
  }

  .hero {
    padding-top: 3.25rem;
  }
}

/* === Custom additions for Local Makers & footer note === */

.footer-note {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0.4rem;
}

.footer-note a {
  text-decoration: underline;
}

/* Special styling for the Local Makers pill */
.pill-makers {
  border-style: dashed;
  opacity: 0.98;
}

.pill-makers::before {
  content: "🧵";
  margin-right: 0.35rem;
  font-size: 0.9em;
  vertical-align: middle;
}
