/* Cranberry Analytics — site styles */
:root {
  --navy: #0f2e4f;
  --navy-2: #173f68;
  --teal: #0b8a94;
  --teal-2: #10a7b3;
  --teal-soft: #e3f4f5;
  --ink: #142233;
  --ink-2: #44546a;
  --ink-3: #6b7a8f;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-2: #f4f7fa;
  --warm: #c2462d;
  --radius: 14px;
  --max: 1160px;
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { color: var(--navy); }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--navy); color: #d6e2ef; }
.section.dark h2, .section.dark h3, .section.dark strong { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.dark .eyebrow { color: var(--teal-2); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 46em; }
.dark .lead { color: #c3d3e4; }
.muted { color: var(--ink-3); font-size: .92rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; line-height: 1; }
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .22em; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; align-items: center; }
.nav li { margin: 0; }
.nav a { display: block; padding: .55rem .85rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--bg-2); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.nav a.btn { color: #fff; margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; font: inherit; color: var(--navy); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem clamp(16px, 4vw, 32px) 1rem; }
  .nav a.btn { margin: .4rem 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--teal); color: #fff; font-weight: 600; text-decoration: none; padding: .8rem 1.3rem; border-radius: 10px; border: 2px solid var(--teal); transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); background: transparent; color: var(--navy); }
.dark .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.dark .btn.ghost:hover { border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 80px); background: linear-gradient(180deg, #f4f9fb 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; aspect-ratio: 4/3.4; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(15,46,79,.45); }
.float-card { position: absolute; left: -28px; bottom: -26px; background: #fff; border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 0 18px 40px -16px rgba(15,46,79,.35); border: 1px solid var(--line); max-width: 270px; }
.float-card .k { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.float-card .k b { color: var(--teal); }
.float-card .l { font-size: .85rem; color: var(--ink-2); line-height: 1.4; margin-top: .3rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .float-card { left: 12px; bottom: -22px; }
}

.page-hero { padding-block: clamp(48px, 8vw, 88px) clamp(32px, 5vw, 56px); background: linear-gradient(180deg, #f4f9fb 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 18em; }

/* Numbers strip */
.stats-band { border-block: 1px solid var(--line); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stat:first-child { padding-left: 0; }
.stat { padding: 1.6rem 1.2rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; }
.stat .t { color: var(--ink-2); font-size: .92rem; line-height: 1.4; margin-top: .35rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:first-child { padding-left: 1.2rem; } .stat { border-bottom: 1px solid var(--line); } .stat:nth-child(2n) { border-right: 0; } .stat:last-child { grid-column: 1 / -1; border-bottom: 0; } }

/* Cards / grids */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); }
.alt .card { border-color: #d4dde7; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ico svg { width: 24px; height: 24px; }

/* Problem list */
.problem .card { border-top: 4px solid var(--warm); }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.2rem; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-head); font-weight: 800; color: var(--teal); font-size: .9rem; letter-spacing: .1em; display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Case cards */
.case { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case .top { padding: 1.6rem 1.6rem 1.2rem; background: var(--navy); color: #cfe0f0; }
.case .top .where { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--teal-2); }
.case .top .big { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; margin: .5rem 0 .2rem; }
.case .body { padding: 1.4rem 1.6rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.case .body ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.case .body li { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.case .body li:last-child { border-bottom: 0; }
.case .more { margin-top: auto; font-weight: 600; text-decoration: none; }

/* Split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: 18px; width: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--ink-3); margin-top: .6rem; }

/* Quote */
.pull { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.3; color: #fff; max-width: 30em; margin: 0 0 1rem; letter-spacing: -0.01em; }
.pull::before { content: "\201C"; color: var(--teal-2); }
.pull::after { content: "\201D"; color: var(--teal-2); }

/* Before/after bars */
.ba { display: grid; gap: 1.4rem; }
.ba-item .lbl { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; color: var(--navy); margin-bottom: .45rem; font-size: .98rem; }
.ba-row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: .7rem; margin-bottom: .35rem; font-size: .88rem; color: var(--ink-2); }
.ba-row .bar { height: 14px; border-radius: 7px; background: var(--bg-2); overflow: hidden; }
.ba-row .bar i { display: block; height: 100%; border-radius: 7px; background: #9fb1c4; }
.ba-row.after .bar i { background: var(--teal); }
.ba-row .v { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .98rem; min-width: 5.5em; text-align: right; }
.ba-src { font-size: .82rem; color: var(--ink-3); margin-top: .2rem; }

/* Case study page */
.cs { border-top: 1px solid var(--line); }
.cs-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .cs-head { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; background: var(--bg-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .95rem; }
.facts li:last-child { border-bottom: 0; }
.facts b { color: var(--navy); text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 2rem 0; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: #fff; }
.kpi .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--teal); line-height: 1.1; }
.kpi .t { font-size: .9rem; color: var(--ink-2); margin-top: .35rem; line-height: 1.4; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.cols { columns: 2; column-gap: 3rem; }
.cols li { break-inside: avoid; }
@media (max-width: 700px) { .cols { columns: 1; } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #fff; }
.timeline .when { font-family: var(--font-head); font-weight: 800; color: var(--navy); display: block; }

/* Press */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.2rem; margin-top: 1.4rem; }
.logos span { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.15rem; color: #7d8b9c; white-space: nowrap; }
.press-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.press-list li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; }
.press-list .src { font-weight: 700; color: var(--navy); font-size: .95rem; }
.press-list .src time { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.press-list h3 { font-size: 1.1rem; margin-bottom: .35em; }
.press-list h3 a { color: var(--navy); text-decoration: none; }
.press-list h3 a:hover { color: var(--teal); text-decoration: underline; }
.press-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .press-list li { grid-template-columns: 1fr; gap: .4rem; } }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: 1.45rem; margin-top: 2em; }
.article .note { background: var(--teal-soft); border-radius: 10px; padding: 1rem 1.2rem; font-size: .95rem; color: var(--ink-2); margin: 1.5rem 0 2rem; }
.byline { color: var(--ink-3); font-size: .95rem; margin-bottom: 1.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--navy); color: #cfe0f0; border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card .mail { font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 800; color: #fff; word-break: break-word; text-decoration: none; border-bottom: 2px solid var(--teal-2); }
.contact-card .mail:hover { color: var(--teal-2); }
.contact-card address { font-style: normal; line-height: 1.7; margin-top: 1.4rem; }
.contact-card a.maplink { color: var(--teal-2); }
.map { width: 100%; min-height: 360px; height: 100%; border: 0; border-radius: 18px; background: var(--bg-2); }

/* CTA band */
.cta-band { background: var(--navy); color: #cfe0f0; border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band .mail { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: #fff; text-decoration: none; border-bottom: 2px solid var(--teal-2); word-break: break-word; }
.cta-band .mail:hover { color: var(--teal-2); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0a2139; color: #9fb3c8; padding-block: 56px 40px; font-size: .93rem; margin-top: 0; }
.site-footer a { color: #d6e2ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.foot-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .5rem; }
.foot-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.foot-brand img { height: 38px; width: auto; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
