:root {
  --hero-start: #f2edff; --hero-end: #e7defb; --header: 73px; --nav: 258px; --rail: 320px;
  --gap: clamp(15px,1.33vw,24px); --radius: 19px; 
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); }
ul { list-style: none; padding: 0; margin: 0; }
.topbar {
  height: var(--header); position: sticky; top: 0; z-index: 4; display: grid;
  grid-template-columns: minmax(max(220px,var(--nav)),1fr) minmax(140px,680px) minmax(350px,1fr);
  align-items: center; gap: var(--gap);
  padding: 0 var(--gap) 0 19px; 
   
}
.search-trigger {
  display: flex; align-items: center; gap: 11px; justify-self: center; width: min(100%,680px); min-width: 0;
  padding: 0 12px 0 15px; height: 43px; text-align: left; color: var(--body);
  background: var(--soft); border: 1px solid var(--strong-line); border-radius: 12px; font-size: .91rem;
  transition: background .2s,border-color .2s;
}
.search-trigger:hover { background: var(--surface); border-color: var(--accent); }
.search-trigger .icon { width: 19px; height: 19px; color: var(--accent); }
.search-trigger span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { font: 650 .7rem var(--font); white-space: nowrap; padding: 3px 6px; border: 1px solid var(--strong-line); background: var(--surface); border-radius: 5px; color: var(--muted); }
.mobile-menu { display: none; }
.shell { display: grid; grid-template-columns: var(--nav) minmax(0,1fr); min-height: calc(100vh - var(--header)); }
.offline-note {
  flex: none; display: flex; align-items: center; gap: 9px; padding: 10px;
  border: 1px solid #dcd6fa; border-radius: 14px;
  background: linear-gradient(145deg,#fff,#eeedfc); box-shadow: var(--shadow);
}
.offline-note .icon { width: 30px; height: 30px; padding: 5px; border-radius: 8px; color: var(--good); background: var(--good-bg); stroke-width: 2.1; }
.offline-note strong,.offline-note small { display: block; }
.offline-note strong { font-size: 1.01rem; line-height: 1.14; letter-spacing: -.025em; }
.offline-note small { color: var(--body); font: 450 .75rem/1.25 var(--font); margin-top: 3px; }
.sidebar .offline-note small { text-wrap: balance; }
.offline-mobile { display: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.header-trust,.header-download { min-height: 40px; padding-inline: 12px; }
.header-download .download-compact { display: none; }
.site-menu-button { width: 40px; height: 40px; }
.header-trust {
  color: var(--accent-deep); background: var(--accent-bg); border-color: var(--strong-line);
}
.header-trust:hover { transform: none; box-shadow: none; }
.text-btn { display: inline-flex; padding: 5px 0; color: var(--accent); border: 0; background: transparent; font-size: .85rem; font-weight: 730; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.375rem,1.55vw,1.63rem); line-height: 1.12; letter-spacing: -.039em; font-weight: 740; }
.tile { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 8px; color: var(--tone); background: var(--tone-bg); }
.tile .icon { width: 16px; height: 16px; }

.dialog-body { display: grid; gap: 12px; color: var(--body); line-height: 1.5; }
.dialog-body h3 { margin-top: 3px; font-size: 1rem; color: var(--ink); }
.dialog-body > .button { justify-self: start; }
.rail-why .text-btn { display: flex; align-items: center; gap: 4px; width: fit-content; }
.rail-why .text-btn .icon { width: 15px; height: 15px; }
.rail-why .future-link { margin-top: 5px; }
#dialog.comparison-dialog { width: min(1120px, calc(100% - 20px)); height: min(90dvh, 920px); max-height: calc(100dvh - 20px); padding: 0; overflow: hidden; }
#dialog.comparison-dialog[open] { display: flex; flex-direction: column; }
.comparison-dialog .dialog-head { flex: none; margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.comparison-dialog .dialog-head h2 { font-size: clamp(.98rem, 2.8vw, 1.16rem); }
.comparison-dialog .dialog-head button { width: 42px; height: 42px; }
.comparison-dialog .dialog-body { display: block; flex: 1; min-height: 0; }
.comparison-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--page); }
.check-list { display: grid; gap: 9px; }
.check-list li { display: flex; align-items: center; gap: 8px; color: var(--body); font-size: .88rem; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--good); background: var(--good-bg); stroke-width: 2.4; }
.result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; text-align: left; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 10px; }
.result:hover,.result:focus-visible { background: var(--soft); border-color: var(--line); }
.result .tile { width: 29px; height: 29px; }
.result b,.result small { display: block; }
.result small { color: var(--muted); font-size: .79rem; }
.result > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }

