/* ============================================================
   CaseLift · Shared light design (the homepage rebuild)
   Used by the case studies, /results and /book. The homepage keeps
   its own inline copy of the same tokens, nav and footer, so change
   both together.
   ============================================================ */
:root {
  --navy: #0B2B45;
  --navy-deep: #071F33;
  --blue: #0A73B7;
  --blue-bright: #1E9BE0;
  --blue-light: #4DB8F2;
  --blue-wash: #E8F3FB;
  --gray-bg: #F6F9FC;
  --border: #E3E8ED;
  --text-2: #3F5163;
  --text-3: #5E6E7D;
  --green: #0E6B3D;
  --green-mid: #1F9D5C;
  --green-light: #8FE3B5;
  --on-navy: #C9D8E5;
  --head: 'Inter Tight', Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--navy);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  /* Graph paper over a light glow at the top, same as the homepage. */
  background:
    linear-gradient(rgba(10,115,183,.06) 1px, transparent 1px) center top / 32px 32px,
    linear-gradient(90deg, rgba(10,115,183,.06) 1px, transparent 1px) center top / 32px 32px,
    radial-gradient(42% 520px at 80% 260px, rgba(30,155,224,.14), transparent 70%) no-repeat,
    radial-gradient(38% 420px at 8% 0, rgba(77,184,242,.12), transparent 70%) no-repeat,
    linear-gradient(180deg, #F3F8FD 0, #fff 700px) no-repeat,
    #fff;
}
h1, h2, h3, h4, h5, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.accent { color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 16px 30px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; border: 0; transition: background-color .15s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 44px; padding: 11px 20px; font-size: 15px; white-space: nowrap; }
.btn-brand { background: var(--blue); }

