

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core palette */
  --navy:        #0F1B2D;
  --navy-mid:    #1A2D45;
  --navy-light:  #243755;
  --blue:        #1A6BE0;
  --blue-hover:  #1558C0;
  --blue-light:  #EBF2FF;
  --blue-border: #BBCFF7;
  --slate-bg:    #F5F7FA;
  --slate-mid:   #E8ECF2;
  --slate-dark:  #D1D9E6;
  --white:       #FFFFFF;

  /* Text */
  --text-primary:   #0F1B2D;
  --text-secondary: #4A5568;
  --text-muted:     #8A97A8;
  --text-inverse:   #FFFFFF;

  /* Status */
  --success-bg:   #EDFAF4;
  --success-text: #0F7A48;
  --success-border:#A3E0C1;
  --warning-bg:   #FFFBEB;
  --warning-text: #92520A;
  --warning-border:#FCD34D;
  --error-bg:     #FEF2F2;
  --error-text:   #B91C1C;
  --error-border: #FCA5A5;

  /* Accent ramps for metric cards */
  --purple-bg:    #F3F2FE;
  --purple-text:  #4338CA;
  --purple-border:#C7D2FE;
  --green-bg:     #ECFDF5;
  --green-text:   #065F46;
  --green-border: #A7F3D0;
  --orange-bg:    #FFF7ED;
  --orange-text:  #9A3412;
  --orange-border:#FED7AA;

  /* Layout */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,27,45,0.08), 0 1px 2px rgba(15,27,45,0.06);
  --shadow-md:  0 4px 12px rgba(15,27,45,0.10), 0 2px 4px rgba(15,27,45,0.06);
  --shadow-lg:  0 12px 32px rgba(15,27,45,0.12), 0 4px 8px rgba(15,27,45,0.08);

  /* Typography */
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --ease: 0.18s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Top Bar ── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 1rem;
  border-bottom: 1px solid var(--navy-mid);
}

/* ── Header ── */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: 1px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}

.nav a:hover {
  background: var(--slate-bg);
  color: var(--navy);
}

.nav a.active {
  background: var(--blue-light);
  color: var(--blue);
}

/* ── Hero Section ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--slate-dark);
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  /* align-items: center; */
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .how-grid,
  .fitting-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Hero Text ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.20;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 36px;
  max-width: 500px;
}

/* ── Upload Form ── */
/* Form Card */
.upload-form {
  background: #f4f6f9;
  border: 1px solid #d9dee5;
  border-left: 5px solid var(--blue);
  border-radius: 22px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* Labels */
.upload-form label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* Text Input */
.upload-form input[type="text"] {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--slate-dark);
  border-radius: 6px;
  background: white;
  font-size: 14px;
}

/* File Input */
.upload-form input[type="file"] {
  width: 100%;
  height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--slate-dark);
  border-radius: 6px;
  background: white;
}

/* Focus */
.upload-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,107,224,0.15);
}

/* Preview Button */
#previewBtn {
  margin-top: 16px;
  width: 100%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 28px;
  cursor: pointer;
  transition: background var(--ease),
              transform var(--ease),
              box-shadow var(--ease);
  letter-spacing: 0.01em;
}

#previewBtn:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px rgba(26,107,224,0.30);
  transform: translateY(-1px);
}

#previewBtn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Run Conversion Button */
.upload-form button[type="submit"] {
  width: 100%;
  margin-top: 0px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}


/* ── Progress Bar ── */
.progress-box {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-box label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

progress {
  width: 100%;
  height: 6px;
  border-radius: 100px;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  border: none;
  background: var(--slate-mid);
}

progress::-webkit-progress-bar { background: var(--slate-mid); border-radius: 100px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 100px; transition: width 0.3s ease; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 100px; }

/* ── Status Boxes ── */
.status-box {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.status-box.loading {
  background: var(--blue-light);
  color: var(--blue-hover);
  border-color: var(--blue-border);
}

.status-box.success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.status-box.error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: var(--error-border);
}

/* ── Download Button ── */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  transition: background var(--ease), transform var(--ease);
  letter-spacing: 0.01em;
}

.download-btn:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* ── Hero Image ── */
.hero-image {
  position: relative;
  
}

.hero-photo {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-dark);
  box-shadow: var(--shadow-lg);
  display: block;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--slate-dark);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 16px;
  letter-spacing: 0.01em;
}

.floating-top  { top: -14px; left: 24px; }
.floating-bottom { bottom: -14px; right: 24px; }

/* ── Utility: Hidden ── */
.hidden { display: none !important; }

/* ── Generic Section ── */
.section {
  padding: 72px 0;
}

/* ── Conversion Summary ── */
#summaryPanel {
  background: var(--white);
  
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.success-icon {
  width: 44px;
  height: 44px;
  background: var(--success-text);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.success-banner h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--success-text);
  margin-bottom: 4px;
}

.success-banner p {
  font-size: 14px;
  color: var(--success-text);
  opacity: 0.80;
}

/* ── Section Cards ── */
.section-card {
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.section-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-mid);
}

/* ── Layer Tags ── */
.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-tags span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  background: var(--blue-light);
  color: var(--blue-hover);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}

/* ── Two Column Layout ── */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.two-column .section-card {
  margin-bottom: 0;
}

/* ── Mini Grid (metrics) ── */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Metric Cards ── */
.metric {
  background: var(--slate-bg);
  border: 1px solid var(--slate-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.metric.green  { background: var(--green-bg);  border-color: var(--green-border); }
.metric.orange { background: var(--orange-bg); border-color: var(--orange-border); }
.metric.purple { background: var(--purple-bg); border-color: var(--purple-border); }
.metric.wide   { grid-column: 1 / -1; }

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-top span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric.green  .metric-top span { color: var(--green-text);  opacity: 0.75; }
.metric.orange .metric-top span { color: var(--orange-text); opacity: 0.75; }
.metric.purple .metric-top span { color: var(--purple-text); opacity: 0.75; }

.metric strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric.green  strong { color: var(--green-text); }
.metric.orange strong { color: var(--orange-text); }
.metric.purple strong { color: var(--purple-text); }

.metric-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.metric-icon.purple { background: var(--purple-border); color: var(--purple-text); }
.metric-icon.green  { background: var(--green-border);  color: var(--green-text); }

.metric-icon-img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(154,52,18,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.metric-icon-img img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* fitting-grid now defined in Extra Fitting Variants block above */

/* ── Warning Card ── */
.warning-card {
  border-color: var(--warning-border);
  background: var(--warning-bg);
}

.warning-card h3 {
  color: var(--warning-text);
  border-bottom-color: var(--warning-border);
}

#warningsBox {
  font-size: 14px;
  color: var(--warning-text);
  line-height: 1.65;
}

/* ── How It Works ── */
.how-section {
  background: var(--white);
  padding: 80px 0;
  
}

.how-heading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.how-heading h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  margin-top:10px;
}

.how-heading p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.60;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.how-step {
  background: var(--white);
  border: 1.5px solid var(--slate-dark);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  border: 1px solid var(--slate-dark);
  border-top: 3px solid var(--blue);
}

.how-step:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.step-number::before { content: '0'; }

.step-icon {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1;
}

.how-step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.60;
}

