/* MetaCal Barcode — site chrome (MetaCal family: navy #131C31, gold #C9A227) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; background: #eef3f9; color: #131C31; line-height: 1.55; }
a { color: #1d4ed8; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
/* header */
.site-header { background: #131C31; color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(19,28,49,.25); }
.hd-in { display: flex; align-items: center; gap: 18px; padding: 10px 16px; max-width: 1120px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo img { width: 38px; height: 38px; border-radius: 8px; }
.logo .lg-name { font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.logo .lg-name .gold { color: #C9A227; }
.logo .lg-sub { display: block; font-size: 11px; font-weight: 600; color: #C9A227; letter-spacing: 1.6px; text-transform: uppercase; }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a { color: #dbe4f0; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 7px 11px; border-radius: 8px; }
.main-nav a:hover, .main-nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.hd-clock { margin-left: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
/* hero */
.hero { background: linear-gradient(135deg, #131C31 0%, #1d2c4d 60%, #27406e 100%); color: #fff; padding: 34px 0 30px; }
.hero h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.2; }
.hero h1 .gold { color: #C9A227; }
.hero p.sub { margin: 0 0 18px; font-size: 16.5px; color: #cfdaec; max-width: 720px; }
/* trust strip */
.tb-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; background: #fff; border: 1.5px solid #131C31; border-radius: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 700; color: #14532d; margin: 14px 0; }
.tb-trust span { white-space: nowrap; }
@media (max-width: 640px) { .tb-trust span { white-space: normal; } }
@media (max-width: 820px) {
  .hd-in { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .logo .lg-name { font-size: 17px; white-space: nowrap; }
  .logo .lg-sub { font-size: 9.5px; letter-spacing: 1.2px; white-space: nowrap; }
  .logo img { width: 30px; height: 30px; }
  .hd-clock { margin-left: auto; font-size: 11px; padding: 4px 9px; }
  .main-nav { order: 3; flex-basis: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; font-size: 13.5px; padding: 6px 9px; }
}
/* tool box */
.tool-box { background: #fff; border: 1.5px solid #131C31; border-radius: 14px; padding: 20px; margin: 18px 0; box-shadow: 0 3px 14px rgba(19,28,49,.07); }
.tb-badge { display: inline-block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 11px; margin-bottom: 12px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.field .hint { font-size: 13px; color: #475569; margin-top: 4px; }
input[type="text"], input[type="number"], select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #94a3b8; border-radius: 9px; font-size: 15px; font-family: inherit; background: #fff; color: #131C31; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding-top: 24px; }
.chk input { width: 18px; height: 18px; }
input[type="color"] { width: 100%; height: 42px; border: 1.5px solid #94a3b8; border-radius: 9px; background: #fff; padding: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-primary { background: #131C31; color: #fff; border: none; font-size: 16.5px; font-weight: 700; padding: 13px 26px; border-radius: 10px; cursor: pointer; min-height: 52px; }
.btn-primary:hover { background: #1f2c4c; }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-dl { background: #16a34a; color: #fff; border: none; font-size: 15px; font-weight: 700; padding: 11px 20px; border-radius: 10px; cursor: pointer; }
.btn-dl:hover { background: #15803d; }
.btn-ghost { background: #fff; color: #131C31; border: 1.5px solid #131C31; font-size: 14.5px; font-weight: 700; padding: 10px 18px; border-radius: 10px; cursor: pointer; }
.btn-ghost:hover { background: #eef3f9; }
.err-box { display: none; background: #fef2f2; border: 1.5px solid #dc2626; color: #991b1b; border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin-top: 12px; }
.note-ok { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: 9px 13px; font-size: 14px; margin-top: 12px; }
.preview { display: none; text-align: center; background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 0 0/22px 22px; border: 1px dashed #94a3b8; border-radius: 10px; padding: 22px 12px; margin-top: 16px; overflow-x: auto; }
.preview svg { max-width: 100%; height: auto; }
.preview img { max-width: 100%; }
/* content */
main { padding: 22px 0 10px; }
.crumb { font-size: 13.5px; color: #475569; margin-bottom: 10px; }
.crumb a { color: #475569; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
h1.page-h { font-size: 30px; margin: 0 0 6px; line-height: 1.25; }
p.lede { font-size: 16.5px; color: #334155; margin: 0 0 6px; max-width: 780px; }
section.block { background: #fff; border: 1.5px solid #131C31; border-radius: 14px; padding: 20px 22px; margin: 16px 0; }
section.block h2 { margin: 0 0 10px; font-size: 21px; }
section.block h3 { margin: 16px 0 6px; font-size: 16.5px; }
section.block p, section.block li { font-size: 15px; color: #26314a; }
section.block ol, section.block ul { padding-left: 22px; }
.faq-item { border-top: 1px solid #e2e8f0; padding: 12px 0; }
.faq-item:first-of-type { border-top: none; }
.faq-item h3 { margin: 0 0 5px; font-size: 16px; }
.faq-item p { margin: 0; font-size: 14.5px; color: #334155; }
/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.tcard { display: block; background: #fff; border: 1.5px solid #131C31; border-radius: 14px; padding: 18px; text-decoration: none; color: #131C31; }
.tcard:hover { box-shadow: 0 6px 18px rgba(19,28,49,.13); transform: translateY(-2px); }
.tcard .ic { font-size: 30px; }
.tcard h3 { margin: 8px 0 5px; font-size: 17px; }
.tcard p { margin: 0; font-size: 13.5px; color: #475569; }
.tcard .go { display: inline-block; margin-top: 9px; font-weight: 700; font-size: 13.5px; color: #1d4ed8; }
/* compare table */
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.cmp th, table.cmp td { border: 1px solid #cbd5e1; padding: 9px 12px; text-align: left; }
table.cmp th { background: #131C31; color: #fff; }
table.cmp td.us { background: #f0fdf4; font-weight: 700; color: #166534; }
table.cmp td.them { background: #fef2f2; color: #991b1b; }
/* byline + footer */
.byline { display: flex; align-items: center; gap: 12px; margin: 20px 0 6px; font-size: 14px; color: #334155; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #C9A227; }
.site-footer { background: #131C31; color: #cbd5e1; margin-top: 34px; padding: 26px 0 30px; font-size: 14px; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.mode-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.mode-tabs button { background: #fff; border: 1.5px solid #131C31; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.mode-tabs button.on { background: #131C31; color: #fff; }
.report-list { font-size: 13.5px; color: #475569; max-height: 160px; overflow-y: auto; margin-top: 8px; }
video.cam { width: 100%; max-width: 480px; border-radius: 10px; border: 1.5px solid #131C31; background: #000; }

/* v2: Yasi homepage design — compact hero, header search, explorer */
.logo .lg-light { font-weight: 500; color: #9fb0c9; font-size: 15px; }
.hd-search { position: relative; margin-left: 6px; }
.hd-search input { width: 190px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 13.5px; outline: none; }
.hd-search input::placeholder { color: #aebdd4; }
.hd-search input:focus { background: rgba(255,255,255,.18); border-color: #C9A227; }
.hd-search-res { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 240px; background: #fff; border: 1.5px solid #131C31; border-radius: 12px; box-shadow: 0 12px 30px rgba(19,28,49,.25); overflow: hidden; z-index: 60; }
.hsr-item { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 13px; font-size: 14px; font-weight: 600; color: #131C31; cursor: pointer; }
.hsr-item:hover { background: #eef3fb; }
.hsr-none { padding: 9px 13px; font-size: 13.5px; color: #5b6b84; }
.hero { padding: 22px 0 20px; }
.hero h1 { font-size: 30px; }
.hero .sub { font-size: 16px; margin-bottom: 12px; }
.hero-gen { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; flex-wrap: wrap; }
.hero-gen select { flex: 0 1 230px; padding: 11px 12px; border-radius: 10px; border: 1.5px solid #131C31; font-size: 15px; background: #fff; }
.hero-gen input { flex: 1 1 220px; padding: 11px 12px; border-radius: 10px; border: 1.5px solid #131C31; font-size: 15px; }
.hero-gen .btn-primary { min-height: 48px; }
.hero-gen .hg-full { display: inline-flex; align-items: center; text-decoration: none; }
.hero .preview { margin-top: 14px; }
.hero-note { margin: 12px 0 0; font-size: 13.5px; color: #c8d4e8; }
.free-badge { position: absolute; top: 12px; right: 12px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.tcard { position: relative; }
.mini-links { font-size: 14.5px; font-weight: 600; }
.mini-links a { color: #2563eb; text-decoration: none; }
.mini-links a:hover { text-decoration: underline; }
.exp-h { margin: 16px 0 4px; font-size: 16.5px; color: #131C31; }
.exp-links { margin: 0 0 6px; font-size: 14.5px; line-height: 1.9; color: #5b6b84; }
.exp-links a { color: #2563eb; text-decoration: none; font-weight: 600; }
.exp-links a:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .hd-search { order: 4; flex-basis: 100%; margin-left: 0; }
  .hd-search input { width: 100%; }
  .hd-search-res { left: 0; right: auto; width: 100%; }
  .hero h1 { font-size: 24px; }
  .hero-gen select, .hero-gen input { flex-basis: 100%; }
}
