/* Medium-Fidelity Wireframe Styles — Jasmino Corporation */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --wf-bg: #f7f7f8;
  --wf-surface: #ffffff;
  --wf-border: #e2e4e8;
  --wf-border-light: #edeef1;
  --wf-text: #1a1a2e;
  --wf-text-secondary: #5a5d6b;
  --wf-text-muted: #8b8fa3;
  --wf-accent: #4a6fa5;
  --wf-accent-light: #e8eef6;
  --wf-hero-bg: #1e2433;
  --wf-hero-text: #ffffff;
  --wf-cta-bg: #2a3142;
  --wf-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --wf-shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --wf-shadow-lg: 0 8px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.04);
  --wf-radius: 8px;
  --wf-radius-lg: 12px;
}

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--wf-text);
  background: var(--wf-bg);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* ─── Top bar (back link + page header combined) ─── */
.top-bar {
  background: var(--wf-hero-bg);
  padding: 0 48px;
  max-width: 100%;
}
.top-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}
.top-bar-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.1s;
}
.top-bar-nav a:hover { color: rgba(255,255,255,0.9); }
.top-bar-nav .nav-sep { color: rgba(255,255,255,0.2); }
.top-bar-nav .nav-current { color: rgba(255,255,255,0.8); font-weight: 600; }
.top-bar-title {
  padding: 20px 0 24px;
}
.top-bar-title h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.top-bar-title .breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

/* ─── Page wrapper ─── */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 48px 60px;
}

/* ─── Legacy page header (index page only) ─── */
.page-header {
  background: var(--wf-surface);
  border-bottom: 1px solid var(--wf-border);
  padding: 32px 48px;
  margin-bottom: 0;
  max-width: 1100px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--wf-text);
}
.page-header .route {
  font-size: 13px;
  color: var(--wf-accent);
  margin-top: 4px;
  font-weight: 500;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.page-header .breadcrumb {
  font-size: 12px;
  color: var(--wf-text-muted);
  margin-top: 6px;
}
.page-header .breadcrumb a { color: var(--wf-accent); text-decoration: none; }

/* ─── Section wireframe block ─── */
.section {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: var(--wf-shadow-sm);
}
.section-label {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--wf-accent);
  color: #fff;
  padding: 2px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Hero-type sections — dark background */
.section.section-hero {
  background: var(--wf-hero-bg);
  color: var(--wf-hero-text);
  border: none;
  padding: 48px 32px;
  border-radius: var(--wf-radius-lg);
  box-shadow: var(--wf-shadow-lg);
}
.section.section-hero h2,
.section.section-hero h3,
.section.section-hero p { color: rgba(255,255,255,0.9); }
.section.section-hero .section-label {
  background: var(--wf-accent);
  color: #fff;
}
.section.section-hero .stat {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.section.section-hero .stat-value { color: #fff; }
.section.section-hero .stat-label { color: rgba(255,255,255,0.65); }
.section.section-hero .badge {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}

/* CTA sections */
.section.section-cta {
  background: var(--wf-cta-bg);
  color: #fff;
  text-align: center;
  border: none;
  padding: 40px 32px;
  border-radius: var(--wf-radius-lg);
}
.section.section-cta h2,
.section.section-cta p { color: rgba(255,255,255,0.9); }
.section.section-cta .section-label {
  background: var(--wf-accent);
  color: #fff;
}

/* Alternating section backgrounds */
.section.section-alt {
  background: var(--wf-bg);
}

/* ─── Nested block ─── */
.block {
  border: 1px solid var(--wf-border-light);
  border-radius: var(--wf-radius);
  padding: 20px;
  margin-top: 12px;
  background: var(--wf-surface);
  box-shadow: var(--wf-shadow-sm);
  transition: box-shadow 0.15s;
}
.block:hover { box-shadow: var(--wf-shadow-md); }
.block-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--wf-accent);
  margin-bottom: 10px;
}

/* ─── Grid layouts ─── */
.grid { display: grid; gap: 16px; margin-top: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ─── Image placeholder ─── */
.img-placeholder {
  background: linear-gradient(135deg, #e8eaef 0%, #dcdfe6 100%);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 32px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--wf-text-muted);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  word-break: break-all;
}
.img-placeholder::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background: var(--wf-text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.4;
}
.img-placeholder.hero-img {
  min-height: 200px;
  border-radius: var(--wf-radius-lg);
  font-size: 12px;
}
.img-placeholder.hero-img::before { width: 48px; height: 48px; }
.img-placeholder.gallery-img {
  min-height: 140px;
  border-radius: var(--wf-radius);
}

/* ─── Stat box ─── */
.stat {
  text-align: center;
  padding: 16px 12px;
  border: 1px solid var(--wf-border-light);
  border-radius: var(--wf-radius);
  background: var(--wf-surface);
  box-shadow: var(--wf-shadow-sm);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--wf-accent);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 11px;
  color: var(--wf-text-muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Typography ─── */
h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
p {
  font-size: 14px;
  color: var(--wf-text-secondary);
  margin-bottom: 8px;
  line-height: 1.65;
}
.overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wf-accent);
  margin-bottom: 6px;
}

/* ─── Badge / tag ─── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wf-accent);
  background: var(--wf-accent-light);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ─── Table ─── */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
  font-size: 13px;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  overflow: hidden;
}
th, td {
  border-bottom: 1px solid var(--wf-border-light);
  padding: 10px 14px;
  text-align: left;
}
th {
  background: var(--wf-bg);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--wf-text-muted);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

/* ─── List ─── */
ul, ol {
  padding-left: 20px;
  font-size: 14px;
  color: var(--wf-text-secondary);
}
li { margin-bottom: 6px; line-height: 1.5; }

/* ─── CTA block ─── */
.cta-block {
  border-radius: var(--wf-radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 12px;
}
.cta-button {
  display: inline-block;
  background: var(--wf-accent);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--wf-shadow-sm);
}
.cta-button + .cta-button {
  margin-left: 12px;
  background: transparent;
  color: var(--wf-accent);
  border: 2px solid var(--wf-accent);
  box-shadow: none;
}

/* CTA buttons in dark sections */
.section.section-cta .cta-button {
  background: #fff;
  color: var(--wf-cta-bg);
}
.section.section-cta .cta-button + .cta-button {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

/* ─── Pill / tag list ─── */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border: 1px solid var(--wf-border);
  border-radius: 20px;
  color: var(--wf-text-secondary);
  background: var(--wf-surface);
}

/* ─── Divider ─── */
.divider {
  border: none;
  border-top: 1px solid var(--wf-border);
  margin: 32px 0;
}

/* ─── Form wireframe ─── */
.form-field {
  border: 1px solid var(--wf-border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--wf-text-muted);
  background: var(--wf-surface);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.form-field.form-field-textarea {
  min-height: 100px;
}

/* ─── Comparison layout ─── */
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }

/* ─── Navigation wireframe ─── */
.nav-wireframe {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wf-border);
  margin-bottom: 20px;
}
.nav-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--wf-text-muted);
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--wf-bg);
  border: 1px solid var(--wf-border-light);
}
.nav-item.active {
  background: var(--wf-accent-light);
  color: var(--wf-accent);
  border-color: var(--wf-accent);
  font-weight: 600;
}