/* ── Fitting SVG Icons ── */
.fitting-icon-wrap {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(154,52,18,0.07);
  border: 1px solid rgba(154,52,18,0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 4px;
}

.fitting-icon-wrap svg {
  width: 100%;
  height: 100%;
  max-height: 52px;
  object-fit: contain;
}
#requirements {
  background: var(--white);
  border-bottom: 1px solid var(--slate-dark);
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.section-heading h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
}

/* ── Requirements Process Cards ── */
.req-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.req-process-card {
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
  border: 1px solid var(--slate-dark);
  border-top: 3px solid var(--blue);
}

.req-process-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.req-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.req-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.req-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.req-body ul li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.req-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 11px;
  top: 1px;
}

.req-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 28px;
  opacity: 0.18;
}





/* ── Footer ── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-mid);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-inner p {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1040px) {
  .how-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .req-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fitting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .scope-item:nth-child(odd) {
    border-right: none;
  }
  .scope-item:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .scope-item:last-child {
    border-bottom: none;
  }
  .after-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .req-process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .section {
    padding: 48px 0;
  }
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
  .req-process-grid {
    grid-template-columns: 1fr;
  }
  .fitting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-grid {
    grid-template-columns: 1fr;
  }
  
}

/* ── Extra Fitting Variants ── */
.metric.fitting-blue {
  background: #EBF2FF;
  border-color: #BBCFF7;
}

.metric.fitting-blue .metric-top span {
  color: #1558C0;
  opacity: 0.80;
}

.metric.fitting-blue strong {
  color: #1558C0;
}

.metric.fitting-red {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.metric.fitting-red .metric-top span {
  color: #991B1B;
  opacity: 0.80;
}

.metric.fitting-red strong {
  color: #B91C1C;
}

.fitting-icon-wrap--blue {
  background: rgba(26,107,224,0.07);
  border-color: rgba(26,107,224,0.15);
}

.fitting-icon-wrap--red {
  background: rgba(220,38,38,0.07);
  border-color: rgba(220,38,38,0.15);
}

/* ── Fitting grid expands for 6 items ── */
.fitting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 700px) {
  .fitting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ── Constraints Section (standalone, dark background) ── */
.constraints-section {
  background: var(--white);
  padding: 72px 0;
  
 
}

.constraints-section .section-heading h2 {
  color: var(--navy);
}

.constraints-section .section-heading p {
  color: var(--text-secondary);
}

/* Summary section — white */
.summary-section {
  background: var(--white);
  
  
}

/* Requirements section — white */
#requirements {
  background: var(--white);
}


.scope-block {
  background: var(--white);
  border: 1.5px solid var(--slate-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

/* scope-header hidden — heading lives in section-heading above */
.scope-header { display: none; }

.scope-title-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--warning-text);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 100px;
  padding: 3px 12px;
  width: fit-content;
}

.scope-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0;
  border: none;
  padding: 0;
  text-transform: none;
}

.scope-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.60;
  margin: 0;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px 0;
}

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--slate-mid);
  transition: background var(--ease);
}

.scope-item:nth-child(odd) {
  border-right: 1px solid var(--slate-mid);
}

.scope-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.scope-item:hover {
  background: var(--slate-bg);
}

.scope-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning-text);
  flex-shrink: 0;
  margin-top: 6px;
  opacity: 0.70;
}

.scope-item div:last-child {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.scope-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

/* ── After Conversion Section ── */
.after-section {
  background: var(--white);
  padding: 80px 0;
  
}

.after-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.after-card {
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}

.after-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.after-number {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.after-icon {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1;
}

.after-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.after-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Responsive additions ── */
@media (max-width: 800px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .scope-item:nth-child(odd) {
    border-right: none;
  }
  .scope-item:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .scope-item:last-child {
    border-bottom: none;
  }
  .after-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .after-grid {
    grid-template-columns: 1fr;
  }
  .scope-header {
    padding: 22px 20px 18px;
  }
  .scope-item {
    padding: 18px 20px;
  }
}

  /* ══════════════════════════════════════════
    SUBSCRIPTION / PLANS SECTION
  ══════════════════════════════════════════ */
  .plans-section {
    background: var(--white);
    padding: 88px 0 96px;
  
  }

  .plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
  }

  /* ── Plan Card ── */
  .plan-card {
    background: var(--white);
    border: 1.5px solid var(--slate-dark);
    border-radius: var(--radius-xl);
    padding: 26px 20px 22px;
    position: relative;
    transition: box-shadow var(--ease), transform var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .plan-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
  }

  /* Featured card */
  .plan-card.plan-featured {
    border-color: var(--blue);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(26,107,224,0.08);
  }

  .plan-card.plan-featured:hover {
    box-shadow: 0 0 0 4px rgba(26,107,224,0.12), var(--shadow-lg);
  }

  .plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
  }

  .plan-icon {
    font-size: 32px;
    margin-bottom: 14px;
    line-height: 1;
  }

  .plan-name {
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: flex-start;
  }

  .plan-tagline {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 18px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Price */
  .plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--slate-mid);
  }

  .plan-amount {
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .plan-period {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
  }

  /* Coming soon badge */
  .plan-coming {
    margin-bottom: 14px;
  }

  .coming-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warning-text);
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 100px;
    padding: 3px 12px;
  }

  /* Feature list */
  .plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 20px;
    flex: 1;
  }

  .plan-features li {
    
    color: var(--text-secondary);
    
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .pf-check {
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .plan-featured .pf-check {
    color: var(--blue);
  }

  /* CTA Buttons */
  .plan-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
    letter-spacing: 0.01em;
    margin-top: auto;
  }

  .plan-cta--primary {
    background: var(--blue);
    color: var(--white);
  }

  .plan-cta--primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 14px rgba(26,107,224,0.28);
    transform: translateY(-1px);
  }

  .plan-cta--outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--slate-dark);
  }

  .plan-cta--outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
  }

  /* ── Bundle Banner ── */
  .plans-bundle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--navy);
    border-radius: var(--radius-xl);
    padding: 36px 44px;
  }

  .bundle-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,200,80,0.90);
    background: rgba(255,200,80,0.12);
    border: 1px solid rgba(255,200,80,0.22);
    border-radius: 100px;
    padding: 3px 12px;
    margin-bottom: 10px;
    display: block;
    width: fit-content;
  }

  .bundle-left h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }

  .bundle-left p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    max-width: 520px;
  }

  .bundle-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
  }

  .bundle-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .bundle-price span:first-child {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .bundle-period {
    font-size: 14px;
    color: rgba(255,255,255,0.50);
    font-weight: 500;
  }

  .plan-cta--bundle {
    background: rgba(255,255,255,0.10);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.20);
    padding: 12px 28px;
    white-space: nowrap;
  }

  .plan-cta--bundle:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
  }

  /* Plans responsive */
  @media (max-width: 900px) {
    .plans-grid {
      grid-template-columns: 1fr;
      max-width: 480px;
      margin-left: auto;
      margin-right: auto;
    }
    .plans-bundle {
      flex-direction: column;
      align-items: flex-start;
      padding: 28px 24px;
    }
    .bundle-right {
      align-items: flex-start;
      width: 100%;
    }
    .plan-cta--bundle {
      width: 100%;
      text-align: center;
    }
  }