/* Nav */
.topbar { background: var(--navy-deep); color: #C9D6E2; font-size: 13px; position: relative; z-index: 11; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar b { color: #fff; font-weight: 600; }
.topbar a { color: #C9D6E2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .ph-t { background: rgba(255,255,255,.12); color: #C9D6E2; border-radius: 4px; padding: 0 4px; }
.topbar a.topbar-login { flex: none; font-weight: 600; color: #fff; }
.topbar-login::after { content: " →"; }
@media (max-width: 600px) { .topbar { font-size: 12px; } .topbar-contact { gap: 2px 14px; } }
.nav { background: transparent; position: relative; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.nav-logo img { height: 34px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 12px; }
@media (min-width: 861px) { .nav-right { gap: 36px; } .nav-links { gap: 32px; } }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a, .nav-menu-panel a { color: var(--navy); text-decoration: none; }
.nav-links a:hover, .nav-menu-panel a:hover { color: var(--blue); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 15px; font-weight: 600; background: #fff; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 200px; display: flex; flex-direction: column; }
.nav-menu-panel a { padding: 12px 14px; font-weight: 500; }

/* Footer */
.footer { background: var(--navy-deep); color: var(--on-navy); font-size: 15px; margin-top: 0; }
.footer-inner { padding-top: 56px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { height: 30px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.footer-brand a { color: #8CCBF2; }
.footer-col { flex: 0 1 150px; display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-size: 15px; font-weight: 600; color: #fff; font-family: inherit; }
.footer-col a { color: var(--on-navy); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.disclaimer { font-size: 13px; line-height: 1.6; color: #9DB3C6; border-top: 1px solid #1B3A55; padding-top: 22px; }

/* Engine dots used in meta lines and result cards */
.nav-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.nav-dot.rc { background: var(--blue-bright); } .nav-dot.cv { background: var(--green-mid); } .nav-dot.an { background: #7C5CDB; }

/* Page hero (case studies, results, book) */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-bg { display: none; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--blue); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.kicker, .badge { font-size: 14px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-mid); }
.plate { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; }
.plate img { height: 40px; width: auto; }
.hero-title { font-family: var(--head); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.03em; max-width: 900px; text-wrap: balance; }
.hero-title .accent { color: var(--blue); }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 760px; }
.hero-sub br { display: none; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; color: var(--text-2); }
.hero-meta .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--blue); }
.hero-meta .dv { color: #9DB3C6; }

/* Case study stats */
.stats { padding: 0 0 48px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; }
.stat .v { font-family: var(--head); font-weight: 800; font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1; color: var(--navy); }
.stat .v.money { color: var(--blue); }
.stat .l { margin-top: 8px; font-size: 14px; color: var(--text-3); }

/* Case study article + rail */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-bottom: 96px; }
.art { display: flex; flex-direction: column; gap: 40px; }
.grp { background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 18px; padding: 28px 30px; }
.grp h2 { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 14px; }
.grp p { color: var(--text-2); margin-bottom: 14px; } .grp p:last-child { margin-bottom: 0; }
.grp p.lede { color: var(--navy); }
.grp ul { margin: 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.grp strong { color: var(--navy); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.facts dt { font-size: 13px; color: var(--text-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-wash); color: var(--blue); font-family: var(--head); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step p { margin: 4px 0 0; }
.notes { background: var(--gray-bg); border-radius: 14px; padding: 18px 20px; margin-top: 8px; }
.notes h5 { font-size: 14px; margin-bottom: 8px; }
.notes ul { font-size: 14px; }
.pq { margin: 0; border-left: 4px solid var(--blue-bright); padding: 6px 0 6px 20px; }
.pq p { font-size: 22px; line-height: 1.45; font-weight: 500; color: var(--navy); }
.pq cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--text-3); }
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.rail-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(80% 90% at 100% 0, rgba(30,155,224,.25), transparent 70%), var(--navy); }
.rail-card h3 { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.rail-card p { color: var(--on-navy); font-size: 15px; }
.rail-card .btn { background: var(--blue-bright); color: var(--navy); font-weight: 700; align-self: flex-start; }
.rail-card .btn:hover { background: #fff; }
.rail-note { font-size: 13px !important; color: var(--green-light) !important; font-weight: 600; }
.rail-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 15px; }
.rail-back svg { width: 16px; height: 16px; }

/* /results grid */
.grid-sec { padding: 0 0 96px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.case-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.case-card:hover { border-color: var(--blue); box-shadow: 0 20px 40px -28px rgba(11,43,69,.4); color: inherit; }
.case-plate { padding: 22px 24px 0; }
.plate-in { display: inline-flex; align-items: center; height: 38px; }
.plate-in img { height: 34px; width: auto; }
.case-mono { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-wash); color: var(--blue); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.case-main { padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case-body { display: flex; flex-direction: column; gap: 6px; }
.case-eng { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-3); }
.case-eng > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.case-name { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.case-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-3); }
.case-loc svg { width: 14px; height: 14px; }
.case-head { color: var(--text-2); font-size: 15.5px; }
.case-stats { display: flex; gap: 24px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }
.stat-v { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.stat-v.money { color: var(--blue); }
.stat-l { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.case-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.case-go svg { width: 16px; height: 16px; }
.note { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-radius: 20px; padding: 28px 32px; color: #fff; background: radial-gradient(60% 90% at 100% 0, rgba(30,155,224,.25), transparent 70%), var(--navy); }
.note h3 { font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.note p { color: var(--on-navy); margin-top: 6px; }
.note .btn { background: var(--blue-bright); color: var(--navy); font-weight: 700; }
.note .btn:hover { background: #fff; }
.disclosure { margin-top: 24px; font-size: 13px; color: var(--text-3); }

/* /book */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--text-2); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .tick { color: var(--green-mid); font-weight: 800; }
.cal-sec { padding: 0 0 80px; }
.cal-card { max-width: 980px; margin: 0 auto; }
.cal-card iframe { width: 100%; height: 440px; border: none; display: block; background: transparent; opacity: 0; transition: opacity .35s ease; }
.cal-card iframe.is-ready { opacity: 1; }
.cal-card[hidden], .q-card[hidden], .q-back[hidden] { display: none; }
.cal-under { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-3); }
.q-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 36px 32px; box-shadow: 0 24px 50px -32px rgba(11,43,69,.4); }
.q-step { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.q-title { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 22px; }
.q-opts { display: grid; gap: 10px; }
.q-opt { appearance: none; width: 100%; min-height: 56px; text-align: left; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--navy); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; }
.q-opt:hover, .q-opt:focus-visible { background: var(--blue-wash); border-color: var(--blue); outline: none; }
.q-back { appearance: none; background: none; border: 0; color: var(--text-3); font: inherit; font-size: 15px; margin-top: 18px; padding: 8px 0; cursor: pointer; }
.q-back:hover { color: var(--navy); }

/* Reveal on scroll (pages add .in via their own observer) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .rail { position: static; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .stat-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-logo img { height: 28px; }
  .nav-right .btn-sm { padding: 10px 16px; }
  .grp { padding: 22px 20px; }
  .facts { grid-template-columns: 1fr; }
  .q-card { padding: 28px 20px; }
  .q-title { font-size: 22px; }
  .case-grid { grid-template-columns: 1fr; }
}
