/* ============================
   TIMBUKTI DESIGN SYSTEM
   ============================ */

/* ----------------------------
   VARIABLES
---------------------------- */
:root {
  /* Brand */
  --teal: #00676a;
  --gold: #d5af33;
  --cream: #f3e3c1;

  /* Background */
  --bg-a: #081f20;
  --bg-b: #0e2f30;

  /* Typography */
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.76);
  --faint: rgba(255, 255, 255, 0.56);

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);

  /* Buttons */
  --ink: #0b2b2b;

  /* Layout */
  --max: 760px;
  --pad: 24px;
}

/* ----------------------------
   RESET
---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ----------------------------
   BASE
---------------------------- */
body {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      900px 500px at 20% 10%,
      rgba(0, 103, 106, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, var(--bg-a) 0%, var(--bg-b) 100%);
  min-height: 100vh;
}

/* ----------------------------
   LAYOUT
---------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 64px 0;
}
.section.tight {
  padding: 44px 0;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  max-width: var(--max);
  margin: 0 auto;
}

/* ----------------------------
   HEADER / TYPOGRAPHY
---------------------------- */
.header {
  padding: 56px 0 28px 0;
}

.title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 10px;
}

.subtitle {
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}

h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  color: #fff;
}

.lead {
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
  max-width: 62ch;
}

.smallprint {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--faint);
}

.accent-rule {
  width: 78px;
  height: 3px;
  background: rgba(213, 175, 51, 0.92);
  border-radius: 999px;
  margin: 10px 0 18px 0;
}

/* ----------------------------
   NAV
---------------------------- */
.topbar {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.backlink {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.backlink:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* ----------------------------
   BUTTONS
---------------------------- */
.btn {
  display: inline-block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #c49e2f;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(213, 175, 51, 0.18);
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
}

/* Environment Banner */
.env-banner {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 999999;

  padding: 10px 16px;

  text-align: center;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;

  color: white;

  background: #b91c1c;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.has-env-banner {
  padding-top: 40px;
}

.env-development {
  background: #2563eb;
}

.env-staging {
  background: #ea580c;
}

/* SUCCESS BLOCK */
.success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.success-badge {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(213, 175, 51, 0.16);
  border: 1px solid rgba(213, 175, 51, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 2px;
}
.success-badge svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.92);
}

/* Steps */
.steps {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.step span:first-child {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  font-size: 14px;
}
.step span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* CTA ROW */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 10px;
}
.note a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.note a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

/* ----------------------------
   CARDS
---------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 18px;
}

.card h2 {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.card p {
  font-family: "Lora", serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.card .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

/* ----------------------------
   GRID SYSTEM
---------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ----------------------------
   CHECKLIST
---------------------------- */
.checklist {
  list-style: none;
  margin: 10px 0 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.5;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 103, 106, 0.35);
  border: 1px solid rgba(0, 103, 106, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

.check svg {
  width: 12px;
  height: 12px;
  fill: rgba(255, 255, 255, 0.92);
}

/* ----------------------------
   FOOTER
---------------------------- */
footer {
  padding: 40px 0 34px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}
.footer-links {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}
.copyright {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ----------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 32px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ----------------------------
   LEGAL / LONG-FORM CONTENT
---------------------------- */
.prose {
  display: grid;
  gap: 14px;
}

.prose p {
  font-family: "Lora", serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.prose h2 {
  margin-top: 18px;
}

.prose h3 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.prose ul {
  margin: 8px 0 8px 18px;
  color: rgba(255, 255, 255, 0.78);
}

.prose li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.prose a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.prose a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}
