:root {
  --ind: #4b3df0;
  --violet: #8b5cf6;
  --pink: #ff5da8;
  --amber: #ffb020;
  --teal: #14c9b0;
  --ink: #171326;
  --ink-soft: #6b6480;
  --paper: #ffffff;
  --bg: #f4f1fb;
  --line: #e7e2f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(255,93,168,.25), transparent 60%),
    radial-gradient(55% 45% at 90% 12%, rgba(20,201,176,.25), transparent 60%),
    radial-gradient(60% 50% at 50% 95%, rgba(75,61,240,.22), transparent 60%),
    var(--bg);
}
/* Single container width shared by header, main content and footer so every
   section aligns to the same left and right edges. */
:root { --container: 1660px; --container-pad: 96px; }

.wrap {
  max-width: var(--container); margin: 0 auto;
  padding: 1rem var(--container-pad) 2rem;
}

.brand { display:flex; align-items:center; gap:.7rem; margin-bottom: 1.2rem; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--ind), var(--pink));
  display:flex; align-items:center; justify-content:center;
  font-family:"Space Grotesk", sans-serif; font-weight:700; color:#fff; font-size:.92rem; letter-spacing:-.02em;
  box-shadow: 0 6px 16px rgba(75,61,240,.35);
  text-decoration: none;
}
.brand span { color: var(--ink-soft); font-size:.85rem; }

.brand__name {
  font-family:"Space Grotesk", sans-serif; font-weight:700; font-size:1.4rem; margin:0;
  text-decoration: none; color: var(--ink); display: block;
}

.back-link {
  display: inline-block; font-size: .85rem; color: var(--ink-soft);
  text-decoration: none; margin: -.6rem 0 1rem;
}
.back-link:hover { color: var(--ind); }

.hero { margin-bottom: 1.8rem; text-align: center; }
.hero h1 {
  font-family:"Space Grotesk", sans-serif; font-weight:700;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height:1.22; margin:0 0 .6rem;
  letter-spacing:-0.022em;
}
.hero h1 em { font-style:normal; background: linear-gradient(90deg, var(--ind), var(--pink) 60%, var(--amber)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p { color: var(--ink-soft); font-size:.95rem; line-height:1.68; margin:0 auto; max-width:56ch; }

.hub-hero { margin-bottom: 2.6rem; }
.hub-hero h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.45rem); margin: 0 0 .8rem;
  line-height: 1.16; letter-spacing: -.028em;
}
.hub-hero p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.68; margin: 0; max-width: 60ch; }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin: 0 0 2rem;
}
.promise-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem .5rem;
  box-shadow: 0 1px 2px rgba(23,19,38,.03);
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  color: var(--ind);
  font-weight: 500;
}

.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1.35rem;
}
.tool-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.9rem 1.6rem;
  text-decoration: none; color: inherit; display: block;
  position: relative;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(23,19,38,.04),
              0 8px 24px rgba(23,19,38,.05);
  transition: transform .25s cubic-bezier(.32,.72,0,1),
              box-shadow .25s ease,
              border-color .25s ease;
}

/* Focus glow only - a soft purple halo while the card is focused or being
   pressed. Kept at zero opacity the rest of the time so the page stays calm. */
.tool-card::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: inherit;
  background: var(--ind);
  filter: blur(12px);
  opacity: 0;
  z-index: -1;
  transition: opacity .25s ease;
}
.tool-card:focus-visible::before,
.tool-card:active::before { opacity: .22; }
.tool-card:focus-visible { outline: none; border-color: var(--ind); }

.tool-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: #c9c0f2;
  box-shadow: 0 2px 4px rgba(23,19,38,.04),
              0 16px 40px rgba(23,19,38,.10);
}

.tool-card.soon { opacity: .55; cursor: default; }
.tool-card.soon:hover { transform: none; border-color: var(--line);
  box-shadow: 0 1px 2px rgba(23,19,38,.04), 0 8px 24px rgba(23,19,38,.05); }
.badge-soon {
  display: inline-block; font-family: "JetBrains Mono", monospace; font-size: .65rem;
  background: var(--line); color: var(--ink-soft); padding: .15rem .5rem; border-radius: 999px;
  margin-bottom: .6rem;
}

.seo-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.seo-content > p, .seo-content > ul { max-width: none; }
.seo-content h2 {
  font-family:"Space Grotesk", sans-serif; font-weight:700; font-size:1.3rem;
  letter-spacing:-.018em; line-height:1.3; margin: 2rem 0 .9rem;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content p {
  color: var(--ink-soft); font-size: .95rem; line-height: 1.78; margin: 0 0 .9rem;
}
.seo-content strong { color: var(--ink); }

.seo-content h3 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .98rem;
  color: var(--ink); margin: 1.1rem 0 .4rem;
}
.seo-content ul { margin: 0 0 .8rem; padding-left: 1.2rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.seo-content ul li { margin-bottom: .25rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1.15rem;
  margin: 1.4rem 0 2rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.45rem;
  box-shadow: 0 1px 2px rgba(23,19,38,.03);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.32,.72,0,1);
}
.feature-card:hover {
  border-color: #d9d2f5; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23,19,38,.06);
}
.feature-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem; letter-spacing:-.01em;
  margin: 0 0 .55rem;
  color: var(--ink);
}
.feature-card p {
  font-size: .89rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.68;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 230px));
  justify-content: start;
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.45rem 1.35rem;
  box-shadow: 0 1px 2px rgba(23,19,38,.03);
}
.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ind), var(--pink));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .6rem;
}
.step-card h3 { font-family: "Space Grotesk", sans-serif; font-size: .95rem; margin: 0 0 .3rem; }
.step-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