/* 03 / HOMEPAGE STYLES */
.workspace { display: grid; grid-template-columns: minmax(0,1fr) var(--rail); align-items: start; gap: var(--gap); min-width: 0; padding: var(--gap); }
.main-column,.rail { min-width: 0; display: grid; align-content: start; gap: var(--gap); }
.hero {
  position: relative; isolation: isolate; min-height: 330px; overflow: hidden; display: flex; align-items: center; container-type: inline-size;
  padding: clamp(24px,2.25vw,42px); border: 1px solid var(--line); border-radius: 23px;
  background: linear-gradient(125deg,var(--hero-start),var(--hero-end)); box-shadow: var(--shadow);
}
.hero-visual { position: absolute; z-index: -2; inset: 0 0 0 46%; overflow: hidden; background: #2d1b64; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg,transparent 29%,#b9a1ff35 50%,transparent 66%); transform: translateX(-110%); animation: shimmer 7.5s 1.3s ease-in-out 1; }
@keyframes shimmer { 0%,15% { transform: translateX(-110%); } 65%,100% { transform: translateX(110%); } }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,var(--hero-start) 0 42%,var(--hero-end) 47%,color-mix(in srgb,var(--hero-end) 84%,transparent) 51%,transparent 66%); pointer-events: none; }
.hero-copy { max-width: 56%; }
.hero h1 { font-size: clamp(1.55rem, 5.8cqi, 3.05rem); }
.hero-line { display: block; white-space: nowrap; }
.hero-emphasis { color: var(--accent-deep); }
.hero .hero-subtitle { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .browser-support { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; }
.hero .browser-support > span { color: var(--ink); font-size: .875rem; font-weight: 680; }
.hero .browser-support ul { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0; list-style: none; }
.hero .browser-support img { display: block; width: 28px; height: 28px; object-fit: contain; }

.benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 14px; }
.benefit { display: flex; align-items: center; gap: 8px; min-width: 0; padding-inline: clamp(7px,.8vw,14px); }
.benefit:first-child { padding-left: 2px; }
.benefit:last-child { padding-right: 2px; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit .tile { width: 29px; height: 29px; }
.benefit strong,.benefit small { display: block; }
.benefit strong { font-size: .84rem; line-height: 1.15; letter-spacing: -.02em; }
.benefit small { margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.23; }
.explorer-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 10px; }
.explorer-control { display: grid; gap: 5px; min-width: 0; color: var(--body); font-size: .84rem; font-weight: 650; }
.explorer-control input { min-width: 0; width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--strong-line); border-radius: 10px; color: var(--ink); background: var(--surface); font: inherit; font-weight: 450; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,13rem),1fr)); gap: 9px; }
.tool {
  min-width: 0; width: 100%; min-height: 64px; display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; text-align: left; border-radius: 13px; box-shadow: 0 2px 7px #25134c0a;
  transition: border-color .18s, background .18s;
}
.tool:hover { border-color: rgb(var(--tone-rgb) / .48); background: var(--soft); }
.tool > span:not(.tile) { flex: 1; min-width: 0; }
.tool strong, .tool .description { display: block; overflow-wrap: anywhere; }
.tool strong { font-size: .91rem; line-height: 1.27; font-weight: 720; }
.tool .description { font-size: .79rem; color: var(--muted); line-height: 1.26; margin-top: 3px; }
.tool > .icon { width: 13px; height: 13px; color: var(--muted); }
.tool:hover > .icon { color: var(--accent); }
.catalog-note { color: var(--body); font-size: .875rem; margin-bottom: 12px; }
.empty { grid-column: 1 / -1; padding: 19px; color: var(--body); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; padding-top: 11px; color: var(--muted); font-size: .75rem; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.footer-links a { color: var(--muted); text-underline-offset: 3px; }
.footer-links a:hover,.footer-links [aria-current="page"] { color: var(--ink); text-decoration: underline; }
.rail { gap: 14px; }
.rail-card {
  padding: clamp(14px,1.25vw,21px); border-color: #dfdcf6;
  background: linear-gradient(140deg,#fff 15%,#f0effc);
  box-shadow: inset 0 0 0 1px #ffffffcf,0 3px 5px #4730930b,0 9px 18px #47309311;
}
.rail-promise {
  border-color: #e7d8f8;
  background: radial-gradient(ellipse at top right,#ecdbff 0%,transparent 67%),linear-gradient(145deg,#fff 26%,#eeedfc);
}
.rail-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rail-title .icon { width: 22px; height: 22px; color: var(--accent); stroke-width: 1.9; }
.rail-title h2 { font-size: clamp(1.17rem,1.38vw,1.51rem); line-height: 1.1; letter-spacing: -.046em; font-weight: 780; }
.rail-why h2 { font-size: clamp(1.13rem,1.25vw,1.38rem); text-wrap: balance; }
.rail-card .check-list { gap: 7px; }
.rail-card .check-list li { color: var(--ink); font: 500 .91rem/1.25 var(--font); gap: 10px; }
.rail-card .check-list .icon { width: 15px; height: 15px; padding: 0; border-radius: 0; background: none; stroke-width: 2.65; }
.rail-card .text-btn { margin-top: 8px; padding-bottom: 0; }
.homepage-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.homepage-platforms li { display: grid; justify-items: center; align-content: center; gap: 5px; min-width: 0; padding: 9px 3px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--soft); color: var(--ink); font-size: .84rem; font-weight: 680; }
.homepage-platforms img { display: block; width: 25px; height: 25px; object-fit: contain; }
.enter { animation: enter .62s var(--ease) both; }
.main-column > :nth-child(2) { animation-delay: 55ms; }
.main-column > :nth-child(3) { animation-delay: 100ms; }
.main-column > :nth-child(4),.rail { animation-delay: 135ms; }
@keyframes enter { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--accent); border: 1px solid var(--strong-line); border-radius: 11px; background: var(--soft); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / .22); }
.search-field input { width: 100%; min-width: 0; padding: 11px 0; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search-field input::placeholder { color: var(--muted); }
.search-status { color: var(--muted); font-size: .8rem; margin-bottom: -6px; }

#website-sidebar .side-tools { margin-top: 0; }
#website-sidebar .available-nav-link .tile { color: var(--tone); background: var(--tone-bg); }
#website-sidebar .available-nav-link[aria-current] .tile { color: inherit; background: #fff3; }
#website-sidebar a.small-button { justify-self: end; }
.catalog-region { display: grid; gap: 14px; }
.catalog-workspace, [data-show-dashboards] .workspace { grid-template-columns: minmax(0,1fr); }
.catalog-heading { display: grid; gap: 6px; }
.catalog-heading h1 { font-size: clamp(1.8rem,4vw,2.7rem); }
.catalog-heading p { max-width: 70ch; color: var(--body); }
.catalog-breadcrumbs, .catalog-modes, .catalog-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.catalog-breadcrumbs { color: var(--muted); font-size: .84rem; }
.catalog-breadcrumbs a { color: var(--accent-deep); }
.site-menu-list { display: grid; gap: 5px; }
.site-menu-list a { border: 1px solid var(--line); padding: 10px 12px; }
.site-menu-list a > .icon:last-child { margin-left: auto; }
.site-menu-legal { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8rem; }
.site-menu-legal a { display: inline-flex; align-items: center; min-height: 32px; }
.info-content { display: grid; gap: 14px; width: min(100%, 880px); line-height: 1.6; color: var(--body); }
.info-content > section, .info-license { padding: clamp(14px, 2.4vw, 23px); }
.info-content > section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.info-content h2 { color: var(--ink); font-size: 1.12rem; margin-bottom: 7px; }
.info-content .future-section h3 { margin-top: 16px; margin-bottom: 4px; color: var(--ink); font-size: 1rem; }
.info-content .future-principles { margin-block: 9px; padding-inline-start: 24px; list-style: disc; }
.info-content p + p, .info-content li + li { margin-top: 7px; }
.info-content p a, .info-content li a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.info-content ol { margin: 0 0 10px; padding-left: 22px; }
.info-content pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: .86rem; }
.info-content > .button { justify-self: start; }
.info-content .about-emphasis { margin-block: 1rem; }
.info-content .about-closing {
  margin-block: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
}
.info-content .about-signature {
  margin-block-end: 1.2rem;
  color: var(--ink);
  font: italic 1.9rem/1.15 Georgia, serif;
}
.download-card-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.catalog-modes { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mode-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--strong-line);
  border-radius: 999px; color: var(--ink); background: var(--surface); font-size: .84rem; font-weight: 660;
}
.mode-link .icon { width: 15px; height: 15px; }
.mode-link:hover { border-color: var(--accent); color: var(--accent-deep); }
.mode-link[aria-current] { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-bg); }
.catalog-pills { width: fit-content; padding: 4px; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
@media (prefers-reduced-motion: no-preference) {
  .catalog-region[data-category] #tool-grid { animation: catalog-enter 180ms ease-out; }
  @keyframes catalog-enter { from { opacity: .65; transform: translateY(4px); } }
}
.catalog-status { color: var(--body); font-size: .88rem; }
#all-tools-search-status:not(:empty) { margin-top: 8px; }
#tool-grid { display: grid; gap: 18px; }
.catalog-group .available-tool-grid { display: grid; }
.catalog-group .tool-tile { width: 22px; height: 22px; border-radius: 6px; }
.catalog-group .tool-tile .icon { width: 14px; height: 14px; }
.studio-entry { align-items: flex-start; }
.studio-entry small { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; }
[data-show-dashboards] :is(.hero, .benefits, #popular-categories, #tools, .rail) { display: none; }
.website .website-workspace { padding: 0; }

/* RESPONSIVE LAYOUT AND MOTION PREFERENCES */
@media (max-width: 1500px) {
  :root { --rail: 268px; }
}
@media (max-width: 1250px) {
  :root { --rail: 230px; }
  .rail-title { gap: 8px; }
  .hero { min-height: 300px; }
  .benefit { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 1110px) {
  .workspace { grid-template-columns: minmax(0,1fr); }
  .rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .benefit { flex-wrap: nowrap; }
}
@media (max-width: 1000px) {
  .topbar { grid-template-columns: minmax(max(220px,var(--nav)),1fr) minmax(140px,680px) minmax(240px,1fr); }
  .header-trust { width: 40px; padding: 0; }
  .header-trust span { display: none; }
}
@media (max-width: 925px) {
  :root { --header: 64px; --nav: 248px; }
  .topbar { padding-left: 12px; gap: 10px; }
  .sidebar { padding-inline: 9px; }
  .hero-copy { max-width: 65%; }
  .benefit { flex-wrap: wrap; }
}
@media (max-width: 740px) {
  :root { --header: 112px; }
  .shell { grid-template-columns: minmax(0,1fr); }
  .topbar {
    grid-template-columns: minmax(0,1fr) repeat(3, 38px); grid-template-rows: 59px 52px; gap: 0 8px;
    grid-template-areas: "brand search trust site-menu" "offline workspace downloads downloads";
  }
  .website .sidebar { display: none; }
  .website[data-sidebar-open] .sidebar { display: flex; position: static; height: clamp(430px,75dvh,560px); border-bottom: 1px solid var(--line); }
  .header-actions { display: contents; }
  .mobile-menu { display: grid; grid-area: workspace; width: 38px; height: 38px; margin-bottom: 5px; }
  .site-menu-button { grid-area: site-menu; width: 38px; height: 38px; }
  .brand { grid-area: brand; }
  .search-trigger { grid-area: search; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; }
  .search-trigger span,.search-trigger kbd { display: none; }
  .header-trust { grid-area: trust; width: 38px; min-height: 38px; }
  .header-download { grid-area: downloads; width: 100%; min-height: 38px; padding: 0 10px; margin-bottom: 5px; font-size: .72rem; white-space: nowrap; }
  .header-download .download-wide { display: none; }
  .header-download .download-compact { display: inline; }
  .header-download .icon { display: none; }
  .offline-mobile { display: flex; grid-area: offline; padding: 5px 9px; margin-bottom: 5px; border-radius: 10px; box-shadow: none; }
  .offline-mobile .icon { width: 23px; height: 23px; padding: 3px; border-radius: 6px; }
  .offline-mobile > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; }
  .offline-mobile strong { font-size: .87rem; }
  .offline-mobile small { margin: 0; }
  .workspace { padding: 14px; }
  .rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rail-why { grid-column: 1 / -1; }
  .benefit { flex-wrap: nowrap; }
}
@media (max-width: 540px) {
  .hero { display: block; min-height: auto; padding: 25px 17px 0; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(1.4rem, 9.6cqi, 2.4rem); }
  .hero-visual { position: relative; z-index: 0; inset: auto; margin: 17px -17px 0; height: clamp(156px,49vw,260px); }
  .hero::before { display: none; }
  .hero-actions { margin-top: 15px; gap: 7px; }
  .hero-actions .button { min-height: 40px; padding-inline: 9px; font-size: .79rem; }
  .benefits { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 0; padding: 10px; }
  .benefit,.benefit:first-child { padding: 5px 6px; }
  .benefit:nth-child(3) { border-left: 0; }
  .section-head { align-items: center; }
  .rail { grid-template-columns: minmax(0,1fr); }
  .rail-why { grid-column: auto; }
}
@media (max-width: 360px) {
  .topbar { column-gap: 6px; }
  .brand { gap: 7px; min-width: 0; max-width: 100%; }
}

/* Match the homepage category grid to the catalog cards. */
body { font-size: .9375rem; }
@media (max-width: 360px) {
  .brand > .icon { width: 29px; height: 29px; }
}
#popular-categories .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px) {
  #popular-categories .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .tool { padding: 9px; gap: 7px; }
  .tool .tile { width: 29px; height: 29px; }
}
@media (max-width: 360px) {
  #popular-categories .tools-grid { grid-template-columns: minmax(0, 1fr); }
}
