/* novella-web.css */
/* Unified public website stylesheet (home + features + integrations + about + legal) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ----------------------------- */
/* Design tokens                 */
/* ----------------------------- */
:root{
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* App-aligned neutrals */
  --bg: #fafbfc;
  --surface: #ffffff;
  --border: #e2e8f0;

  --text: #2d3748;
  --muted: #718096;
  --muted-2: #a0aec0;
  --heading: #1a202c;

  /* New brand palette */
  --brand: #dc2626;         /* Primary Red (red-600) */
  --brand-hover: #ea580c;   /* Primary Orange (orange-600) */

  /* Brand gradient */
  --brand-grad: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);

  /* Status */
  --success: #48bb78;  /* promoters */
  --warning: #ed8936;  /* passives */
  --danger: #f56565;   /* detractors */

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --container: 1200px;
  --pad-x: 30px;

  --header-height: 64px; /* used for mobile dropdown offset */
}

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

html{
  scroll-behavior: smooth;
}

body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

/* Images / media */
img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a{
  color: inherit;
}

/* ----------------------------- */
/* Header / Navigation           */
/* ----------------------------- */
.header{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* for mobile dropdown positioning */
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}

.logo i{
  color: var(--brand);
  font-size: 1.6rem;
}

.nav-right{
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link{
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover{
  color: var(--brand);
}

.btn-primary{
  background: var(--brand);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover{
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* ----------------------------- */
/* Nav dropdown (Survey Types)   */
/* Desktop: floating dropdown    */
/* Mobile: accordion in menu     */
/* ----------------------------- */
.nav-dropdown{
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle{
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;              /* keep it visually like nav-link */
  font: inherit;
  color: var(--muted);
}

.nav-dropdown-toggle:hover{
  color: var(--brand);
}

.nav-dropdown-toggle i{
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle i{
  transform: rotate(180deg);
}

.nav-dropdown-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 200;
}

.nav-dropdown.is-open .nav-dropdown-menu{
  display: block;
}

/* ---------------------------------
   Desktop hover bridge for dropdown
   Prevents gap between toggle & menu
---------------------------------- */
.nav-dropdown::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px; /* bridge height */
  background: transparent;
}

/* Ensure hover works when pointer is on bridge */
.nav-dropdown:hover::after{
  display: block;
}

/* Make the clickable area feel premium */
.nav-dropdown-item{
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-dropdown-item strong{
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 2px;
}

.nav-dropdown-item span{
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}

.nav-dropdown-item:hover{
  background: #f7fafc;
  transform: translateY(-1px);
}

/* Mobile nav toggle button */
.nav-toggle{
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #4a5568;
  cursor: pointer;
  margin-left: auto;
}

/* ----------------------------- */
/* Main offset for fixed header  */
/* ----------------------------- */
main{
  padding-top: 100px; /* default offset for fixed header */
}

/* ----------------------------- */
/* Home page hero (index)        */
/* ----------------------------- */
.hero{
  max-width: var(--container);
  margin: 120px auto 80px;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1{
  font-size: 3rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-content .tagline{
  font-size: 1.25rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 32px;
}

.coming-soon-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f2; /* warm tint */
  color: var(--brand);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.email-form{
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin-bottom: 16px;
}

.email-form input{
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s;
  background: #fff;
}

.email-form input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.email-form button{
  padding: 14px 28px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.email-form button:hover{
  background: var(--brand-hover);
}

.form-note{
  color: var(--muted);
  font-size: 0.85rem;
}

.success-message{
  display: none;
  background: #c6f6d5;
  color: #22543d;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
}

.success-message.show{
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.visual-content{
  text-align: center;
}

.visual-icon{
  width: 80px;
  height: 80px;
  background: var(--brand-grad);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  font-size: 2.5rem;
}

.visual-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item{
  text-align: center;
}

.stat-value{
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.stat-label{
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----------------------------- */
/* Sections (shared)             */
/* ----------------------------- */
.section{
  padding: 60px 0;
}

.section-alt{
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-container,
.features-container,
.use-cases-container,
.footer-container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-header{
  text-align: center;
  margin-bottom: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header-left{
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-kicker{
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-title{
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}

.section-subtitle{
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ----------------------------- */
/* Features Section (home)       */
/* ----------------------------- */
.features-section{
  background: var(--surface);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card{
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3{
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.feature-card p{
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.feature-meta{
  font-size: 0.8rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-icon{
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

/* Icon color variants (features page) */
.feature-icon.surveys{ background: #fff1f2; color: var(--brand); }
.feature-icon.delivery{ background: #fff7ed; color: var(--brand-hover); }
.feature-icon.analytics{ background: #e6fffa; color: #2c7a7b; }
.feature-icon.integrations{ background: #fff7ed; color: var(--brand-hover); }

/* Icon color variants (integrations page) */
.feature-icon.integrations-main{ background: #fff1f2; color: var(--brand); }
.feature-icon.integrations-hubspot{ background: #fff7ed; color: var(--brand-hover); }
.feature-icon.integrations-alerts{ background: #e6fffa; color: #2c7a7b; }
.feature-icon.integrations-automation{ background: #fefcbf; color: #d69e2e; }

/* Pills */
.pill-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill{
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf2f7;
  color: #4a5568;
}

/* ----------------------------- */
/* Use cases (home)              */
/* ----------------------------- */
.use-cases-section{
  padding: 80px 0;
  background: var(--bg);
}

.use-cases-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.use-case-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.2s;
}

.use-case-card:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.use-case-card h4{
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.use-case-card p{
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ----------------------------- */
/* Survey types block (home)     */
/* ----------------------------- */
.survey-types-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.survey-type-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: block;
}

.survey-type-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #fed7aa; /* warm hover border */
}

.survey-type-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #fff1f2;
  color: var(--brand);
  font-size: 1.2rem;
}

.survey-type-card h3{
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.survey-type-card p{
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.survey-type-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
}

.survey-type-cta i{
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.survey-type-card:hover .survey-type-cta i{
  transform: translateX(2px);
}

/* ----------------------------- */
/* Features / About hero         */
/* ----------------------------- */
.features-hero{
  max-width: var(--container);
  margin: 40px auto 60px;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: center;
}

/* Integrations hero uses a different class in integrations.php */
.integrations-hero{
  max-width: var(--container);
  margin: 40px auto 60px;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f2; /* warm tint */
  color: var(--brand);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-eyebrow i{ color: var(--brand); }

.features-hero h1,
.integrations-hero h1{
  font-size: 3rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-subtitle{
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-list{
  list-style: none;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-list li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-list i{
  color: var(--success);
  margin-top: 4px;
}

.hero-card{
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}

.hero-card-title{
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-card-metric{
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 4px;
}

.hero-card-label{
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Default: hero-card row = minis side-by-side (Features/About) */
.hero-card-row{
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

/* Integrations uses stacked list in a wrapper */
.hero-integrations{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Backwards compatibility (some older pages use hero-mini-row) */
.hero-mini-row{
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.hero-mini{ flex: 1; }

.hero-mini-label{
  font-size: 0.8rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.hero-mini-value{
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.hero-mini-text{
  font-size: 0.85rem;
  color: var(--muted);
}

/* Integrations rows */
.hero-integration-row{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hero-integration-label{
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
}

.hero-integration-pill{
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed; /* warm tint */
  color: var(--brand);
}

.hero-card-note{
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ----------------------------- */
/* Two-column sections           */
/* ----------------------------- */
.two-col{
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: flex-start;
}

.bullet-list{
  list-style: none;
  font-size: 0.95rem;
  color: #4a5568;
}

.bullet-list li{
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.bullet-list i{
  color: var(--brand);
  margin-top: 4px;
}

.callout{
  background: #f7fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px 18px;
  font-size: 0.9rem;
  color: #4a5568;
}

.callout-strong{
  font-weight: 600;
  color: var(--text);
}

/* ----------------------------- */
/* CTA section                   */
/* ----------------------------- */
.cta-section{
  background: var(--surface);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.cta-container{
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}

.cta-container h2{
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
}

.cta-container p{
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ----------------------------- */
/* Footer                        */
/* ----------------------------- */
.footer{
  background: var(--heading);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-content{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand i{ color: var(--brand); }

.footer-about{
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-section h4{
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links{ list-style: none; }

.footer-links li{ margin-bottom: 10px; }

.footer-links a{
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover{ color: #fff; }

.footer-bottom{
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.social-links{
  display: flex;
  gap: 16px;
}

.social-links a{
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  text-decoration: none;
}

.social-links a:hover{
  background: var(--brand);
  color: #fff;
}

.footer-trademark{
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.8;
  display: block;
  margin-top: 6px;
}

/* ----------------------------- */
/* About page helpers            */
/* ----------------------------- */
.prose{
  font-size: 0.98rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 16px;
}

.subhead{
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
}

.callout-title{ margin-bottom: 8px; }
.callout-text{ margin-bottom: 10px; }
.callout-text:last-child{ margin-bottom: 0; }

/* ----------------------------- */
/* Legal pages (privacy, terms)  */
/* ----------------------------- */
.page-legal main{ padding-top: 100px; }

.page-legal .hero{
  max-width: var(--container);
  margin: 40px auto 30px;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: start;
}

.page-legal .hero-content{ display: block; }

.page-legal .hero h1{
  font-size: 3rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-meta{
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.toc{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.toc a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: #f7fafc;
  transition: all 0.2s;
  font-size: 0.92rem;
  font-weight: 600;
}

.toc a:hover{
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--brand);
  transform: translateY(-1px);
}

.policy-card{
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.policy-card h2{
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
  margin: 26px 0 10px;
}

.policy-card h3{
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin: 18px 0 8px;
}

.policy-card p{
  font-size: 0.98rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-card ul{
  margin: 8px 0 14px 20px;
  color: #4a5568;
  line-height: 1.8;
  font-size: 0.98rem;
}

.policy-card li{ margin-bottom: 6px; }

.policy-card a{
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 38, 38, 0.35);
}

.policy-card a:hover{
  border-bottom-color: rgba(220, 38, 38, 0.8);
}

.divider{
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

.page-legal .callout{
  padding: 18px 16px;
  font-size: 0.95rem;
  margin: 14px 0;
}

.page-legal .callout strong{ color: var(--text); }

/* ----------------------------- */
/* Live demo page (widget demo)  */
/* ----------------------------- */
.hero-visual-highlight{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7fafc;
  font-size: 0.8rem;
  color: #4a5568;
  margin-bottom: 8px;
}

.hero-visual-highlight i{ color: var(--brand); }

.widget-demo-section{ padding: 0 0 80px; }

.demo-container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.demo-header{
  text-align: left;
  margin-bottom: 24px;
}

.demo-title{
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.demo-subtitle{
  color: var(--muted);
  font-size: 0.98rem;
}

.widget-types{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.widget-type-btn{
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4a5568;
  text-align: center;
}

.widget-type-btn:hover{
  border-color: var(--brand);
  color: var(--brand);
  background: #f7fafc;
}

.widget-type-btn.active{
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
}

.demo-website{
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 40px;
  min-height: 420px;
  position: relative;
  border: 1px solid var(--border);
}

.website-content{
  max-width: 800px;
  margin: 0 auto;
}

.website-content h1{
  font-size: 2rem;
  color: var(--heading);
  margin-bottom: 16px;
}

.website-content p{
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.demo-open-btn{
  padding: 14px 28px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.22);
}

.demo-open-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.28);
}

/* ----------------------------- */
/* Live demo responsive tweaks   */
/* ----------------------------- */
@media (max-width: 768px){
  .demo-website{ padding: 24px; }
  .demo-title{ font-size: 1.35rem; }
  .website-content h1{ font-size: 1.6rem; }
}

/* ----------------------------- */
/* Responsive                    */
/* ----------------------------- */
@media (max-width: 900px){
  .features-hero,
  .integrations-hero{
    grid-template-columns: 1fr;
  }

  .two-col{
    grid-template-columns: 1fr;
  }

  .page-legal .hero{
    grid-template-columns: 1fr;
  }

  /* Survey types block stacks earlier */
  .survey-types-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  /* Home hero */
  .hero{
    grid-template-columns: 1fr;
    margin-top: 100px;
    gap: 40px;
  }

  .hero-content h1{ font-size: 2rem; }

  .email-form{ flex-direction: column; }
  .email-form button{ width: 100%; }

  /* Features/About/Integrations hero */
  .features-hero,
  .integrations-hero{
    margin-top: 20px;
  }

  .features-hero h1,
  .integrations-hero h1{
    font-size: 2.2rem;
  }

  /* Legal hero */
  .page-legal .hero{ margin-top: 20px; }
  .page-legal .hero h1{ font-size: 2.2rem; }

  .section{ padding: 40px 0; }

  .footer-content{ grid-template-columns: 1fr; }

  .footer-bottom{
    flex-direction: column;
    gap: 20px;
  }

  /* Mobile nav */
  .nav-toggle{ display: block; }

  .nav-right{
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 12px 20px 16px;
    gap: 12px;
  }

  .nav-right.open{ display: flex; }

  .nav-link{
    font-size: 0.95rem;
    padding: 6px 0;
  }

  .nav-right .btn-primary{
    text-align: center;
    width: 100%;
  }

  /* Mobile dropdown becomes inline accordion */
  .nav-dropdown{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  /* ✅ center the Survey Types label like other items */
  .nav-dropdown-toggle{
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 6px 0;
    position: relative;
  }

  /* keep chevron to the right on mobile while text stays centered */
  .nav-dropdown-toggle i{
    position: absolute;
    right: 0;
  }

  .nav-dropdown-menu{
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
    padding: 6px;
    border-radius: 10px;
    box-shadow: none;
    background: #f7fafc;
    display: none; /* stays JS-controlled */
  }

  .nav-dropdown.is-open .nav-dropdown-menu{
    display: block;
  }

  .nav-dropdown-item{
    padding: 10px 10px;
  }

  /* Hero minis stack better on very small screens */
  .hero-card-row,
  .hero-mini-row{
    flex-direction: column;
    gap: 14px;
  }
}