/* =========================================================
   Job Widget — styles
   ========================================================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* Layout */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: 17px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a { color: #475569; font-weight: 500; font-size: 14px; }
.nav a:hover { color: #0f172a; text-decoration: none; }
.nav a.btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  background: #e2e8f0;
  color: #0f172a;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(99,102,241,0.32);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(99,102,241,0.42); }
.btn-secondary {
  background: #0f172a;
  color: #fff;
}
.btn-secondary:hover { background: #1e293b; }
.btn-ghost {
  background: transparent;
  color: #0f172a;
  border-color: #cbd5e1;
}
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-danger:hover { background: #fee2e2; }

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(139,92,246,0.20), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(99,102,241,0.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 6px 12px;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #0b1220;
  margin-bottom: 18px;
}
.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 18px;
  color: #475569;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero preview card */
.hero-preview {
  display: flex;
  justify-content: center;
}
.preview-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15,23,42,0.18), 0 6px 16px rgba(15,23,42,0.06);
  overflow: hidden;
}
.preview-top { height: 8px; }
.preview-body { padding: 22px; }
.preview-company { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.preview-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 12px; line-height: 1.25; }
.preview-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.preview-desc {
  font-size: 14px;
  color: #475569;
  margin-bottom: 18px;
}
.preview-btn {
  display: inline-block;
  border: 0;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.preview-foot {
  margin-top: 16px;
  font-size: 11px;
  color: #94a3b8;
}
.preview-foot a { color: #64748b; }

/* Hero bullets */
.hero-bullets {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 8px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 15px;
}
.hero-bullets .icon-check {
  width: 18px;
  height: 18px;
  flex: none;
  color: #10b981;
  background: #d1fae5;
  border-radius: 50%;
  padding: 3px;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: #ffffff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
  margin-bottom: 12px;
}
.eyebrow.center-block { display: block; text-align: center; }
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section .eyebrow:not(.center-block) {
  display: block;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: #64748b;
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-sub .inline-code,
code.inline-code {
  display: inline-block;
  padding: 1px 7px;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 6px;
  font-family: "SF Mono", Consolas, Monaco, monospace;
  font-size: 0.92em;
}

/* Icon base */
.icon { width: 20px; height: 20px; display: inline-block; }

/* Embed showcase */
.embed-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 16px;
}
.code-block {
  background: #0b1220;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15,23,42,0.22), 0 6px 16px rgba(15,23,42,0.08);
  border: 1px solid #1e293b;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #111827;
  border-bottom: 1px solid #1e293b;
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.code-filename {
  margin-left: 10px;
  font-size: 12px;
  color: #94a3b8;
  font-family: "SF Mono", Consolas, Monaco, monospace;
}
.code-body {
  margin: 0;
  padding: 22px 24px;
  font-family: "SF Mono", Consolas, Monaco, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre;
  overflow-x: auto;
}
.tok-tag  { color: #f472b6; }
.tok-attr { color: #93c5fd; }
.tok-str  { color: #86efac; }

.platforms h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.platform-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin-bottom: 12px;
}
.platform-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 15px;
  font-weight: 500;
}
.platform-list .icon-check {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex: none;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.08);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 18px; margin-bottom: 6px; }
.step-card p { color: #64748b; font-size: 15px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
  border-color: #cbd5e1;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #fae8ff);
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { color: #64748b; font-size: 14.5px; line-height: 1.55; }

/* Use cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.use-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.use-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.08);
}
.use-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.use-icon svg { width: 22px; height: 22px; }
.use-icon-indigo  { background: #eef2ff; color: #4338ca; }
.use-icon-pink    { background: #fce7f3; color: #be185d; }
.use-icon-amber   { background: #fef3c7; color: #b45309; }
.use-icon-emerald { background: #d1fae5; color: #047857; }
.use-card h3 { font-size: 17px; margin-bottom: 6px; }
.use-card p { color: #64748b; font-size: 14.5px; line-height: 1.55; }

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] {
  border-color: #c7d2fe;
  box-shadow: 0 8px 22px rgba(99,102,241,0.08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  flex: none;
  transition: transform .2s ease, color .15s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #6366f1;
}
.faq-item p {
  padding: 0 22px 20px;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

/* CTA band */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, #4338ca, #7c3aed 60%, #ec4899);
  color: #fff;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-inner p { opacity: 0.9; margin-bottom: 24px; }
.cta-band .btn-primary {
  background: #ffffff;
  color: #4338ca;
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}
.cta-band .btn-primary:hover { background: #f8fafc; }

/* Footer */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 56px 0 28px;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.footer-inner a { color: #cbd5e1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 24px;
}
.footer-brand .logo {
  color: #ffffff;
}
.footer-tag {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 14.5px;
  max-width: 320px;
  line-height: 1.55;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #cbd5e1;
  font-size: 14.5px;
  padding: 4px 0;
  text-decoration: none;
}
.footer-col a:hover { color: #ffffff; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #64748b;
}

/* =========================================================
   Builder (create / edit)
   ========================================================= */
.builder { padding: 40px 0 80px; }
.builder-head { margin-bottom: 28px; }
.builder-head h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.builder-head p { color: #64748b; }
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Form */
.form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #f1f5f9; }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 14px;
}
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  transition: border-color .12s ease, box-shadow .12s ease;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.field input.invalid,
.field textarea.invalid,
.field select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.req { color: #ef4444; }
.muted { color: #94a3b8; font-weight: 400; }
.hint { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.small { font-size: 13px; }
.center { text-align: center; }

.color-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.color-row input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  cursor: pointer;
  transition: transform .1s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px #6366f1; }

.form-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}
.form-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* Danger zone */
.danger-zone {
  margin-top: 28px;
  padding: 18px;
  border: 1px dashed #fecaca;
  background: #fef9f9;
  border-radius: 12px;
}
.danger-zone h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b91c1c;
  margin-bottom: 4px;
}
.edit-links { margin-top: 18px; }
.edit-links a { word-break: break-all; }

/* Preview pane */
.preview-pane {
  position: sticky;
  top: 88px;
}
.preview-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 10px;
}
.preview-mount { width: 100%; }

/* =========================================================
   Job card (rendered widget — used in preview, job page, embed)
   ========================================================= */
.job-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.job-card-accent {
  height: 6px;
  background: var(--accent, #6366f1);
}
.job-card-body { padding: 28px; }
.job-card-company {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 8px;
}
.job-card-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.2;
}
.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.job-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.job-card-chip-accent {
  background: color-mix(in srgb, var(--accent, #6366f1) 12%, white);
  color: var(--accent, #6366f1);
}
.job-card-description {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 24px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.job-card-description p { margin-bottom: 12px; }
.job-card-description p:last-child { margin-bottom: 0; }
.job-card-apply {
  display: inline-block;
  background: var(--accent, #6366f1);
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  text-decoration: none;
  transition: filter .15s ease, transform .08s ease;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent, #6366f1) 35%, transparent);
}
.job-card-apply:hover { filter: brightness(1.05); text-decoration: none; }
.job-card-apply:active { transform: translateY(1px); }
.job-card-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}
.job-card-foot a { color: #64748b; font-weight: 500; }

/* Empty preview placeholder */
.preview-empty {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 60px 24px;
  text-align: center;
  color: #94a3b8;
}
.preview-empty-icon { font-size: 36px; margin-bottom: 10px; }

/* =========================================================
   Public job page
   ========================================================= */
.job-page { padding: 40px 0 60px; }
.job-promo {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.job-promo h3 { font-size: 20px; margin-bottom: 4px; }
.job-promo p { color: #64748b; margin-bottom: 16px; }

/* Loading state */
.loading-state {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
  color: #94a3b8;
}
.loading-state p {
  margin-top: 12px;
  font-size: 14px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: jw-spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes jw-spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
}
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: #64748b; margin-bottom: 18px; }

/* =========================================================
   Embed page (clean, no chrome)
   ========================================================= */
.page-embed {
  background: transparent;
  padding: 0;
  margin: 0;
}
.page-embed main {
  padding: 16px;
}
.page-embed .job-card {
  box-shadow: 0 4px 18px rgba(15,23,42,0.06);
}

/* =========================================================
   Modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #94a3b8;
  line-height: 1;
}
.modal-close:hover { color: #0f172a; }
.modal-success {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(16,185,129,0.35);
}
.modal-card h2 { text-align: center; margin-bottom: 6px; }
.result-block { margin-top: 22px; }
.result-block label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.copy-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.copy-row input,
.copy-row textarea {
  flex: 1;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-family: "SF Mono", Consolas, Monaco, monospace;
  color: #0f172a;
  resize: vertical;
}
.copy-row .btn { white-space: nowrap; }
.copy-row .btn.copied { background: #047857; }
.result-block-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 16px;
  border-radius: 12px;
}
.warn { color: #92400e; margin-top: 8px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero { padding: 60px 0 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-preview { order: -1; }
  .preview-card { max-width: 320px; }
  .builder-grid {
    grid-template-columns: 1fr;
  }
  .preview-pane {
    position: static;
  }
  .steps, .features {
    grid-template-columns: 1fr;
  }
  .use-cases {
    grid-template-columns: repeat(2, 1fr);
  }
  .embed-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header-inner { height: 56px; }
  .nav { gap: 14px; }
  .logo-text { display: none; }
  .form-card { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .modal-card { padding: 24px; }
  .copy-row { flex-direction: column; }
  .copy-row .btn { width: 100%; }
  .job-card-body { padding: 22px; }
  .job-card-title { font-size: 22px; }
  .hero h1 { font-size: 36px; }
  .use-cases { grid-template-columns: 1fr; }
  .platform-list { grid-template-columns: 1fr; }
  .code-body { font-size: 12px; padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
