/* ==========================================================================
   JSON Form Builder — Landing page styles
   Layered on top of Bootstrap 4 + jquery.JsonFormBuilder styles (style.css)
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-section: #f6f8fb;
  --card: #ffffff;
  --accent: #ff4f30;
  --accent-dark: #e63c1f;
  --accent-soft: #fff1ed;
  --amber: #ffb02e;
  --indigo: #6366f1;
  --navy-1: #0b1120;
  --navy-2: #101a33;
  --teal: #14b8a6;
  --radius: 16px;
  --shadow-lg: 0 24px 60px -24px rgba(2, 6, 23, 0.45);
  --shadow-sm: 0 4px 14px -6px rgba(2, 6, 23, 0.18);
  --font-head: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body.jfb-landing {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-section);
  -webkit-font-smoothing: antialiased;
}

body.jfb-landing h1,
body.jfb-landing h2,
body.jfb-landing h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}

section {
  scroll-margin-top: 84px;
}

/* --------------------------------------------------------------------------
   Top navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(255, 79, 48, 0.65);
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .nav-links a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.site-nav .nav-cta {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(255, 79, 48, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(255, 79, 48, 0.8);
  text-decoration: none;
}

/* Round WhatsApp icon button rendered next to "Hire Me" by /_shared/identity.js */
.site-nav .nav-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  vertical-align: middle;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-nav .nav-whatsapp:hover {
  color: #25d366;
  border-color: #25d366;
  transform: translateY(-1px);
}

.site-nav .nav-whatsapp .whatsapp-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .site-nav .nav-links li.hide-sm {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(28px, 5vh, 56px) clamp(16px, 4vw, 48px) 96px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(800px 400px at 8% 0%, rgba(255, 79, 48, 0.22), transparent 55%),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 100%);
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--amber) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .lede {
  max-width: 640px;
  margin: 0 auto 18px;
  color: #94a3b8;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}

.hero-badges span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 12.5px;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   App card (the live demo)
   -------------------------------------------------------------------------- */

.app-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto -64px;
  z-index: 2;
}

.app-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fafbfe);
}

.app-head .traffic {
  display: inline-flex;
  gap: 6px;
  margin-right: 4px;
}

.app-head .traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.app-head .traffic i:nth-child(1) { background: #fb7185; }
.app-head .traffic i:nth-child(2) { background: #fbbf24; }
.app-head .traffic i:nth-child(3) { background: #34d399; }

.app-head-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-head-title .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-head-title .live-pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: jfb-pulse 1.6s ease infinite;
}

@keyframes jfb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 48, 0.45); }
  55% { box-shadow: 0 0 0 6px rgba(255, 79, 48, 0); }
}

.current-product {
  min-width: 0;
  line-height: 1.25;
}

.current-product .cp-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-product .cp-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.app-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */

.btn-jfb,
.btn-jfb-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-jfb {
  background: linear-gradient(135deg, var(--accent), #ff7a3c);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(255, 79, 48, 0.65);
}

.btn-jfb:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(255, 79, 48, 0.75);
}

.btn-jfb-ghost {
  background: #fff;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-jfb-ghost:hover {
  border-color: #cbd5e1;
  color: var(--ink);
  background: #f8fafc;
}

.btn-jfb:focus,
.btn-jfb-ghost:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 79, 48, 0.25);
}

.btn-jfb svg,
.btn-jfb-ghost svg {
  flex: none;
}

/* Loader row (URL input) */

.app-loader {
  padding: 20px 22px 6px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-label .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}

.url-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.url-row .url-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.url-row .url-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.url-row .url-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 48, 0.15);
  background: #fff;
}

.demo-note {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.demo-note strong {
  color: var(--ink-soft);
}

/* Sample product strip */

.sample-zone {
  padding: 18px 22px 8px;
}

.sample-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
}

.sample-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sample-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sample-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 48, 0.18), var(--shadow-sm);
}

.sample-card.active::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px -2px rgba(255, 79, 48, 0.6);
}

.sample-card img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  border-radius: 9px;
  background: #f1f5f9;
  margin-bottom: 8px;
}

.sample-card .sc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.sample-card .sc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.sample-card .sc-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.sample-card .sc-badge.ae {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.sample-card .sc-badge.cjd {
  background: #e6fbf7;
  color: #0f766e;
}

/* Pricing rules bar */

.pricing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 6px 22px 18px;
  padding: 14px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fafbfe;
}

.pricing-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-field label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-field input,
.pricing-field select {
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  min-width: 86px;
}

.pricing-field input {
  width: 86px;
}

.pricing-field input:focus,
.pricing-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 48, 0.14);
}

.pricing-bar .pricing-apply {
  margin-left: auto;
}

@media (max-width: 640px) {
  .pricing-bar .pricing-apply {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Editor zone: selector nav + variant table (plugin output)
   -------------------------------------------------------------------------- */

.editor-zone {
  padding: 0 22px 8px;
}

/* Option selector nav — override style.css greens with theme colors */

.jfb-selector-nav {
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f1f5f9;
}

body.jfb-landing .jfb-selector-nav a {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.12s ease;
}

body.jfb-landing .jfb-selector-nav a:hover {
  background: #e2e8f0;
  color: var(--ink);
}

body.jfb-landing .jfb-selector-nav a.active {
  background: var(--ink);
  color: #fff;
}

.table-wrap {
  overflow: auto;
  max-height: 58vh;
  border: 1px solid var(--line);
  border-radius: 14px;
}

body.jfb-landing .jfb-table {
  margin-bottom: 0;
  font-size: 12.5px;
}

body.jfb-landing .jfb-table thead tr.titles th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8fafc;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

body.jfb-landing .jfb-table thead tr.buttons th {
  background: #fff;
  border-top: 0;
  padding: 8px;
  vertical-align: middle;
}

body.jfb-landing .jfb-table td,
body.jfb-landing .jfb-table th {
  border-color: #eef2f7;
  padding: 8px;
}

body.jfb-landing .jfb-table tbody tr:hover {
  background: #fafbff;
}

body.jfb-landing .jfb-table .jfb-img-td {
  width: 48px;
}

body.jfb-landing .jfb-table .jfb-img-td img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}

body.jfb-landing .jfb-table td input.form-control {
  font-size: 12.5px;
  border-radius: 8px;
  border-color: var(--line);
  min-width: 64px;
}

body.jfb-landing .jfb-table td input.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 48, 0.12);
}