/* ══════════════════════════════════════════
   PLAN MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,27,45,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(15,27,45,0.22);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease;
  position: relative;
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

/* Featured modal gets blue top border */
.modal-box.modal-featured {
  border-top: 4px solid var(--blue);
}

.modal-box.modal-coming {
  border-top: 4px solid var(--warning-border);
}

.modal-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--slate-mid);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-icon { font-size: 30px; line-height: 1; }

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.modal-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.modal-close {
  background: var(--slate-bg);
  border: 1px solid var(--slate-dark);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
  line-height: 1;
}

.modal-close:hover {
  background: var(--slate-mid);
  color: var(--navy);
}

.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--slate-bg);
  border-bottom: 1px solid var(--slate-mid);
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.modal-price-amt {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.04em;
}

.modal-price-per {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.modal-status-badge.live {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.modal-status-badge.soon {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.modal-features {
  padding: 20px 28px;
  border-bottom: 1px solid var(--slate-mid);
}

.modal-features h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modal-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.50;
}

.modal-features .pf-check {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-footer {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  letter-spacing: 0.01em;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  width: 100%;
}

.modal-cta.primary {
  background: var(--blue);
  color: var(--white);
}

.modal-cta.primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px rgba(26,107,224,0.28);
  transform: translateY(-1px);
}

.modal-cta.secondary {
  background: var(--slate-bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--slate-dark);
}

.modal-cta.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.modal-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.50;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}






.plans-popup-overlay.is-open {
  display: flex;
}








.plans-section {
    position: fixed;
    inset: 0;
    background: rgba(15,27,45,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.3s ease;
    z-index: 9999;
}



.plans-popup {
    width: min(1200px,95vw);
    max-height: 90vh;
    overflow-y: auto;

    background: white;
    border-radius: 24px;
    padding: 30px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 24px;
}

/* ✅ FIXED — one rule for the popup overlay only */
.plans-section {
  position: fixed;
  inset: 0;
  background: rgba(15,27,45,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.plans-section.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.plans-popup {
  width: min(1200px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 24px;
  padding: 30px;
  position: relative;
}

.close-popup {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}




.preview-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  z-index:9999;

  display:flex;
  justify-content:center;
  align-items:center;
}

.preview-modal.hidden{
  display:none;
}

/* .preview-modal-content{
  width:95vw;
  height:95vh;

  display:flex;
  justify-content:center;
  align-items:center;

  position:relative;
} */

#modalPreviewImage{
  max-width:100%;
  max-height:100%;
  background:white;
  border-radius:12px;
  
}

/* .preview-close{
  position:absolute;
  top:15px;
  right:15px;

  width:44px;
  height:44px;

  border:none;
  border-radius:50%;

  font-size:20px;
  cursor:pointer;
} */

.shaft-marker{
  position:absolute;
  width:18px;
  height:18px;
  border:3px solid red;
  border-radius:50%;
  background:rgba(255,0,0,.25);
  transform:translate(-50%, -50%);
  pointer-events:none;
  z-index:10000;
}

.preview-image-wrap{
  position:relative;
  display:inline-block;
}

#modalPreviewImage{
  display:block;
  max-width:100%;
  max-height:90vh;
  background:white;
}

.shaft-marker{
  position:absolute;
  width:18px;
  height:18px;
  border:3px solid red;
  border-radius:50%;
  background:rgba(255,0,0,.2);
  transform:translate(-50%, -50%);
  pointer-events:none;
  z-index:10;
}

#modalPreviewImage{
  transform-origin: top left;
  transition: transform 0.05s linear;
}




.hero {
  padding: 60px 0 80px;
}

.hero-c {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 48px;
}

.hero-c-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-c-left h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 12px 0 16px;
}

.hero-c-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

.hero-c-right {
  display: flex;
  align-items: stretch;
}

.video-hero-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

.video-hero-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-form-below {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero-c {
    grid-template-columns: 1fr;
  }

  .video-hero-frame video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.form-two-col {
   display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  overflow: hidden !important;
  width: 100% !important;
  flex: none !important;  /* stop upload-form flex from interfering */
}

.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-preview {
  min-width: 0;       /* critical — stops grid blowout */
  overflow: hidden;
}

.form-preview-inner {
  width: 100%;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8faff;
  overflow: hidden;
  position: relative;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 48px 24px; 
}

.preview-placeholder p {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
}

.preview-placeholder span {
  font-size: 12px;
  color: #94a3b8;
}


#dxfPreviewImage {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: crosshair;
}

@media (max-width: 768px) {
  .form-two-col {
    grid-template-columns: 1fr;
    gap: 20px !important;
  }
}

.reducer-method-box {
  margin-top: 18px;
  margin-bottom: 18px;
}

