:root {
  --bg: #f7efe4;
  --surface: #fffaf3;
  --surface-strong: #fff4e5;
  --ink: #1f1b18;
  --muted: #675f57;
  --line: #e2d6c7;
  --accent: #f45d22;
  --accent-deep: #cf4510;
  --accent-soft: #ffd4c0;
  --navy: #1d3754;
  --shadow: 0 18px 45px rgba(31, 27, 24, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 93, 34, 0.14), transparent 28%),
    radial-gradient(circle at right center, rgba(29, 55, 84, 0.12), transparent 26%),
    linear-gradient(180deg, #fff7ef 0%, var(--bg) 45%, #f9f1e8 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

code,
pre,
.panel-pill,
.eyebrow,
.tag {
  font-family: "IBM Plex Mono", monospace;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(226, 214, 199, 0.9);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(31, 27, 24, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ffb089);
  color: white;
  font-weight: 800;
}

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

.brand-copy small {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--ink);
}

.hero,
.split-section,
.two-column,
.tool-layout {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  padding: 26px 0 8px;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.prose-page h1,
.tool-layout h1 {
  margin: 0 0 12px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
  max-width: 12ch;
}

.hero-copy .lede,
.section-heading p,
.prose-page p,
.card p {
  color: var(--muted);
}

.hero-actions,
.button-row,
.stack-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.button.secondary,
.button.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 26px rgba(244, 93, 34, 0.25);
}

.button.secondary {
  background: var(--navy);
  color: white;
}

.button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button.secondary:hover,
.button.ghost:hover {
  transform: translateY(-1px);
}

.hero-points,
.checklist,
.template-list,
.number-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.hero-panel,
.panel,
.card,
.cta-card {
  border-radius: var(--radius);
}

.card,
.cta-card,
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.95);
  box-shadow: var(--shadow);
}

.panel,
.card {
  padding: 24px;
}

.accent-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 93, 34, 0.12), rgba(255, 255, 255, 0.8)),
    var(--surface);
}

.panel-header,
.mini-grid,
.feature-grid,
.faq-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

.panel-header {
  grid-template-columns: repeat(2, max-content);
}

.panel-pill {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.panel-pill.neutral {
  color: var(--navy);
}

.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.mini-grid strong {
  display: block;
  font-size: 2rem;
  color: var(--navy);
}

.mini-grid span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  margin-top: 52px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.eyebrow,
.tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.feature-card a,
.template-card a,
.text-link {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.split-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(29, 55, 84, 0.95), rgba(19, 28, 43, 0.95)),
    var(--navy);
  color: white;
}

.cta-card .eyebrow,
.cta-card .form-note,
.cta-card p {
  color: rgba(255, 255, 255, 0.78);
}

.email-form,
.prompt-form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note,
.disclosure,
.form-feedback {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.tool-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.tool-sidebar {
  display: grid;
  gap: 20px;
}

.result-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.code-block {
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #17120e;
  color: #f5ede4;
  line-height: 1.7;
}

.small-code {
  font-size: 0.92rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.filter-pill.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.tool-card,
.template-card,
.faq-card {
  min-height: 100%;
}

.footer {
  margin-top: 52px;
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.prose-page {
  max-width: 760px;
}

.prose-page h2 {
  margin-top: 26px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-top {
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .hero,
  .split-section,
  .tool-layout,
  .two-column,
  .cta-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .feature-grid,
  .faq-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}
