/* =================================================================
   labconvert — network lab file converter
   Inter (sans) + JetBrains Mono (technical labels)
   utility tool aesthetic — cool grey-blue paper, electric blue accent
   ================================================================= */

/* ---------- tokens ---------- */
:root {
  /* paper / surfaces */
  --bg:        #EFF3F8;
  --bg-2:      #E5EBF2;
  --surface:   #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F5FA;

  /* ink */
  --ink:    #0F1A2E;
  --ink-2:  #1E293B;
  --ink-3:  #475569;
  --ink-4:  #64748B;
  --ink-5:  #94A3B8;
  --ink-6:  #CBD5E1;

  /* lines */
  --line:   #E2E8F0;
  --line-2: #D6DEE8;
  --line-3: #CBD5E1;

  /* brand / action */
  --blue:      #1565D8;
  --blue-2:    #0E4FB2;
  --blue-3:    #093883;
  --blue-soft: #DCE9FB;
  --blue-tint: #F1F6FD;

  /* status */
  --up:        #16A34A;
  --up-2:      #15803D;
  --up-soft:   #DCFCE7;
  --up-glow:   rgba(22, 163, 74, 0.45);
  --warn:      #D97706;
  --warn-soft: #FEF3C7;
  --red:       #DC2626;

  /* per-format (lab type) palettes — each network-lab format gets a signature
     accent. *-ink = AA-contrast text on *-soft; *-soft = badge/tint fill;
     *-line = hairline border. gns3 stays on the brand blue; netlab uses green. */
  --pt:      #EA580C;  --pt-ink:     #C2410C;  --pt-soft:     #FFEDD5;  --pt-line:     #FED7AA;
  --gns3:    #1565D8;  --gns3-ink:   #0E4FB2;  --gns3-soft:   #DCE9FB;  --gns3-line:   #C3DAFA;
  --clab:    #0D9488;  --clab-ink:   #0F766E;  --clab-soft:   #CCFBF1;  --clab-line:   #99F6E4;
  --eve:     #7C3AED;  --eve-ink:    #6D28D9;  --eve-soft:    #EDE9FE;  --eve-line:    #DDD6FE;
  --cml:     #E11D48;  --cml-ink:    #BE123C;  --cml-soft:    #FFE4E6;  --cml-line:    #FECDD3;
  --netlab:  #16A34A;  --netlab-ink: #15803D;  --netlab-soft: #DCFCE7;  --netlab-line: #BBF7D0;

  /* type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Menlo', 'Consolas', monospace;

  /* radii */
  --r-sm: 4px;
  --r:    6px;
  --r-md: 8px;
  --r-lg: 12px;

  /* shadows */
  --sh-1: 0 1px 2px rgba(15, 26, 46, 0.04);
  --sh-2: 0 1px 3px rgba(15, 26, 46, 0.06), 0 1px 2px rgba(15, 26, 46, 0.04);
  --sh-3: 0 4px 12px rgba(15, 26, 46, 0.08), 0 2px 4px rgba(15, 26, 46, 0.04);
  --sh-4: 0 10px 30px rgba(15, 26, 46, 0.10), 0 4px 10px rgba(15, 26, 46, 0.05);

  /* layout */
  --max-w:        1180px;
  --pad-x:        24px;
  --sidebar-w:    260px;
  --mobilebar-h:  56px;
  --topbar-h:     0px;       /* sidebar replaces it on desktop */

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input { font: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; }
/* honor the HTML `hidden` attribute everywhere — many of our component
   rules set an explicit `display:` which would otherwise win. */
[hidden] { display: none !important; }

/* ---------- thin custom scrollbars (global) ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 4px;
  border: 1.5px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--ink-5);
  background-clip: padding-box;
  border: 1.5px solid transparent;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* When the modal is open, freeze infinite background animations so the
   GPU isn't repainting underneath the modal panel while the user types. */
body.is-modal-open .hero::before,
body.is-modal-open .hub__flow line,
body.is-modal-open .hub__center-fill,
body.is-modal-open .led--up {
  animation-play-state: paused !important;
}
/* And lock the underlying page so the modal feels modal, not a tab. */
body.is-modal-open { overflow: hidden; }

/* ---------- base ---------- */
body {
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 92% -10%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(800px 500px at -10% 60%, rgba(220, 233, 251, 0.5), transparent 60%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection { background: var(--blue-soft); color: var(--blue-3); }

.muted { color: var(--ink-4); }

/* ---------- brand mark / wordmark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.brand__mark { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.brand__mark circle { fill: currentColor; }
.brand__mark .brand__hub { fill: currentColor; }
.brand__spokes line {
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.55;
  fill: none;
}
.brand__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* ---------- LED status indicator ---------- */
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-6);
  box-shadow: inset 0 0 1.5px rgba(0, 0, 0, 0.18);
  vertical-align: middle;
  flex-shrink: 0;
}
.led--up {
  background: var(--up);
  box-shadow: 0 0 5px var(--up-glow), inset 0 0 1px rgba(0, 0, 0, 0.2);
  animation: led-breathe 2.6s ease-in-out infinite;
}
@keyframes led-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.68; }
}

/* =================================================================
   APP LAYOUT  —  persistent sidebar + main column
   ================================================================= */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  align-items: stretch;
}

.main {
  min-width: 0;          /* prevents grid blowout from long content */
  display: flex;
  flex-direction: column;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: stretch;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  overflow-y: auto;
  /* stop scroll-chaining: when the sidebar's inner scroll hits top/bottom,
     the wheel/swipe event shouldn't bubble up and scroll the main column */
  overscroll-behavior: contain;
  z-index: 30;
}

.sidebar__close {
  display: none;        /* mobile-only */
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.sidebar__close svg { width: 14px; height: 14px; }
.sidebar__close:hover { background: var(--surface-2); color: var(--ink); }

.sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 18px;
  color: var(--ink);
}
.sidebar__brand .brand__mark { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.sidebar__brand .brand__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar__group {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 12px 10px 6px;
  font-weight: 500;
}
.sidebar__group:first-of-type { padding-top: 4px; }

.sidebar__link {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  transition: background 140ms, color 140ms;
  position: relative;
}
.sidebar__link svg {
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  transition: color 140ms;
}
.sidebar__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.sidebar__link:hover svg { color: var(--ink-3); }
.sidebar__link.is-active {
  background: var(--blue-tint);
  color: var(--blue-2);
}
.sidebar__link.is-active svg { color: var(--blue); }
.sidebar__link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
}