/* ─── Page footer / document info ─── */
.doc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--wf-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--wf-text-muted);
}
.doc-footer .company { font-weight: 600; color: var(--wf-text-secondary); }

/* ─── Print styles ─── */
@media print {
  body { background: #fff; }
  .page-wrapper { padding: 20px; }
  .section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .block {
    break-inside: avoid;
    box-shadow: none;
  }
  .back-link { display: none; }
  .top-bar { background: #1e2433 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-footer { break-inside: avoid; }

  /* Print header/footer */
  @page {
    margin: 1.5cm 1.5cm 2cm;
    @bottom-center {
      content: "Jasmino Corporation — Content Wireframe";
      font-size: 9px;
      color: #999;
    }
    @bottom-right {
      content: counter(page);
      font-size: 9px;
      color: #999;
    }
  }
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .page-wrapper { padding: 20px; }
  .page-header { padding: 24px 20px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
}

/* ─── Back to index link (hidden — replaced by top-bar) ─── */
.back-link { display: none; }

/* ─── Index page ─── */
.index-group { margin-bottom: 36px; }
.index-group h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wf-text-muted);
  border-bottom: 1px solid var(--wf-border);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.index-group a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  color: var(--wf-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.1s;
}
.index-group a:hover {
  background: var(--wf-accent-light);
  color: var(--wf-accent);
}
.index-group .route-hint {
  color: var(--wf-text-muted);
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  margin-left: auto;
}

/* ─── Step / process items ─── */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wf-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ─── Quick fact row ─── */
.quick-fact {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--wf-border-light);
  font-size: 13px;
}
.quick-fact:last-child { border-bottom: none; }
.quick-fact-label { color: var(--wf-text-muted); font-weight: 500; }
.quick-fact-value { color: var(--wf-text); font-weight: 600; }