.reducer-method-box .section-label {
  display: block;
  margin-bottom: 10px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #374151;
}

.reducer-method-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.reducer-card {
  cursor: pointer;
  width: 100%;
}

.reducer-card input {
  display: none;
}

.reducer-card span {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 10px;

  border: 1px solid #cbd5e1;
  border-radius: 10px;

  background: #ffffff;
  color: #374151;

  font-size: 12px;
  font-weight: 700;
  text-align: center;

  transition: all 0.2s ease;
}

.reducer-card input:checked + span {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.22);
}

.reducer-card span:hover {
  border-color: #0d6efd;
}







.support-settings-box {
  margin-top: 18px;
  margin-bottom: 18px;
}

.support-settings-box .section-label {
  display: block;
  margin-bottom: 10px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #374151;
}

.support-radio-hidden {
  display: none;
}

.support-method-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.support-card {
  cursor: pointer;
  width: 100%;
}

.support-card span {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 10px;

  border: 1px solid #cbd5e1;
  border-radius: 10px;

  background: #ffffff;
  color: #374151;

  font-size: 12px;
  font-weight: 700;
  text-align: center;

  transition: all 0.2s ease;
}

#supportWith:checked ~ .support-method-row label[for="supportWith"] span,
#supportWithout:checked ~ .support-method-row label[for="supportWithout"] span {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.22);
}

.support-card span:hover {
  border-color: #0d6efd;
}

/* default hidden */
#supportRulesBox {
  display: none;
}

/* show only when with support is selected */
#supportWith:checked ~ #supportRulesBox {
  display: grid;
}

#supportWithout:checked ~ #supportRulesBox {
  display: none;
}

.support-rules-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.support-rules-grid label {
  display: block;
  margin-bottom: 5px;

  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
}

.support-rules-grid input {
  width: 100%;
  height: 38px;

  border: 1px solid #cbd5e1;
  border-radius: 8px;

  padding: 0 10px;
  font-size: 13px;
}















/* ── LEFT: ACCORDION ── */
.form-left {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-right: 1px solid #e2e8f0;
}
 