.sidebar__quota {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 5px;
  letter-spacing: 0.02em;
}
.sidebar__quota b { color: var(--up-2); font-weight: 600; }
.sidebar__quota .muted { color: var(--ink-5); margin-left: 0; }
.sidebar__link.is-active .sidebar__quota {
  background: var(--surface);
  border-color: var(--blue-soft);
}

.sidebar__spacer { flex: 1 0 14px; }

/* signed-out state */
.sidebar__account {
  padding: 8px 0 4px;
}
.sidebar__signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 140ms var(--ease);
}
.sidebar__signin:hover {
  background: var(--blue-2);
  box-shadow: 0 2px 8px rgba(21, 101, 216, 0.25);
}
.sidebar__signin svg { width: 14px; height: 14px; }
.sidebar__signin-hint {
  display: block;
  padding: 8px 4px 0;
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.45;
}

/* signed-in state */
.sidebar__profile {
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
}
.sidebar__profile-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 4px 10px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.sidebar__profile-head .profile__avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.sidebar__profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sidebar__profile-email {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar__profile-plan {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  border-radius: 3px;
  padding: 1px 5px;
  align-self: flex-start;
  font-weight: 600;
}

.sidebar__item {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  width: 100%;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: background 140ms, color 140ms;
}
.sidebar__item svg {
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  transition: color 140ms;
}
.sidebar__item:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.sidebar__item:hover svg { color: var(--ink-3); }
.sidebar__item--accent {
  color: var(--blue);
}
.sidebar__item--accent svg { color: var(--blue); }
.sidebar__item--accent:hover {
  background: var(--blue-tint);
  color: var(--blue-2);
}

.sidebar__history {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.sidebar__history-head {
  padding: 0 10px 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.sidebar__history .profile__history { max-height: 200px; }

.sidebar__foot {
  margin-top: 14px;
  padding: 12px 10px 6px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
}
.sidebar__foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
}
.sidebar__foot-row a {
  color: var(--ink-3);
  padding: 2px 0;
  transition: color 140ms;
}
.sidebar__foot-row a:hover { color: var(--blue); }
.sidebar__foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
  font-size: 10.5px;
  color: var(--ink-5);
  letter-spacing: 0.02em;
}
/* legacy class kept for the in-row separators that no longer exist */
.sidebar__foot-sep { color: var(--ink-5); }


/* ---------- MOBILE HEADER (only visible <= 960px) ---------- */
.mobilebar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--mobilebar-h);
  align-items: center;
  padding: 0 var(--pad-x);
  gap: 12px;
}
.mobilebar__burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}
.mobilebar__burger span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink-2);
  border-radius: 1px;
}
.mobilebar__brand .brand__mark { width: 22px; height: 22px; color: var(--blue); }
.mobilebar__brand .brand__name { font-size: 15px; }
.mobilebar__quota {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.55);
  /* no backdrop-filter — see modal__backdrop comment */
  z-index: 29;
  animation: fadeIn 200ms var(--ease);
}


/* ---------- RESULT 2-COL GRID  (topology | detected) ---------- */
.result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.result__grid > .topo-card,
.result__grid > .detected {
  margin-top: 0;
}


/* legacy topbar — class kept only because old .topbar__quota survives in
   the mobile-bar's quota pill. The original topbar element is gone. */
.topbar { display: none !important; }


/* ---------- topbar (utility chrome) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar__collapsible {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
}

.topbar__nav {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.topbar__nav a {
  padding: 6px 0;
  position: relative;
  transition: color 160ms;
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.topbar__nav a:hover::after { transform: scaleX(1); }

.topbar__account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: color 160ms, border-color 160ms, background 160ms;
  flex-shrink: 0;
}
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn:hover {
  color: var(--ink);
  border-color: var(--ink-6);
  background: var(--surface-2);
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  transition: all 160ms var(--ease);
  white-space: nowrap;
}
.btn-signin svg { width: 12px; height: 12px; }
.btn-signin:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue-2);
  box-shadow: 0 1px 2px rgba(21, 101, 216, 0.18);
  transform: translateY(-1px);
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.topbar__quota b { color: var(--up-2); font-weight: 600; font-size: 12.5px; }
.topbar__quota .muted { color: var(--ink-5); margin-left: 1px; }

.topbar__burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: border-color 160ms, background 160ms;
  flex-shrink: 0;
}
.topbar__burger:hover { border-color: var(--ink-6); background: var(--surface-2); }
.topbar__burger span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink-2);
  border-radius: 1px;
  transition: transform 220ms var(--ease), opacity 220ms;
}
.topbar.is-menu-open .topbar__burger span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.topbar.is-menu-open .topbar__burger span:nth-child(2) { opacity: 0; }
.topbar.is-menu-open .topbar__burger span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- section heads (shared) ---------- */
.section-head {
  margin-bottom: 36px;
  text-align: center;
}
.section-head--left { text-align: left; }
.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 3px 10px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.section-head--left h2 { margin-left: 0; }
.section-head p {
  font-size: 15.5px;
  color: var(--ink-3);
  max-width: 60ch;
  margin: 12px auto 0;
  line-height: 1.55;
}
.section-head--left p { margin-left: 0; }

/* ---------- HERO ---------- */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}
/* subtle breathing radial glow behind the converter */
.hero::before {
  content: "";
  position: absolute;
  top: 38%;
  left: 50%;
  width: 880px;
  height: 880px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 101, 216, 0.06) 0%, rgba(21, 101, 216, 0.025) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  animation: hero-breathe 9s ease-in-out infinite;
}
@keyframes hero-breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

/* hero title line-stagger reveal on initial load */
.hero__title .title-reveal {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: title-reveal 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) forwards;
}
@keyframes title-reveal {
  to { opacity: 1; transform: none; }
}

