/* ═══════════════════════════════════════════════════
   CANWORKTODAY — SHARED STYLESHEET
   Aesthetic: Industrial editorial · Utility-first
   Fonts: Familjen Grotesk (display) + Instrument Sans (body)
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink:      #0d1117;
  --ink2:     #1c2333;
  --bg:       #f2ede4;
  --bg2:      #e8e2d8;
  --white:    #ffffff;
  --accent:   #d94f00;
  --accent-h: #b84200;
  --gold:     #c9860a;
  --green:    #1e6641;
  --green-bg: #e8f5ee;
  --amber:    #b07800;
  --amber-bg: #fff6e0;
  --red-bg:   #fdf0eb;
  --muted:    #64748b;
  --border:   #d4cdc0;
  --border2:  #e8e2d8;
  --card:     #ffffff;
  --nav-h:    80px;
  --max-w:    1080px;
  --r:        5px;
  --r2:       10px;
  --font-d:   'Familjen Grotesk', sans-serif;
  --font-b:   'Instrument Sans', sans-serif;
  --shadow:   0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-h: 0 4px 24px rgba(0,0,0,0.12);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.65; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-b); }
input, select { font-family: var(--font-b); }

/* ══ NAV ══════════════════════════════════════════ */
.jsw-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--ink);
  display: flex; align-items: center;
  padding: 0 24px; gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.jsw-nav-logo {
  font-family: var(--font-d); font-size: 19px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.jsw-nav-logo img {
  display: block;
}

.jsw-nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin-left: auto;
}
.jsw-nav-links a {
  color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap; letter-spacing: 0.01em;
}
.jsw-nav-links a:hover,
.jsw-nav-links a.active { color: #fff; background: rgba(255,255,255,0.08); }

.jsw-nav-cta {
  margin-left: 8px;
  background: var(--accent) !important; color: #fff !important;
  font-weight: 600 !important; border-radius: var(--r) !important;
  padding: 7px 16px !important;
}
.jsw-nav-cta:hover { background: var(--accent-h) !important; }

/* Hamburger */
.jsw-burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 6px;
  background: none; border: none; margin-left: auto; cursor: pointer;
}
.jsw-burger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px; transition: all 0.22s; }
.jsw-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
.jsw-burger.open span:nth-child(2) { opacity: 0; }
.jsw-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* Mobile drawer */
.jsw-drawer {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--ink2); z-index: 199;
  padding: 8px 0; overflow-y: auto;
  animation: drawerIn 0.2s ease;
}
.jsw-drawer.open { display: block; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.jsw-drawer-section { padding: 12px 24px 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.jsw-drawer a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.12s;
}
.jsw-drawer a:hover { background: rgba(255,255,255,0.05); }
.jsw-drawer a .d-icon { font-size: 18px; width: 28px; text-align: center; }
.jsw-drawer-cta {
  margin: 16px 24px; display: flex !important; justify-content: center !important;
  background: var(--accent) !important; color: #fff !important;
  border-radius: var(--r) !important; border-bottom: none !important;
  font-weight: 600 !important; font-size: 14px !important;
  padding: 14px 24px !important;
}

@media (max-width: 768px) {
  .jsw-nav-links { display: none; }
  .jsw-burger { display: flex; }
}

/* ══ FOOTER ═══════════════════════════════════════ */
.jsw-footer {
  background: var(--ink); color: rgba(255,255,255,0.45);
  padding: 48px 24px 28px;
}
.jsw-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.jsw-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
@media (max-width: 768px) { .jsw-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 440px) { .jsw-footer-grid { grid-template-columns: 1fr; } }

.footer-brand-logo img {
  display: block;
}
.footer-brand-desc { font-size: 13px; line-height: 1.7; max-width: 220px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.jsw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px;
}
.jsw-footer-bottom a { color: rgba(255,255,255,0.3); }
.jsw-footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ══ COMMON COMPONENTS ════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }

/* Section heading */
.sec-head { margin-bottom: 32px; }
.sec-head h2 { font-family: var(--font-d); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.sec-head p { font-size: 15px; color: var(--muted); max-width: 520px; }
.sec-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* Card */
.jsw-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: var(--shadow); }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { opacity: 0.4; }

/* Hero pattern */
.page-hero {
  background: var(--ink); color: #fff;
  padding: 44px 24px 40px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 40%; background: linear-gradient(135deg, transparent, rgba(217,79,0,0.06));
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent), transparent);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(217,79,0,0.35);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-d); font-size: clamp(30px, 5vw, 52px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px;
}
.page-hero h1 strong { color: var(--accent); font-weight: 700; }
.page-hero-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 520px; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: var(--r); font-size: 14px; color: var(--ink);
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s; appearance: none;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,79,0,0.08); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; letter-spacing: 0.01em; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217,79,0,0.3); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red   { background: var(--red-bg);   color: var(--accent); }
.pill-grey  { background: #f0f0f0;          color: #888; }

/* Alert boxes */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid transparent; }
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-body strong { display: block; font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.alert-body span { font-size: 13px; color: #444; line-height: 1.55; }
.alert-green { background: var(--green-bg); border-color: #a8d8b9; }
.alert-amber { background: var(--amber-bg); border-color: #f0d080; }
.alert-red   { background: var(--red-bg);   border-color: #f5b8a0; }

/* Divider */
.divider { height: 1px; background: var(--border); }

/* Info/SEO sections */
.info-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--r2); padding: 24px; margin-bottom: 16px; }
.info-block h2 { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.info-block h3 { font-family: var(--font-d); font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.info-block p { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 10px; }
.info-block p:last-child { margin-bottom: 0; }
.info-block ul { padding-left: 18px; margin-bottom: 10px; }
.info-block li { font-size: 14px; color: #444; line-height: 1.75; margin-bottom: 4px; }

/* Accordion */
.accordion { border-top: 1px solid var(--border); margin-top: 14px; }
details { border-bottom: 1px solid var(--border); }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 13px 0; font-size: 14px; font-weight: 600; color: var(--ink); user-select: none; }
details summary::-webkit-details-marker { display: none; }
.summary-icon { font-size: 18px; color: var(--muted); transition: transform 0.2s; flex-shrink: 0; }
details[open] .summary-icon { transform: rotate(45deg); }
details .acc-body { font-size: 13px; color: #555; line-height: 1.75; padding-bottom: 14px; }

/* Related tool cards */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; transition: border-color 0.15s, transform 0.15s; display: block; }
.related-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.rc-icon { font-size: 22px; margin-bottom: 6px; }
.rc-name { font-family: var(--font-d); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.rc-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Share row */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { padding: 9px 16px; border: 1.5px solid var(--border); border-radius: var(--r); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; color: var(--ink); }
.share-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 500; z-index: 999; transition: transform 0.3s ease; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Utility */
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4  { margin-top:  4px; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.45s ease both; }
.fade-up-d1 { animation-delay: 0.08s; }
.fade-up-d2 { animation-delay: 0.16s; }
.fade-up-d3 { animation-delay: 0.24s; }