.accord { display: flex; flex-direction: column; gap: 0; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
 
.acc-row { border-bottom: 1px solid #e2e8f0; }
.acc-row:last-child { border-bottom: none; }
 
.acc-head {
  display: flex; align-items: center; gap: 10px;
  padding: .75rem 1rem; cursor: pointer;
  background: #fff;
  transition: background .15s;
  user-select: none;
}
.acc-head:hover { background: #f8fafc; }
.acc-head.open { background: #f8fafc; }
 
.acc-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: #EBF4FF; color: #185FA5;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.acc-num.done {
  background: #185FA5; color: #fff;
}
.acc-title {
  font-size: 13px; font-weight: 600; color: #0D1B2A; flex: 1;
}
.acc-badge {
  font-size: 11px; color: #6B7280;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 100px; padding: 2px 9px;
  white-space: nowrap; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis;
}
.acc-badge.filled { background: #EBF4FF; color: #185FA5; border-color: #bfdbfe; }
.acc-arrow {
  font-size: 14px; color: #9CA3AF;
  transition: transform .2s; flex-shrink: 0;
}
.acc-head.open .acc-arrow { transform: rotate(180deg); }
 
.acc-body {
  padding: .85rem 1rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
  display: none;
}
.acc-body.open { display: block; }
 
/* ── FORM FIELDS ── */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: .75rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  font-size: 11px; font-weight: 600; color: #374151;
  letter-spacing: .04em; text-transform: uppercase;
}
.field input[type="text"],
.field input[type="number"],
.field input[type="file"],
.field select {
  border: 1px solid #d1d5db; border-radius: 7px;
  padding: 7px 10px; font-size: 13px; color: #1f2937;
  background: #fff; width: 100%;
  outline: none; transition: border-color .15s;
  
}
.field input:focus, .field select:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24,95,165,.1);
}
.field .hint { font-size: 11px; color: #9CA3AF; }
 
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
 
/* Segmented control */
.seg-ctrl {
  display: flex; border: 1px solid #d1d5db; border-radius: 7px; overflow: hidden;
}
.seg-ctrl label {
  flex: 1; text-align: center; cursor: pointer;
  padding: 7px 6px; font-size: 12px; font-weight: 500;
  color: #6B7280; border-right: 1px solid #d1d5db;
  background: #fff; transition: background .15s, color .15s;
  text-transform: none; letter-spacing: 0;
}
.seg-ctrl label:last-child { border-right: none; }
.seg-ctrl input[type="radio"] { display: none; }
.seg-ctrl input[type="radio"]:checked + label,
.seg-ctrl label:has(input:checked) { background: #185FA5; color: #fff; }
/* fallback for browsers without :has */
.seg-btn { flex: 1; text-align: center; cursor: pointer; padding: 7px 6px; font-size: 12px; font-weight: 500; color: #6B7280; border-right: 1px solid #d1d5db; background: #fff; transition: background .15s, color .15s; border: none; }
.seg-btn:last-child { border-right: none; }
.seg-btn.active { background: #185FA5; color: #fff; }
 
/* Support toggle */
.toggle-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: .75rem; }
.toggle-switch {
  width: 40px; height: 22px; border-radius: 11px;
  background: #d1d5db; position: relative; cursor: pointer;
  transition: background .2s; flex-shrink: 0;
}
.toggle-switch.on { background: #185FA5; }
.toggle-switch::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: left .2s;
}
.toggle-switch.on::after { left: 21px; }
.toggle-label { font-size: 13px; color: #374151; font-weight: 500; }
 
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  opacity: .4; pointer-events: none; transition: opacity .2s;
}
.support-grid.active { opacity: 1; pointer-events: all; }
 
/* Shaft section */
.shaft-status {
  font-size: 12px; color: #6B7280; margin-bottom: .5rem;
  padding: 6px 10px; background: #f0f9ff;
  border: 1px solid #bae6fd; border-radius: 6px;
  display: flex; align-items: center; gap: 6px;
}
.shaft-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #185FA5; flex-shrink: 0;
}
.shaft-points-list {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: .4rem;
  min-height: 24px;
}
.shaft-tag {
  background: #EBF4FF; border: 1px solid #bfdbfe;
  color: #185FA5; font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
}
.shaft-tag button {
  background: none; border: none; cursor: pointer;
  color: #185FA5; font-size: 13px; line-height: 1; padding: 0;
}
 
/* ── PREVIEW PANEL ── */
.form-right {
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  position: sticky; top: 2.5rem;
}
.preview-label {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #6B7280;
}
.preview-box {
  border: 1.5px dashed #d1d5db; border-radius: 10px;
  background: #f8fafc; position: relative;
  overflow: hidden; cursor: crosshair;
  flex: 1; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.preview-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center; pointer-events: none;
}
.preview-placeholder svg { opacity: .35; }
.preview-placeholder p { font-size: 13px; color: #9CA3AF; }
.preview-placeholder span { font-size: 12px; color: #CBD5E1; }
#dxfPreviewImage {
  width: 100%; height: 100%; object-fit: contain;
  cursor: crosshair; display: none;
  position: absolute; inset: 0;
}
.shaft-marker {
  position: absolute; pointer-events: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(24,95,165,.85); border: 2px solid #fff;
  box-shadow: 0 0 0 2px #185FA5;
  transform: translate(-50%, -50%);
  display: none;
}
 
/* Batch controls */
.batch-controls {
  display: none; gap: .5rem; align-items: center; flex-wrap: wrap;
  background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 8px; padding: .6rem .8rem; font-size: 12px;
}
.batch-controls.visible { display: flex; }
.batch-controls select {
  border: 1px solid #d1d5db; border-radius: 6px;
  padding: 4px 8px; font-size: 12px; flex: 1;
}
.batch-controls button {
  border: 1px solid #d1d5db; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; background: #fff;
  cursor: pointer; color: #374151;
  white-space: nowrap;
}
.batch-controls button:hover { background: #f1f5f9; }
 
/* ── RUN BUTTON ── */
.run-row {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: .75rem;
}
.btn-run {
  flex: 1; background: #267fd8; color: #fff;
  border: none; border-radius: 8px; padding: 11px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.btn-run:hover { background: #1769ba; }
.run-note { font-size: 12px; color: #9CA3AF; }
 
/* responsive */
@media (max-width: 680px) {
  .form-body { grid-template-columns: 1fr; }
  .form-right { border-top: 1px solid #e2e8f0; }
}










/* ============================================================
   Compact collapsible converter form
   Paste at END of style.css
============================================================ */

.hero-form-below {
  margin-top: 0;
}

.compact-converter-form {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(15, 27, 45, 0.06);
}

.compact-converter-form .form-body {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  align-items: stretch;
}

.compact-converter-form .form-left {
  padding: 0;
  border-right: none;
}

.compact-converter-form .accord {
  border: 1px solid #dedede;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.compact-converter-form .acc-row {
  border-bottom: 1px solid #dedede;
}

.compact-converter-form .acc-row:last-child {
  border-bottom: none;
}

.compact-converter-form .acc-head {
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  cursor: pointer;
}

.compact-converter-form .acc-head:hover,
.compact-converter-form .acc-head.open {
  background: #fbfbfb;
}

.compact-converter-form .acc-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d8ecff;
  color: #2778bd;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compact-converter-form .acc-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.compact-converter-form .acc-badge {
  max-width: 110px;
  padding: 2px 9px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #ffffff;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-converter-form .acc-badge.filled {
  background: #ffffff;
  color: #777;
}

.compact-converter-form .acc-arrow {
  color: #8a8a8a;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.compact-converter-form .acc-head.open .acc-arrow {
  transform: rotate(180deg);
}

.compact-converter-form .acc-body {
  display: none;
  padding: 14px 16px 16px;
  background: #fafafa;
  border-top: 1px solid #e6e6e6;
}

.compact-converter-form .acc-body.open {
  display: block;
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compact-converter-form .field {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.compact-converter-form .field:last-child {
  margin-bottom: 0;
}

.compact-converter-form .field label {
  font-size: 11px;
  font-weight: 600;
  color: #7a7a7a;
  text-transform: none;
  letter-spacing: 0;
}

.compact-converter-form input[type="text"],
.compact-converter-form input[type="number"],
.compact-converter-form input[type="file"],
.compact-converter-form select {
  width: 100%;
  height: 28px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  background: #ffffff;
  color: #333333;
  outline: none;
}

.compact-converter-form input[type="file"] {
  height: auto;
  padding: 7px 10px;
}

.compact-converter-form input:focus,
.compact-converter-form select:focus {
  border-color: #2780d6;
  box-shadow: 0 0 0 3px rgba(39, 128, 214, 0.12);
}

.preview-mini-btn {
  width: 100%;
  border: 1px solid #b9ddff;
  background: #eef7ff;
  color: #1d6fb7;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.preview-mini-btn:hover {
  background: #e2f1ff;
}

.shaft-status {
  padding: 7px 9px;
  border: 1px solid #cde8ff;
  border-radius: 8px;
  background: #f3faff;
  color: #64748b;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shaft-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2780d6;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.seg-item {
  cursor: pointer;
}

.seg-item input {
  display: none;
}

.seg-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-right: 1px solid #d6d6d6;
}

.seg-item:last-child span {
  border-right: none;
}

.seg-item input:checked + span {
  background: #267fd8;
  color: #ffffff;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.toggle-switch {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: left 0.2s ease;
}

.toggle-switch.on {
  background: #267fd8;
}

.toggle-switch.on::after {
  left: 23px;
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  opacity: 0.45;
  pointer-events: none;
}

.support-grid.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Polished batch preview toolbar
   Fixes overflow + improves readability
============================================================ */

.compact-converter-form .batch-controls {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bde4ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4fbff 0%, #eef8ff 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  overflow: hidden;
}

/* Small title above controls */
.compact-converter-form .batch-controls::before {
  content: "Preview controls";
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  color: #2474b8;
  letter-spacing: 0.02em;
  margin-bottom: -2px;
}

/* All controls */
.compact-converter-form .batch-controls select,
.compact-converter-form .batch-controls button {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Dropdown full width */
.compact-converter-form .batch-controls select {
  grid-column: 1 / -1;
  padding: 0 38px 0 14px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;

  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #334155 50%),
    linear-gradient(135deg, #334155 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Buttons */
.compact-converter-form .batch-controls button {
  padding: 0 12px;
  cursor: pointer;
  transition: 0.18s ease;
}

/* Prev / Next look clean */
#prevPreviewFile,
#nextPreviewFile {
  background: #ffffff;
}

/* Load preview as primary button */
#loadSelectedPreview {
  grid-column: 1 / -1;
  background: #1976d2;
  border-color: #1976d2;
  color: #ffffff;
}

/* Clear shafts as danger/secondary */
#clearCurrentShafts {
  grid-column: 1 / -1;
  background: #fff7f7;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Hover states */
.compact-converter-form .batch-controls button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10);
}

#prevPreviewFile:hover,
#nextPreviewFile:hover {
  background: #f8fbff;
  border-color: #93c5fd;
  color: #1558c0;
}

#loadSelectedPreview:hover {
  background: #1558c0;
  border-color: #1558c0;
}

#clearCurrentShafts:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* Hidden still works */
.compact-converter-form .batch-controls.hidden {
  display: none !important;
}
/* ===================================================== */
.compact-converter-form .btn-run {
  width: 100%;
  margin-top: 14px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #267fd8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.compact-converter-form .btn-run:hover {
  background: #1769ba;
}

.compact-converter-form .form-right {
  padding: 0;
  position: sticky;
  top: 90px;
}

.compact-converter-form .preview-box {
  width: 100%;
  height: 220px;
  min-height: 220px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-converter-form #dxfPreviewImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.compact-converter-form .preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #888888;
  text-align: center;
}

.compact-converter-form .preview-placeholder p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #8a8a8a;
}

@media (max-width: 850px) {
  .compact-converter-form .form-body {
    grid-template-columns: 1fr;
  }

  .compact-converter-form .form-right {
    position: relative;
    top: auto;
  }

  .compact-converter-form .preview-box {
    height: 240px;
  }
}

@media (max-width: 520px) {
  .compact-grid,
  .support-grid,
  .segmented {
    grid-template-columns: 1fr;
  }

  .seg-item span {
    border-right: none;
    border-bottom: 1px solid #d6d6d6;
  }

  .seg-item:last-child span {
    border-bottom: none;
  }
}



/* Force shaft red circle to show on preview modal */
#previewImageWrap .shaft-marker-dynamic {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid red;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.18);
  color: red;
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  display: flex !important;
}







/* ══════════════════════════════════════════
   HOW YOUR DRAWING SHOULD LOOK SLIDER
══════════════════════════════════════════ */

.drawing-guide-section {
  background: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--slate-dark);
}

.drawing-slider {
  background: var(--white);
  border: 1.5px solid var(--slate-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.drawing-slide {
  display: none;
  grid-template-columns: 1.35fr 0.9fr;
  min-height: 430px;
}

.drawing-slide.is-active {
  display: grid;
}

.drawing-image-wrap {
  background: #f8fafc;
  border-right: 1px solid var(--slate-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.drawing-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #021428ac;
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
}

.drawing-slide-content {
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.drawing-step {
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.drawing-slide-content h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.drawing-slide-content p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.drawing-slide-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawing-slide-content li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.drawing-slide-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 800;
}

.drawing-slider-controls {
  border-top: 1px solid var(--slate-mid);
  background: #f8fafc;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  gap: 16px;
}

.drawing-slider-controls button {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.drawing-slider-controls button:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}

.drawing-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.drawing-dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
}

.drawing-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--blue);
}

/* Responsive */
@media (max-width: 900px) {
  .drawing-slide,
  .drawing-slide.is-active {
    grid-template-columns: 1fr;
  }

  /* .drawing-image-wrap {
    border-right: none;
    border-bottom: 1px solid var(--slate-mid);
  } */

  .drawing-slide-content {
    padding: 30px 26px;
  }
}

@media (max-width: 560px) {
  .drawing-guide-section {
    padding: 56px 0;
  }

  .drawing-slider-controls {
    grid-template-columns: 1fr 1fr;
  }

  .drawing-dots {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #drawingPrev {
    grid-column: 1;
  }

  #drawingNext {
    grid-column: 2;
  }
}





.convert-actions {
  display: grid;
  gap: 10px;
}

.chw-test-btn {
  background: #0f766e;
}

.chw-test-btn:hover {
  background: #115e59;
}





/* ============================================================
   AUTH UI
============================================================ */

.auth-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
  flex-shrink: 0;
}

.auth-user-email {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 130px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.auth-btn {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn-secondary {
  background: #ffffff;
  color: var(--blue);
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.58);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--slate-dark);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-modal-card h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--slate-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.auth-tabs button {
  height: 40px;
  border: none;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--blue);
  color: #ffffff;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.auth-field input {
  height: 42px;
  border: 1px solid var(--slate-dark);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-message {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.auth-message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-message.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

@media (max-width: 900px) {
  .auth-header {
    margin-left: 0;
  }

  .auth-user-email {
    display: none;
  }
}

.plan-cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.plan-cta.is-loading {
  pointer-events: none;
}


/* --------------------------------------------------------------------- */

.module-usage-box {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px 24px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin: 24px 0;
}

.module-usage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

.module-usage-heading {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.module-usage-reset {
  font-size: 11px;
  color: #9ca3af;
}

#moduleUsageBox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.module-usage-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #f0f1f3;
  border-radius: 10px;
  background: #fafafb;
  transition: border-color 0.15s ease;
}

.module-usage-row.is-full {
  border-color: rgba(239, 68, 68, 0.35);
}

.module-usage-row.is-near-limit {
  border-color: rgba(245, 158, 11, 0.35);
}

.module-usage-row .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.module-usage-row .name {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.module-usage-row.is-full .name,
.module-usage-row.is-full .count {
  color: #ef4444;
}

.module-usage-row.is-near-limit .count {
  color: #f59e0b;
}

.usage-pips {
  flex: 1;
  display: flex;
  gap: 3px;
}

.usage-pip {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #e5e7eb;
}

.usage-pip.filled {
  background: #22c55e;
}

.module-usage-row.is-full .usage-pip.filled {
  background: #ef4444;
}

.module-usage-row.is-near-limit .usage-pip.filled {
  background: #f59e0b;
}

.module-usage-row .count {
  flex-shrink: 0;
  text-align: right;
  font-size: 11px;
  color: #6b7280;
}

.module-usage-row .status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #6b7280;
}

.module-usage-row.is-full .status {
  color: #ef4444;
  font-weight: 500;
}

.module-usage-row.is-near-limit .status {
  color: #f59e0b;
}

.status-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}



.legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 14px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}


.ai-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm, 10px);
  padding: 14px 18px;
  margin-bottom: 32px;
}