.hero__head {
  text-align: center;
  margin-bottom: 32px;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: var(--sh-1);
}

.hero__title {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto 18px;
}
.hero__title .hi {
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.88em;
  display: inline-block;
  vertical-align: 0.04em;
  padding: 0 0.16em;
  border-bottom: 2px solid var(--blue-soft);
}
/* subtle gradient on the highlighted word — falls back to solid --blue where
   background-clip:text isn't supported (text stays readable either way). */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title .hi {
    background: linear-gradient(92deg, var(--blue) 0%, #6D5BD9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero__sub {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- THE CONVERTER (centerpiece) ---------- */
.converter {
  max-width: 720px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  overflow: hidden;
  position: relative;
}
.converter::before {
  /* subtle top accent edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--blue) 30%, var(--blue) 70%, transparent);
  opacity: 0.7;
}

/* drop zone */
.drop {
  display: block;
  margin: 22px;
  padding: 36px 24px;
  background: var(--surface-3);
  border: 1.5px dashed var(--line-3);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
  position: relative;
}
.drop:hover,
.drop:focus-within,
.drop.is-over {
  border-color: var(--blue);
  background: var(--blue-tint);
}
.drop.is-over { transform: translateY(-1px); }
.drop:focus { outline: none; box-shadow: 0 0 0 3px rgba(21, 101, 216, 0.18); }

.drop__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  border: 1.5px solid var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms var(--ease);
}
.drop__icon svg { width: 26px; height: 26px; }
.drop:hover .drop__icon { transform: translateY(-3px); }

.drop__text { margin-bottom: 16px; }
.drop__text strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin-bottom: 2px;
}
.drop__text span {
  font-size: 13.5px;
  color: var(--ink-4);
}

.drop__formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  max-width: 540px;
}
.drop__formats li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  background: var(--surface);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  letter-spacing: -0.005em;
}

/* target chips */
.converter__targets {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}
.converter__targets-lbl {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  text-transform: uppercase;
  font-weight: 500;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all 160ms var(--ease);
  letter-spacing: -0.005em;
}
.chip:hover span {
  border-color: var(--ink-6);
  color: var(--ink);
}
.chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue-2);
  color: white;
  box-shadow: 0 1px 0 var(--blue-2) inset;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* try-sample link under drop zone */
.trysample {
  display: flex;
  justify-content: center;
  padding: 6px 20px 16px;
}
.trysample__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-3);
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  transition: color 160ms, border-color 160ms, background 160ms;
  cursor: pointer;
}
.trysample__btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-tint);
}
.trysample__btn svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }
.trysample__btn strong { font-weight: 600; color: inherit; }

/* action row — centered convert button */
.converter__action {
  display: flex;
  justify-content: center;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

/* result panel — appears after conversion */
.result {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
  animation: result-in 360ms var(--ease);
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.result[hidden] { display: none; }

.result__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.result__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--up-soft);
  color: var(--up-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.result__check svg { width: 16px; height: 16px; }
.result__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.result__title strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.result__title span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}
.result__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.result__share,
.result__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 160ms var(--ease);
  white-space: nowrap;
  font-family: var(--sans);
}
.result__share:hover,
.result__reset:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.result__share svg,
.result__reset svg { width: 12px; height: 12px; }
.result__share.is-copied {
  background: var(--up-soft);
  border-color: #BBE5C6;
  color: var(--up-2);
}
.result__share.is-copied svg { color: var(--up-2); }
.result__share[disabled] { opacity: 0.6; cursor: default; }

/* persistent share-URL panel (inside result panel after share is clicked) */
.result__share-panel {
  margin-top: 10px;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, var(--blue-tint) 0%, #F4F9FE 100%);
  border: 1px solid var(--blue-soft);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: result-in 280ms var(--ease);
}
.result__share-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.result__share-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-2);
  font-weight: 600;
}
.result__share-panel-label svg { width: 12px; height: 12px; }
.result__share-panel-meta {
  color: var(--ink-4);
  letter-spacing: 0.02em;
  text-transform: none;
}
.result__share-panel-meta strong { color: var(--ink-2); font-weight: 600; }
.result__share-panel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 8px;
  background: white;
  border: 1px solid var(--blue-soft);
  border-radius: var(--r-sm);
  padding: 2px 2px 2px 12px;
}
.result__share-url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: none;
  border: none;
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
  letter-spacing: -0.005em;
  min-width: 0;
}
.result__share-recopy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 140ms;
  white-space: nowrap;
}
.result__share-recopy svg { width: 13px; height: 13px; }
.result__share-recopy:hover {
  background: var(--blue);
  color: white;
}
.result__share-recopy.is-copied {
  background: var(--up-2);
  color: white;
}

/* shared-mode banner */
.share-banner {
  position: sticky;
  top: var(--topbar-h);
  z-index: 44;
  background: linear-gradient(180deg, var(--blue-tint) 0%, #F6FAFF 100%);
  border-bottom: 1px solid var(--blue-soft);
  animation: verify-slide 320ms var(--ease);
}
.share-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.share-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  color: var(--blue);
  flex-shrink: 0;
}
.share-banner__icon svg { width: 16px; height: 16px; }
.share-banner__text { flex: 1; min-width: 0; }
.share-banner__text strong { color: var(--ink); margin-right: 4px; }
.share-banner__text a {
  color: var(--blue);
  border-bottom: 1px solid var(--blue-soft);
  font-weight: 500;
  margin-left: 4px;
}
.share-banner__text a:hover { border-bottom-color: var(--blue); }
.share-banner__close {
  background: transparent; border: 0;
  font-size: 20px; line-height: 1;
  color: var(--ink-4); cursor: pointer;
  padding: 2px 6px; flex-shrink: 0;
}
.share-banner__close:hover { color: var(--ink); }

.result__files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result__file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 160ms, background 160ms;
}
.result__file:hover {
  border-color: var(--line-3);
  background: var(--surface-3);
}
.result__file-ext {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  letter-spacing: -0.005em;
  flex-shrink: 0;
}
.result__file-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.result__file-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result__file-size {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}
.result__file-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue-2);
  border-radius: var(--r);
  transition: all 160ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.result__file-dl:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(21, 101, 216, 0.18);
}
.result__file-dl svg { width: 12px; height: 12px; }

