/* ============================================================
   Lootware — shared site styles
   Modern, confident B2B SaaS. Navy + blue accent. Light base.
   ============================================================ */

:root {
  /* Type (tweakable) — SchoolTalk brand font: Poppins */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  /* Color tokens — SchoolTalk brand palette */
  --bg: #ffffff;
  --bg-alt: #F2F4F7;
  --bg-tint: #e9eff8;
  --ink: #0d2240;
  --ink-soft: #6B7280;
  --ink-faint: #97a1ad;
  --navy: #0B2A5B;
  --navy-2: #071d40;
  --navy-line: #1c3c6b;
  --line: #e4e8ef;
  --line-soft: #eef1f6;

  /* Accent (tweakable) — brand blue #2F80ED + sky #56CCF2 */
  --accent: #2F80ED;
  --accent-deep: #1f63c9;
  --accent-soft: #e6effc;
  --accent2: #56CCF2;
  --accent-ink: #ffffff;

  /* Geometry (tweakable) */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --shadow-sm: 0 1px 2px rgba(13, 26, 43, .06), 0 1px 3px rgba(13, 26, 43, .05);
  --shadow-md: 0 8px 24px -10px rgba(13, 26, 43, .18), 0 2px 8px -4px rgba(13, 26, 43, .10);
  --shadow-lg: 0 30px 60px -24px rgba(11, 31, 58, .35), 0 10px 24px -16px rgba(11, 31, 58, .25);
  --shadow-blue: 0 16px 34px -14px rgba(58, 109, 240, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.on-dark { color: #9dc0ff; }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: currentColor; transform: rotate(45deg);
}

/* ---------- Headlines ---------- */
.display {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.h-xl { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.03em; }
.h-lg { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.h-md { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--bg-alt); }
.btn-dark { background: #fff; color: var(--navy); }
.btn-dark:hover { background: #eef3fb; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--accent);
}
.textlink .arrow { transition: transform .18s ease; }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy); position: relative; flex: none;
  display: grid; place-items: center;
}
.brand-mark::after {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(58,109,240,.25);
}
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-mark-img { height: 36px; width: auto; display: block; }
.prod-logo { height: 32px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo, .brand-mark-img { height: 30px; } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: var(--ink-soft); padding: 8px 13px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--bg-alt); }
.nav-link.active { color: var(--accent); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 18px; margin: 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 13px; font-size: 16px; }
  .nav .nav-cta .btn-text-hide { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c4d2e6; padding-block: 64px 36px; }
.site-footer a { color: #c4d2e6; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { background: #0a3a8c; }
.footer-lock { display: inline-flex; align-items: center; gap: 11px; }
.footer-mark { width: 40px; height: 40px; border-radius: 10px; background: transparent; display: grid; place-items: center; flex: none; }
.footer-mark img { width: 40px; height: 40px; object-fit: contain; }
.footer-wordmark { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: #fff; }
.footer-wordmark b { color: var(--accent2); font-weight: 700; }
.footer-tag { color: #93a6c2; margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer-slogan { display: block; color: #fff; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: #9fb3d1; font-size: 15px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-line);
  color: #7d93b3; font-size: 14px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Dark section ---------- */
.dark { background: var(--navy); color: #d4dfee; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead { color: #a9bdd8; }
.dark .muted { color: #9fb3d1; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3deef; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* feature list with check */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; }
.ticks li .tick {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-top: 1px;
}
.ticks li .tick svg { width: 13px; height: 13px; }
.dark .ticks li { color: #c0d1e8; }
.dark .ticks li .tick { background: rgba(58,109,240,.2); color: #9dc0ff; }

/* pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13.5px; font-weight: 600; font-family: var(--font-head);
  color: var(--ink-soft);
}
.pill.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }
.dark .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #c0d1e8; }

/* ---------- Browser frame (product mock) ---------- */
.frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #f7f9fd; border-bottom: 1px solid var(--line);
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d6deea; display: block; }
.frame-url {
  margin-left: 8px; flex: 1; max-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  font-size: 12.5px; color: var(--ink-faint); padding: 5px 12px;
  font-family: var(--font-body);
}
.frame-body { background: #fbfcfe; }

/* placeholder media */
.ph {
  background-color: var(--bg-alt);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(58,109,240,.06) 11px 12px);
  border: 1px dashed #c6d3e6; border-radius: var(--radius);
  display: grid; place-items: center; min-height: 200px;
  color: var(--ink-faint); font-family: var(--font-body); font-size: 13px;
}
.ph code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--accent-deep); background: rgba(58,109,240,.08); padding: 3px 8px; border-radius: 6px; }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.dark .stat-num { color: #fff; }
.stat-num .unit { color: var(--accent); }
.stat-label { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }
.dark .stat-label { color: #9fb3d1; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { font-size: 13px; color: var(--ink-faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.span-2 { grid-column: 1 / -1; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kicker-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge-soft { background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; font-family: var(--font-head); }

/* Content is ALWAYS visible by default. A subtle entrance is layered on ONLY
   when JS confirms it's working (html.js) AND the reveal element is not yet
   in view — so content can never get stuck invisible. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.pre { opacity: 0; transform: translateY(16px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* anchor offset for sticky header */
section[id], div[id].anchor { scroll-margin-top: 90px; }

/* ---------- Lightbox (click any product screenshot to enlarge + magnify) ---------- */
.frame-body img { cursor: zoom-in; }
.frame.shot-frame, .frame { position: relative; }
.frame-body { position: relative; }
.zoom-hint {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,18,35,.62); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--font-head); font-weight: 600; font-size: 11.5px;
  padding: 6px 11px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
.frame:hover .zoom-hint { opacity: 1; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(8,15,28,.88); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 3vw;
  opacity: 0; transition: opacity .2s ease;
}
.lb-overlay.in { opacity: 1; }
.lb-overlay img {
  max-width: 94vw; max-height: 88vh; border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  transition: transform .25s ease; transform-origin: center center; cursor: zoom-in;
}
.lb-overlay.zoom img { cursor: zoom-out; transition: transform .12s ease; }
.lb-cap { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center;
  color: #aebfd8; font-family: var(--font-head); font-size: 13px; pointer-events: none; }
.lb-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.18); }

/* CTA card sits on navy — force headings/eyebrow white for contrast */
.cta-card h1, .cta-card h2, .cta-card h3, .cta-card h4 { color: #fff; }
.cta-card .eyebrow { color: #fff; }