.ai-notice-icon {
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}

.ai-notice p {
  font-size: 13.5px;
  color: #92400e;
  line-height: 1.6;
  margin: 0;
}


/* qto-takeoff css ---------------------------------------------------------------------------------------------*/

:root {
      --ink: #10161c;
      --ink-soft: #2b3440;
      --muted: #5c6672;
      --paper: #f2f3f1;
      --panel: #ffffff;
      --line: #dbdfe3;
      --line-strong: #c3c9cf;
      --accent: #267fd8;
      --accent-soft: #e4efec;
      --rust: #b23a1f;
      --rust-soft: #f7e6e1;
      --radius: 8px;
      --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
      --sans: "IBM Plex Sans", system-ui, sans-serif;
    }

    * { box-sizing: border-box; }

    /* body {
      margin: 0;
      background: var(--paper);
      background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
      background-size: 28px 28px;
      background-position: -1px -1px;
      color: var(--ink);
      font-family: var(--sans);
      -webkit-font-smoothing: antialiased;
    } */

    .titlebar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 24px;
      background: var(--ink);
      color: #eef1ee;
    }

    .titlebar .mark {
      width: 20px;
      height: 20px;
      border: 1.5px solid #7fb3a8;
      border-radius: 50%;
      position: relative;
      flex-shrink: 0;
    }

    .titlebar .mark::before,
    .titlebar .mark::after {
      content: "";
      position: absolute;
      background: #7fb3a8;
    }

    .titlebar .mark::before {
      left: 50%; top: -4px; width: 1px; height: 6px;
      transform: translateX(-50%);
    }

    .titlebar .mark::after {
      top: 50%; left: -4px; height: 1px; width: 6px;
      transform: translateY(-50%);
    }

    .titlebar span {
      font-family: var(--mono);
      font-size: 12px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #b7c2bd;
    }

    .page {
      max-width: 1240px;
      margin: 0 auto;
      padding: 32px 24px 60px;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      margin-bottom: 26px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--line-strong);
    }

    .header h1 {
      margin: 0 0 8px;
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.3px;
    }

    .header p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      max-width: 46ch;
    }
    .back-link {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
      background: var(--panel);
      border: 1px solid var(--blue);
      color: var(--blue);
      padding: 9px 14px;
      border-radius: var(--radius);
      font-family: var(--mono);
      font-weight: 500;
      font-size: 12px;
      white-space: nowrap;
      transition: border-color var(--ease), color var(--ease);
      
    }

    .back-link:hover {
        border-color: var(--blue);
        color: var(--blue);
      }
    .layout {
      display: grid;
      grid-template-columns: 380px 1fr;
      gap: 20px;
      align-items: start;
    }

    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 22px;
    }

    .panel h2 {
      margin: 0 0 4px;
      font-size: 15px;
      font-weight: 700;
    }

    .panel-sub {
      margin: 0 0 18px;
      font-size: 12px;
      color: var(--muted);
    }


     .field input[type="file"]::-webkit-file-upload-button {
    flex: 1; background: #267fd8;; color: #fff;
    border: none; border-radius: 8px; padding: 11px 20px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    
    }
    
    .field input[type="file"]::-webkit-file-upload-button:hover {
      background: #1769ba;
    }

    .status {
      margin-top: 12px;
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 500;
      padding: 4px 0;
    }

    .status.success { color: var(--accent); }
    .status.error { color: var(--rust); }
    .status.info { color: var(--muted); }

    .hidden { display: none !important; }

    /* ---------------------------------------------------------
       Live checklist card - reused (smaller) under the button
       on the left, and (larger) as the main right-side display.
    --------------------------------------------------------- */
    .checklist-card {
      margin-top: 16px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 16px 18px;
    }

    /* ---------------------------------------------------------
       Big single-line live status ticker - no card, no border,
       just sits on the panel's own dot-grid background so it
       reads as part of the surface rather than a boxed widget.
    --------------------------------------------------------- */
    .live-line {
      font-family: var(--mono);
      font-size: 30px;
      font-weight: 600;
      color: var(--ink-soft);
      text-align: center;
      letter-spacing: -0.2px;
      transition: opacity 0.22s ease, transform 0.22s ease;
      opacity: 1;
      transform: translateY(0);
    }

    .live-line.transitioning {
      opacity: 0;
      transform: translateY(-10px);
    }

    .live-progress {
      display: flex;
      gap: 8px;
      margin-top: 22px;
    }

    .live-progress .seg {
      width: 26px;
      height: 3px;
      border-radius: 2px;
      background: var(--line-strong);
      transition: background 0.25s ease;
    }

    .live-progress .seg.active,
    .live-progress .seg.done {
      background: var(--accent);
    }

    .checklist-title {
      font-family: var(--mono);
      font-size: 10.5px;
      font-weight: 600;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .notes-guidelines {
      margin: 0 0 14px;
      padding-left: 18px;
      font-size: 12px;
      line-height: 1.7;
      color: var(--muted);
    }

    .notes-guidelines li {
      margin-bottom: 6px;
    }

    .notes-input {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: 6px;
      padding: 10px 11px;
      font-size: 13px;
      font-family: var(--sans);
      color: var(--ink);
      background: var(--panel);
      resize: vertical;
      min-height: 90px;
    }

    .notes-input:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 1px;
    }

    @keyframes blink-cursor {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

    .cursor {
      display: inline-block;
      animation: blink-cursor 1s steps(1) infinite;
      margin-left: 2px;
    }

    /* ---------------------------------------------------------
       Right side automation panel
    --------------------------------------------------------- */
    .auto-box {
      height: 720px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
    }

    .auto-toolbar {
      height: 50px;
      padding: 0 16px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--panel);
    }

    .auto-toolbar strong {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--ink-soft);
    }

    #autoStateLabel {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--muted);
    }

    .auto-wrap {
      position: relative;
      width: 100%;
      height: calc(100% - 50px);
      background: radial-gradient(var(--line) 1px, transparent 1px);
      background-size: 16px 16px;
      overflow-y: auto;
    }

    .auto-state {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 8px;
      position: absolute;
      inset: 0;
    }

    .auto-idle p {
      margin: 0;
      font-size: 14px;
      font-weight: 600;
      color: var(--ink-soft);
    }

    .auto-idle span {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--muted);
    }

    /* ---------------------------------------------------------
       Full-space summary result, with a slide-in entrance
    --------------------------------------------------------- */
    .result-state {
      align-items: flex-start;
      justify-content: flex-start;
      padding: 32px 40px;
      overflow-y: auto;
      opacity: 0;
      transform: translateY(14px);
      animation: slide-in 0.35s ease forwards;
    }

    @keyframes slide-in {
      to { opacity: 1; transform: translateY(0); }
    }

    .result-status {
      font-family: var(--mono);
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 20px;
    }

    .result-status.success { color: var(--accent); }
    .result-status.error { color: var(--rust); }

    .summary-box {
      width: 100%;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 22px 26px;
    }

    .summary-box strong {
      display: block;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--ink-soft);
      margin-bottom: 14px;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px 20px;
    }

    .summary-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 12px 14px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 6px;
    }

    .summary-item .label {
      font-family: var(--mono);
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--muted);
    }

    .summary-item .value {
      font-family: var(--mono);
      font-size: 20px;
      font-weight: 600;
      color: var(--ink);
    }

    .download-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 320px;
      margin-top: 24px;
      height: 46px;
      border-radius: 8px;
      background: var(--accent);
      color: #ffffff;
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
    }

    @media (max-width: 900px) {
      .layout { grid-template-columns: 1fr; }
      .auto-box { height: 480px; }
      .summary-grid { grid-template-columns: 1fr; }
    }

    @media (prefers-reduced-motion: reduce) {
      * { transition: none !important; animation: none !important; }
    }
  