.result__preview {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  overflow: hidden;
}
.result__preview summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
  transition: background 160ms;
}
.result__preview summary::-webkit-details-marker { display: none; }
.result__preview summary:hover { background: var(--surface-3); }
.result__preview summary svg {
  width: 12px;
  height: 12px;
  transition: transform 200ms var(--ease);
}
.result__preview[open] summary svg { transform: rotate(180deg); }
.result__preview pre {
  margin: 0;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--ink-6);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.result__preview pre code { color: inherit; background: none; padding: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: -0.005em;
  border-radius: var(--r);
  transition: all 160ms var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue-2);
  box-shadow: 0 1px 0 var(--blue-2) inset, 0 1px 2px rgba(21, 101, 216, 0.18);
  font-weight: 600;
  padding: 11px 22px;
}
.btn--primary:hover {
  background: var(--blue-2);
  border-color: var(--blue-3);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 var(--blue-3) inset, 0 4px 12px rgba(21, 101, 216, 0.28);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 var(--blue-2) inset;
}
/* "armed" state — file loaded, gently inviting the click */
.btn--primary.is-armed {
  animation: armed-pulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes armed-pulse {
  0%, 100% {
    box-shadow:
      0 1px 0 var(--blue-2) inset,
      0 2px 6px rgba(21, 101, 216, 0.22),
      0 0 0 0 rgba(21, 101, 216, 0.32);
  }
  50% {
    box-shadow:
      0 1px 0 var(--blue-2) inset,
      0 4px 14px rgba(21, 101, 216, 0.34),
      0 0 0 8px rgba(21, 101, 216, 0);
  }
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--ink-5);
  background: var(--surface-2);
}
.btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}
.btn--lg {
  padding: 13px 30px;
  font-size: 15px;
}
.btn--lg svg { width: 15px; height: 15px; }
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- GALLERY of curated labs ---------- */
.gallery {
  padding: 32px 0 24px;
}
.gallery__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.gallery__kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}
.gallery__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.gallery__hint {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms, box-shadow 200ms;
  font-family: var(--sans);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--sh-2);
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.gallery-card:hover::after { transform: scaleX(1); }
.gallery-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.gallery-card__ext {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  letter-spacing: -0.005em;
}
.gallery-card__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.gallery-card__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.gallery-card__desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.gallery-card[disabled],
.gallery-card.is-loading {
  cursor: progress;
  opacity: 0.7;
}

/* ---------- TRUST BADGES strip ---------- */
.trust {
  padding: 16px 0 28px;
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.trust__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  letter-spacing: -0.005em;
}
.trust__badge svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ---------- HOW IT WORKS ---------- */
.howit {
  padding: 72px 0 64px;
}
.howit__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.howit__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  counter-reset: howit;
  position: relative;
}
.howit__steps::before {
  /* horizontal dashed connector behind the steps */
  content: "";
  position: absolute;
  top: 64px;
  left: 16%;
  right: 16%;
  height: 1px;
  background-image: linear-gradient(to right, var(--line-3) 50%, transparent 50%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  z-index: 0;
}
.howit__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px 22px;
  position: relative;
  z-index: 1;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms;
}
.howit__step:hover {
  transform: translateY(-2px);
  border-color: var(--line-3);
  box-shadow: var(--sh-2);
}
.howit__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 14px;
}
.howit__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.howit__icon svg { width: 22px; height: 22px; }
.howit__step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.howit__step p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ---------- USE CASES (personas) ---------- */
.uses {
  padding: 64px 0 64px;
}
.uses__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.uses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.use {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms;
  position: relative;
  overflow: hidden;
}
.use::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
}
.use:hover {
  transform: translateY(-2px);
  border-color: var(--line-3);
  box-shadow: var(--sh-2);
}
.use:hover::before { transform: scaleX(1); }
.use__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.use__icon svg { width: 26px; height: 26px; }
.use h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.use p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ---------- FORMATS section ---------- */
.formats {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, transparent 0%, var(--surface-3) 70%, transparent 100%);
}
.formats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.formats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 32px 0 48px;
}
.fmt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 14px 14px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  position: relative;
  overflow: hidden;
}
.fmt-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.fmt-card:hover {
  transform: translateY(-2px);
  border-color: var(--fc-line);
  box-shadow: var(--sh-2);
}
.fmt-card:hover::before { transform: scaleX(1); }

.fmt-card__ext {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-ink);
  background: var(--fc-soft);
  border: 1px solid var(--fc-line);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.fmt-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.fmt-card__detail {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  margin-top: 6px;
  letter-spacing: -0.005em;
}

/* per-format accent: a sensible blue default, then mapped by data-fmt.
   Shared by the format cards and the hub nodes so a lab type reads the same
   colour everywhere it appears. */
.fmt-card, .hub__node {
  --fc: var(--blue); --fc-ink: var(--blue); --fc-soft: var(--blue-tint); --fc-line: var(--blue-soft);
}
.fmt-card[data-fmt="pt"],     .hub__node[data-fmt="pt"]     { --fc: var(--pt);     --fc-ink: var(--pt-ink);     --fc-soft: var(--pt-soft);     --fc-line: var(--pt-line); }
.fmt-card[data-fmt="gns3"],   .hub__node[data-fmt="gns3"]   { --fc: var(--gns3);   --fc-ink: var(--gns3-ink);   --fc-soft: var(--gns3-soft);   --fc-line: var(--gns3-line); }
.fmt-card[data-fmt="clab"],   .hub__node[data-fmt="clab"]   { --fc: var(--clab);   --fc-ink: var(--clab-ink);   --fc-soft: var(--clab-soft);   --fc-line: var(--clab-line); }
.fmt-card[data-fmt="eve"],    .hub__node[data-fmt="eve"]    { --fc: var(--eve);    --fc-ink: var(--eve-ink);    --fc-soft: var(--eve-soft);    --fc-line: var(--eve-line); }
.fmt-card[data-fmt="cml"],    .hub__node[data-fmt="cml"]    { --fc: var(--cml);    --fc-ink: var(--cml-ink);    --fc-soft: var(--cml-soft);    --fc-line: var(--cml-line); }
.fmt-card[data-fmt="netlab"], .hub__node[data-fmt="netlab"] { --fc: var(--netlab); --fc-ink: var(--netlab-ink); --fc-soft: var(--netlab-soft); --fc-line: var(--netlab-line); }