.format-list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1rem 0 1.5rem;
  padding: 0; list-style: none;
}
.format-list li {
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .4rem .8rem;
  margin: 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  margin-bottom: .7rem;
  box-shadow: 0 1px 2px rgba(23,19,38,.03);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.faq-item:hover { border-color: #d9d2f5; box-shadow: 0 4px 14px rgba(23,19,38,.06); }

/* Open state: soft purple border and tint, per spec */
.faq-item[open] {
  border-color: #c9c0f2;
  background: #faf8ff;
  box-shadow: 0 4px 18px rgba(75,61,240,.07);
}

.faq-item summary {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: .95rem; line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ind); }
.faq-item[open] summary { color: var(--ind); }

/* Typographic marker only - no icon asset */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.15rem; font-weight: 400; line-height: 1;
  color: var(--ink-soft);
  transition: transform .25s cubic-bezier(.32,.72,0,1), color .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--ind); }

.faq-item p {
  font-size: .9rem !important;
  color: var(--ink-soft);
  margin: 0 !important;
  padding: 0 1.25rem 1.15rem;
  line-height: 1.72;
  animation: faqReveal .25s ease;
}
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } }

.tags { display:flex; flex-wrap:wrap; gap:.5rem; margin: .9rem 0 1.2rem; }
.tag {
  font-family:"JetBrains Mono", monospace; font-size:.72rem; font-weight:500;
  padding:.32rem .7rem; border-radius:999px; color:#fff; letter-spacing:.02em;
}
.tag.date{ background:var(--ind); } .tag.desc{ background:var(--violet); }
.tag.debit{ background:var(--pink); } .tag.credit{ background:var(--teal); }
.tag.balance{ background:var(--amber); color:#3a2900; }

.card {
  background: var(--paper);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(23,19,38,.04), 0 16px 44px rgba(23,19,38,.07);
  padding: 2.6rem 2.4rem;
}

.dropzone {
  border: 1.5px dashed #cfc6f4;
  border-radius: 20px;
  padding: 2.8rem 1.5rem;
  text-align:center;
  cursor:pointer;
  background: linear-gradient(180deg, #fbfaff, #f6f3ff);
  transition: border-color .15s ease, transform .1s ease, background .15s ease;
  position: relative;
}
.dropzone:hover { background: #f3efff; }
.dropzone.active { border-color: var(--ind); transform: scale(1.008); background:#efeaff; }
.dropzone__icon {
  width:56px; height:56px; margin: 0 auto 1rem; border-radius:16px;
  background: linear-gradient(135deg, var(--ind), var(--violet));
  display:flex; align-items:center; justify-content:center; font-size:1.5rem; color:#fff;
}
.dropzone__title { font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:1.15rem; margin:0 0 .3rem; }
.dropzone__hint { color: var(--ink-soft); font-size:.9rem; margin:0 0 .3rem; }
input[type=file]{ display:none; }

.browse-btn {
  display:inline-block; margin-top:1.2rem; padding:.65rem 1.5rem; border-radius:999px;
  background: var(--ink); color:#fff; font-weight:600; font-size:.88rem;
  border:none; cursor:pointer;
  box-shadow: 0 2px 8px rgba(23,19,38,.14);
  transition: transform .25s cubic-bezier(.32,.72,0,1), box-shadow .25s ease, background-color .25s ease;
}
.browse-btn:hover { transform: translateY(-2px); background:#241f38;
  box-shadow: 0 6px 18px rgba(23,19,38,.2); }
.browse-btn:active { transform: translateY(0); }

.submit-row { text-align:center; margin-top:1.3rem; }
.submit-btn {
  padding:.95rem 2.2rem; border:none; border-radius:14px; cursor:pointer;
  background: linear-gradient(90deg, var(--ind), var(--pink));
  color:#fff; font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:1rem;
  letter-spacing:-.005em;
  box-shadow: 0 2px 6px rgba(75,61,240,.2), 0 10px 26px rgba(75,61,240,.24);
  transition: transform .25s cubic-bezier(.32,.72,0,1), box-shadow .25s ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(75,61,240,.22), 0 16px 36px rgba(75,61,240,.28);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { cursor: not-allowed; opacity: .75; }

.processing { padding: 1rem 0; text-align: center; }
.processing__spinner {
  width: 40px; height: 40px; margin: 0 auto 1rem;
  border: 3px solid var(--line); border-top-color: var(--ind);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing__status {
  font-family: "Space Grotesk", sans-serif; font-size: .95rem; color: var(--ink);
  margin: 0 0 1rem;
}

.processing__bar {
  width: 100%; max-width: 320px; height: 6px; margin: 0 auto;
  background: var(--line); border-radius: 999px; overflow: hidden;
}
.processing__bar-fill {
  width: 40%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ind), var(--pink));
  animation: indeterminate 1.3s ease-in-out infinite;
}
@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
  .processing__spinner { animation: none; border-top-color: var(--line); }
  .processing__bar-fill { animation: none; width: 100%; }
}

.file-chip {
  display:none; margin-top:1rem; font-family:"JetBrains Mono",monospace; font-size:.82rem;
  background:#efeaff; color: var(--ind); border-radius:999px; padding:.4rem .9rem;
}
.file-chip.show { display:inline-block; }

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #fff0f0;
  border: 1px solid #ffc9c9;
  color: #b3261e;
}

/* result page */
.success-message { text-align: center; padding: 1rem 0 1.5rem; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #29e0c2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; font-weight: 700;
}
.success-message h2 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; margin: 0 0 .4rem; color: var(--ink);
}
.success-message p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.stat-grid { display:grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.2rem; }
.stat { border-radius: 14px; padding: 1rem 1.1rem; color:#fff; }
.stat.a { background: linear-gradient(135deg, var(--ind), #6a5cf5); }
.stat.b { background: linear-gradient(135deg, var(--teal), #29e0c2); }
.stat.c { background: linear-gradient(135deg, var(--pink), #ff8fc4); grid-column: span 2; }
.stat__label { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; opacity:.85; margin-bottom:.25rem; }
.stat__value { font-family:"Space Grotesk", sans-serif; font-weight:700; font-size:1.3rem; }

.meta-row { display:flex; justify-content:space-between; gap:1rem; padding:.5rem 0; border-bottom:1px dashed var(--line); font-family:"JetBrains Mono", monospace; font-size:.88rem; }
.meta-row span { color: var(--ink-soft); font-family:"Inter",sans-serif; }

.warn-box { background:#fff8e8; border:1px solid #ffe1a3; border-radius:12px; padding:.9rem 1rem; font-size:.85rem; color:#7a5b00; margin: 1rem 0; }
.warn-box ul { margin:.3rem 0 0; padding-left:1.1rem; }

.download-btn {
  width:100%; padding:.9rem; border:none; border-radius:12px; cursor:pointer;
  background: linear-gradient(90deg, var(--ind), var(--pink));
  color:#fff; font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:1rem;
  box-shadow: 0 10px 24px rgba(75,61,240,.3); text-decoration:none; display:block; text-align:center;
}
.download-btn:hover { filter: brightness(1.05); }

.again { display:block; text-align:center; margin-top:1rem; color: var(--ink-soft); font-size:.88rem; background:none; border:none; text-decoration:underline; cursor:pointer; }

.foot { margin-top:.5rem; text-align:center; color: var(--ink-soft); font-size:.8rem; }

/* ============================================================
   MOBILE RESPONSIVE (phones, ~640px and narrower)
============================================================ */
@media (max-width: 640px) {
  .wrap { padding: 1.2rem 1rem 3rem; }

  .brand__mark { width: 34px; height: 34px; font-size: 1rem; }
  .brand__name { font-size: 1.15rem; }
  .brand span { font-size: .78rem; }

  .hero h1 { font-size: clamp(1.15rem, 5.5vw, 1.4rem); }
  .hero p { font-size: .85rem; }

  .hub-hero h1 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .hub-hero p { font-size: .9rem; }

  .card { padding: 1.3rem 1rem; border-radius: 16px; }

  .dropzone { padding: 1.6rem 1rem; }
  .dropzone__icon { width: 46px; height: 46px; font-size: 1.25rem; }
  .dropzone__title { font-size: 1rem; }
  .dropzone__hint { font-size: .82rem; }

  /* Full-width, larger-tap-target buttons on touch screens */
  .browse-btn {
    display: block; width: 100%; margin-top: 1rem;
    padding: .8rem 1rem; font-size: .92rem;
  }
  .submit-btn { width: 100%; padding: .95rem; }
  .file-chip { display: block; width: 100%; text-align: center; box-sizing: border-box; }

  .tool-grid, .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .promise-grid { gap: .4rem; }
  .promise-card { font-size: .68rem; padding: .55rem .3rem; }
  .tool-card, .feature-card, .step-card { padding: 1.1rem; }

  /* Result page: single column instead of cramped 2-up stats */
  .stat-grid { grid-template-columns: 1fr; }
  .stat.c { grid-column: span 1; }
  .stat__value { font-size: 1.1rem; }

  .download-btn, .again { font-size: .92rem; }

  .seo-content > p, .seo-content > ul { max-width: 92ch; }
.seo-content h2 { font-size: 1rem; }
  .seo-content h3 { font-size: .92rem; }
  .seo-content p, .seo-content ul { font-size: .88rem; }

  .format-list li { font-size: .75rem; padding: .35rem .65rem; }
}

/* Extra-small phones (~380px and narrower) */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.05rem; }
  .brand__name { font-size: 1.05rem; }
  .card { padding: 1rem .85rem; }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Visible focus ring for keyboard users on every interactive element */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, .tool-card:focus-visible {
  outline: 3px solid var(--ind);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   HEADER + TOP NAV
============================================================ */
.site-header {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--container-pad);
  min-height: 76px;
  /* 1fr | auto | auto: brand takes the leftover space on the left, nav and
     the menu button are grouped together on the right (see .topnav's
     margin-right below for the fixed gap between them). */
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: .75rem;
}
/* The brand is an <a>, so it needs text-decoration:none explicitly or the
   browser underlines the name and tagline. */
.site-header .brand {
  justify-self: start;
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: inherit; margin: 0;
}
.site-header .brand:hover { text-decoration: none; }
.site-header .brand__name { text-decoration: none; color: var(--ink); }
.site-header .brand__tag { text-decoration: none; color: var(--ink-soft); }
.topnav { min-width: 0; margin-right: 1in; }

/* Flat, generously spaced nav. No container chrome - the active pill is
   the only filled element, which keeps the bar calm at ten items. */
.navpill {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
  background: none; border: none; border-radius: 0;
}
.navpill a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #5c566e;
  font-size: .875rem; font-weight: 500; letter-spacing: -.006em;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.navpill a:hover { color: var(--ind); background: rgba(75,61,240,.06); }

.navpill a[aria-current="page"] {
  background: var(--ind);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(75,61,240,.28);
}
.navpill a[aria-current="page"]:hover { background: #4133e0; color: #fff; }

/* ---- Tools dropdown trigger ---- */
.navpill__has-mega { position: relative; }
.navpill__trigger {
  display: flex; align-items: center; gap: .3rem;
  padding: .42rem .8rem; border: none; border-radius: 999px;
  background: none; cursor: pointer;
  font-family: inherit; font-size: .84rem; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.navpill__trigger:hover { color: var(--ind); background: rgba(255,255,255,.7); }
.navpill__chev { width: 10px; height: 7px; transition: transform .18s ease; }
.navpill__trigger[aria-expanded="true"] {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 2px 7px rgba(23,19,38,.12);
}
.navpill__trigger[aria-expanded="true"] .navpill__chev { transform: rotate(180deg); }

/* ---- Mega panel ---- */
.topnav { position: relative; }
.mega {
  position: absolute; top: calc(100% + .55rem); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100vw - 2rem));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem; z-index: 60;
  box-shadow: 0 20px 46px rgba(23,19,38,.16);
}
.mega[hidden] { display: none; }
.mega__label {
  font-family: "JetBrains Mono", monospace; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-soft); margin: 0 0 .5rem;
}
.mega__label + .mega__grid { margin-bottom: 1rem; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mega__item {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .6rem; border-radius: 11px; background: #faf9ff;
  text-decoration: none; color: inherit;
  transition: background .15s ease, transform .12s ease;
}
a.mega__item:hover { background: #f1edff; transform: translateY(-1px); }
.mega__ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #fff;
}
.mega__ic.a { background: linear-gradient(135deg, var(--ind), var(--violet)); }
.mega__ic.b { background: linear-gradient(135deg, var(--teal), #29e0c2); }
.mega__ic.c { background: linear-gradient(135deg, var(--pink), #ff8fc4); }
.mega__ic--soon { background: #c8c2da; }
.mega__txt { display: flex; flex-direction: column; min-width: 0; }
.mega__t { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.mega__d { font-size: .72rem; color: var(--ink-soft); line-height: 1.35; }
.mega__item.is-soon { opacity: .55; cursor: default; }
.mega__all {
  display: inline-block; margin-top: .9rem;
  font-size: .8rem; font-weight: 600; color: var(--ind); text-decoration: none;
}
.mega__all:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .navpill__chev, .mega__item { transition: none; }
}

.menu-toggle {
  display: flex; margin-left: auto;
  justify-self: end;
  /* explicit gap so the tab strip can never sit flush against, or under,
     the button even at awkward viewport widths */
  margin-inline-start: 1rem;
  margin-inline-end: 0;
  /* flex-shrink:0 keeps the button at full size; without it the nav's
     nowrap links overflow their track and render on top of it. */
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-toggle:hover { border-color: var(--ind); background: #f7f5ff; }
.menu-toggle:hover span { background: var(--ind); }

/* ============================================================
   SIDEBAR
============================================================ */
/* ============================================================
   NAVIGATION DRAWER
   Typography-led, no ornament. Hierarchy comes from size, weight,
   spacing and a single hairline divider - nothing decorative.
============================================================ */
.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(17, 15, 26, .32);
  backdrop-filter: blur(2px);
  z-index: 90; border: none;
  animation: drawerFade .25s ease;
}
@keyframes drawerFade { from { opacity: 0; } }

.sidebar {
  position: fixed;
  /* Inset from the viewport edges so all four corners can round - reads as
     a floating panel rather than a slab bolted to the side. */
  top: 12px; right: 12px; bottom: 12px;
  width: min(340px, calc(100vw - 24px));
  background: #ffffff;
  border-radius: 24px;
  z-index: 100;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(calc(100% + 16px));
  transition: transform .25s cubic-bezier(.32, .72, 0, 1);
  box-shadow: 0 24px 60px rgba(17, 15, 26, .18),
              0 2px 8px rgba(17, 15, 26, .06);
}
.sidebar.is-open { transform: translateX(0); }

/* --- header --- */
.sidebar__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 24px 8px;
}
.sidebar__title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.sidebar__close {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; font-weight: 300;
  color: #9a94a8; padding: 0;
  transition: background .18s ease, color .18s ease;
}
.sidebar__close:hover { background: #f4f3f7; color: var(--ink); }

.sidebar nav { padding: 0 12px 32px; }

/* --- section headings --- */
.sidebar__group {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: #8e8899;
  margin: 32px 0 16px;
  padding: 0 20px;
  position: relative;
}
/* Hairline divider above each section, except the first */
.sidebar__group:not(:first-of-type)::before {
  content: "";
  position: absolute; left: 20px; right: 20px; top: -20px;
  height: 1px; background: #ededf1;
}
.sidebar__group:first-of-type { margin-top: 20px; }

/* --- menu items --- */
.sidebar nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar nav li { margin: 0; }

.sidebar nav a {
  display: flex; align-items: center;
  height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: #2c2838;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease,
              padding-left .2s ease, font-weight .2s ease;
}
.sidebar nav a:hover {
  background: #f5f4f8;
  /* a 3px nudge on hover - just enough to feel responsive, not animated */
  padding-left: 23px;
}
.sidebar nav a:active { background: #eeedf3; }

/* --- active page --- */
.sidebar nav a[aria-current="page"] {
  background: #f0edfd;
  color: #4b3df0;
  font-weight: 600;
}
.sidebar nav a[aria-current="page"]:hover {
  background: #eae5fc;
  padding-left: 20px;   /* the current page shouldn't shift */
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
  .sidebar-backdrop { animation: none; }
  .sidebar nav a { transition: none; }
  .sidebar nav a:hover { padding-left: 20px; }
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb { margin: 0 0 1rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .4rem; list-style: none;
  margin: 0; padding: 0; font-size: .8rem; color: var(--ink-soft);
}
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ind); text-decoration: underline; }

/* ============================================================
   CONTENT / DOC PAGES
============================================================ */
.doc { max-width: none; }
.doc h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 .5rem; line-height: 1.2;
}
.doc__updated {
  font-family: "JetBrains Mono", monospace; font-size: .74rem;
  color: var(--ink-soft); margin: 0 0 1.2rem;
}
.doc__intro { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; margin: 0 0 1.8rem; }
.doc__section { margin-bottom: 2.4rem; }
.doc__section h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.08rem; margin: 0 0 .6rem; color: var(--ink);
}
.doc__section p { color: var(--ink-soft); font-size: .95rem; line-height: 1.78; margin: 0 0 .9rem; }
.doc__section ul { margin: .3rem 0 .8rem; padding-left: 1.2rem; }
.doc__section li { color: var(--ink-soft); font-size: .93rem; line-height: 1.62; margin-bottom: .35rem; }
.doc a { color: var(--ind); }

.doc__cta {
  max-width: 600px; margin: 3.5rem auto 0; padding: 1rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(23,19,38,.04), 0 14px 38px rgba(23,19,38,.06);
  text-align: center;
}
.doc__cta h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; margin: 0 0 .4rem; }
.doc__cta p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .5rem; }
.doc__cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; }

.btn-primary, .btn-secondary {
  display: inline-block; padding: .82rem 1.5rem; border-radius: 13px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: .93rem; letter-spacing: -.005em; text-decoration: none;
  transition: transform .25s cubic-bezier(.32,.72,0,1),
              box-shadow .25s ease, border-color .25s ease,
              background-color .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--ind), var(--pink)); color: #fff;
  box-shadow: 0 2px 6px rgba(75,61,240,.18), 0 8px 22px rgba(75,61,240,.16);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(75,61,240,.2), 0 14px 32px rgba(75,61,240,.22);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(23,19,38,.04);
}
.btn-secondary:hover {
  border-color: #c9c0f2; color: var(--ind); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(23,19,38,.07);
}
.btn-secondary:active { transform: translateY(0); }

.section-label {
  font-family: "Space Grotesk", sans-serif; font-size: 1rem;
  margin: 2rem 0 .9rem; color: var(--ink);
}

/* ============================================================
   ERROR PAGES
============================================================ */
.errorpage { max-width: 55ch; padding: 2rem 0 3rem; }
.errorpage__code {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 3.6rem;
  margin: 0; line-height: 1;
  background: linear-gradient(90deg, var(--ind), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.errorpage h1 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; margin: .4rem 0 .7rem;
}
.errorpage p { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; margin: 0 0 .8rem; }
.errorpage a { color: var(--ind); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { margin-top: 0; background: var(--ink); color: #cfc9dd; }
/* The five link groups sit in one horizontal row */
.site-footer__cols {
  max-width: var(--container); margin: 0 auto;
  padding: 2.4rem var(--container-pad) 1.6rem;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem;
  align-items: start;
  text-align: center;
}

.site-footer__socialrow {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--container-pad) 1.6rem;
  display: flex; justify-content: center;
}
.site-footer__social {
  display: flex; align-items: center;
  /* wide, even spacing as in the reference - the glyphs carry the rhythm
     rather than any container chrome */
  gap: 2.2rem;
  margin: 0; padding: 0; list-style: none;
}

/* Glyph only - no circle, no fill. The icon itself is the affordance,
   which is what keeps a six-icon row from feeling heavy. */
.social-dot {
  display: inline-flex; align-items: center; justify-content: center;
  color: #a8a2b8;
  text-decoration: none;
  background: none; border-radius: 6px;
  transition: color .2s ease, transform .2s ease;
}
.social-dot svg { width: 22px; height: 22px; display: block; }
.social-dot:hover { color: #fff; transform: translateY(-2px); }
.social-dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Placeholders must not invite a click they cannot honour */
.social-dot.is-placeholder { cursor: default; }
.social-dot.is-placeholder:hover { color: #a8a2b8; transform: none; }

.site-footer__col h2 {
  font-family: "Space Grotesk", sans-serif; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: #fff; margin: 0 0 .7rem;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: .4rem; }
.site-footer__col a { color: #cfc9dd; text-decoration: none; font-size: .84rem; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }

.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--container); margin: 0 auto; padding: 1.2rem var(--container-pad) 1.8rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .55rem; text-align: center;
  font-size: .78rem;
}
.site-footer__meta a { color: #cfc9dd; }

/* ============================================================
   RESPONSIVE ADDITIONS
============================================================ */
/* Items fold into the hamburger by priority as space runs out, rather than
   the bar wrapping or overflowing. Everything hidden here is still reachable
   in the ☰ menu, which lists every page. */
@media (max-width: 1180px) { .nav-hide-xl { display: none; } }
@media (max-width: 1040px) { .nav-hide-lg { display: none; } }

@media (max-width: 900px) {
  .brand__tag { display: none; }
  .site-header__inner { min-height: auto; padding: .7rem 1rem; }

  /* Below this the whole bar collapses to the hamburger - ten items cannot
     be shown legibly on a phone, and a scrolling strip under the header
     competes with the page content. */
  .topnav { display: none; }

  .site-header__inner { grid-template-columns: 1fr auto; row-gap: .5rem; }
  .site-header .brand { grid-column: 1; }
  .menu-toggle { grid-column: 2; }
  .topnav {
    grid-column: 1 / -1; justify-self: stretch;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .navpill { width: max-content; margin: 0 auto; }
  .navpill a, .navpill__trigger { font-size: .8rem; padding: .38rem .65rem; }

  /* Panel spans the viewport and stacks, rather than a cramped 2-up grid */
  .topnav { position: static; }
  .mega {
    left: 1rem; right: 1rem; transform: none;
    width: auto; top: calc(100% + .5rem);
  }
  .mega__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header__inner { padding: .6rem 1rem; }
  /* five across is unreadable on a phone - drop to two columns */
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 1.2rem; padding: 1.8rem 1rem 1.2rem; }
  .site-footer__socialrow { padding: 0 1rem 1.2rem; }
  .site-footer__bar { padding: 1rem; }
  .doc__cta { padding: 1.2rem; }
  .btn-primary, .btn-secondary { flex: 1; text-align: center; }
  .errorpage__code { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card, .tool-card::before { transition: none; }
}


/* ============================================================
   HOMEPAGE — HERO
============================================================ */
.hero-split {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 760px; margin: 1.5rem auto 5rem;
}

.hero-badge {
  display: inline-block; margin: 0 0 1.5rem;
  padding: .45rem 1rem; border-radius: 999px;
  background: rgba(75,61,240,.07);
  border: 1px solid rgba(75,61,240,.14);
  color: var(--ind);
  font-size: .78rem; font-weight: 600; letter-spacing: -.005em;
}

.hero-split h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.13; letter-spacing: -.032em;
  margin: 0 0 1.2rem; color: var(--ink);
}
.hero-split__lede {
  font-size: 1.08rem; line-height: 1.72; color: var(--ink-soft);
  margin: 0 auto 2.4rem; max-width: 48ch;
}
.hero-split__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 0; }

/* --- CSS-only document illustration --- */
.hero-art { display: flex; justify-content: center; }
.hero-art__stage {
  position: relative;
  width: min(460px, 100%); aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(150deg, #f3edfd 0%, #ede7fb 45%, #f7f0fb 100%);
  border: 1px solid rgba(75,61,240,.10);
  box-shadow: 0 2px 6px rgba(23,19,38,.04), 0 26px 60px rgba(75,61,240,.13);
  display: flex; align-items: center; justify-content: center;
}
.hero-art__doc {
  width: 46%; aspect-ratio: 3/4;
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23,19,38,.13);
  display: flex; flex-direction: column; justify-content: center;
  gap: 9px; padding: 0 14%;
  /* folded corner, drawn rather than imported */
  position: relative; overflow: hidden;
}
.hero-art__doc::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-width: 0 20px 20px 0; border-style: solid;
  border-color: transparent #ece7f8 transparent transparent;
}
.hero-art__line { display: block; height: 5px; border-radius: 3px; background: #e6e1f2; }
.hero-art__line.w1 { width: 100%; }
.hero-art__line.w2 { width: 78%; }
.hero-art__line.w3 { width: 88%; }

.hero-art__chip {
  position: absolute; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(23,19,38,.18);
  /* thin white ring lifts each chip off the gradient stage behind it */
  border: 3px solid #fff;
}
.hero-art__chip svg { width: 55%; height: 55%; display: block; }

.hero-art__chip--upload { top: -18px; left: -18px; background: var(--ind); }

/* Soft tinted disc rather than a solid fill, so the coloured wand reads */
.hero-art__chip--edit {
  top: -18px; right: -18px;
  background: linear-gradient(140deg, #ede8fd 0%, #f7e9f4 55%, #fdeef4 100%);
}
.hero-art__chip--download { bottom: -18px; right: -18px; background: var(--teal); }

/* Wide desktop/laptop only (matches the width where the hero was
   dominating the whole viewport, pushing tool cards below the fold).
   Nothing below 1025px is touched by this block - tablet and mobile
   keep their existing sizing exactly as before. */
@media (min-width: 1025px) {
  .hero-split {
    margin: 1.25rem auto 3rem;
  }
  .hero-badge {
    margin: 0 0 1rem;
    padding: .4rem .9rem;
    font-size: .76rem;
  }
  .hero-split h1 {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.15; letter-spacing: -.03em;
    margin: 0 0 .85rem;
  }
  .hero-split__lede {
    font-size: 1rem; line-height: 1.65;
    margin: 0 auto 1.5rem;
  }
}

/* ============================================================
   HOMEPAGE — HERO (simplified: heading + lede + promise pills)
============================================================ */
.hub-hero {
  text-align: center;
  max-width: 720px;
  margin: 1.5rem auto 2rem;
}
.hub-hero h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.18; letter-spacing: -.03em;
  margin: 0 0 .9rem; color: var(--ink);
}
.hub-hero p {
  font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft);
  margin: 0 auto; max-width: 56ch;
}

.promise-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
  margin: 0 0 3rem;
}
.promise-card {
  padding: .5rem 1.1rem; border-radius: 999px;
  background: rgba(75,61,240,.07);
  border: 1px solid rgba(75,61,240,.14);
  color: var(--ind);
  font-size: .84rem; font-weight: 600; letter-spacing: -.005em;
  text-transform: capitalize;
}

@media (max-width: 620px) {
  .hub-hero h1 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .hub-hero p { font-size: .9rem; }
  .promise-card { font-size: .76rem; padding: .42rem .9rem; }
}

/* ============================================================
   SECTION HEADS
============================================================ */
.tools-section { margin-bottom: 3.5rem; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap;
}
.section-head h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.5rem; letter-spacing: -.024em; line-height: 1.25;
  margin: 0; color: var(--ink);
}
.section-head__title-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .9rem; margin-bottom: .3rem;
}
.section-head p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.section-head__action {
  flex-shrink: 0;
  padding: .45rem .95rem; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-size: .82rem; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23,19,38,.04);
  transition: transform .25s cubic-bezier(.32,.72,0,1),
              border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.section-head__action:hover {
  transform: translateY(-2px); border-color: #c9c0f2; color: var(--ind);
  box-shadow: 0 5px 16px rgba(23,19,38,.07);
}

/* four-up tool grid to match the reference proportions */
.tools-section .tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.1rem;
  max-width: calc(100% - 8px); /* ~2mm narrower per card across the row */
}
/* Force exactly 5 columns from a typical laptop width upward (was 1500px,
   which left the 5th card wrapping to a second row on most laptop
   screens - the whole point of Popular Tools is to see them all at a
   glance). Each card ends up narrower than before (~220px vs ~275px+)
   but every card is now visible without scrolling on common widths. */
@media (min-width: 1180px) {
  .tools-section .tool-grid { grid-template-columns: repeat(5, 1fr); }
}
.tools-section .tool-card { padding: 1.3rem 1.1rem; }
.tools-section .tool-card h3 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.02rem;
  letter-spacing: -.012em; margin: 0 0 .5rem; line-height: 1.3;
}
.tools-section .tool-card p {
  font-size: .86rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 1.25rem;
}
.tool-card__icon.soon { background: #e6e2f0; color: #9a94a8; }
/* Base icon badge - previously undefined, which left every icon (ready and
   "coming soon" alike) rendering as an unstyled inline glyph instead of a
   sized, centered badge, making the row of cards look misaligned. */
.tool-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  font-size: 1.3rem; line-height: 1; margin-bottom: 1rem;
}
.tool-card__icon.a { background: linear-gradient(135deg, var(--ind), var(--violet)); }
.tool-card__icon.b { background: linear-gradient(135deg, var(--teal), #29e0c2); }
.tool-card__icon.c { background: linear-gradient(135deg, var(--pink), var(--violet)); }
.tool-card__icon.d { background: linear-gradient(135deg, var(--amber), var(--pink)); }
.tool-card__icon.e { background: linear-gradient(135deg, var(--ind), var(--teal)); }
.tool-card__cta.is-muted { color: var(--ink-soft); }

/* ============================================================
   TRUST BAR
============================================================ */
.trustbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 1.5rem .5rem;
  box-shadow: 0 1px 2px rgba(23,19,38,.04), 0 10px 30px rgba(23,19,38,.05);
  margin-bottom: 1rem;
}
.trustbar__item { padding: 0 1.4rem; position: relative; }
/* hairline dividers between sections, not after the last */
.trustbar__item + .trustbar__item::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 1px; background: var(--line);
}
.trustbar__title {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: .95rem; letter-spacing: -.01em; margin: 0 0 .25rem; color: var(--ink);
}
.trustbar__desc { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* ============================================================
   HOMEPAGE RESPONSIVE
============================================================ */
/* Text and illustration stay side by side well into tablet widths - the
   illustration surrenders width first, since it scales gracefully while a
   heading squeezed into half a narrow screen does not. */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1.15fr .85fr; gap: 2.5rem; }
  .hero-art__stage { width: min(340px, 100%); }
  .hero-art__chip { width: 52px; height: 52px; border-width: 2.5px; }
}
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1.25fr .75fr; gap: 1.75rem; margin-bottom: 4rem; }
  .hero-art__stage { width: min(260px, 100%); border-radius: 22px; }
  .hero-art__chip { width: 42px; height: 42px; border-width: 2.5px; }
}

@media (max-width: 860px) {
  .trustbar { grid-template-columns: 1fr 1fr; gap: 1.3rem .5rem; padding: 1.4rem .5rem; }
  .trustbar { grid-template-columns: 1fr 1fr; gap: 1.3rem .5rem; padding: 1.4rem .5rem; }
  /* dividers only between columns, not rows, once it wraps */
  .trustbar__item + .trustbar__item::before { display: none; }
  .trustbar__item:nth-child(even)::before {
    content: ""; display: block; position: absolute; left: 0; top: 2px; bottom: 2px;
    width: 1px; background: var(--line);
  }
}
/* Side by side is maintained all the way down. The text column takes an
   increasing share and the type scales with it, so the heading still reads
   as a headline rather than fragmenting into very short lines. */
@media (max-width: 620px) {
  .hero-split {
    /* Nearer the desktop 50/50 balance. Text keeps a slight edge only
       because type has a minimum readable size that art does not. */
    grid-template-columns: 1.2fr .8fr;
    gap: 1.1rem; margin: .5rem 0 3rem;
    /* Top-align on mobile: the text column runs much taller than the art,
       so centring left the illustration floating mid-column, visually
       detached from the heading it belongs with. */
    align-items: start;
  }
  .hero-art { padding-top: 2.6rem; }
  .hero-split h1 { font-size: clamp(1.22rem, 4.8vw, 1.6rem); line-height: 1.22; margin-bottom: .65rem; }
  .hero-split__lede { font-size: .88rem; line-height: 1.6; margin-bottom: 1.3rem; }
  .hero-badge { font-size: .68rem; padding: .32rem .7rem; margin-bottom: 1rem; }
  .hero-art__stage {
    width: min(200px, 100%); border-radius: 18px;
    /* a touch more contrast so it still reads as a card at this size */
    border-color: rgba(75,61,240,.16);
    box-shadow: 0 2px 5px rgba(23,19,38,.05), 0 12px 26px rgba(75,61,240,.14);
  }
  .hero-art__chip { width: 36px; height: 36px; border-width: 2px; }
  .hero-art__chip--upload   { top: -12px; left: -12px; }
  .hero-art__chip--edit     { top: -12px; right: -12px; }
  .hero-art__chip--download { bottom: -12px; right: -12px; }
  .hero-art__line { height: 4px; }
  .hero-art__doc { gap: 6px; border-radius: 10px; }
  .hero-art__doc::after { border-width: 0 15px 15px 0; }
}

@media (max-width: 460px) {
  .hero-split { grid-template-columns: 1.25fr .75fr; gap: .9rem; }
  .hero-art { padding-top: 2.2rem; }
  .hero-split h1 { font-size: clamp(1.05rem, 5vw, 1.3rem); letter-spacing: -.02em; }
  .hero-split__lede { font-size: .78rem; line-height: 1.55; margin-bottom: 1rem; }
  .hero-art__stage { width: min(160px, 100%); border-radius: 15px; }
  .hero-art__chip { width: 30px; height: 30px; border-width: 2px; }
  .hero-art__chip--upload   { top: -10px; left: -10px; }
  .hero-art__chip--edit     { top: -10px; right: -10px; }
  .hero-art__chip--download { bottom: -10px; right: -10px; }
  .hero-art__line { height: 3px; }
  .hero-art__doc { gap: 5px; border-radius: 9px; }
  .hero-art__doc::after { border-width: 0 12px 12px 0; }
}

@media (max-width: 560px) {
  .hero-split__actions { flex-direction: column; gap: .55rem; }
  .hero-split__actions .btn-primary,
  .hero-split__actions .btn-secondary {
    text-align: center; padding: .68rem 1rem; font-size: .85rem;
  }
  .section-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .trustbar { grid-template-columns: 1fr; gap: 1.15rem; padding: 1.3rem 1.2rem; }
  .trustbar__item { padding: 0; }
  .trustbar__item:nth-child(even)::before { display: none; }
}

/* In-page anchors land below the sticky header rather than under it */
html { scroll-behavior: smooth; }
[id="features"], [id="how-it-works"] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Container scales down cleanly rather than snapping */
@media (max-width: 1200px) { :root { --container-pad: 40px; } }
@media (max-width: 860px)  { :root { --container-pad: 24px; } }
@media (max-width: 560px)  { :root { --container-pad: 16px; } }

@media (max-width: 560px) {
  /* keep all six on one row on a phone by tightening the gap */
  .site-footer__social { gap: 1.35rem; }
  .social-dot svg { width: 20px; height: 20px; }
}
