/* ── PAGE HERO ── */
.page-hero{padding:3.5rem 0 3rem;border-bottom:1px solid var(--paper-3);overflow:hidden}
.page-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.page-hero-text{min-width:0}
.page-hero-art{display:flex;align-items:center;justify-content:center;position:relative}
.page-hero-art svg{width:100%;max-width:520px;height:auto;display:block}
.page-hero-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:1.5rem}
.page-hero-eyebrow-line{width:28px;height:1px;background:var(--blue)}
.page-hero h1{font-size:clamp(2.2rem,3.5vw,3.4rem);margin-bottom:1rem;max-width:720px}
.page-hero h1 em{font-style:italic;color:var(--blue)}
.page-hero-sub{font-size:1rem;color:var(--ink-2);line-height:1.8;max-width:600px;margin-bottom:0}
.page-hero-meta{display:flex;align-items:center;gap:1.25rem 1.5rem;margin-top:1.5rem;flex-wrap:wrap}
.page-hero-meta-item{display:flex;align-items:center;gap:8px;font-size:0.78rem;color:var(--ink-2);white-space:nowrap}
.page-hero-meta-item svg{width:14px;height:14px;color:var(--forest);flex-shrink:0}

/* ── APP CARD ── */
.app{padding:3rem 0 5rem}
.app-card{
  max-width:640px;
  margin:0 auto;
  background:var(--paper);
  border:1px solid var(--paper-3);
  border-radius:var(--r-lg);
  overflow:hidden;
  position:relative;
  box-shadow:0 4px 20px rgba(16,25,66,0.04);
}
.app-stage{position:relative}

.stage-header{
  padding:1.25rem 1.75rem;
  border-bottom:1px solid var(--paper-3);
  background:var(--paper-2);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.stage-title{font-size:0.78rem;font-weight:600;color:var(--heading);letter-spacing:0.05em;text-transform:uppercase}
.stage-step{font-size:0.7rem;color:var(--ink-3);font-variant-numeric:tabular-nums}
.stage-body{padding:2rem 1.75rem 1.5rem;display:flex;flex-direction:column;gap:1.5rem}
.stage-footer{
  padding:1.25rem 1.75rem;
  border-top:1px solid var(--paper-3);
  background:var(--paper-2);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.75rem;
  flex-wrap:wrap;
}
.stage-footer .btn-primary{min-width:200px}

/* DROPZONE */
.dropzone{
  display:block;
  border:2px dashed var(--paper-3);
  border-radius:var(--r-lg);
  padding:2.5rem 1.25rem;
  text-align:center;
  cursor:pointer;
  transition:all 0.15s;
  background:var(--paper-2);
}
.dropzone:hover,.dropzone.drag-over{border-color:var(--blue);background:var(--blue-pale)}
.dropzone-icon{display:block;width:44px;height:44px;margin:0 auto 1rem;color:var(--ink-3);flex-shrink:0}
.dropzone-title{font-size:1rem;font-weight:500;color:var(--ink);margin-bottom:0.35rem}
.dropzone-sub{font-size:0.78rem;color:var(--ink-3)}
.dropzone-sub strong{color:var(--blue);font-weight:500}
.dropzone input[type=file]{display:none}

/* FILE PILL */
.file-pill{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0.85rem 1rem;
  background:var(--paper-2);
  border:1px solid var(--paper-3);
  border-radius:var(--r);
}
.file-pill-icon{
  width:36px;height:36px;
  border-radius:var(--r);
  background:var(--blue-pale);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  font-size:0.75rem;font-weight:600;
}
.file-pill-info{flex:1;min-width:0}
.file-pill-name{font-size:0.9rem;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.file-pill-meta{font-size:0.75rem;color:var(--ink-3)}
.file-pill-clear{background:none;border:none;color:var(--ink-3);cursor:pointer;padding:6px;border-radius:var(--r);transition:all 0.15s}
.file-pill-clear:hover{color:var(--rose);background:var(--rose-pale)}

/* HOW-IT-WORKS LIST */
.how-list{list-style:none;display:flex;flex-direction:column;gap:0.85rem;padding:1.25rem 1.4rem;background:var(--paper-2);border-radius:var(--r-lg);border:1px solid var(--paper-3)}
.how-list li{display:flex;gap:14px;align-items:flex-start;font-size:0.88rem;color:var(--ink-2);line-height:1.55}
.how-list .num{
  flex-shrink:0;
  width:24px;height:24px;
  border-radius:50%;
  background:var(--blue-pale);
  color:var(--blue);
  font-family:var(--serif);
  font-size:0.85rem;
  font-weight:700;
  font-style:italic;
  display:flex;align-items:center;justify-content:center;
  margin-top:1px;
}

/* CUSTOMIZE OPTIONS (collapsible) */
.options-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0.85rem 1.1rem;
  background:var(--paper-2);
  border:1px solid var(--paper-3);
  border-radius:var(--r-lg);
  font-family:var(--sans);
  font-size:0.85rem;
  font-weight:500;
  color:var(--ink);
  cursor:pointer;
  transition:all 0.15s;
  text-align:left;
}
.options-toggle:hover{border-color:var(--ink-3)}
.options-toggle[aria-expanded="true"]{
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  border-bottom-color:transparent;
}
.options-toggle-label{display:flex;align-items:center;gap:10px}
.options-toggle-label svg.icon-tweak{
  width:16px;height:16px;
  color:var(--blue);
  flex-shrink:0;
}
.options-toggle-count{
  font-size:0.7rem;
  color:var(--ink-3);
  font-weight:400;
  font-variant-numeric:tabular-nums;
}
.options-toggle svg.chevron{
  width:14px;height:14px;
  color:var(--ink-3);
  transition:transform 0.2s;
}
.options-toggle[aria-expanded="true"] svg.chevron{transform:rotate(180deg)}

.options-panel{
  display:none;
  padding:1.25rem 1.25rem 1.5rem;
  background:var(--paper-2);
  border:1px solid var(--paper-3);
  border-top:none;
  border-bottom-left-radius:var(--r-lg);
  border-bottom-right-radius:var(--r-lg);
  flex-direction:column;
  gap:1.25rem;
}
.options-panel.open{display:flex}

.opt-section-title{
  font-size:0.7rem;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--ink-3);
  margin-bottom:0.65rem;
}