/* --------------------------------------------------------------------------------------------------------------- */


/* Back button sits in the nav bar (header-inner), before the logo */
.nav-back-link {
  flex-shrink: 0;
  margin-right: 6px;
  padding: 7px 12px;
  font-size: 12px;
}

@media (max-width: 560px) {
  .nav-back-link span.back-label {
/* shrink to just the arrow on very small screens, if you add a label span */
  }
}












.auth-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  flex-shrink: 0;
}

.manage-billing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid  var(--blue);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--blue);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
  background 0.18s ease,
  border-color 0.18s ease,
  color 0.18s ease,
  transform 0.18s ease;
  flex-shrink: 0;
}

.manage-billing-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.auth-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 12.5px;
}

.manage-billing-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}

.manage-billing-btn:active {
  transform: translateY(0);
}





.preview-modal-content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 12px;
}

.preview-modal-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  /* no background here — the pills carry their own background,
     the toolbar row itself stays transparent so it floats over the image */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.preview-wizard-progress {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.preview-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-modal-actions button {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.preview-modal-actions button:hover {
  background: #f8fafc;
}

/* primary action (e.g. Next) — give it a distinct blue fill */
.preview-modal-actions button.primary {
  background: #1a6be0;
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(26, 107, 224, 0.25);
}

.preview-modal-actions button.primary:hover {
  background: #1558c0;
}

.preview-close {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 16px;
  line-height: 1;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.preview-modal-controls .hidden {
  display: none !important;
}



.preview-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent; 
  color: #0f172a; 
  text-align: center;
  border-radius: 12px;
}

.preview-loading-overlay.hidden {
  display: none !important;
}

.preview-loading-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
  animation: previewIconPulse 1.4s ease-in-out infinite;
}

@keyframes previewIconPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.preview-loading-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.preview-loading-subtext {
  margin-top: 6px;
  font-size: 12.5px;
  opacity: 0.65;
  max-width: 80%;
  word-break: break-word;
}

.loading-dots::after {
  content: "";
  animation: loadingDots 1.2s infinite;
}
.preview-modal-content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 12px;

  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* old Edge/IE */
}

