/* Global site styling */
body {
  font-family: Arial, sans-serif;
  background-color: #F8EED9; /* matches logo bg vibe */
  margin: 0;
  padding: 0;
  color: #4a2e22;
  line-height: 1.5;
}

/* Make #site the flex container so header/main/footer behave nicely */
#site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Shared content width */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;   /* keeps a bit of breathing room on mobile */
  width: 100%;
}

/* Header layout */
header {
  padding: 16px 0;
}

/* Header inner: logo left, nav right */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo: bigger, always controlled */
img.logo {
  width: 120px;
  height: auto;
  display: block;
}

/* Optional brand name under/next to logo (not used yet, safe to keep) */
.logo-wrapper {
  display: flex;
  flex-direction: column;   /* logo on top, text under */
  justify-content: flex-start;
  align-items: flex-start;
}

.brand-name {
  font-weight: bold;
  color: #4a2e22;
  font-size: 1rem;
  margin-top: 4px;
}

/* Navigation with underline animation */
nav {
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: #4a2e22;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #4a2e22;
  transition: width 0.2s ease-in-out;
}

nav a:hover::after {
  width: 100%;
}

/* Main content area */
main {
  flex: 1; /* push footer down */
  padding-bottom: 40px;
}

/* Hero */
.hero {
  max-width: 960px;      /* same as container content width */
  margin: 40px 0 48px;
}

.hero h1,
.hero p {
  max-width: 100%;
}

/* H1 styling */
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 20px;
  color: #4a2e22;
}

/* Hero lead paragraph */
.hero-lead {
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 24px;
}

/* Paragraph spacing / readability */
.hero p {
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Hero columns / points */
.hero-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.hero-point h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero-point p {
  font-size: 0.95rem;
  margin: 0;
}

/* Headings */
h1, h2, h3 {
  color: #4a2e22;
}

/* Cards & grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.95rem;
  margin-bottom: 48px; /* clean, natural vertical rhythm */
}

.card h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

/* Side-by-side examples */
.examples-grid {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  align-items: flex-start;
}

/* Make each example share the space equally */
.examples-grid > div {
  flex: 1 1 0;
  min-width: 0; /* allows code blocks to shrink and scroll instead of breaking layout */
}

/* Quickstart section styling */
.quickstart-card {
  margin-top: 32px;
  margin-bottom: 48px;  /* <-- ADD THIS */
  padding: 32px 28px;
  border-radius: 12px;
}

/* Extra spacing for the cURL code block */
.curl-block {
  white-space: pre-wrap;       /* prevents horizontal overflow */
  word-break: break-word;
  margin-top: 16px;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 24px; /* ADD THIS */
}

.code-block {
  background-color: #f3ece0;
  color: #3a2a22;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.4;
  border: 1px solid #e0d4c2;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  margin-top: 8px;

  /* FIX FOR WRAPPING */
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block code {
  background: none;
  padding: 0;
}

/* Supported institutions layout */
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.institutions-grid h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.institutions-grid ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.95rem;
}

.small {
  font-size: 0.9rem;
  margin-top: 12px;
  opacity: 0.85;
}

/* Footer pushed toward bottom */
footer {
  padding: 24px 0 32px 0;
  text-align: center;
  font-size: 0.8em;
  color: #6b5244;
}

#docs.card {
  margin-bottom: 40px;
}

/* Responsive adjustments */

/* Mobile: stack vertically */
@media (max-width: 800px) {
  .examples-grid {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  nav {
    justify-content: center;
  }

  .hero {
    padding: 0 8px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }
}

/* === Request API Key form layout === */

.request-key-form {
  max-width: 520px;
}

/* Space between rows */
.request-key-form .form-row {
  margin-bottom: 14px;
}

/* Put label above the control */
.request-key-form .form-row label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Text + email inputs + textarea */
.request-key-form .form-row input[type="text"],
.request-key-form .form-row input[type="email"],
.request-key-form .form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e0d2b8;
  background: #ffffff;
  font: inherit;
  font-size: 0.95rem;
}

/* Textarea specifics */
.request-key-form .form-row textarea {
  min-height: 110px;
  resize: vertical;
}

/* Checkbox row */
.request-key-form .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.request-key-form .checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* Request API Key card: narrower and centered */
.request-card {
  max-width: 960px;
  margin: 0 auto 48px;  /* center inside the container */
}

/* Form fills the card width */
.request-key-form {
  width: 100%;
}

/* Space between rows */
.request-key-form .form-row {
  margin-bottom: 14px;
}

/* Label above control */
.request-key-form .form-row label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Inputs + textarea */
.request-key-form .form-row input[type="text"],
.request-key-form .form-row input[type="email"],
.request-key-form .form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e0d2b8;
  background: #ffffff;
  font: inherit;
  font-size: 0.95rem;
}

/* Textarea specifics */
.request-key-form .form-row textarea {
  min-height: 110px;
  resize: vertical;
}

/* Checkbox row */
.request-key-form .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.request-key-form .checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* Primary button style (shared with pricing hero) */
.button-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background-color: #4a2e22;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}