.opt-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0.85rem;
}
.opt-grid-full{grid-column:1/-1}

.opt-field{display:flex;flex-direction:column;gap:0.35rem}
.opt-label{
  font-size:0.78rem;
  font-weight:500;
  color:var(--ink-2);
}
.opt-input,.opt-select{
  font-family:var(--sans);
  font-size:0.88rem;
  padding:9px 12px;
  border:1px solid var(--paper-3);
  border-radius:var(--r);
  background:var(--paper);
  color:var(--ink);
  transition:border-color 0.15s;
  width:100%;
}
.opt-input:focus,.opt-select:focus{outline:none;border-color:var(--blue)}
.opt-input::placeholder{color:var(--ink-4)}
.opt-select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8fa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:32px;
}

.opt-checkboxes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0.5rem 1rem;
}
.opt-checkbox{
  display:flex;
  align-items:flex-start;
  gap:9px;
  cursor:pointer;
  padding:6px 0;
  user-select:none;
}
.opt-checkbox input[type=checkbox]{
  appearance:none;
  -webkit-appearance:none;
  width:16px;height:16px;
  margin:2px 0 0;
  border:1.5px solid var(--ink-4);
  border-radius:3px;
  background:var(--paper);
  cursor:pointer;
  position:relative;
  flex-shrink:0;
  transition:all 0.15s;
}
.opt-checkbox input[type=checkbox]:hover{border-color:var(--blue)}
.opt-checkbox input[type=checkbox]:checked{
  background:var(--blue);
  border-color:var(--blue);
}
.opt-checkbox input[type=checkbox]:checked::after{
  content:'';
  position:absolute;
  left:4px;top:0px;
  width:5px;height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.opt-checkbox-text{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.opt-checkbox-label{
  font-size:0.82rem;
  font-weight:500;
  color:var(--ink);
  line-height:1.35;
}
.opt-checkbox-desc{
  font-size:0.72rem;
  color:var(--ink-3);
  line-height:1.4;
}

.opt-divider{
  height:1px;
  background:var(--paper-3);
  margin:0;
}

/* RESULT BANNER */
.result-banner{
  background:linear-gradient(135deg,var(--night) 0%,#0e1326 100%);
  color:#fff;
  padding:2rem 1.75rem 1.75rem;
  position:relative;
  overflow:hidden;
}
.result-banner::before{
  content:'';
  position:absolute;
  bottom:-100px;right:-100px;
  width:280px;height:280px;
  border-radius:50%;
  background:rgba(47,74,199,0.15);
  pointer-events:none;
}
.result-banner-eyebrow{
  font-size:0.7rem;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.55);
  margin-bottom:0.75rem;
  display:flex;
  align-items:center;
  gap:8px;
}
.result-banner-eyebrow svg{width:14px;height:14px}
.result-banner h2{
  font-family:var(--serif);
  font-weight:900;
  font-size:clamp(2rem,4vw,2.6rem);
  line-height:1.05;
  letter-spacing:-0.02em;
  margin-bottom:0.5rem;
  position:relative;
}
.result-banner h2 em{font-style:italic;color:#7a92e8}
.result-banner-sub{
  font-size:0.92rem;
  color:rgba(255,255,255,0.7);
  font-weight:400;
  position:relative;
  line-height:1.6;
}

/* WHAT-CHANGED LIST */
.changes-list{
  margin:1.5rem 1.75rem 0;
  padding:1rem 1.25rem;
  background:var(--paper-2);
  border:1px solid var(--paper-3);
  border-radius:var(--r-lg);
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:0.7rem;
}
.changes-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:0.85rem;
  color:var(--ink-2);
  line-height:1.55;
}
.changes-list li svg{
  flex-shrink:0;
  width:16px;height:16px;
  color:var(--forest);
  margin-top:2px;
}

/* RESULT FILE PILL */
.result-file{
  margin:1rem 1.75rem 0;
  padding:1rem 1.1rem;
  background:var(--blue-pale);
  border:1px solid #cfd6f0;
  border-radius:var(--r-lg);
  display:flex;
  align-items:center;
  gap:12px;
}
.result-file-icon{
  width:42px;height:42px;
  border-radius:var(--r);
  background:#ffffff;
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  font-size:0.78rem;font-weight:700;
  border:1px solid #cfd6f0;
}
.result-file-info{flex:1;min-width:0}
.result-file-name{font-size:0.95rem;color:var(--heading);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;font-family:var(--serif)}
.result-file-meta{font-size:0.78rem;color:var(--ink-2);margin-top:2px}

/* RESULT NOTE */
.result-note{
  padding:1rem 1.75rem 0;
  font-size:0.78rem;
  color:var(--ink-3);
  line-height:1.6;
  text-align:center;
}

.result-actions{
  padding:1.25rem 1.75rem 1.5rem;
  display:flex;
  gap:8px;
  border-top:1px solid var(--paper-3);
  background:var(--paper-2);
  margin-top:1.5rem;
}
.result-actions .btn{flex:1}

/* LOADING OVERLAY */
.loading-overlay{
  position:absolute;
  inset:0;
  background:rgba(244,246,253,0.92);
  backdrop-filter:blur(2px);
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:10;
  border-radius:var(--r-lg);
}
.loading-overlay.active{display:flex}
.spinner{
  width:36px;height:36px;
  border:3px solid var(--paper-3);
  border-top-color:var(--blue);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
  margin-bottom:1rem;
}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-text{font-size:0.9rem;color:var(--ink-2);font-weight:500;margin-bottom:0.25rem}
.loading-sub{font-size:0.78rem;color:var(--ink-3);text-align:center;max-width:320px;padding:0 1rem}


/* RESPONSIVE */
@media(max-width:1000px){
  .info-strip-grid{grid-template-columns:1fr}
  .page-hero-grid{grid-template-columns:1fr;gap:2rem}
  .page-hero-art{order:-1;max-width:380px;margin:0 auto}
}
@media(max-width:900px){
  .inner,.nav-inner,.breadcrumb-inner{padding:0 1.5rem}
  .nav-links{display:none}
  .nav-menu-btn{display:block}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2.5rem}
}
@media(max-width:600px){
  .footer-grid{grid-template-columns:1fr}
  .page-hero{padding:2.5rem 0 2rem}
  .page-hero-art{max-width:280px}
  .stage-body{padding:1.5rem 1.25rem 1rem}
  .stage-header,.stage-footer,.result-banner,.result-actions{padding-left:1.25rem;padding-right:1.25rem}
  .result-file,.changes-list{margin-left:1.25rem;margin-right:1.25rem}
  .result-actions{flex-direction:column}
  .opt-grid{grid-template-columns:1fr}
  .opt-checkboxes{grid-template-columns:1fr}
}