/* SubmitWise — sw.css  (loaded after Tailwind CDN) */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --teal:      #184d54;
  --teal-d:    #0f3338;
  --teal-l:    #e8f4f5;
  --teal-m:    #2a6b75;
  --green:     #198c53;
  --green-d:   #116b3e;
  --green-l:   #eaf7ef;
  --accent:    #1db87a;   /* bright cta green */
  --ink:       #111827;
  --ink2:      #374151;
  --ink3:      #6b7280;
  --ink4:      #9ca3af;
  --line:      #e5e7eb;
  --bg:        #f6f8f7;
  --white:     #ffffff;
  --r6: 6px; --r8: 8px; --r12: 12px; --r16: 16px; --r20: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.sw-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 200;
  background: var(--teal-d); border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; padding: 0 32px; gap: 0;
}
.sw-nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.sw-nav__logo:hover { text-decoration: none; opacity: .9; }
.sw-nav__logo-mark {
  width: 34px; height: 34px; background: var(--green); border-radius: var(--r8);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px;
}
.sw-nav__logo-mark span {
  background: #fff; border-radius: 2px;
}
.sw-nav__logo-mark span:nth-child(1) { opacity: 1; }
.sw-nav__logo-mark span:nth-child(2) { opacity: .75; }
.sw-nav__logo-mark span:nth-child(3) { opacity: .5; }
.sw-nav__logo-mark span:nth-child(4) { opacity: .9; }
.sw-nav__logo-text { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.sw-nav__links { display: flex; align-items: center; gap: 2px; margin-left: 28px; }
.sw-nav__link {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.6);
  padding: 6px 12px; border-radius: var(--r6); transition: all .12s; text-decoration: none;
}
.sw-nav__link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.sw-nav__space { flex: 1; }
.sw-nav__auth { display: flex; align-items: center; gap: 8px; }
.sw-nav__signin {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7);
  padding: 7px 14px; border-radius: var(--r6); transition: all .12s; text-decoration: none;
}
.sw-nav__signin:hover { color: #fff; text-decoration: none; }
.sw-nav__cta {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--green);
  border: none; padding: 7px 18px; border-radius: var(--r8); cursor: pointer;
  transition: background .12s; text-decoration: none; display: inline-block;
}
.sw-nav__cta:hover { background: var(--green-d); text-decoration: none; }
.sw-nav__user { display: none; align-items: center; gap: 8px; position: relative; }
.sw-nav__user-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 4px 8px 4px 4px;
  border-radius: 99px; transition: background .12s;
}
.sw-nav__user-btn:hover { background: rgba(255,255,255,.08); }
.sw-nav__avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; background-position: center; background-size: cover; overflow: hidden;
}
.sw-nav__uname { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 500; }
.sw-dd {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r12);
  box-shadow: var(--shadow-lg); min-width: 220px; padding: 4px; z-index: 300;
  opacity: 0; pointer-events: none; transform: translateY(-6px) scale(.97);
  transform-origin: top right; transition: all .15s;
}
.sw-dd--open { opacity: 1; pointer-events: auto; transform: none; }
.sw-dd__head { padding: 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 3px; }
.sw-dd__name { font-size: 13px; font-weight: 700; color: var(--ink); }
.sw-dd__email { font-size: 11px; color: var(--ink4); margin-top: 1px; }
.sw-dd__item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  font-size: 13px; color: var(--ink2); cursor: pointer; border-radius: var(--r6);
  transition: background .1s; background: none; border: none; width: 100%; text-align: left;
}
.sw-dd__item:hover { background: var(--bg); }
.sw-dd__item--danger { color: #dc2626; }
.sw-dd__item--danger:hover { background: #fef2f2; }
.sw-dd__div { height: 1px; background: var(--line); margin: 3px 0; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sw-sidebar {
  width: 220px; flex-shrink: 0; position: fixed;
  top: 56px; left: 0; bottom: 0; overflow-y: auto;
  background: #fff; border-right: 1px solid var(--line);
}
.sw-sidebar__sec {
  padding: 16px 16px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink4);
}
.sw-sidebar__item {
  display: flex; align-items: center; gap: 9px; padding: 9px 16px;
  font-size: 13px; font-weight: 500; color: var(--ink3);
  text-decoration: none; transition: all .1s; border-left: 2px solid transparent;
}
.sw-sidebar__item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .65; }
.sw-sidebar__item:hover { background: #f9fafb; color: var(--ink); text-decoration: none; border-left-color: var(--line); }
.sw-sidebar__item--active { background: var(--teal-l); color: var(--teal); font-weight: 600; border-left-color: var(--teal); }
.sw-sidebar__item--active svg { opacity: 1; }

/* ── SHELL ───────────────────────────────────────────────── */
.sw-shell { display: flex; padding-top: 56px; min-height: 100vh; }
.sw-main { margin-left: 220px; flex: 1; }
.sw-wrap { max-width: 920px; margin: 0 auto; padding: 36px 40px; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.sw-phead { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sw-crumb { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink4); margin-bottom: 8px; }
.sw-crumb a { color: var(--ink4); }
.sw-crumb a:hover { color: var(--teal); }
.sw-crumb__sep { color: #d1d5db; }
.sw-phead__title { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; line-height: 1.2; margin-bottom: 6px; }
.sw-phead__desc { font-size: 14px; color: var(--ink3); line-height: 1.7; max-width: 540px; }

/* ── CARDS ───────────────────────────────────────────────── */
.sw-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r16); overflow: hidden; }
.sw-card + .sw-card { margin-top: 16px; }
.sw-card__hd { padding: 16px 22px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 12px; }
.sw-card__icon { width: 40px; height: 40px; border-radius: var(--r8); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-card__icon svg { width: 20px; height: 20px; }
.sw-card__htxt { flex: 1; }
.sw-card__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.sw-card__sub { font-size: 12px; color: var(--ink4); margin-top: 2px; }
.sw-card__bd { padding: 22px; }
.sw-card__ft { padding: 14px 22px; background: #f9fafb; border-top: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

/* ── FORMS ───────────────────────────────────────────────── */
.sw-field { margin-bottom: 16px; }
.sw-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 5px; }
.sw-label .req { color: #dc2626; margin-left: 2px; }
.sw-label .opt { font-weight: 400; color: var(--ink4); font-size: 11px; }
.sw-input, .sw-select, .sw-textarea {
  width: 100%; padding: 9px 12px; height: 38px;
  border: 1.5px solid #b9c2c0; border-radius: var(--r8);
  font-size: 14px; color: var(--ink); background: #fcfdfd; outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.sw-input:hover, .sw-select:hover, .sw-textarea:hover { border-color: #8fa39f; }
.sw-input::placeholder, .sw-textarea::placeholder { color: var(--ink4); }
.sw-input:focus, .sw-select:focus, .sw-textarea:focus {
  border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(25,140,83,.13);
}
.sw-textarea { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.sw-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.sw-hint { font-size: 12px; color: var(--ink4); margin-top: 4px; line-height: 1.5; }
.sw-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 20px; border: 1px solid transparent;
  border-radius: var(--r8); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: all .12s; line-height: 1;
}
.sw-btn svg { width: 15px; height: 15px; }
.sw-btn:hover { text-decoration: none; }
.sw-btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.sw-btn--primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.sw-btn--primary:hover { background: var(--teal-m); border-color: var(--teal-m); }
.sw-btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.sw-btn--green:hover { background: var(--green-d); }
.sw-btn--outline { background: #fff; color: var(--ink2); border-color: var(--line); }
.sw-btn--outline:hover { background: #f9fafb; border-color: #d1d5db; }
.sw-btn--ghost { background: transparent; color: var(--teal); border-color: transparent; }
.sw-btn--ghost:hover { background: var(--teal-l); }
.sw-btn--sm { height: 30px; padding: 0 12px; font-size: 12px; }
.sw-btn--lg { height: 44px; padding: 0 28px; font-size: 14px; }
.sw-btn--xl { height: 50px; padding: 0 36px; font-size: 15px; font-weight: 700; border-radius: var(--r12); }
.sw-btn--full { width: 100%; }
.sw-spin { width: 15px; height: 15px; animation: swSpin .65s linear infinite; }
@keyframes swSpin { to { transform: rotate(360deg); } }

/* ── BADGES ─────────────────────────────────────────────── */
.sw-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r6); font-size: 11.5px; font-weight: 600; }
.sw-badge--teal  { background: var(--teal-l); color: var(--teal); }
.sw-badge--green { background: var(--green-l); color: var(--green-d); }
.sw-badge--blue  { background: #dbeafe; color: #1e40af; }
.sw-badge--red   { background: #fee2e2; color: #b91c1c; }
.sw-badge--amber { background: #fef3c7; color: #b45309; }
.sw-badge--gray  { background: #f3f4f6; color: #374151; }

/* ── OUTPUT ─────────────────────────────────────────────── */
.sw-out { background: #fff; border: 1px solid var(--line); border-radius: var(--r16); overflow: hidden; }
.sw-out__bar { padding: 10px 18px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px; background: #fafafa; }
.sw-out__label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink4); flex: 1; }
.sw-out__body { padding: 24px; min-height: 200px; }
.sw-out__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; text-align: center; color: var(--ink4); }
.sw-out__empty svg { width: 36px; height: 36px; margin-bottom: 12px; opacity: .3; }
.sw-out-h2 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.sw-out-h3 { font-size: 14px; font-weight: 700; color: var(--teal); margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--teal-l); }
.sw-out-h4 { font-size: 13px; font-weight: 600; color: var(--ink2); margin: 12px 0 4px; }
.sw-out-hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.sw-out-li { display: flex; gap: 8px; margin: 4px 0; font-size: 14px; color: var(--ink2); }
.sw-out-li span:first-child { color: var(--teal); font-weight: 700; flex-shrink: 0; min-width: 12px; }
.sw-out-num { color: var(--teal); font-weight: 700; font-size: 12px; min-width: 18px; }
.sw-out-gap { height: 8px; }
.sw-out-code { background: #f1f5f9; color: #0f172a; padding: 1px 5px; border-radius: 4px; font-family: monospace; font-size: 12px; }
.sw-cursor::after { content: '|'; color: var(--teal); animation: swBlink .85s step-end infinite; }
@keyframes swBlink { 0%,100%{ opacity:1; } 50%{ opacity:0; } }

/* ── ALERTS ─────────────────────────────────────────────── */
.sw-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r8); font-size: 13px; line-height: 1.6; border: 1px solid; }
.sw-alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.sw-alert--info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.sw-alert--success { background: var(--green-l); color: var(--green-d); border-color: #a7f3d0; }
.sw-alert--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.sw-alert--error   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

/* ── JOURNAL RESULT CARD ─────────────────────────────────── */
.sw-journal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r12);
  padding: 0; margin-bottom: 14px; overflow: hidden; transition: box-shadow .15s;
}
.sw-journal-card:hover { box-shadow: var(--shadow); }
.sw-journal-card__top { padding: 18px 20px; display: flex; align-items: flex-start; gap: 16px; }
.sw-journal-card__rank {
  width: 36px; height: 36px; border-radius: var(--r8); background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.sw-journal-card__rank--1 { background: #b7791f; }
.sw-journal-card__rank--2 { background: #718096; }
.sw-journal-card__rank--3 { background: #744210; }
.sw-journal-card__info { flex: 1; min-width: 0; }
.sw-journal-card__name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.sw-journal-card__pub  { font-size: 12px; color: var(--ink4); margin-bottom: 10px; }
.sw-journal-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-journal-card__pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f3f4f6; border-radius: 99px; padding: 3px 10px;
  font-size: 11.5px; font-weight: 600; color: var(--ink3);
}
.sw-journal-card__pill--teal { background: var(--teal-l); color: var(--teal); }
.sw-journal-card__pill--green { background: var(--green-l); color: var(--green-d); }
.sw-journal-card__fit { flex-shrink: 0; text-align: right; }
.sw-fit-score { font-size: 26px; font-weight: 800; color: var(--teal); line-height: 1; }
.sw-fit-label { font-size: 10px; font-weight: 600; color: var(--ink4); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.sw-fit-bar { width: 80px; height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; }
.sw-fit-bar__fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--green)); }
.sw-journal-card__why { padding: 12px 20px; background: #fafafa; border-top: 1px solid #f3f4f6; font-size: 13px; color: var(--ink3); line-height: 1.65; }
.sw-journal-card__why strong { color: var(--teal); font-weight: 600; }
.sw-journal-card__actions { padding: 10px 20px; border-top: 1px solid #f3f4f6; display: flex; gap: 8px; }

/* ── TOASTS ─────────────────────────────────────────────── */
.sw-toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; pointer-events: none; max-width: 360px; }
.sw-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r8); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.4; pointer-events: auto; transition: opacity .3s, transform .3s; }
.sw-toast--info    { background: var(--teal-d); color: #fff; }
.sw-toast--success { background: var(--green); color: #fff; }
.sw-toast--error   { background: #dc2626; color: #fff; }
.sw-toast__icon { flex-shrink: 0; font-weight: 700; }
.sw-toast__msg { flex: 1; }
.sw-toast__x { background: none; border: none; color: rgba(255,255,255,.55); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; flex-shrink: 0; }
.sw-toast__x:hover { color: #fff; }

/* ── TABS ────────────────────────────────────────────────── */
.sw-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.sw-tab { padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--ink3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .12s; user-select: none; }
.sw-tab:hover { color: var(--ink); }
.sw-tab--active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }

/* ── COI pills ───────────────────────────────────────────── */
.sw-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--r8); background: #fff; cursor: text; transition: border-color .12s, box-shadow .12s; }
.sw-tags:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,77,84,.1); }
.sw-tags input { border: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); background: none; min-width: 130px; flex: 1; padding: 3px 4px; }
.sw-tags input::placeholder { color: var(--ink4); }
.sw-apill { display: inline-flex; align-items: center; gap: 5px; background: var(--teal-l); border: 1px solid rgba(24,77,84,.2); border-radius: 99px; padding: 3px 8px 3px 11px; font-size: 12px; color: var(--teal); font-weight: 600; }
.sw-apill__x { background: none; border: none; cursor: pointer; color: var(--teal); font-size: 14px; line-height: 1; opacity: .5; transition: opacity .1s; }
.sw-apill__x:hover { opacity: 1; color: #dc2626; }

/* ── PLATFORM TOGGLE ────────────────────────────────────── */
.sw-ptog { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r8); cursor: pointer; transition: all .12s; user-select: none; background: #fff; }
.sw-ptog--on { border-color: rgba(24,77,84,.3); background: var(--teal-l); }
.sw-ptog input { display: none; }
.sw-ptog__chk { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .12s; }
.sw-ptog--on .sw-ptog__chk { background: var(--teal); border-color: var(--teal); }
.sw-ptog__name { font-size: 13px; font-weight: 700; }
.sw-ptog__desc { font-size: 11px; color: var(--ink4); margin-top: 1px; }

/* ── EMPTY / SKELETON ───────────────────────────────────── */
.sw-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; text-align: center; }
.sw-empty__icon { width: 52px; height: 52px; border-radius: var(--r12); background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: var(--ink4); margin-bottom: 14px; }
.sw-empty__icon svg { width: 24px; height: 24px; }
.sw-empty__title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.sw-empty__desc { font-size: 13px; color: var(--ink4); max-width: 260px; line-height: 1.6; }
@keyframes swShimmer { 0%{ background-position:-600px 0; } 100%{ background-position:600px 0; } }
.sw-skel { background: linear-gradient(90deg,#f3f4f6 25%,#fff 50%,#f3f4f6 75%); background-size:1200px; animation:swShimmer 1.4s infinite; border-radius:var(--r6); }

/* ── AUTH ────────────────────────────────────────────────── */
.sw-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.sw-auth__dark { background: linear-gradient(155deg, var(--teal-d) 0%, var(--teal) 50%, var(--green-d) 100%); display: flex; flex-direction: column; justify-content: center; padding: 60px 56px; position: relative; overflow: hidden; }
.sw-auth__dark::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 22px 22px; }
.sw-auth__dark-cnt { position: relative; z-index: 1; max-width: 380px; }
.sw-auth__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; }
.sw-auth__h1 { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; letter-spacing: -.5px; }
.sw-auth__sub { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.75; margin-bottom: 36px; }
.sw-auth__feat { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.sw-auth__feat-icon { width: 32px; height: 32px; border-radius: var(--r8); background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-auth__feat-icon svg { width: 16px; height: 16px; color: rgba(255,255,255,.8); }
.sw-auth__feat h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.sw-auth__feat p { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.5; }
.sw-auth__light { background: #fff; display: flex; align-items: center; justify-content: center; padding: 60px 56px; }
.sw-auth__form { width: 100%; max-width: 360px; }
.sw-auth__form h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 5px; letter-spacing: -.4px; }
.sw-auth__form-sub { font-size: 14px; color: var(--ink3); margin-bottom: 28px; }
.sw-auth__err { display: none; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: var(--r8); padding: 11px 14px; font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.sw-auth__divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.sw-auth__divider::before, .sw-auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sw-auth__divider span { font-size: 12px; color: var(--ink4); }
.sw-auth__switch { font-size: 13px; color: var(--ink3); text-align: center; margin-top: 20px; }
.sw-auth__switch a { color: var(--teal); font-weight: 600; }
.sw-pw-bars { display: flex; gap: 3px; margin-top: 6px; }
.sw-pw-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .2s; }

/* ── HERO ────────────────────────────────────────────────── */
.sw-hero {
  background: linear-gradient(145deg, var(--teal-d) 0%, var(--teal) 55%, #1a6b45 85%, var(--green) 100%);
  min-height: 100vh; display: flex; align-items: center; padding-top: 56px; position: relative; overflow: hidden;
}
.sw-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px); background-size: 24px 24px; }
.sw-hero__inner { max-width: 1200px; margin: 0 auto; padding: 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; width: 100%; }
.sw-hero__eyebrow { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.8); padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.sw-hero__dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.6; transform:scale(.8); } }
.sw-hero__h1 { font-size: 50px; font-weight: 800; color: #fff; line-height: 1.06; letter-spacing: -.8px; margin-bottom: 18px; }
.sw-hero__h1 em { font-style: normal; color: var(--accent); }
.sw-hero__p { font-size: 17px; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 32px; max-width: 440px; }
.sw-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.sw-hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 30px; background: #fff; color: var(--teal); font-size: 14px; font-weight: 800;
  border-radius: var(--r12); text-decoration: none; transition: all .15s; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.sw-hero__cta:hover { background: #f0f9f7; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0,0,0,.25); text-decoration: none; color: var(--teal); }
.sw-hero__sec {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 26px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8);
  font-size: 14px; font-weight: 500; border-radius: var(--r12); text-decoration: none;
  transition: all .15s; background: rgba(255,255,255,.05);
}
.sw-hero__sec:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.sw-hero__trust { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sw-hero__trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.4); font-weight: 500; }
.sw-hero__trust-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ── HERO RIGHT — workflow illustration ─────────────────── */
.sw-hero__right { position: relative; }
.sw-workflow {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 28px; backdrop-filter: blur(4px);
}
.sw-workflow__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.sw-workflow__dot { width: 11px; height: 11px; border-radius: 50%; }
.sw-workflow__dot--r { background: rgba(255,90,85,.6); }
.sw-workflow__dot--y { background: rgba(255,185,40,.6); }
.sw-workflow__dot--g { background: rgba(40,200,80,.6); }
.sw-workflow__url { margin-left: 10px; font-size: 11px; color: rgba(255,255,255,.25); font-family: monospace; }
.sw-wf-step { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; margin-bottom: 8px; }
.sw-wf-step--active { background: rgba(25,140,83,.2); border: 1px solid rgba(25,140,83,.3); }
.sw-wf-step--done { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.sw-wf-step--pending { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); }
.sw-wf-step__icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-wf-step__icon svg { width: 17px; height: 17px; }
.sw-wf-step__text { flex: 1; min-width: 0; }
.sw-wf-step__title { font-size: 12px; font-weight: 700; }
.sw-wf-step__sub { font-size: 11px; margin-top: 2px; font-family: monospace; }
.sw-wf-step__badge { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.sw-wf-success { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(25,140,83,.15); border: 1px solid rgba(25,140,83,.25); margin-top: 12px; }
.sw-wf-success__icon { width: 36px; height: 36px; background: var(--green); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sw-wf-success__icon svg { width: 18px; height: 18px; color: #fff; }
.sw-wf-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; padding-top: 18px; }
.sw-wf-stat { text-align: center; }
.sw-wf-stat + .sw-wf-stat { border-left: 1px solid rgba(255,255,255,.08); }
.sw-wf-stat__val { font-size: 22px; font-weight: 800; color: #fff; }
.sw-wf-stat__lbl { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* ── HOME SECTIONS ───────────────────────────────────────── */
.sw-section { padding: 80px 0; }
.sw-section--alt { background: #fff; }
.sw-section-inner { max-width: 1140px; margin: 0 auto; padding: 0 60px; }
.sw-section-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.sw-section-title { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; margin-bottom: 10px; line-height: 1.2; }
.sw-section-sub { font-size: 16px; color: var(--ink3); line-height: 1.7; max-width: 520px; }
.sw-section-hd { margin-bottom: 44px; }
.sw-divider-line { flex: 1; height: 1px; background: var(--line); }

/* ── HOME TOOL CARDS ────────────────────────────────────── */
.sw-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sw-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sw-grid3--feat .sw-tcard { border-top: 3px solid var(--teal); }
.sw-tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r16);
  padding: 24px; text-decoration: none; display: block; transition: all .18s; position: relative;
}
.sw-tcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(24,77,84,.2); text-decoration: none; }
.sw-tcard__ico { width: 46px; height: 46px; border-radius: var(--r12); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sw-tcard__ico svg { width: 22px; height: 22px; }
.sw-tcard__cat { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.sw-tcard__name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.sw-tcard__desc { font-size: 13px; color: var(--ink4); line-height: 1.65; margin-bottom: 16px; }
.sw-tcard__arrow { position: absolute; top: 22px; right: 22px; color: var(--line); font-size: 18px; transition: color .15s; }
.sw-tcard:hover .sw-tcard__arrow { color: var(--teal); }
.sw-tcard-sm { background: #fff; border: 1px solid var(--line); border-radius: var(--r12); padding: 18px; text-decoration: none; display: block; transition: all .15s; }
.sw-tcard-sm:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: rgba(24,77,84,.2); text-decoration: none; }
.sw-tcard-sm__ico { width: 38px; height: 38px; border-radius: var(--r8); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.sw-tcard-sm__ico svg { width: 18px; height: 18px; }
.sw-tcard-sm__name { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.sw-tcard-sm__desc { font-size: 12px; color: var(--ink4); line-height: 1.6; }

/* ── HOW IT WORKS ───────────────────────────────────────── */
.sw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.sw-steps::before { content: ''; position: absolute; top: 36px; left: calc(12.5% + 8px); right: calc(12.5% + 8px); height: 1px; background: var(--line); }
.sw-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.sw-step__ico { width: 72px; height: 72px; border-radius: var(--r16); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; z-index: 1; border: 2px solid; }
.sw-step__ico svg { width: 30px; height: 30px; }
.sw-step__num { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.sw-step__title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.sw-step__desc { font-size: 12px; color: var(--ink4); line-height: 1.65; }

/* ── TOOL FOOTER LINKS ────────────────────────────────────  */
.sw-tool-footer { background: var(--teal-d); padding: 40px 0; margin-top: 300px; }
.sw-tool-footer__inner { max-width: 920px; margin: 0 auto; padding: 0 40px; }
.sw-tool-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.sw-tool-footer__grid--4 { grid-template-columns: repeat(4, 1fr); }
.sw-tool-footer__links2 { display: flex; gap: 20px; padding: 16px 0; margin-bottom: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.sw-tool-footer__links2 a { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: none; }
.sw-tool-footer__links2 a:hover { color: #fff; }
.sw-tool-footer__col h4 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 12px; }
.sw-tool-footer__link { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 7px; transition: color .12s; }
.sw-tool-footer__link:hover { color: #fff; text-decoration: none; }
.sw-tool-footer__link svg { width: 12px; height: 12px; flex-shrink: 0; }
.sw-tool-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sw-tool-footer__copy { font-size: 12px; color: rgba(255,255,255,.3); }
.sw-tool-footer__home { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.sw-tool-footer__home:hover { text-decoration: none; opacity: .8; }

/* ── HOME FOOTER ─────────────────────────────────────────── */
.sw-footer { background: var(--teal-d); }
.sw-footer__main { max-width: 1140px; margin: 0 auto; padding: 60px; display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 48px; }
.sw-footer__brand p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; margin-top: 12px; }
.sw-footer__col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.sw-footer__link { display: block; font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 8px; transition: color .1s; }
.sw-footer__link:hover { color: #fff; text-decoration: none; }
.sw-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.sw-footer__bottom-inner { max-width: 1140px; margin: 0 auto; padding: 20px 60px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.sw-footer__copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sw-hero__inner { grid-template-columns: 1fr; }
  .sw-hero__right { display: none; }
  .sw-section-inner { padding: 0 32px; }
  .sw-footer__main { grid-template-columns: 1fr 1fr; padding: 40px 32px; }
}
@media (max-width: 768px) {
  .sw-sidebar { display: none; }
  .sw-main { margin-left: 0; }
  .sw-wrap { padding: 24px 20px; }
  .sw-grid3, .sw-grid4 { grid-template-columns: 1fr; }
  .sw-steps { grid-template-columns: 1fr 1fr; }
  .sw-auth { grid-template-columns: 1fr; }
  .sw-auth__dark { display: none; }
  .sw-hero__inner { padding: 40px 24px; }
  .sw-hero__h1 { font-size: 34px; }
  .sw-footer__main { grid-template-columns: 1fr; }
  .sw-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sw-row2 { grid-template-columns: 1fr; }
  .sw-steps { grid-template-columns: 1fr; }
  .sw-steps::before { display: none; }
}

/* ── AUTH FORM EXTRAS ──────────────────────────────────── */
.sw-auth__form h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 5px; letter-spacing: -.4px; }
.sw-auth__err { display: none; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: var(--r8); padding: 11px 14px; font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.sw-auth__divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.sw-auth__divider::before, .sw-auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sw-auth__divider span { font-size: 12px; color: var(--ink4); }
.sw-auth__switch { font-size: 13px; color: var(--ink3); text-align: center; margin-top: 20px; }
.sw-auth__switch a { color: var(--teal); font-weight: 600; }
.sw-pw-bars { display: flex; gap: 4px; margin-top: 7px; }
.sw-pw-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .2s; }

/* ── HERO LEFT/RIGHT labels ─────────────────────────────── */
.sw-hero__left { flex: 1; max-width: 530px; }

/* ═══════════════════════════════════════════════════════════
   v9 ADDITIONS — mobile nav, polish, tracker, profile
   ═══════════════════════════════════════════════════════════ */

/* ── MOBILE HAMBURGER + NAV ──────────────────────────────── */
.sw-nav__burger {
  display: none; width: 38px; height: 38px; border: none; background: none;
  cursor: pointer; align-items: center; justify-content: center; border-radius: var(--r8);
  flex-direction: column; gap: 4px; margin-left: auto;
}
.sw-nav__burger span { display: block; width: 18px; height: 2px; background: rgba(255,255,255,.85); border-radius: 2px; transition: all .2s; }
.sw-nav__burger:hover { background: rgba(255,255,255,.08); }
.sw-mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: var(--teal-d); z-index: 190; padding: 20px;
  flex-direction: column; gap: 4px; overflow-y: auto;
}
.sw-mobile-menu.open { display: flex; }
.sw-mobile-menu a, .sw-mobile-menu button {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r8);
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.8); text-decoration: none;
  background: none; border: none; cursor: pointer; text-align: left; width: 100%;
}
.sw-mobile-menu a:hover, .sw-mobile-menu button:hover { background: rgba(255,255,255,.08); color: #fff; }
.sw-mobile-menu__sec { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 16px 16px 6px; }
.sw-mobile-menu__divider { height: 1px; background: rgba(255,255,255,.08); margin: 10px 0; }
.sw-mobile-menu__cta { background: var(--green) !important; color: #fff !important; justify-content: center; font-weight: 700 !important; margin-top: 8px; }

/* Mobile sidebar toggle (tool pages) */
.sw-sidebar-toggle {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal);
  border: none; box-shadow: var(--shadow-lg); cursor: pointer;
  align-items: center; justify-content: center;
}
.sw-sidebar-toggle svg { width: 22px; height: 22px; color: #fff; }
.sw-sidebar-backdrop {
  display: none; position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.4); z-index: 99;
}
.sw-sidebar-backdrop.open { display: block; }

/* ── REFINED HERO IMAGE ─────────────────────────────────── */
.hero-img-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-img-frame img { width: 100%; height: 380px; object-fit: cover; display: block; }
.hero-img-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 45%, rgba(13,51,56,.85) 100%);
}
.hero-float-card {
  position: absolute; z-index: 2; background: rgba(255,255,255,.97);
  border-radius: var(--r12); padding: 13px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.hero-float-card--tl { top: 18px; left: 18px; }
.hero-float-card--br { bottom: 18px; right: 18px; }

/* ── ENTERPRISE POLISH — logos / trust band ─────────────── */
.sw-trustband { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.sw-trustband__inner { max-width: 1140px; margin: 0 auto; padding: 0 60px; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.sw-trustband__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); }
.sw-trustband__logos { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.sw-trustband__logo { font-size: 15px; font-weight: 700; color: #cbd5e1; letter-spacing: -.3px; transition: color .2s; }

/* ── STATS BAND ─────────────────────────────────────────── */
.sw-statsband { background: var(--teal-d); padding: 56px 0; }
.sw-statsband__inner { max-width: 1000px; margin: 0 auto; padding: 0 60px; display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.sw-statsband__item { text-align: center; }
.sw-statsband__val { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1; }
.sw-statsband__val em { font-style: normal; color: var(--accent); }
.sw-statsband__lbl { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 8px; }

/* ── FEATURE SPLIT ──────────────────────────────────────── */
.sw-featuresplit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sw-featuresplit--rev { direction: rtl; }
.sw-featuresplit--rev > * { direction: ltr; }
.sw-feat-visual { border-radius: var(--r20); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }

/* ── PROFILE AVATAR w/ image ────────────────────────────── */
.sw-profile-avatar-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; border: 3px solid #fff; box-shadow: var(--shadow); }

/* ── TRACKER ─────────────────────────────────────────────── */
.sw-track-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sw-track-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r12); padding: 18px; transition: box-shadow .15s; position: relative; }
.sw-track-card:hover { box-shadow: var(--shadow); }
.sw-track-card__status { position: absolute; top: 16px; right: 16px; }
.sw-track-stat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.sw-track-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r12); padding: 16px 20px; flex: 1; min-width: 120px; }
.sw-track-stat__val { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; }
.sw-track-stat__lbl { font-size: 11px; color: var(--ink4); margin-top: 5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sw-track-timeline { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.sw-track-tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.sw-track-tl-dot--done { background: var(--green); }
.sw-track-tl-dot--current { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-l); }
.sw-track-tl-line { flex: 1; height: 2px; background: var(--line); }
.sw-track-tl-line--done { background: var(--green); }

/* Status colors */
.sw-status-preparing  { background: #f3f4f6; color: #374151; }
.sw-status-submitted  { background: #dbeafe; color: #1e40af; }
.sw-status-review     { background: #fef3c7; color: #b45309; }
.sw-status-revision   { background: #fde68a; color: #92400e; }
.sw-status-accepted   { background: var(--green-l); color: var(--green-d); }
.sw-status-rejected   { background: #fee2e2; color: #b91c1c; }
.sw-status-published   { background: #ede9fe; color: #6d28d9; }

/* ── AUTH-REQUIRED GATE ─────────────────────────────────── */
.sw-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; min-height: 50vh; }
.sw-gate__icon { width: 64px; height: 64px; border-radius: var(--r16); background: var(--teal-l); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.sw-gate__icon svg { width: 30px; height: 30px; color: var(--teal); }
.sw-gate__title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.sw-gate__desc { font-size: 14px; color: var(--ink3); max-width: 380px; line-height: 1.65; margin-bottom: 24px; }

/* ── MODAL ──────────────────────────────────────────────── */
.sw-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,30,35,.55); z-index: 500; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.sw-modal-backdrop.open { display: flex; }
.sw-modal { background: #fff; border-radius: var(--r20); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.sw-modal__hd { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.sw-modal__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.sw-modal__x { background: none; border: none; cursor: pointer; color: var(--ink4); font-size: 22px; line-height: 1; padding: 0; width: 28px; height: 28px; border-radius: var(--r6); }
.sw-modal__x:hover { background: var(--bg); color: var(--ink); }
.sw-modal__bd { padding: 24px; }
.sw-modal__ft { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafafa; }

/* ── EXTRA RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .sw-statsband__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sw-featuresplit { grid-template-columns: 1fr; gap: 32px; }
  .sw-featuresplit--rev { direction: ltr; }
}
@media (max-width: 768px) {
  .sw-nav { padding: 0 12px; }
  .sw-nav__links { display: none; }
  .sw-nav__auth { display: flex; gap: 6px; }
  .sw-nav__auth .sw-nav__cta { display: none; }
  .sw-nav__signin { display: inline-flex; }
  .sw-nav__burger { display: none; }
  .sw-nav__user { display: none !important; }
  .sw-nav.authed .sw-nav__user { display: flex !important; }
  .sw-nav.authed .sw-nav__auth { display: none; }
  .sw-nav.authed .sw-nav__uname { display: none; }
  .sw-sidebar-toggle { display: flex; }
  .sw-sidebar.mobile-open { display: block; z-index: 100; box-shadow: var(--shadow-lg); }
  .sw-trustband__inner { gap: 20px; padding: 0 20px; }
  .sw-trustband__logos { gap: 20px; justify-content: center; }
  .sw-statsband__inner { padding: 0 24px; }
  .sw-statsband__val { font-size: 30px; }
  .hero-img-frame img { height: 280px; }
  .sw-track-board { grid-template-columns: 1fr; }
  .sw-modal { max-width: 100%; }
  .sw-wrap { padding: 20px 16px; }
  .sw-phead__title { font-size: 20px; }
  .sw-card__bd { padding: 16px; }
  .sw-card__hd { padding: 14px 16px; }
  .sw-card__ft { padding: 12px 16px; }
}
@media (max-width: 480px) {
  .sw-statsband__inner { grid-template-columns: 1fr 1fr; }
  .sw-hero__h1 { font-size: 30px; }
  .hero-float-card { display: none; }
}

/* ── v10: product showcase + journey responsive ─────────── */
@media (max-width: 900px) {
  /* product showcase becomes single column */
  section[style*="background:#0a2c30"] > div > div[style*="grid-template-columns:0.85fr"] { grid-template-columns: 1fr !important; gap: 36px !important; }
  /* publishing journey becomes 2-col then 1 */
  section[style*="background:#f4f7f6"] div[style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; gap: 32px 20px !important; }
  section[style*="background:#f4f7f6"] div[style*="left:11%"] { display: none !important; }
}
@media (max-width: 560px) {
  section[style*="background:#f4f7f6"] div[style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr !important; }
  section[style*="background:#0a2c30"] { padding: 56px 0 !important; }
  section[style*="background:#0a2c30"] > div { padding: 0 24px !important; }
  section[style*="background:#f4f7f6"] { padding: 64px 0 !important; }
  section[style*="background:#f4f7f6"] > div { padding: 0 24px !important; }
}

/* ── PRO tool styling in sidebar (amber/gold family) ──────── */
.sw-sidebar__item--pro { position: relative; }
.sw-sidebar__item--pro svg { color: #b45309; stroke: #b45309; opacity: .9; }
.sw-sidebar__item--free svg { color: var(--green); stroke: var(--green); opacity: .85; }
.sw-sidebar__item--free:hover { background: var(--green-l); color: var(--green-d); border-left-color: var(--green); }
.sw-sidebar__item--free.sw-sidebar__item--active { background: var(--green-l); color: var(--green-d); border-left-color: var(--green); }
.sw-sidebar__item--free.sw-sidebar__item--active svg { color: var(--green-d); opacity: 1; }
.sw-sidebar__pro-tag {
  margin-left: auto; font-size: 8.5px; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff;
  padding: 2px 5px; border-radius: 4px; line-height: 1; flex-shrink: 0;
}
.sw-sidebar__item--pro:hover { background: #fffbeb; color: #92400e; border-left-color: #f59e0b; }
.sw-sidebar__item--pro.sw-sidebar__item--active {
  background: #fff7e6; color: #92400e; border-left-color: #f59e0b; font-weight: 600;
}
.sw-sidebar__item--pro.sw-sidebar__item--active svg { color: #b45309; opacity: 1; }
.sw-sidebar__sec--pro { color: #b45309; }

/* ── PRO badge inline ─────────────────────────────────────── */
.sw-badge--pro {
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff;
  font-weight: 800; letter-spacing: .03em;
}

/* ── "How to use" mini-guide ──────────────────────────────── */
.sw-howto {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch;
  background: linear-gradient(135deg,#fffbeb,#fff7e6);
  border: 1px solid #fde68a; border-radius: var(--r12);
  padding: 14px 16px; margin-bottom: 20px;
}
.sw-howto__label {
  display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #b45309;
  padding-right: 14px; border-right: 1px solid #fde68a; white-space: nowrap;
}
.sw-howto__label svg { width: 15px; height: 15px; }
.sw-howto__steps { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; align-items: center; }
.sw-howto__step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #78350f; line-height: 1.4; }
.sw-howto__num {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: #f59e0b; color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.sw-howto__arrow { color: #d97706; opacity: .5; font-weight: 700; }
@media (max-width: 640px) {
  .sw-howto { flex-direction: column; gap: 10px; }
  .sw-howto__label { border-right: none; border-bottom: 1px solid #fde68a; padding-right: 0; padding-bottom: 8px; }
  .sw-howto__steps { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sw-howto__arrow { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   v14 — MOBILE POLISH (header, trust/stats bands, margins)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Trust band: stack label above logos, make it look intentional */
  .sw-trustband { padding: 22px 0; }
  .sw-trustband__inner { flex-direction: column; gap: 12px !important; padding: 0 16px !important; text-align: center; }
  .sw-trustband__label { font-size: 10px; }
  .sw-trustband__logos { gap: 16px 18px !important; justify-content: center; }
  .sw-trustband__logo { font-size: 14px; }

  /* Stats band: 2x2 grid with visible styling */
  .sw-statsband { padding: 40px 0; }
  .sw-statsband__inner { grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; padding: 0 16px !important; }
  .sw-statsband__val { font-size: 30px; }
  .sw-statsband__lbl { font-size: 12px; }
}

/* ── Global mobile side gutters: ~10px from screen edge ──── */
@media (max-width: 640px) {
  .sw-nav { padding-left: 10px !important; padding-right: 10px !important; }
  .sw-wrap { padding-left: 10px !important; padding-right: 10px !important; }
  .section-inner { padding-left: 10px !important; padding-right: 10px !important; }
  .footer-main { padding-left: 10px !important; padding-right: 10px !important; }
  .footer-bottom-inner { padding-left: 10px !important; padding-right: 10px !important; }
  /* inline sections with big side padding */
  section[style*="padding:0 56px"], div[style*="padding:0 56px"],
  section[style*="padding:0 60px"], div[style*="padding:0 60px"] {
    padding-left: 10px !important; padding-right: 10px !important;
  }
  section[style*="background:#0a2c30"] > div,
  section[style*="background:#f4f7f6"] > div,
  .sw-trustband__inner, .sw-statsband__inner {
    padding-left: 10px !important; padding-right: 10px !important;
  }
  /* CTA "Ready to publish" band → 90% width, tighter padding */
  div[style*="border-radius:24px"][style*="padding:56px 60px"],
  div[style*="border-radius:24px"][style*="padding:56px"] {
    padding: 28px 20px !important;
  }
  section[style*="padding:0 0 80px"] > div { padding-left: 10px !important; padding-right: 10px !important; }
}

/* ── Footer 4-col responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .sw-tool-footer { margin-top: 200px; padding: 32px 0; }
  .sw-tool-footer__grid--4 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sw-tool-footer__inner { padding: 0 16px; }
}
@media (max-width: 460px) {
  .sw-tool-footer { margin-top: 160px; }
  .sw-tool-footer__grid--4 { grid-template-columns: 1fr; }
  .sw-tool-footer__inner { padding: 0 10px; }
}

/* ── SEO content block at bottom of tool pages ────────────── */
.sw-seo {
  max-width: 760px; margin: 56px auto 0; padding: 32px 0 0;
  border-top: 1px solid var(--line);
}
.sw-seo h2 { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; margin: 0 0 12px; }
.sw-seo h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 26px 0 8px; }
.sw-seo p { font-size: 14.5px; line-height: 1.75; color: var(--ink2); margin: 0 0 14px; }
.sw-seo ul { margin: 0 0 14px; padding-left: 20px; }
.sw-seo li { font-size: 14.5px; line-height: 1.7; color: var(--ink2); margin-bottom: 6px; }
.sw-seo strong { color: var(--ink); font-weight: 600; }
.sw-seo a { color: var(--green); text-decoration: none; font-weight: 600; }
.sw-seo a:hover { text-decoration: underline; }
@media (max-width: 640px){ .sw-seo { margin-top: 40px; padding: 0 10px; } .sw-seo h2 { font-size: 18px; } }

/* ═══════════════════════════════════════════════════════════
   PREMIUM — inline limit message + lock overlay
   ═══════════════════════════════════════════════════════════ */
.sw-limitmsg {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fffaf2; border: 1px solid #fde4b8; border-left: 4px solid #f59e0b;
  border-radius: 12px; padding: 18px 20px; margin-top: 4px;
}
.sw-limitmsg__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: #fef3c7; color: #b45309; display: flex; align-items: center; justify-content: center;
}
.sw-limitmsg__title { font-size: 15px; font-weight: 700; color: #92400e; margin-bottom: 5px; }
.sw-limitmsg__text { font-size: 13.5px; line-height: 1.6; color: #78532a; margin-bottom: 14px; }
.sw-limitmsg__text strong { color: #92400e; }
.sw-limitmsg__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sw-limitmsg__link { font-size: 13px; color: #b45309; font-weight: 600; text-decoration: none; }
.sw-limitmsg__link:hover { text-decoration: underline; }
@media (max-width: 560px){ .sw-limitmsg { flex-direction: column; gap: 10px; } }

.sw-btn--ghost { background: transparent; color: var(--ink2); border: 1px solid var(--line); }
.sw-btn--ghost:hover { background: var(--bg2); }

/* Premium lock on results container */
.sw-locked { position: relative; max-height: 520px; overflow: hidden; }
.sw-lock {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 38%, rgba(255,255,255,.92) 62%, #fff 100%);
}
.sw-lock__box {
  text-align: center; max-width: 460px; padding: 28px 26px 30px; margin: 0 14px 8px;
}
.sw-lock__badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #b45309; background: #fffbeb; border: 1px solid #fde68a; padding: 5px 12px; border-radius: 99px; margin-bottom: 14px;
}
.sw-lock__title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.sw-lock__desc { font-size: 14.5px; line-height: 1.7; color: var(--ink2); margin: 0 0 20px; }
.sw-lock__foot { margin-top: 14px; font-size: 13px; color: var(--ink3); }
.sw-lock__foot a { color: var(--green); font-weight: 600; text-decoration: none; }
@media (max-width: 640px){ .sw-locked { max-height: 440px; } .sw-lock__title { font-size: 19px; } }