.preview-modal-content::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, new Edge */
}
@keyframes loadingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}



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

#progressPercent {
  font-weight: 800;
}

.progress-text {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
  font-weight: 600;
}

.loading-dots::after {
  content: "";
  animation: loadingDots 1.2s infinite;
}

@keyframes loadingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}


/////////////////////////////////////////////////////////////////////////////////////////
/* =========================================================
   RESPONSIVE HEADER AND NAVIGATION FIX
========================================================= */

@media (max-width: 900px) {

  .header-inner {
    gap: 8px;
  }

  .header-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .auth-header {
    margin-left: 0;
    flex: 0 0 auto;
  }

  .auth-user-email {
    display: none;
  }
}


@media (max-width: 560px) {

  .header-inner {
    gap: 6px;
  }

  .header-left {
    min-width: 0;
    gap: 6px;
  }

  .logo {
    font-size: 15px;
  }

  .nav {
    display: flex !important;
  }

  .nav a {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .auth-btn,
  .manage-billing-btn {
    height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }
}

/* =========================================================
   MOBILE HEADER AND NAVIGATION
========================================================= */

@media (max-width: 700px) {

  .main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-inner {
    height: auto;
    min-height: 60px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  /*
   Allows the logo, navigation and login area
   to use the header-inner layout directly.
  */
  .header-left {
    display: contents;
  }

  .logo {
    order: 1;
    flex-shrink: 0;
    font-size: 15px;
  }

  .auth-header {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }

  .auth-user-email {
    display: none;
  }

  .nav {
    display: flex !important;

    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;

    gap: 4px;
    padding: 5px 0 2px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;

    padding: 7px 10px;

    font-size: 11.5px;
    white-space: nowrap;
  }

  .auth-btn,
  .manage-billing-btn {
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}
/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */

.contact-section {
  background: var(--white);
  padding: 96px 0;
  border-bottom: 1px solid var(--slate-dark);
}

.contact-card {
  max-width: 1380px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--slate-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

/* ── Info panel (left) ── */
.contact-info-panel {
  background: var(--navy);
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.contact-info-panel h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-info-panel p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Form panel (right) ── */
.contact-form-panel {
  padding: 48px 44px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--slate-dark);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 107, 224, 0.15);
}

.contact-submit-btn {
  margin-top: 4px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--blue);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  letter-spacing: 0.01em;
}

.contact-submit-btn:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px rgba(26, 107, 224, 0.28);
  transform: translateY(-1px);
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    padding: 36px 32px;
  }

  .contact-form-panel {
    padding: 36px 32px;
  }
}

@media (max-width: 560px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------------- */

/* ── How It Works grid + video card ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.how-step {
  background: var(--white);
  border: 1px solid var(--slate-dark);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  height: 220px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.how-step:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-icon {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1;
}

.how-step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.60;
  overflow: hidden;
}

.how-video-card {
  cursor: pointer;
}

.how-video-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ── Video modal ── */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(15, 27, 45, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal-overlay.hidden {
  display: none !important;
}

.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-modal-box video {
  width: 100%;
  display: block;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--ease);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 1040px) {
  .how-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
}