/* hub diagram (small, supporting) */
.formats__hub {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--sh-1);
}
.formats__hub .hub {
  width: 100%;
  max-width: 420px;
  height: auto;
  color: var(--ink);
}
.hub__spokes line {
  stroke: var(--line-3);
  stroke-width: 1.3;
}
.hub__flow line {
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-dasharray: 3 14;
  opacity: 0.85;
  animation: flow 2.6s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}
.hub__center circle {
  fill: var(--blue);
  stroke: var(--blue-2);
  stroke-width: 1;
}
.hub__center-l1, .hub__center-l2 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  fill: white;
  letter-spacing: 0.04em;
}
.hub__node rect {
  fill: var(--surface);
  stroke: var(--ink-6);
  stroke-width: 1;
}
.hub__node text {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: -0.005em;
}
.hub__node rect { transition: fill 160ms var(--ease), stroke 160ms var(--ease); }
.hub__node:hover rect { fill: var(--fc-soft); stroke: var(--fc); }
.hub__node:hover text { fill: var(--fc-ink); }

.formats__hub-cap {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 44ch;
}

/* ---------- WHY ---------- */
.why { padding: 72px 0 64px; }
.why__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.why-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}
.why-card__num {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.why-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}
.why-card p code {
  font-size: 0.86em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink-2);
}
.why-card--num {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  border-color: var(--blue-2);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.why-card--num:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21, 101, 216, 0.28); }
.why-card__big {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: white;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}
.why-card__big span {
  font-size: 28px;
  margin-left: 2px;
  opacity: 0.7;
  font-weight: 500;
}
.why-card__big-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}
.why-card__big-label strong { color: white; font-weight: 600; }

/* ---------- PRICING ---------- */
.pricing {
  padding: 72px 0 64px;
  background: var(--surface-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pricing__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.plan:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}
.plan--featured {
  border-color: var(--blue);
  border-width: 1.5px;
  box-shadow: 0 1px 0 var(--blue) inset, var(--sh-3);
}
.plan--featured:hover { box-shadow: 0 1px 0 var(--blue) inset, var(--sh-4); }

.plan__head { position: relative; }
.plan__badge {
  position: absolute;
  top: -36px;
  right: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--blue);
  color: white;
  border-radius: 100px;
  box-shadow: var(--sh-1);
}
.plan__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan__tag {
  font-size: 13px;
  color: var(--ink-4);
  margin-top: 4px;
  font-style: italic;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.plan__amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.plan__period {
  font-size: 14px;
  color: var(--ink-4);
}
.plan__alt {
  width: 100%;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 2px;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
  margin: 0;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.plan__features li.off { color: var(--ink-5); }
.plan__features strong { color: var(--ink); font-weight: 600; }

.check, .x {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  margin-top: 2px;
}
.check {
  background: var(--up-soft);
  color: var(--up-2);
}
.check::after {
  content: "";
  width: 7px; height: 4px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}
.x {
  background: var(--bg-2);
  color: var(--ink-5);
}
.x::before, .x::after {
  content: "";
  position: absolute;
  width: 8px; height: 1.5px;
  background: currentColor;
}
.x::before { transform: rotate(45deg); }
.x::after  { transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq { padding: 72px 0 96px; }
.faq__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.faq__list {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 0; }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.01em;
  transition: background 160ms;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--surface-2); }
.faq__item summary code {
  font-size: 0.86em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink-2);
}

.faq__plus {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  color: var(--ink-4);
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  left: 50%; top: 50%;
}
.faq__plus::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__plus::after  { width: 1.5px; height: 12px; transform: translate(-50%, -50%); transition: transform 200ms var(--ease); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__item[open] summary { background: var(--surface-2); }

.faq__body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.faq__body p { margin: 0; }
.faq__body code {
  font-size: 0.86em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink-2);
}

/* ---------- FROM THE MAKER ---------- */
.maker {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, transparent 0%, var(--surface-3) 100%);
}
.maker__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.maker__inner::before {
  /* small accent corner */
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  width: 36px;
  height: 3px;
  background: var(--blue);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.maker__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(21, 101, 216, 0.22);
}
.maker__avatar span {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.maker__body { min-width: 0; }
.maker__kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.maker__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.maker__lede em {
  color: var(--ink);
  font-style: italic;
}
.maker__sign {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}
.maker__sign a {
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
  transition: color 160ms, border-color 160ms;
}
.maker__sign a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ---------- STATUSBAR FOOTER ---------- */
.statusbar {
  background: var(--ink);
  color: var(--ink-6);
  padding: 24px 0 16px;
  font-size: 13px;
}
.statusbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.statusbar__l, .statusbar__r {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-5);
  flex-wrap: wrap;
}
.statusbar__l .brand__mark { color: white; }
.statusbar__brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: white;
  letter-spacing: -0.012em;
}
.statusbar__sep { color: rgba(255, 255, 255, 0.22); }
.statusbar__ver { color: var(--ink-6); }
.statusbar__l a { color: var(--ink-6); border-bottom: 1px solid transparent; transition: border-color 160ms; }
.statusbar__l a:hover { border-bottom-color: var(--ink-6); }
.statusbar__r a {
  color: var(--ink-6);
  padding: 4px 0;
  transition: color 160ms;
}
.statusbar__r a:hover { color: white; }

.statusbar__copy {
  max-width: var(--max-w);
  margin: 18px auto 0;
  padding: 14px var(--pad-x) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* ---------- chips "select all" shortcut ---------- */
.chips__all {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 160ms var(--ease);
  margin-left: 4px;
}
.chips__all:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.chips__all.is-on { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); border-style: solid; }

