/* ============================================================
   ModelDesk — Design & Making Resource
   style.css
   ============================================================ */

/* === VARIABLES ============================================= */
:root {
  --bg:           #FAFAF8;
  --bg-card:      #FFFFFF;
  --bg-subtle:    #F3F1ED;
  --bg-code:      #EEECE7;
  --border:       #E5E2DB;
  --border-hover: #CCC9C0;
  --text:         #1A1917;
  --text-secondary: #6B6760;
  --text-muted:   #9C9890;
  --accent:       #C4603A;
  --accent-hover: #A84F2E;
  --accent-light: #F7EDE7;
  --green:        #3C7A68;
  --green-light:  #E8F2EE;
  --warn:         #9A6B00;
  --warn-light:   #FDF4DC;
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --nav-h:        62px;
  --max:          1180px;
  --r:            8px;
  --r-lg:         14px;
  --shadow:       0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --transition:   0.18s ease;
}

[data-theme="dark"] {
  --bg:           #141412;
  --bg-card:      #1D1C19;
  --bg-subtle:    #242320;
  --bg-code:      #1A1918;
  --border:       #2C2B27;
  --border-hover: #3E3D38;
  --text:         #EDEAE3;
  --text-secondary: #9C9890;
  --text-muted:   #6B6760;
  --accent:       #D4704A;
  --accent-hover: #E07D58;
  --accent-light: #261A14;
  --green:        #4A9080;
  --green-light:  #162220;
  --warn:         #C49020;
  --warn-light:   #221C08;
  --shadow:       0 1px 4px rgba(0,0,0,0.3);
}

/* === RESET & BASE ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-code);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--accent);
}
button { cursor: pointer; font-family: var(--font-body); }

/* === TYPOGRAPHY ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

/* === LAYOUT ================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 520px; margin: 0.75rem auto 0; font-size: 1.05rem; }

/* === BUTTONS =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-heading);
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-subtle); color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--accent-hover); }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }

/* === NAVBAR ================================================ */
.navbar {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10000;
  transition: background var(--transition), border-color var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-heading);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-subtle);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg-subtle); color: var(--text); }
.hamburger {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}
.mobile-menu {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 10001;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.mobile-theme-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

/* === HERO ================================================== */
.hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content > p { font-size: 1.1rem; max-width: 460px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}
.hero-visual svg { width: 100%; max-width: 420px; }

/* === FEATURES ============================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  display: block;
}
.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* === BLOG CARDS ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.blog-card-thumb {
  height: 160px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-thumb svg { width: 100%; height: 100%; }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.blog-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.blog-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-heading);
}
.blog-card h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 0.85rem; flex: 1; }
.blog-card .read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* === LEARN PREVIEW ========================================= */
.learn-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.learn-preview-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.learn-preview-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}
.lp-icon { font-size: 1.4rem; margin-bottom: 0.75rem; display: block; }
.lp-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}
.learn-preview-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.learn-preview-card p { font-size: 0.82rem; }
.lp-links { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.lp-links a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: color var(--transition);
}
.lp-links a:hover { color: var(--accent); }
.lp-links a::before { content: "→"; font-size: 0.75rem; color: var(--accent); }

/* === CTA SIGNUP SECTION ==================================== */
.cta-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 { margin-bottom: 0.75rem; }
.cta-inner > p { margin-bottom: 2rem; font-size: 1.05rem; }
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}
.cta-form input, .cta-form select, .cta-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  border-color: var(--accent);
}
.cta-form input::placeholder, .cta-form select option[value=""] {
  color: var(--text-muted);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.cta-form .btn-primary { width: 100%; justify-content: center; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--r-lg);
}
.form-success h3 { color: var(--green); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-secondary); font-size: 0.9rem; }

/* === MODAL ================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-subtle); color: var(--text); }
.modal h2 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.modal > p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* === FOOTER ================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

/* === LEARN PAGE ============================================ */
.learn-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  min-height: calc(100vh - var(--nav-h));
}
.learn-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow-y: auto;
}
.sidebar-group {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-heading);
  padding: 0.4rem 0.6rem;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}
.sidebar-group:first-child { margin-top: 0; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r);
  font-size: 0.87rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-subtle); }
.sidebar-link.active { color: var(--accent); background: var(--accent-light); font-weight: 500; }
.sidebar-icon { font-size: 0.95rem; flex-shrink: 0; }
.learn-main { min-width: 0; }
.learn-article { display: none; }
.learn-article.active { display: block; }
.learn-article h1 { margin-bottom: 1rem; }
.learn-article > p:first-of-type { font-size: 1.05rem; margin-bottom: 2rem; }
.learn-article h2 { margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.learn-article h2:first-of-type { border-top: none; }

.learn-steps { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.25rem 0; }
.learn-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9rem;
  color: var(--text-secondary);
  align-items: start;
}
.learn-step strong { color: var(--text); }
.step-num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
  margin-top: 1px;
}
.learn-callout {
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 1.25rem 0;
  line-height: 1.65;
}
.learn-callout.good { border-color: var(--green); background: var(--green-light); }
.learn-callout.warn { border-color: var(--warn); background: var(--warn-light); }
.learn-callout strong { color: var(--text); }
.learn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.25rem 0;
}
.learn-table th {
  background: var(--bg-subtle);
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}
.learn-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.learn-table td.good { color: var(--green); font-weight: 500; }
.learn-table td.warn { color: var(--warn); font-weight: 500; }
.learn-table td.bad { color: var(--accent); font-weight: 500; }
.learn-table tr:last-child td { border-bottom: none; }
.sidebar-cta {
  margin-top: 2rem;
  padding: 1.1rem;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
}
.sidebar-cta p { font-size: 0.82rem; margin-bottom: 0.75rem; color: var(--text-secondary); }
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 0.85rem; }