body.jfb-landing .jfb-table .input-group-text {
  font-size: 11.5px;
  border-radius: 8px 0 0 8px;
  background: #f8fafc;
  border-color: var(--line);
  color: var(--muted);
}

body.jfb-landing .jfb-table .btn-secondary {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  border-radius: 9px;
  font-weight: 600;
}

body.jfb-landing .jfb-table .btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--ink);
}

body.jfb-landing .jfb-table .btn-secondary:disabled {
  opacity: 0.45;
}

body.jfb-landing .jfb-table .jfb-delete-button:not(:disabled) {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* "Change All" floating input — open below the button instead of above */

body.jfb-landing .jfb-table .price-change-all .change-input,
body.jfb-landing .jfb-table .compare-price-change-all .change-input {
  top: calc(100% + 6px);
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -12px rgba(2, 6, 23, 0.35);
  padding: 8px;
}

body.jfb-landing .jfb-table .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--accent);
  border-color: var(--accent);
}

body.jfb-landing .jfb-table .text-success {
  color: #059669 !important;
  font-weight: 600;
}

body.jfb-landing .jfb-table .text-danger {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Live JSON panel
   -------------------------------------------------------------------------- */

.json-panel {
  margin: 14px 22px 22px;
  border: 1px solid #1e293b;
  border-radius: 14px;
  background: var(--navy-1);
  overflow: hidden;
}

.json-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.json-panel-head .jp-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}

.json-panel-head .jp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  transition: transform 0.2s ease;
}

.json-panel-head .jp-dot.flash {
  transform: scale(1.6);
}

.json-panel-head .jp-stats {
  color: #64748b;
  font-size: 12px;
  font-family: var(--font-mono);
}

.json-panel-head .jp-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.jp-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.13s ease;
}

.jp-btn:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #fff;
}

.json-panel pre {
  margin: 0;
  padding: 14px 16px;
  max-height: 300px;
  overflow: auto;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  background: transparent;
}

.json-panel.collapsed pre {
  display: none;
}

.tok-key { color: #93c5fd; }
.tok-str { color: #86efac; }
.tok-num { color: #fcd34d; }
.tok-bool { color: #f0abfc; }
.tok-null { color: #94a3b8; }

/* --------------------------------------------------------------------------
   Sections: features, how it works, about
   -------------------------------------------------------------------------- */

.section {
  padding: 88px clamp(16px, 4vw, 48px) 40px;
  max-width: 1160px;
  margin: 0 auto;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

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

.feature-card .fc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.feature-card h3 {
  font-size: 16.5px;
  margin-bottom: 7px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* How it works */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
}

.step-card .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 18px -8px rgba(255, 79, 48, 0.7);
}

.step-card h3 {
  font-size: 16.5px;
  margin-bottom: 7px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* About / tech */

.about-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 44px);
}

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

.about-card h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  margin-bottom: 14px;
}

.about-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.about-card .doc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.about-card .doc-link:hover {
  text-decoration: underline;
}

.tech-list {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-list .tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfe;
  font-size: 13.5px;
}

.tech-list .tech-item b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

.tech-list .tech-item span {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 88px;
  background: var(--navy-1);
  color: #94a3b8;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 48px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-grid .f-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}

.footer-grid p {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 380px;
}

.footer-grid h4 {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid ul li {
  margin-bottom: 9px;
}

.footer-grid ul a {
  color: #94a3b8;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.13s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Modals (Bootstrap 4 overrides)
   -------------------------------------------------------------------------- */

body.jfb-landing .modal-content {
  border: none;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

body.jfb-landing .modal-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
}

body.jfb-landing .modal-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}

body.jfb-landing .modal-body {
  padding: 22px 24px;
}

body.jfb-landing .modal-footer {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
}

.json-textarea {
  width: 100%;
  min-height: 260px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
}

.json-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 48, 0.14);
  background: #fff;
}

.modal-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.modal-hint code {
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11.5px;
}

.import-error {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
}

.export-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.export-stats .stat {
  flex: 1 1 120px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfe;
  text-align: center;
}

.export-stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--ink);
}

.export-stats .stat span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.export-pre {
  margin: 0;
  padding: 14px 16px;
  max-height: 320px;
  overflow: auto;
  border-radius: 12px;
  background: var(--navy-1);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

/* Shipping modal */

.ship-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.ship-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.13s ease;
  margin-bottom: 0;
}

.ship-option:hover {
  border-color: #cbd5e1;
  background: #fafbfe;
}

.ship-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ship-option input {
  accent-color: var(--accent);
}

.ship-option .so-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.ship-option .so-days {
  font-size: 12px;
  color: var(--muted);
}

.ship-option .so-price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.ship-country-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}

.ship-country-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 79, 48, 0.14);
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

#toastZone {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 36px));
}

.jfb-toast {
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--navy-1);
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--teal);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.jfb-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.jfb-toast.t-warn { border-left-color: var(--amber); }
.jfb-toast.t-error { border-left-color: #f87171; }
.jfb-toast.t-info { border-left-color: var(--indigo); }