/* ---------- RECOMMENDATION banner ---------- */
.recommend {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--blue-tint) 0%, #F6FAFF 100%);
  border: 1px solid var(--blue-soft);
  border-radius: var(--r);
  animation: result-in 360ms var(--ease);
}
.recommend[hidden] { display: none; }
.recommend__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
}
.recommend__icon svg { width: 16px; height: 16px; }
.recommend__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.recommend__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.recommend__target {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.recommend__reason {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: 2px;
}
.recommend__apply {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  background: white;
  border: 1px solid var(--blue);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 160ms var(--ease);
}
.recommend__apply:hover { background: var(--blue); color: white; }

/* ---------- DETECTED stats panel (protocols + VLANs) ---------- */
.detected {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  overflow: hidden;
}
.detected[hidden] { display: none; }
.detected__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.detected__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.detected__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
}
.detected__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detected__group {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 12px;
}
.detected__group[hidden] { display: none; }
.detected__group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.detected__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.detected__chips li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  letter-spacing: -0.005em;
}
.detected__chips--vlan li {
  color: var(--blue-2);
  background: var(--blue-tint);
  border-color: var(--blue-soft);
}

/* ---------- TOPOLOGY preview inside result panel ---------- */
.topo-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  overflow: hidden;
  animation: result-in 360ms var(--ease);
}
.topo-card[hidden] { display: none; }
.topo-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.topo-card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.topo-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.topo-card__svg {
  padding: 18px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: var(--surface);
}
.topo-card__svg svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}
.topo-card__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.topo-card__legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topo-card__legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---------- API KEYS modal (redesigned) ---------- */
.apikeys-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.apikeys-modal__head {
  margin-bottom: 2px;
}
.apikeys-modal__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apikeys-modal__sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.apikeys-modal__sec-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.apikeys-modal__sec-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-5);
  letter-spacing: 0.02em;
}

/* key list */
.apikeys__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 2px;
}
.apikeys__loading,
.apikeys__empty {
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  letter-spacing: 0.02em;
}
.apikeys__empty {
  font-style: italic;
}
.apikeys__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 140ms;
}
.apikeys__row:hover { border-color: var(--line-3); }
.apikeys__row.is-revoked { opacity: 0.5; background: var(--surface-2); }
.apikeys__row-prefix {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: -0.005em;
}
.apikeys__row.is-revoked .apikeys__row-prefix {
  color: var(--ink-4);
  background: var(--bg-2);
  border-color: var(--line);
}
.apikeys__row-label {
  font-size: 13px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apikeys__row-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.apikeys__row-revoke {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 140ms;
}
.apikeys__row-revoke:hover { background: #FBE9E9; border-color: #F2C6C6; }
.apikeys__row.is-revoked .apikeys__row-revoke { display: none; }
.apikeys__row-revoked {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* generate-new row */
.apikeys__new-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.apikeys__label {
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: var(--sans);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink);
  width: 100%;
}
.apikeys__label:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 216, 0.16);
}
.apikeys__new-row .btn { gap: 6px; padding: 0 16px; }
.apikeys__new-row .btn svg { width: 14px; height: 14px; }

/* just-created section */
.apikeys-modal__section--just {
  padding: 14px;
  background: linear-gradient(180deg, #FFF9E6 0%, #FFF2C7 100%);
  border: 1px solid #F0D89A;
  border-radius: var(--r-md);
  gap: 12px;
}
.apikeys-modal__sec-head--warning {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6A4A0F;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.apikeys-modal__sec-head--warning svg {
  width: 16px;
  height: 16px;
  color: #C99B3F;
  flex-shrink: 0;
}
.apikeys-modal__sec-head--warning strong { color: #4A3408; font-weight: 600; }

.apikeys__token-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0;
  background: white;
  border: 1px solid #E5C786;
  border-radius: var(--r);
  padding: 0 0 0 12px;
}
.apikeys__token {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: none;
  padding: 10px 12px 10px 0;
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
  border: none;
  letter-spacing: -0.005em;
  min-width: 0;
}
.apikeys__token-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #6A4A0F;
  background: transparent;
  border: 0;
  border-left: 1px solid #E5C786;
  cursor: pointer;
  transition: all 140ms;
  white-space: nowrap;
}
.apikeys__token-copy svg { width: 13px; height: 13px; }
.apikeys__token-copy:hover {
  background: #FFF8E8;
  color: #4A3408;
}
.apikeys__token-copy.is-copied { color: var(--up-2); }

/* quick-start tabs */
.apikeys__qs {
  border: 1px solid #E5C786;
  border-radius: var(--r);
  background: white;
  overflow: hidden;
}
.apikeys__qs-tabs {
  display: flex;
  background: #FFFBF0;
  border-bottom: 1px solid #E5C786;
}
.apikeys__qs-tab {
  flex: 1;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: #8C6920;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 140ms, color 140ms;
  letter-spacing: 0.02em;
}
.apikeys__qs-tab:hover { color: #4A3408; }
.apikeys__qs-tab.is-active {
  background: white;
  color: var(--ink);
  font-weight: 600;
}
.apikeys__qs-body {
  position: relative;
  padding: 0;
}
.apikeys__qs-snippet {
  margin: 0;
  padding: 12px 14px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  background: white;
  overflow-x: auto;
  white-space: pre;
  max-height: 220px;
}
.apikeys__qs-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all 140ms;
}
.apikeys__qs-copy svg { width: 11px; height: 11px; }
.apikeys__qs-copy:hover { background: white; border-color: var(--blue); color: var(--blue); }
.apikeys__qs-copy.is-copied {
  background: var(--up-soft);
  border-color: #BBE5C6;
  color: var(--up-2);
}

/* usage reference (collapsible at bottom) */
.apikeys-modal__ref {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  overflow: hidden;
}
.apikeys-modal__ref summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
  transition: background 140ms;
}
.apikeys-modal__ref summary::-webkit-details-marker { display: none; }
.apikeys-modal__ref summary:hover { background: var(--surface-3); }
.apikeys-modal__ref summary svg {
  width: 12px; height: 12px;
  color: var(--ink-4);
  transition: transform 200ms var(--ease);
}
.apikeys-modal__ref[open] summary svg { transform: rotate(180deg); }
.apikeys-modal__ref[open] summary { background: var(--surface-3); border-bottom: 1px solid var(--line); }
.apikeys-modal__ref-body {
  padding: 12px 16px 16px;
  background: white;
}
.apikeys-modal__ref-body p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 8px;
}
.apikeys-modal__ref-body ul {
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apikeys-modal__ref-body li {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.apikeys-modal__ref-body li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--ink-5);
}
.apikeys-modal__ref-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink);
}
.apikeys-modal__ref-body pre {
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--ink-6);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11.5px;
  overflow-x: auto;
}

