/* Reset & base
   -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e6f0fb;
  /* soft repeating pattern */
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.35) 1px, transparent 0);
  background-size: 16px 16px;
  color: #111827;
}

/* Layout frame (centered white column)
   -------------------------------------------------- */

.app-header,
.app-main,
.app-footer {
  max-width: 1100px;
  margin: 0 auto;
}

.app-header {
  background: #ffffff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d1d5db;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

/* Brand + nav */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.7);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #1f2937;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

.top-nav a {
  text-decoration: none;
  color: #1d4ed8;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.top-nav a:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

/* Main content shell (white box like screenshot)
   -------------------------------------------------- */

.app-main.single-column {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 24px 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.25);
}

/* Hero banner
   -------------------------------------------------- */

.panel.hero {
  margin: 0 -24px 18px;
  padding: 0;
  border-radius: 0;
  border: none;
  overflow: hidden;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}

/* Replace hero-bg.jpg with your own image or a full URL */
.panel.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.2),
      rgba(15, 23, 42, 0.75)
    ),
    url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-content {
  position: relative;
  padding: 28px 32px;
  color: #f9fafb;
  max-width: 720px;
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.9);
}

.hero-lead {
  font-size: 0.95rem;
  margin: 0 0 12px;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-disclaimer {
  font-size: 0.75rem;
  max-width: 540px;
  color: #e5e7eb;
}

/* Panels (sections under hero)
   -------------------------------------------------- */

.panel {
  background: #ffffff;
  border-radius: 0;
  border-top: 4px solid #1d4ed8;
  padding: 18px 18px 20px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f2937;
}

.section-intro {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 10px;
}

/* Buttons
   -------------------------------------------------- */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #111827;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn.small {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.btn.primary {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: #eff6ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.6);
}

.btn.btn-outline {
  border-color: #9ca3af;
  color: #111827;
  background: #f9fafb;
}

.btn.btn-outline:hover {
  background: #e5e7eb;
}

/* Grid helpers & cards
   -------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.info-card,
.template-card {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  background: #f9fafb;
  font-size: 0.83rem;
}

.info-card h3,
.template-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: #111827;
}

.info-card ul,
.template-card ul {
  margin: 0;
  padding-left: 18px;
}

.info-card li + li,
.template-card li + li {
  margin-top: 4px;
}

.info-card.wide {
  grid-column: span 2;
}

/* Two-column section */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
}

@media (max-width: 800px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Example box & numbered list */

.example-box {
  font-size: 0.8rem;
  background: #eff6ff;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.example-box p {
  margin: 4px 0;
}

.numbered-list {
  font-size: 0.83rem;
  padding-left: 18px;
}

.numbered-list li + li {
  margin-top: 6px;
}

/* Callout */

.callout {
  margin-top: 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
  padding: 8px 10px;
}

/* Templates */

.templates-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.template-text {
  font-size: 0.76rem;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  margin: 6px 0 8px;
  background: #111827;
  color: #e5e7eb;
  padding: 8px 10px;
  border-radius: 4px;
}

/* FAQ
   -------------------------------------------------- */

.faq-item {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: #edf2ff;
  color: #111827;
  cursor: pointer;
  font-size: 0.84rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  font-size: 0.8rem;
  color: #4b5563;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.faq-answer.open {
  max-height: 220px;
  padding: 6px 10px 10px;
}

/* Footer
   -------------------------------------------------- */

.app-footer {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 10px 24px 0;
  font-size: 0.75rem;
  color: #4b5563;
}

/* Responsive header
   -------------------------------------------------- */

@media (max-width: 800px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .app-main.single-column {
    padding: 0 12px 20px;
  }

  .panel.hero {
    margin: 0 -12px 16px;
  }
}
