/* Peel Digital – shared styles for inner pages.
   Same tokens as the homepage (index.html <style> block). Dark is the default;
   add .light / .light-2 to a section to switch it to the light palette. */

:root {
  --bg: #04192D;
  --band-1: #082136;
  --band-2: #0C2A44;
  --band-3: #113553;
  --card: #0A2438;
  --ink: #EDF6FC;
  --ink-2: #9FB3C4;
  --line: #1E3850;
  --accent: #4A93E0;
  --light: #F6F4EE;
  --light-2: #ECE8DD;
  --light-ink: #04192D;
  --light-ink-2: rgba(4,25,45,0.70);
  --light-line: rgba(4,25,45,0.18);
  --light-accent: #2F7ED1;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
  --gutter: 32px;
  --section: 140px;
}
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.6;
  color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, p, blockquote, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Accessibility */
.skip-link {
  position: absolute; top: 0; left: 0; transform: translateY(-120%);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 8px 0;
  font-size: 14px; font-weight: 500; z-index: 100; transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.light a:focus-visible, .light-2 a:focus-visible, .light summary:focus-visible { outline-color: var(--light-ink); }

/* Layout + type */
.wrap { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.h1, .h2, .h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.h1 { font-size: clamp(44px, 6.4vw, 88px); }
.h2 { font-size: clamp(36px, 4.4vw, 60px); }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-2); }
.accent { color: var(--accent); }

/* Light sections */
.light { background: var(--light); color: var(--light-ink); }
.light-2 { background: var(--light-2); color: var(--light-ink); }
.light .lede, .light-2 .lede { color: var(--light-ink-2); }
.light .accent, .light-2 .accent { color: var(--light-accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.2;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .88; }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--light-ink); color: var(--light); }
.text-link { font-size: 16px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { opacity: .7; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(4,25,45,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }

/* Page hero */
.page-hero { padding: 96px 0 var(--section); }
.crumbs { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }
.crumbs a:hover { color: var(--ink); }
.page-hero .h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 40px; max-width: 46ch; }
.page-hero .actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }

/* Two-column section: heading left, content right */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
.split > .h2 { position: sticky; top: 120px; }

/* Statement rows (pain points, deliverables) */
.rows { border-top: 1px solid var(--light-line); }
.rows li { border-bottom: 1px solid var(--light-line); padding: 28px 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; letter-spacing: -0.015em; }
.rows.small li { font-size: 19px; padding: 22px 0; }

/* Feature grid */
.features { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; row-gap: 64px; }
.feature { border-top: 1px solid var(--light-line); padding-top: 28px; }
.feature p { margin-top: 16px; color: var(--light-ink-2); font-size: 17px; line-height: 1.65; max-width: 50ch; }