/* ---------- UPGRADE modal view ---------- */
.modal__view--wide { /* the modal panel widens to fit two plan cards */ }
.modal:has(.modal__view[data-view="upgrade"]:not([hidden])) .modal__panel {
  max-width: 560px;
}
.modal:has(.modal__view[data-view="apikeys"]:not([hidden])) .modal__panel {
  max-width: 600px;
}
.upgrade__kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  padding: 3px 10px;
  background: #FEF3C7;
  border: 1px solid #F0D89A;
  border-radius: 100px;
  margin-bottom: 12px;
}
.upgrade__plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 10px;
}
.upgrade__plan {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.upgrade__plan--alt { background: var(--surface-2); }
.upgrade__plan-head { display: flex; align-items: baseline; justify-content: space-between; }
.upgrade__plan-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.upgrade__plan-price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.upgrade__plan-price small {
  font-size: 11px;
  color: var(--ink-4);
  margin-left: 2px;
  font-weight: 400;
}
.upgrade__plan-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.upgrade__plan-features li::before { content: "·  "; color: var(--ink-4); }
[data-buy][data-upgrade-disabled] {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}
[data-buy][data-upgrade-disabled]::after {
  content: "checkout link not configured";
  position: absolute;
  inset: auto 0 -22px 0;
  font-size: 10px;
  text-transform: lowercase;
  color: var(--ink-4);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- PROFILE menu (replaces Sign-in when authenticated) ---------- */
.profile { position: relative; }
.profile__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 160ms, box-shadow 160ms;
}
.profile__trigger:hover { border-color: var(--blue); }
.profile__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: white;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.profile__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 4px;
  z-index: 60;
  animation: profile-pop 180ms var(--ease);
}
@keyframes profile-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.profile__head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.profile__email {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile__plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.profile__plan-label { color: var(--ink-4); text-transform: uppercase; }
.profile__plan {
  text-transform: uppercase;
  color: var(--blue-2);
  font-weight: 600;
  padding: 2px 6px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  border-radius: 3px;
}
.profile__divider { display: none; }
.profile__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  font-size: 13.5px;
  color: var(--ink-2);
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 120ms;
}
.profile__item:hover { background: var(--surface-2); color: var(--ink); }
.profile__item svg { width: 13px; height: 13px; color: var(--ink-4); flex-shrink: 0; }
.profile__item--accent {
  color: var(--blue);
  font-weight: 600;
}
.profile__item--accent svg { color: var(--blue); }
.profile__item--accent:hover { background: var(--blue-tint); color: var(--blue-2); }

.profile__history-wrap {
  padding: 8px 0 4px;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}
.profile__section-label {
  padding: 4px 14px 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.profile__history {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
}
.profile__history li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--ink-3);
}
.profile__history li:hover { background: var(--surface-2); }
.profile__history-ext {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: -0.005em;
}
.profile__history-targets {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.profile__history-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  text-align: right;
  flex-shrink: 0;
}
.profile__history-empty {
  padding: 8px 14px 12px;
  font-size: 12px;
  color: var(--ink-4);
  font-style: italic;
}

/* ---------- VERIFY EMAIL banner ---------- */
.verify-banner {
  position: sticky;
  top: var(--topbar-h);
  z-index: 45;
  background: linear-gradient(180deg, #FFF7E6 0%, #FFF2D6 100%);
  border-bottom: 1px solid #F0D89A;
  animation: verify-slide 320ms var(--ease);
}
@keyframes verify-slide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.verify-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #6A4A0F;
}
.verify-banner__icon { font-size: 16px; flex-shrink: 0; }
.verify-banner__text { flex: 1; min-width: 0; }
.verify-banner__text strong { color: #4A3408; }
.verify-banner__btn {
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #6A4A0F;
  background: white;
  border: 1px solid #E5C786;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 160ms var(--ease);
  flex-shrink: 0;
}
.verify-banner__btn:hover { background: #FFF8E8; border-color: #C99B3F; color: #4A3408; }
.verify-banner__close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: #B58A3F;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
}
.verify-banner__close:hover { color: #6A4A0F; }

/* ---------- AUTH MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade 220ms var(--ease);
}
@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 46, 0.58);
  /* deliberately NO backdrop-filter — blur over animated content causes
     input lag because every keystroke triggers a re-blur. */
}
.modal__panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 420px;
  padding: 28px 28px 24px;
  box-shadow: var(--sh-4);
  animation: modal-pop 280ms var(--ease);
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-4);
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.modal__close:hover { background: var(--surface-2); color: var(--ink); }

.modal__view { display: block; }
.modal__view[hidden] { display: none; }

.modal__tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  background: var(--surface-3);
  border-radius: var(--r);
  padding: 3px;
}
.modal__tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 160ms var(--ease);
}
.modal__tab:hover { color: var(--ink); }
.modal__tab.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-1);
}

.modal__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.modal__lede {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 18px;
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.modal__field { display: flex; flex-direction: column; gap: 6px; }
.modal__field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.modal__field input {
  padding: 10px 12px;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink);
  transition: border-color 160ms, box-shadow 160ms;
  font-family: var(--sans);
}
.modal__field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 216, 0.16);
}
.modal__hint {
  font-size: 11.5px;
  color: var(--ink-4);
}
.modal__error {
  font-size: 13px;
  color: #B83333;
  background: #FBE9E9;
  border: 1px solid #F2C6C6;
  padding: 8px 12px;
  border-radius: var(--r);
}
.modal__error[hidden] { display: none; }