/* === BLOG PAGE ============================================= */
.blog-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.blog-listing { padding: 3rem 0; }
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.post-content { max-width: 680px; }
.post-content h2 { margin: 2.5rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}
.post-content li { margin-bottom: 0.4rem; font-size: 0.95rem; }

/* === ABOUT PAGE ============================================ */
.about-hero { padding: 4rem 0; border-bottom: 1px solid var(--border); }
.about-content { max-width: 680px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.about-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* === RESPONSIVE ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 2.5rem; }
  .learn-layout { grid-template-columns: 200px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .blog-listing-grid, .learn-preview-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .learn-layout { grid-template-columns: 1fr; }
  .learn-sidebar { position: static; max-height: none; overflow: visible; }
  /* Accordion: hide sidebar links and cta by default on mobile */
  .learn-sidebar .sidebar-link,
  .learn-sidebar .sidebar-cta { display: none; }
  /* Show links when parent group is open — handled by JS adding .open class */
  .sidebar-link.accordion-visible { display: flex; }
  .sidebar-cta.accordion-visible { display: block; }
  /* Group headers become accordion toggles */
  .sidebar-group {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.6rem;
    margin-top: 0.5rem;
    background: var(--bg-subtle);
    border-radius: var(--r);
    border: 1px solid var(--border);
    user-select: none;
  }
  .sidebar-group::after {
    content: '▸';
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
  }
  .sidebar-group.open::after { transform: rotate(90deg); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* === ENTRY POPUP =========================================== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .popup-overlay { align-items: center; padding: 1rem; }
}
.popup-overlay.open { display: flex; }
.popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: slideUp 0.3s ease;
}
@media (min-width: 600px) {
  .popup-card { border-radius: var(--r-lg); }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.popup-dismiss {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.popup-dismiss:hover { background: var(--bg-subtle); color: var(--text); }
.popup-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.popup-card > p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.6; }
.popup-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

/* === MULTI-STEP SURVEY POPUP =============================== */
.mdp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 400;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .mdp-overlay { align-items: center; padding: 1rem; }
}
.mdp-overlay.mdp-open { display: flex; }
.mdp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 1.75rem 1.5rem 2rem;
  width: 100%;
  max-width: 460px;
  animation: mdpUp 0.32s cubic-bezier(0.22,1,0.36,1);
}
@media (min-width: 600px) {
  .mdp-card { border-radius: 16px; }
}
@keyframes mdpUp {
  from { transform: translateY(48px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.mdp-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  margin-bottom: 0.85rem;
}
.mdp-badge-green {
  background: var(--green-light);
  color: var(--green);
}
.mdp-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.mdp-sub {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.mdp-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.mdp-option {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}
.mdp-option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  transform: translateX(4px);
}
.mdp-skip {
  display: none; /* hidden initially */
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.4rem 0;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.25rem;
}
.mdp-skip:hover { color: var(--text-secondary); }
.mdp-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.mdp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.mdp-form input, .mdp-form select {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.18s;
}
.mdp-form input:focus, .mdp-form select:focus {
  border-color: var(--accent);
}
.mdp-btn {
  width: 100%;
  padding: 0.82rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.18s;
}
.mdp-btn:hover { background: var(--accent-hover); }
.mdp-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.mdp-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.82rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  margin-bottom: 1rem;
}
.mdp-wa-btn:hover { background: #1eaa50; }
.mdp-divider {
  position: relative;
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.mdp-divider::before,
.mdp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.mdp-divider span {
  padding: 0 0.5rem;
}
.mdp-negative {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.4rem;
  font-family: var(--font-body);
  margin-top: 0.25rem;
  transition: color 0.15s;
}
.mdp-negative:hover { color: var(--text-secondary); }
.mdp-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: var(--green);
}
.mdp-success strong { font-size: 1.05rem; display: block; margin-bottom: 0.4rem; }
.mdp-success p { font-size: 0.87rem; color: var(--text-secondary); margin: 0; }

/* === SIGN-IN GATE ========================================== */
.mdg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,25,23,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mdg-overlay.mdg-open { display: flex; }
.mdg-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.mdg-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.mdg-logo span { color: var(--accent); }
.mdg-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.mdg-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.mdg-sub {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.mdg-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.mdg-google-btn:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mdg-google-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.mdg-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.mdg-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.75rem;
  display: none;
}

/* === FLOATING WHATSAPP BUTTON ============================== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.28));
  z-index: 98;
  transition: transform 0.2s, filter 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.wa-float svg {
  width: 56px;
  height: 56px;
}
