/* ToolKit website — layout/structure lifted from inshorturl.com's live theme
   (Shreethemes "Landrick"-family Bootstrap template: sticky nav, hero, feature-
   grid, footer), but the color tokens below are the ToolKit ANDROID APP's own
   exact palette (ui/theme/Color.kt — light scheme + brand blue), not
   inshorturl.com's blue, so the website matches the app pixel-for-pixel on
   color rather than the parent site. Footer intentionally reuses the app's
   DARK scheme tokens as an accent band — the one place this site uses dark
   colors, deliberately, to nod at the app's dark theme without a full toggle. */


:root {
  --primary: #64B4F6;       /* BrandBlue / BrandBlueDark — identical value in the app's own light+dark schemes */
  --primary-dark: #4B9FE3;  /* derived hover-darken of BrandBlue; the app has no separate hover token (touch UI) */
  --primary-ink: #1F6FB5;   /* same hue, darkened for small text — BrandBlue on white is only ~2.3:1 */
  --success: #22C55E;       /* SafeGreen */
  --warn: #F59E0B;          /* WarnAmber */
  --danger: #EF4444;        /* DangerRed */
  --text: #0F172A;          /* LightTextPrimary */
  --muted: #475569;         /* LightTextSecondary */
  --footer-bg: #0B1220;     /* DarkBackground */
  --footer-muted: #9BAAC2;  /* DarkTextSecondary */
  --footer-border: #35486A; /* DarkOutline */
  --border: #D7E0EE;        /* LightOutline */
  --bg: #F4F7FB;            /* LightBackground */
  --bg-soft: #E7EDF6;       /* LightSurfaceAlt */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* overflow-x:hidden here — even paired with an explicit overflow-y:visible —
   is spec-required to compute overflow-y as auto anyway (the "if one axis is
   visible and the other isn't, the visible one becomes auto" rule), which
   turns body into its own scroll container and silently breaks
   position:sticky (e.g. .legal-toc) for every descendant. overflow-x:clip
   sidesteps that rule entirely — it never forces the other axis to change. */
html, body { max-width: 100%; overflow-x: clip; }
/* Defensive: grid/flex items default to min-width:auto, which lets long
   unwrapped content (tables, long words) force a track wider than its
   container — the exact bug that made legal pages force desktop width on
   mobile. min-width:0 lets these actually shrink to the track size. */
.grid-3 > *, .grid-4 > *, .contact-grid > *, .legal-layout > * { min-width: 0; }
body {
  margin: 0;
  font-family: 'Muli', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { text-decoration: none; color: var(--primary-ink); }
img { max-width: 100%; height: auto; display: block; }
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Muli', sans-serif;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--text);
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
h1 { font-size: 42px; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
p { margin: 0 0 16px; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,72,88,.14); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary-ink); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary-ink); }
.btn-light:hover { background: color-mix(in srgb, var(--primary) 12%, #fff); }

/* ---------- Play Store download badge ----------
   Real official Google Play badge image (not a CSS/SVG recreation) — Google
   requires using their unmodified badge art rather than a lookalike. */
.play-badge {
  display: inline-block;
  line-height: 0;
  transition: transform .2s ease, filter .2s ease;
}
.play-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.play-badge img { height: 74px; width: auto; display: block; }

/* ---------- Nav ---------- */
#topnav {
  position: sticky;
  top: 0;
  /* Must stay above .nav-backdrop (1150) — the mobile drawer (.nav-links) is
     a DOM descendant of #topnav, so #topnav's z-index caps the drawer's
     effective stacking position no matter what z-index the drawer itself
     declares. Too low here and the backdrop renders on top of the open
     drawer, dimming it and swallowing every click on its links. */
  z-index: 1160;
  background: #fff;
  box-shadow: 0 0 3px rgba(22, 28, 45, .15);
}
#topnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  position: relative;
  padding: 25px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .3px;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 20px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1201;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .18);
  z-index: 1150;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-backdrop.open { display: block; opacity: 1; }

/* ---------- Mobile sidebar nav ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 8px 24px;
    box-shadow: -12px 0 40px rgba(15,23,42,.18);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1200;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px 20px; border-radius: 10px; font-size: 16px; }
  .nav-links a:hover, .nav-links a.active { background: rgba(100,180,246,.12); }
  .nav-links a::after { display: none; }
  .nav-links .nav-drawer-cta {
    display: block;
    margin: 16px 20px 0;
    text-align: center;
  }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
}
@media (min-width: 901px) {
  .nav-drawer-cta { display: none; }
}

/* ---------- Decorative background blobs ---------- */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.blob-primary { background: rgba(100,180,246,.18); }
.blob-success { background: rgba(34,197,94,.14); }

/* Reusable decoration for otherwise-plain sections: two soft blurred blobs
   (top-left brand, bottom-right success) plus a faint dot-grid texture,
   applied via CSS alone so no extra markup is needed per page. */
.section-decorated { position: relative; overflow: hidden; }
.section-decorated::before,
.section-decorated::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.section-decorated::before {
  width: 380px; height: 380px;
  background: rgba(100,180,246,.16);
  top: -160px; left: -120px;
}
.section-decorated::after {
  width: 320px; height: 320px;
  background: rgba(34,197,94,.12);
  bottom: -140px; right: -100px;
}
.section-decorated > .container { position: relative; z-index: 1; }

.bg-dots {
  background-image: radial-gradient(rgba(15,23,42,.08) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

/* Wave divider between sections, matching the Landrick-style .shape element */
.shape-divider { position: relative; height: 70px; margin-top: -70px; z-index: 1; pointer-events: none; }
.shape-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(60,72,88,.06);
}
.trust-chip svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
  position: relative;
  z-index: 1;
}
.stats-strip .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stats-strip .grid-4 { grid-template-columns: 1fr 1fr; } }
.stats-strip .grid-4 > * {
  padding: 20px 12px;
  border-radius: 14px;
  transition: background .25s ease, transform .25s ease;
}
.stats-strip .grid-4 > *:hover { background: rgba(100,180,246,.08); transform: translateY(-3px); }
.stats-strip .stat-num {
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #22C55E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-strip .stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .25s ease; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }
.faq-item .faq-body p { margin: 0; }
.faq-item { transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item:hover { border-color: rgba(100,180,246,.5); }
.faq-item[open] { border-color: rgba(100,180,246,.5); box-shadow: 0 10px 28px rgba(60,72,88,.08); }
.faq-item summary:hover { color: var(--primary-ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 60px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #eaf3fe 0%, var(--bg) 60%);
}
/* Soft "sunrise" glow rising from bottom-center, behind the hero content */
.hero::before {
  content: "";
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle, rgba(100,180,246,.22) 0%, rgba(100,180,246,0) 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15,23,42,.06) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 78% 35%, black 0%, transparent 55%);
  mask-image: radial-gradient(circle at 78% 35%, black 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
/* Spotlight glow directly behind the phone mockup, plus a ring accent */
.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(100,180,246,.3) 0%, rgba(100,180,246,0) 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px; height: 380px;
  border: 2px dashed rgba(100,180,246,.35);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: hero-ring-spin 40s linear infinite;
}
@keyframes hero-ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art::after { animation: none; } }
.hero-art .phone-shot { position: relative; z-index: 1; }
.hero .row {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-copy { flex: 1 1 55%; min-width: 300px; }
.hero-art { flex: 1 1 40%; min-width: 260px; text-align: center; }
@media (max-width: 720px) {
  .hero .row { flex-direction: column; }
  .hero-copy, .hero-art { min-width: 0; width: 100%; }
  .hero-art { order: -1; margin-bottom: 8px; }
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: rgba(100,180,246,.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: .3px; }
.hero .para-desc { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.phone-shot {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(60,72,88,.25);
  border: 6px solid #fff;
  outline: 1px solid var(--border);
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-title .eyebrow { display: inline-block; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-card {
  text-align: left;
  padding: 32px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 8px rgba(60,72,88,.04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.feature-card:hover {
  box-shadow: 0 16px 32px rgba(60,72,88,.1);
  transform: translateY(-4px);
  border-color: rgba(100,180,246,.35);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 20px;
  box-shadow: 0 8px 16px rgba(100,180,246,.3);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h4 { font-size: 18px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }

/* ---------- Scroll-reveal (added by script.js) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.split {
  display: flex;
  align-items: center;
  gap: 56px;
}
.split.reverse { flex-direction: row-reverse; }
.split.align-top { align-items: flex-start; }
.split > div { flex: 1 1 50%; min-width: 280px; }
@media (max-width: 860px) { .split, .split.reverse { flex-direction: column; } }

.checklist { list-style: none; margin: 24px 0; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 16px; color: var(--text);
}
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

/* ---------- Numbered step list ("How It Works") ---------- */
.step-list { margin: 28px 0; padding: 0; list-style: none; counter-reset: step; }
.step-item { display: flex; gap: 16px; margin-bottom: 22px; }
.step-item:last-child { margin-bottom: 0; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step-item h4 { margin: 4px 0 4px; font-size: 17px; }
.step-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #3F8FD8 100%);
  color: #fff;
  padding: 70px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Dot-matrix texture, white dots on the brand-blue band */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.4) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  pointer-events: none;
}
/* "Sunrise" glow rising from the bottom center — a soft radial burst */
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 68%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band .wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 100px; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }

/* Same light-to-dark wave used at the bottom of .cta-band, reused standalone
   on pages with no CTA band so every page flows into the dark footer the
   same way instead of a hard color edge. */
.footer-wave { position: relative; height: 90px; overflow: hidden; }
.footer-wave svg { position: absolute; bottom: -1px; width: 100%; height: 100%; display: block; }
.cta-band p { color: #fff; font-size: 17px; margin-bottom: 30px; }
.cta-band h2, .cta-band p { text-shadow: 0 1px 12px rgba(15,23,42,.18); }

/* ---------- Horizontal auto-scrolling marquee (odd-count card rows) ----------
   A lopsided last row (e.g. 5 cards in a 3-column grid leaving 2 stranded)
   reads as unfinished — an infinite marquee sidesteps the column-count
   problem entirely and doubles as a nicer, more premium presentation. */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 8px 0 28px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track .feature-card {
  flex: 0 0 280px;
  width: 280px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 64px 0 48px;
  background: var(--bg-soft);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(100,180,246,.14);
  filter: blur(50px);
  top: -160px; right: -60px;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: 36px; margin-bottom: 8px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-ink); }

/* Floating circular "scroll to content" affordance under a page-header band,
   matching inshorturl.com's own contact-page treatment. */
.scroll-down {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: 28px auto 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(60,72,88,.12);
  animation: scroll-down-bounce 1.8s ease-in-out infinite;
}
.scroll-down svg { width: 18px; height: 18px; }
@keyframes scroll-down-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-down { animation: none; }
}

/* ---------- Legal page layout (sidebar TOC + card) ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } }
.legal-toc {
  position: sticky;
  top: 90px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--bg-soft);
}
.legal-toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: 10px; }
.legal-toc a {
  display: flex; gap: 8px;
  color: var(--text); font-size: 14px; font-weight: 600;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--primary-ink);
  font-family: 'Courier New', monospace;
  font-weight: 700;
}
.legal-toc a:hover { color: var(--primary-ink); }
.legal-toc a { padding: 4px 8px; margin: 0 -8px; border-radius: 6px; transition: background .2s ease, color .2s ease; }
.legal-toc a.is-active { background: #fff; color: var(--primary-ink); box-shadow: 0 2px 8px rgba(60,72,88,.08); }
.prose h2[id] { scroll-margin-top: 96px; }
@media (max-width: 860px) { .legal-toc { position: static; margin-bottom: 32px; } }

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 48px;
  box-shadow: 0 20px 50px rgba(60,72,88,.06);
}
@media (max-width: 600px) { .legal-card { padding: 28px 22px; } }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.prose p, .prose li { color: var(--text); font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.updated-chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.perm-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.perm-table th, .perm-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.perm-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

/* Below 700px, a 3-column table can't fit real sentences without forcing the
   whole page wider than the viewport — turn each row into a stacked card
   instead of a table row (a horizontal-scroll table reads worse on mobile). */
@media (max-width: 700px) {
  .perm-table thead { display: none; }
  .perm-table, .perm-table tbody, .perm-table tr, .perm-table td { display: block; width: 100%; }
  .perm-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 16px;
  }
  .perm-table td { border-bottom: 1px solid var(--border); padding: 12px 0; }
  .perm-table td:last-child { border-bottom: none; }
  .perm-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    margin-bottom: 6px;
  }
}
.perm-chip {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: rgba(100,180,246,.16);
  color: var(--primary-ink);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Contact / forms ---------- */
/* Honeypot: off-screen rather than display:none — some bots skip fields
   hidden that way, but still fill invisible ones positioned off-canvas. */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(100,180,246,.18); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.form-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.form-check label { font-size: 14px; color: var(--text); line-height: 1.5; }

/* Matches inshorturl.com's own contact form treatment: a shadowed white
   card (not just a hairline border) framing the fields. */
.contact-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(60,72,88,.12);
  padding: 32px;
}
@media (max-width: 600px) { .contact-card { padding: 22px; } }

/* ---------- About page ---------- */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 12px; }
.stat { min-width: 120px; }
.stat .num { font-size: 30px; font-weight: 700; color: var(--primary-ink); }
.stat .label { font-size: 14px; color: var(--muted); }

/* ---------- Footer ----------
   Structure/style matched to inshorturl.com's own live footer (centered
   logo + description + circular social icons, then a separate copyright
   bar) — recolored to ToolKit's brand blue instead of inshorturl.com's. */
footer.main-footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
  padding: 48px 0;
}
footer.main-footer .logo {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
}
footer.main-footer p { font-size: 15px; line-height: 1.7; }
.social-icons { list-style: none; display: flex; gap: 12px; padding: 0; margin: 20px 0 0; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--footer-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-muted);
  transition: all .25s ease;
}
.social-icons a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.social-icons svg { width: 17px; height: 17px; }

.footer-bar {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 24px 0;
}
.footer-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bar p { margin: 0; font-size: 14px; color: var(--footer-muted); }
.footer-links { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.footer-links a { color: var(--footer-muted); font-size: 14px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 640px) {
  .footer-bar .container { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
  .hero { padding: 50px 0 40px; }
}

/* ---------- /check link page ---------- */
.check-page { padding: 28px 0 40px; }
.check-wrap { max-width: 640px; }
.check-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(60,72,88,.06);
  margin-bottom: 18px;
}
.check-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.check-favicon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); padding: 6px; flex-shrink: 0; }
.check-card-meta { min-width: 0; }
.check-card-meta h1 { font-size: 18px; margin: 0 0 2px; }
.check-url {
  display: block; color: var(--primary-ink); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.check-url-foot { margin-top: 6px; }
.check-desc { font-size: 15px; color: var(--text); margin: 14px 0 0; }

.check-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #fff 0%, #E9EEF5 70%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.check-hero-title {
  position: relative; z-index: 1;
  margin: 0 0 12px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; font-size: clamp(15px, 4.4vw, 22px); color: #1E293B;
}
.check-spinner {
  position: relative; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(100,180,246,.25); border-top-color: var(--primary-ink);
  animation: ck-spin .9s linear infinite;
}
@keyframes ck-spin { to { transform: rotate(360deg); } }
.ck-ico { position: absolute; border-radius: 6px; box-shadow: 0 6px 14px rgba(15,23,42,.15); animation: ck-float 4s ease-in-out infinite; }
.ck-folder { width: 13%; aspect-ratio: 5/4; left: 5%; top: 12%; background: linear-gradient(160deg,#4FA3F7,#1F6FB5); }
.ck-pdf { width: 9%; aspect-ratio: 3/4; left: 26%; top: 6%; background: #fff; color: #EF4444; font: 800 10px 'Muli',sans-serif; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; animation-delay: .6s; }
.ck-doc { width: 8%; aspect-ratio: 3/4; right: 30%; top: 5%; background: linear-gradient(#22C55E 0 30%, #fff 30%); animation-delay: 1.2s; }
.ck-video { width: 10%; aspect-ratio: 1; right: 6%; top: 10%; background: linear-gradient(135deg,#F87171,#DC2626); animation-delay: .3s; }
.ck-play { width: 10%; aspect-ratio: 1; right: 26%; bottom: 8%; border-radius: 50%; background: radial-gradient(circle,#FBBF24 60%,#F59E0B); animation-delay: .9s; }
.ck-video2 { width: 10%; aspect-ratio: 1; left: 22%; bottom: 7%; background: linear-gradient(135deg,#F87171,#DC2626); animation-delay: 1.5s; }
@keyframes ck-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .ck-ico, .check-spinner { animation: none; } }

.check-howto h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 12px; }
.check-howto-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.check-howto-icon svg { width: 18px; height: 18px; }
.check-steps { margin: 0; padding-left: 20px; }
.check-steps li { margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.check-steps li strong { color: var(--text); }
.check-invalid { text-align: center; padding: 36px 22px; }
.check-invalid h1 { font-size: 22px; }

.check-contact { padding: 12px 4px 0; }
.check-contact h2 { font-size: 18px; margin-bottom: 12px; }
.check-contact ul { list-style: none; margin: 0; padding: 0; }
.check-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.check-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text); }

/* Sticky bottom action bar */
body.has-sticky-cta { padding-bottom: 96px; }
body.has-sticky-cta:has(.check-sticky.two) { padding-bottom: 150px; }
.check-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15,23,42,.08);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.check-sticky-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.check-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; border-radius: 14px; font-weight: 800; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.check-btn svg { width: 20px; height: 20px; }
.check-btn:active { transform: scale(.98); }
.check-btn-app { background: #1F6FB5; color: #fff; box-shadow: 0 8px 20px rgba(31,111,181,.3); }
.check-btn-app:hover { background: #185E9B; color: #fff; }
.check-btn-web { background: #fff; color: #1F6FB5; border: 2px solid #1F6FB5; }
.check-btn-web:hover { background: #EEF5FC; }
@media (min-width: 560px) {
  .check-sticky.two .check-sticky-inner { flex-direction: row; }
  .check-sticky.two .check-btn { flex: 1; }
  body.has-sticky-cta:has(.check-sticky.two) { padding-bottom: 96px; }
}
.ck-video::after, .ck-video2::after, .ck-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
}
.ck-folder::before {
  content: ""; position: absolute; left: 0; top: -14%; width: 45%; height: 22%;
  background: #4FA3F7; border-radius: 4px 4px 0 0;
}
.ck-doc::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 45%; height: 30%;
  background: repeating-linear-gradient(#CBD5E1 0 2px, transparent 2px 6px);
}