.modal__links {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.modal__linkbtn {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 140ms;
}
.modal__linkbtn:hover { color: var(--blue); text-decoration: underline; }

.modal__pictogram {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}
.modal__pictogram svg { width: 56px; height: 56px; }
.modal__pictogram--ok { color: var(--up-2); }

.modal[data-view-only="check-email"] .modal__view[data-view="auth"],
.modal[data-view-only="check-email"] .modal__view[data-view="forgot"],
.modal[data-view-only="check-email"] .modal__view[data-view="reset"],
.modal[data-view-only="check-email"] .modal__view[data-view="notice"] { display: none; }

/* ---------- SCROLL REVEAL ---------- */
.reveal-target {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-target.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  /* sidebar becomes an off-canvas drawer */
  :root { --topbar-h: var(--mobilebar-h); }

  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 300px;
    max-width: 86vw;
    transform: translateX(-100%);
    transition: transform 240ms var(--ease);
    box-shadow: 0 0 0 transparent;
    z-index: 40;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(15, 26, 46, 0.18);
  }
  .sidebar__close { display: inline-flex; }
  .mobilebar { display: flex; }
  .sidebar-backdrop:not([hidden]) { display: block; }

  .formats__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .plan--featured { order: -1; }
  .plan__badge { top: 12px; right: 12px; }
  .formats__hub { grid-template-columns: 1fr; }
  .formats__hub .hub { margin: 0 auto; }

  .howit__steps { grid-template-columns: 1fr; gap: 12px; }
  .howit__steps::before { display: none; }
  .uses__grid { grid-template-columns: 1fr; gap: 12px; }

  .result__grid { grid-template-columns: 1fr; }

  .statusbar__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }
  .statusbar__r { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --pad-x: 18px; --topbar-h: 56px; }

  /* topbar collapses: brand + status + burger only on mobile */
  .topbar__inner { gap: 12px; }
  .topbar__collapsible { display: none; }
  .topbar__status {
    margin-left: auto;
    padding: 5px 10px;
    font-size: 11px;
  }
  .topbar__burger { display: inline-flex; }

  /* mobile menu open: show collapsible as a slide-down dropdown */
  .topbar.is-menu-open .topbar__collapsible {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 18px;
    box-shadow: 0 8px 20px rgba(15, 26, 46, 0.06);
    z-index: 49;
    animation: slideDown 240ms var(--ease);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
  .topbar.is-menu-open .topbar__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .topbar.is-menu-open .topbar__nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
    color: var(--ink);
    text-transform: capitalize;
  }
  .topbar.is-menu-open .topbar__nav a:last-of-type { border-bottom: 0; }
  .topbar.is-menu-open .topbar__nav a::after { display: none; }
  .topbar.is-menu-open .topbar__account {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 16px;
    align-items: stretch;
  }
  .topbar.is-menu-open .iconbtn,
  .topbar.is-menu-open .btn-signin {
    width: 100%;
    justify-content: center;
    height: 44px;
    font-size: 14.5px;
  }
  /* backdrop behind dropdown */
  .topbar.is-menu-open::after {
    content: "";
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 26, 46, 0.32);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 48;
    animation: fadeIn 200ms var(--ease);
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .hero { padding: 36px 0 48px; }
  .hero__title { font-size: clamp(30px, 8.5vw, 44px); max-width: 16ch; }
  .hero__sub { font-size: 15.5px; }

  .converter { margin-top: 28px; }
  .drop { padding: 26px 16px; margin: 16px; }
  .drop__icon { width: 46px; height: 46px; }
  .drop__icon svg { width: 22px; height: 22px; }
  .drop__text strong { font-size: 16px; }
  .converter__targets {
    padding: 14px 16px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .converter__targets-lbl { font-size: 11px; }
  .converter__action { padding: 16px 16px 18px; }
  .converter__action .btn { width: 100%; justify-content: center; }

  .formats { padding: 48px 0 56px; }
  .formats__grid { grid-template-columns: repeat(2, 1fr); }
  .formats__hub { padding: 20px; gap: 20px; }

  .why { padding: 56px 0 48px; }
  .why__grid { grid-template-columns: 1fr; }
  .why-card { padding: 18px; }

  .pricing { padding: 56px 0 48px; }
  .plan { padding: 20px; }
  .plan--featured .plan__badge { top: -10px; right: 12px; }

  .faq { padding: 56px 0 56px; }
  .faq__item summary { padding: 14px 18px; font-size: 14.5px; gap: 12px; }
  .faq__body { padding: 0 18px 18px; font-size: 14px; }

  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(24px, 6.5vw, 32px); }
  .section-head p { font-size: 14.5px; }

  /* new sections */
  .trust { padding: 14px 0 22px; }
  .trust__inner { padding: 0 14px; gap: 6px 10px; }
  .trust__badge { padding: 6px 12px; font-size: 12.5px; }
  .trust__badge svg { width: 13px; height: 13px; }

  .howit { padding: 48px 0 40px; }
  .howit__steps { margin-top: 28px; }
  .howit__step { padding: 20px 18px 18px; }

  .uses { padding: 40px 0 48px; }
  .uses__grid { margin-top: 24px; }
  .use { padding: 22px 20px 20px; }

  .maker { padding: 40px 0 48px; }
  .maker__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
    text-align: left;
  }
  .maker__avatar {
    width: 48px;
    height: 48px;
  }
  .maker__avatar span { font-size: 20px; }
  .maker__lede { font-size: 15px; }

  /* result panel mobile tweaks */
  .result { padding: 16px; }
  .result__head { grid-template-columns: auto 1fr; gap: 12px; }
  .result__reset { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .result__file {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px 12px;
  }
  .result__file-dl {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .trysample { padding: 4px 16px 14px; }
  .trysample__btn { font-size: 12.5px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  /* keep elements visible when motion is disabled */
  .reveal-target { opacity: 1 !important; transform: none !important; }
  .hero__title .title-reveal { opacity: 1 !important; transform: none !important; }
  .btn--primary.is-armed { animation: none !important; }
}
