:root {
  --base: #ffffff;
  --surface: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #475569;
  --accent: #b45309;
  --accent-hover: #92400e;
  --border-subtle: #e2e8f0;
  
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-stack);
  color: var(--text-main);
  background-color: var(--surface);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 2vw;
  background-color: var(--base);
  min-height: 96vh;
  outline: 1px solid var(--border-subtle);
  outline-offset: -1vw;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  line-height: 1.1;
  color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }

p { margin: 0 0 1.5rem 0; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.3s var(--ease);
}

a:hover {
  border-bottom-color: var(--accent);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0; /* Square corners enforced */
}

.img-16-9 { aspect-ratio: 16 / 9; }
.img-4-3 { aspect-ratio: 4 / 3; }
.img-1-1 { aspect-ratio: 1 / 1; }

/* Structural Wrappers */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  flex: 1;
}

.reading-width {
  max-width: 72ch;
  margin: 0 auto;
}

/* Header & Nav */
.site-tagline {
  background-color: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
}

header {
  position: relative;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand:hover { border: none; color: var(--accent); }

.desktop-nav {
  display: flex;
  gap: 1.5rem;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
}

.mobile-nav-overlay {
  display: none;
  flex-direction: column;
  background-color: var(--base);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  gap: 1rem;
}

.mobile-nav-overlay.active {
  display: flex;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: var(--base);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.3s var(--ease);
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border: none;
  color: var(--base);
}

.action-link {
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 2px solid var(--surface);
}

.action-link:hover {
  border-bottom-color: var(--accent);
}

/* Sections & Layout */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-band {
  background-color: var(--surface);
  padding: 4rem 2rem;
  margin: 0 -2rem; /* Bleed to edge of main-wrapper */
}

.hero-band {
  padding: 4rem 0 2rem 0;
}

/* Bento Regions & List Rows */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.bento-region {
  background-color: var(--base);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-icon, .avatar-badge, .activity-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Explicitly circular as requested */
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.25rem;
}

.list-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.list-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sequence & Steps */
.practice-sequence {
  counter-reset: practice-step;
  list-style: none;
  padding: 0;
}

.practice-sequence li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.practice-sequence li::before {
  counter-increment: practice-step;
  content: counter(practice-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--accent);
  color: var(--base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-weight: 800;
  background-color: var(--surface);
}

/* Forms & Tools */
.contact-tool {
  background-color: var(--surface);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  border-radius: 0;
  background-color: var(--base);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.tool-preview {
  background-color: var(--base);
  padding: 1.5rem;
  border: 1px dashed var(--text-muted);
  white-space: pre-wrap;
  min-height: 150px;
  font-family: monospace;
  margin-bottom: 1rem;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* FAQ Accordions */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.faq-q {
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-a {
  display: block;
  margin-top: 1rem;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 4rem 2rem 2rem 2rem;
  background-color: var(--surface);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

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

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Utilities & Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .desktop-nav { gap: 1rem; }
}

@media (max-width: 768px) {
  body { margin: 1vw; outline-offset: -0.5vw; }
  header { padding: 1.5rem; }
  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .section-band { margin: 0 -1rem; padding: 3rem 1rem; }
  .main-wrapper { padding: 0 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .tool-actions { flex-direction: column; }
}