/* Funnel stages */
.stages { margin-top: 72px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stage { padding: 28px 24px 0 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink-2); }
.stage:last-child { color: var(--accent); }
.measure-copy { margin-top: 72px; display: grid; grid-template-columns: 7fr 5fr; gap: 96px; align-items: end; }
.measure-copy p { color: var(--ink-2); font-size: 18px; line-height: 1.65; max-width: 58ch; }
.measure-copy .statement { color: var(--ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }

/* Results */
.result { padding: 64px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: end; }
.result:first-of-type { margin-top: 72px; }
.result-nums { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.num { font-size: clamp(44px, 4.8vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.num-cap { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.result-desc { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.result-desc strong { color: var(--ink); font-weight: 500; }
.quote { margin-top: 24px; padding-top: 64px; border-top: 1px solid var(--line); }
.quote p { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.32; letter-spacing: -0.02em; max-width: 34ch; }
.quote footer { margin-top: 36px; font-size: 16px; color: var(--ink-2); }
.quote footer strong { color: var(--ink); font-weight: 500; }

/* Questions (native details/summary) */
.qs { margin-top: 72px; border-top: 1px solid var(--line); }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary {
  list-style: none; cursor: pointer; padding: 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 32px;
  font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
}
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--ink-2); width: 24px; text-align: center; flex-shrink: 0; }
.qs details[open] summary::after { content: '−'; }
.qs details p { padding: 0 64px 36px 0; color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 760px; }

/* Closing CTA (light) */
.cta .h1 { max-width: 14ch; }
.cta .lede { margin-top: 36px; max-width: 52ch; }
.cta .btn { margin-top: 48px; }

/* Footer (light) */
.footer { padding: 0 0 64px; font-size: 15px; }
.footer-inner { position: relative; padding-top: 48px; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-left { display: flex; gap: 64px; flex-wrap: wrap; align-items: flex-start; }
.footer-logo { height: 28px; width: auto; display: block; }
.footer address { font-style: normal; color: var(--light-ink-2); line-height: 1.6; }
.footer address strong { display: block; font-weight: 500; color: var(--light-ink); margin-bottom: 4px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--light-ink-2); }
.footer-right a { color: var(--light-ink); font-weight: 500; }
.footer-right a:hover { opacity: .7; }

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

@media (max-width: 900px) {
  :root { --gutter: 20px; --section: 80px; }
  .nav-links { display: none; }
  .nav-inner { padding-top: 12px; padding-bottom: 12px; }
  .nav .btn { padding: 12px 20px; font-size: 15px; }
  .page-hero { padding-top: 48px; }
  .crumbs { margin-bottom: 36px; }
  .page-hero .lede { margin-top: 28px; }
  .page-hero .actions { margin-top: 36px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split > .h2 { position: static; }
  .features { margin-top: 48px; grid-template-columns: 1fr; row-gap: 40px; }
  .stages { margin-top: 48px; grid-template-columns: 1fr; border-top: 0; }
  .stage { padding: 18px 0; border-top: 1px solid var(--line); }
  .measure-copy { margin-top: 48px; grid-template-columns: 1fr; gap: 32px; }
  .result { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .result:first-of-type { margin-top: 48px; }
  .quote { padding-top: 48px; }
  .qs { margin-top: 40px; }
  .qs summary { padding: 24px 0; }
  .qs details p { padding-right: 0; }
  .footer-inner, .footer-left { flex-direction: column; gap: 28px; }
  .footer-right { align-items: flex-start; }
}

/* Regions list (international markets page) */
.regions { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 96px; border-top: 1px solid var(--light-line); }
.regions li { border-bottom: 1px solid var(--light-line); padding: 22px 0; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.regions-note { margin-top: 48px; display: grid; grid-template-columns: 7fr 5fr; gap: 96px; }
.regions-note p { color: var(--light-ink-2); font-size: 18px; line-height: 1.65; max-width: 58ch; }

/* Results told as statements (no big numbers) */
.result-statement { padding: 64px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 6fr 6fr; gap: 96px; align-items: start; }
.result-statement:first-of-type { margin-top: 72px; }
.result-statement h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent); }
.result-statement p { color: var(--ink-2); font-size: 18px; line-height: 1.65; max-width: 52ch; }

@media (max-width: 900px) {
  .regions { margin-top: 48px; grid-template-columns: 1fr; }
  .regions-note { margin-top: 32px; grid-template-columns: 1fr; gap: 0; }
  .result-statement { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .result-statement:first-of-type { margin-top: 48px; }
}

/* Solutions hub: problem bands */
.problem { padding: 96px 0; }
.problem-1 { background: var(--band-1); }
.problem-2 { background: var(--band-2); }
.problem-3 { background: var(--band-3); }
.problem-inner { display: grid; grid-template-columns: 7fr 5fr; gap: 96px; align-items: start; }
.problem h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.problem-desc { margin-top: 28px; color: var(--ink-2); font-size: 18px; line-height: 1.65; max-width: 52ch; }
.fit-label { font-size: 15px; color: var(--ink-2); }
.fit-list { margin-top: 16px; border-top: 1px solid rgba(237,246,252,0.14); }
.fit-list li { border-bottom: 1px solid rgba(237,246,252,0.14); padding: 16px 0; font-size: 18px; line-height: 1.45; }
.problem .text-link { margin-top: 36px; font-size: 18px; }
.problem .text-link .arrow { color: var(--accent); }

/* Big statement paragraph */
.statement-lg { margin-top: 48px; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.35; letter-spacing: -0.02em; max-width: 34ch; }

/* Results as a short list */
.result-list { margin-top: 72px; border-top: 1px solid var(--line); }
.result-list li { border-bottom: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 6fr 6fr; gap: 96px; align-items: baseline; }
.result-list strong { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; color: var(--accent); }
.result-list span { color: var(--ink-2); font-size: 18px; line-height: 1.55; }

@media (max-width: 900px) {
  .problem { padding: 64px 0; }
  .problem-inner { grid-template-columns: 1fr; gap: 36px; }
  .statement-lg { margin-top: 32px; }
  .result-list { margin-top: 48px; }
  .result-list li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
}

.stages-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stages-3 { grid-template-columns: 1fr; } }
.footer-inner::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--light-line); }

.problem .problem-btn { margin-top: 36px; }
.result-list--nums li { align-items: center; padding: 40px 0; }
.result-list--nums strong { font-size: clamp(56px, 7vw, 104px); letter-spacing: -0.045em; line-height: 0.95; }
.result-list--nums span { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); line-height: 1.45; max-width: 36ch; }

/* Mobile menu (no-JS details/summary; hidden on desktop) */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; padding: 10px 2px; color: var(--ink); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: '+'; margin-left: 8px; color: var(--ink-2); }
.mnav[open] summary::after { content: '−'; }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px; background: var(--band-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 0; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.mnav-panel a { display: block; padding: 12px 20px; font-size: 17px; color: var(--ink-2); }
.mnav-panel a:hover, .mnav-panel a[aria-current] { color: var(--ink); }
.mnav-panel a:last-child { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .mnav { display: block; }
  .nav-right { gap: 18px; }
}
@media (max-width: 420px) {
  .nav-right > .btn { display: none; }
}

/* Case studies: hub cards */
.case-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-card { display: flex; flex-direction: column; gap: 18px; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, background .2s; min-height: 340px; }
.case-card:hover { border-color: var(--accent); background: var(--band-1); }
.case-market { font-size: 14px; color: var(--accent); font-weight: 500; letter-spacing: .02em; }
.case-client { font-size: 17px; color: var(--ink-2); }
.case-result { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); max-width: 22ch; }
.case-link { margin-top: auto; font-size: 16px; font-weight: 500; display: inline-flex; gap: 8px; }
.case-link .arrow { color: var(--accent); transition: transform .2s; }
.case-card:hover .case-link .arrow { transform: translateX(4px); }

/* Case study page */
.page-hero .h1-case { max-width: 22ch; font-size: clamp(38px, 5vw, 72px); line-height: 1.08; }
.glance { margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.glance-item { padding-top: 24px; }
.glance dt { font-size: 14px; color: var(--ink-2); }
.glance dd { margin: 8px 0 0; font-size: 17px; line-height: 1.45; }
.glance dd:first-letter { text-transform: uppercase; }
.glance dd a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.glance dd a:hover { border-color: var(--accent); }
.cs-text { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; letter-spacing: -0.015em; max-width: 40ch; }
.did strong { font-weight: 500; }
.did li { color: var(--light-ink-2); }
.did strong { color: var(--light-ink); }
.cs-intro { margin-top: 28px; color: var(--ink-2); font-size: 18px; }
.cs-nums { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--line); }
.csn { padding-top: 36px; }
.csn-num { font-size: clamp(56px, 6.4vw, 96px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; color: var(--accent); }
.csn-num--text { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.csn-cap { margin-top: 16px; font-size: 18px; line-height: 1.45; max-width: 26ch; }
.cs-note { margin-top: 56px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 60ch; }
.back-link { margin-top: 56px; color: var(--ink-2); }
.back-link .arrow { color: var(--accent); }

/* Testimonial on its own */
.quote-solo { margin-top: 64px; }
.quote-solo p { max-width: 40ch; }
.quote-by { display: flex; align-items: center; gap: 16px; }
.quote-by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* Approach */
.features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px; }
.steps { margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.step { border-top: 1px solid var(--light-line); padding-top: 28px; }
.step-n { display: block; font-size: 15px; font-weight: 500; color: var(--light-accent); margin-bottom: 20px; }
.step p { margin-top: 14px; color: var(--light-ink-2); font-size: 17px; line-height: 1.6; }
.steps-note { margin-top: 64px; font-size: 18px; line-height: 1.65; color: var(--light-ink-2); max-width: 60ch; }
.who-not { margin-top: 40px; font-size: 18px; line-height: 1.6; color: var(--light-ink-2); max-width: 56ch; }

/* About */
.story p { font-size: 18px; line-height: 1.7; color: var(--light-ink-2); max-width: 58ch; }
.story p + p { margin-top: 24px; }
.story .story-lead { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.4; letter-spacing: -0.015em; color: var(--light-ink); margin-bottom: 36px; }

@media (max-width: 900px) {
  .case-grid { margin-top: 48px; grid-template-columns: 1fr; gap: 16px; }
  .case-card { padding: 28px; min-height: 0; }
  .glance { margin-top: 48px; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .glance-item { padding: 18px 0; }
  .cs-nums { margin-top: 40px; grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .csn { padding: 28px 0; border-top: 1px solid var(--line); }
  .cs-note { margin-top: 32px; }
  .features-3 { grid-template-columns: 1fr; }
  .steps { margin-top: 48px; grid-template-columns: 1fr; gap: 32px; }
  .steps-note { margin-top: 40px; }
  .quote-solo { margin-top: 40px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Result links */
.rs-link { margin-top: 24px; color: var(--ink); }
.rs-link .arrow, .all-results .arrow { color: var(--accent); }
.all-results { margin-top: 56px; }
@media (max-width: 900px) { .all-results { margin-top: 40px; } }

/* Team (about page) */
.team { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 64px; }
.member { border-top: 1px solid var(--light-line); padding-top: 28px; }
.member-name { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.member-role { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--light-accent); }
.member-bio { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--light-ink-2); max-width: 40ch; }
@media (max-width: 900px) {
  .team { margin-top: 48px; grid-template-columns: 1fr; gap: 36px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
