/* Foundesk revision 3: colour, rhythm and tighter copy. Loaded last. */
:root{--blue:#EDF3FB;--lav:#F0EFFA;--peach:#EAF0FB;--soft:#F7F8FB}

/* shared pills */
.pill-badge{display:inline-flex;align-items:center;gap:8px;font:600 13px/1 Manrope,sans-serif;color:#0A1628;background:#FFFFFF;border:1px solid #E7EAF0;border-radius:999px;padding:8px 14px;box-shadow:0 4px 14px -8px rgba(10,22,40,.25)}
.pill-badge i{width:8px;height:8px;border-radius:50%;background:#0047AB;box-shadow:0 0 0 4px #EAF0FB}
.pill-badge.dark{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#FFFFFF;box-shadow:none}

/* rhythm: less empty space */
.r3 .sec{padding-block:76px}
.story .measure .story-section{padding:64px 0}

/* HERO */
.r3-hero{position:relative;overflow:hidden;background:
 radial-gradient(40% 60% at 92% 10%,rgba(0,71,171,.22),transparent 70%),
 radial-gradient(45% 55% at 70% 95%,rgba(91,95,199,.16),transparent 70%),
 radial-gradient(35% 50% at 0% 0%,#EDF3FB,transparent 70%),
 linear-gradient(180deg,#FFFFFF,#F7F8FB)!important;padding-block:56px 64px!important}
.r3-hero h1{margin-top:20px}
.hero-pills{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 0;padding:0}
.hero-pills li{font-size:13.5px;font-weight:600;color:#0A1628;padding:8px 14px;border-radius:999px}
.p-blue{background:#EDF3FB}.p-lav{background:#F0EFFA}.p-peach{background:#EAF0FB}
.r3-hero .works-in{margin-top:18px}
.r3-hero .stage{position:relative;background:linear-gradient(140deg,#0A1628 0%,#1B2C4F 55%,#0047AB 140%);padding:26px;border-radius:30px;box-shadow:0 30px 60px -30px rgba(10,22,40,.6)}
.float{position:absolute;z-index:3;font:700 12.5px/1 Manrope,sans-serif;color:#0A1628;background:#FFFFFF;border-radius:999px;padding:9px 13px;box-shadow:0 12px 26px -10px rgba(10,22,40,.45);white-space:nowrap;animation:bob 5s ease-in-out infinite}
.float.f1{top:-14px;left:28px}
.float.f2{bottom:-15px;right:34px;background:#EAF0FB;animation-delay:-2.5s}
@keyframes bob{50%{transform:translateY(-6px)}}
.r3-hero .win-body{gap:14px}
.pic.photo{width:36px;height:36px;border-radius:8px;object-fit:cover;display:block}
.win.teams .pic.photo{border-radius:50%}
.say-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:5px}
.say-list li{display:flex;gap:8px;font-size:13.5px;line-height:1.45;color:#1D1C1D;background:#F7F8FB;border-radius:8px;padding:6px 9px}
.say-list b{font-weight:700}
.files{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.file{display:flex;align-items:center;gap:9px;border:1px solid #E6E8EC;border-radius:10px;padding:8px 10px;min-width:0;background:#FFFFFF}
.file>div{min-width:0}
.file b{display:block;font-size:12.5px;color:#1D1C1D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file small{display:block;font-size:11px;color:#616061}
.ficon{flex:0 0 30px;height:30px;border-radius:7px;display:grid;place-items:center;font:800 9.5px Manrope,sans-serif;color:#FFFFFF}
.ficon.csv{background:#16A06A}.ficon.mail{background:#EAF0FB;font-size:15px}
.reacts{display:flex;gap:6px;margin-top:10px}
.reacts span{font-size:12px;font-weight:600;color:#1D1C1D;border:1px solid #E6E8EC;background:#F7F8FB;border-radius:999px;padding:2px 9px}
.replies{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12.5px}
.replies img{width:22px;height:22px;border-radius:6px;object-fit:cover}
.replies b{color:#1264A3;margin-left:2px}.replies small{color:#616061}
.win.teams .replies img{border-radius:50%}.win.teams .replies b{color:#4F52B2}
.r3-hero .status{margin-top:10px}

/* TOOLS */
.r3-tools{background:radial-gradient(60% 120% at 100% 0%,rgba(0,71,171,.28),transparent 60%),linear-gradient(120deg,#0A1628,#14233F)!important;border:0!important;padding-block:52px!important;color:#FFFFFF}
.tools-head{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;margin-bottom:28px}
.tools-head h2{font:500 clamp(26px,3vw,38px)/1.15 Manrope,sans-serif;letter-spacing:-.03em;color:#FFFFFF;margin:0}
.mq-row{display:flex;align-items:center;gap:12px}
.r3-tools .mq{flex:1;min-width:0;overflow:hidden!important;-webkit-mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)!important;mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)!important}
.r3-tools .mq-track{display:flex;flex-wrap:nowrap!important;width:max-content!important;gap:12px;justify-content:flex-start!important;animation:slide 42s linear infinite!important}
.r3-tools .mq-track .dup{display:flex;gap:12px;padding-right:12px}
.r3-tools .mq:hover .mq-track{animation-play-state:paused!important}
.r3-tools .tool{background:#FFFFFF;border-color:#FFFFFF;color:#0A1628;height:46px;font-size:14px;padding:0 18px}
.r3-tools .tool img{height:22px;filter:none;opacity:1}
.r3-tools .tool.more{flex:0 0 auto;background:#0047AB;border-color:#0047AB;color:#FFFFFF;font-weight:700}
.r3-tools .tm{color:rgba(255,255,255,.6);text-align:center;font-size:12px;margin:18px auto 0}

/* ROLES */
.r3-roles{background:linear-gradient(180deg,#FFFFFF 0%,#F0EFFA 100%)}
.r3-roles .tabs{margin-top:34px}
.r3-roles .tabs button{background:#FFFFFF}
.r3-roles .tabs button[aria-selected="true"]{background:#0047AB;border-color:#0047AB;color:#FFFFFF;box-shadow:0 10px 22px -12px #0047AB}
.r3-roles .jd{border:0;box-shadow:0 24px 50px -30px rgba(10,22,40,.45)}
.r3-roles .jd-side{background:linear-gradient(160deg,#0A1628,#1B2C4F);color:#FFFFFF;border:0}
.r3-roles .jd-side h3,.r3-roles .jd-side .facts dd{color:#FFFFFF}
.r3-roles .jd-side .sum,.r3-roles .jd-side .doc,.r3-roles .jd-side .facts dt{color:rgba(255,255,255,.72)}
.r3-roles .jd-side .facts div{border-color:rgba(255,255,255,.14)}
.r3-roles .jd-main h4{color:#0A1628;font-weight:600;font-size:13px}
.r3-roles .asks span{background:#EAF0FB;color:#0A1628;border:0}
.r3-roles .also{margin-top:16px}

/* PROOF */
.r3-proof{background:radial-gradient(50% 80% at 0% 100%,rgba(0,71,171,.22),transparent 70%),#0A1628!important}
.flow-pills{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:22px 0 0}
.flow-pills li{font-size:13.5px;font-weight:600;color:#FFFFFF;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:8px 13px}
.r3-proof .proof-system{background:rgba(255,255,255,.04)}
.r3-proof .proof-system li>span{color:#0047AB;opacity:1;font-weight:700}
.r3-proof .proof-gate{background:#EAF0FB}

/* TEASER */
.r3-teaser{padding:56px 0!important;border:0!important;background:#FFFFFF}
.r3-teaser .wrap{display:block!important}
.teaser-card{display:grid;grid-template-columns:auto 1fr auto;gap:36px;align-items:center;border-radius:30px;padding:34px 40px;background:linear-gradient(120deg,#EDF3FB 0%,#F0EFFA 55%,#EAF0FB 100%)}
.teaser-logo{background:#FFFFFF;border-radius:20px;padding:20px 22px;box-shadow:0 14px 30px -20px rgba(10,22,40,.4)}
.teaser-logo img{width:170px;height:auto;display:block}
.teaser-card h2{font:500 clamp(24px,2.6vw,32px)/1.2 Manrope,sans-serif;letter-spacing:-.03em;margin:12px 0 0}
.teaser-card p{margin:10px 0 0;font-size:16px;color:#3D4759}
.btn.dark{background:#0A1628;color:#FFFFFF}

/* GUARD */
.r3-guard{background:linear-gradient(180deg,#EDF3FB,#F7F8FB)!important}
.r3-guard .rules .ico{font-size:20px;display:grid;place-items:center;border:0}
.t-blue{background:#EDF3FB!important}.t-peach{background:#EAF0FB!important}.t-lav{background:#F0EFFA!important}
.r3-guard .rules .ico.t-blue{background:#FFFFFF!important}
.r3-guard .perm{box-shadow:0 24px 50px -30px rgba(10,22,40,.45);border:0}

/* WHO */
.r3-who .who-grid{margin-top:36px}
.r3-who .who-card{border:0;position:relative;overflow:hidden}
.r3-who .who-card .emo{font-size:26px;width:50px;height:50px;border-radius:14px;background:#FFFFFF;display:grid;place-items:center;box-shadow:0 8px 18px -12px rgba(10,22,40,.4)}
.r3-who .who-card .k{color:#0047AB;font-weight:600}
.r3-who .who-card.t-navy{background:linear-gradient(160deg,#0A1628,#1B2C4F)!important}
.r3-who .who-card.t-navy h3{color:#FFFFFF}.r3-who .who-card.t-navy p{color:rgba(255,255,255,.75)}
.r3-who .who-card.t-navy .emo{background:rgba(255,255,255,.12)}
.r3-who .no-slack{margin-top:22px;display:inline-flex;gap:8px;background:#F7F8FB;border-radius:999px;padding:10px 18px}

/* PROCESS */
.r3-process{background:linear-gradient(135deg,#EAF0FB 0%,#F0EFFA 50%,#EDF3FB 100%)}
.steps5{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:40px;counter-reset:s}
.s5{background:#FFFFFF;border-radius:20px;padding:22px;position:relative;box-shadow:0 18px 36px -28px rgba(10,22,40,.5)}
.s5 .no{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#0A1628;color:#FFFFFF;font:700 13px Manrope,sans-serif}
.s5.last .no{background:#0047AB}
.s5 h3{font-size:21px;margin-top:14px;letter-spacing:-.025em}
.s5 p{font-size:14.5px;line-height:1.5;margin-top:8px;color:#3D4759}

/* FOUNDER */
.r3-founder{background:#FFFFFF}
.r3-founder .portrait{box-shadow:16px 16px 0 #EAF0FB}
.r3-founder .promises div{background:#F7F8FB;border-radius:14px;padding:14px 16px;border:0}

/* PRICING */
.r3-pricing{background:radial-gradient(40% 50% at 50% 0%,rgba(0,71,171,.10),transparent 70%),#F7F8FB!important}

/* FINAL */
.r3 .final-box{background:radial-gradient(60% 100% at 100% 0%,rgba(0,71,171,.45),transparent 60%),linear-gradient(130deg,#0A1628,#1B2C4F)!important}

@media(max-width:1020px){
 .steps5{grid-template-columns:1fr 1fr}
 .teaser-card{grid-template-columns:1fr;gap:20px;padding:28px}
 .teaser-card .btn{justify-self:start}
}
@media(max-width:900px){.float.f2{right:10px}}
@media(max-width:640px){
 .r3 .sec{padding-block:56px}
 .r3-hero{padding-block:28px 44px!important}
 .r3-hero .stage{padding:16px;border-radius:22px}
 .float{display:none}
 .files{grid-template-columns:1fr}
 .steps5{grid-template-columns:1fr}
 .mq-row{flex-direction:column}.r3-tools .mq{width:100%;flex:none}
 .teaser-card .btn{width:100%}
 .r3-who .no-slack{border-radius:16px;display:block}
}
@media(prefers-reduced-motion:reduce){
 .r3-tools .mq-track{animation:none!important;flex-wrap:wrap!important;width:auto!important;justify-content:center!important}
 .r3-tools .mq-track .dup{display:none}
 .r3-tools .mq{-webkit-mask:none!important;mask:none!important}
 .float{animation:none}
}

/* ===== CASE STUDY ===== */
.story-cover{position:relative;overflow:hidden;background:
 radial-gradient(45% 70% at 100% 0%,rgba(0,71,171,.35),transparent 70%),
 radial-gradient(40% 60% at 0% 100%,rgba(91,95,199,.28),transparent 70%),
 #0A1628!important}
.client-logo{background:#FFFFFF;border-radius:16px;padding:12px 16px;display:grid;place-items:center;box-shadow:0 14px 30px -16px rgba(0,0,0,.5)}
.client-logo img{width:150px;height:auto;display:block}
.cover-flow div b{display:inline-block}
.cover-flow span{color:#0047AB!important;opacity:1!important;font-weight:700}
.story-facts{border:0!important;padding:28px 0 8px!important;gap:12px!important}
.story-facts>div{border-radius:20px;padding:18px 20px;background:#F7F8FB}
.story-facts>div:nth-child(1){background:#EDF3FB}.story-facts>div:nth-child(2){background:#F0EFFA}.story-facts>div:nth-child(3){background:#EAF0FB}.story-facts>div:nth-child(4){background:#0A1628}
.story-facts>div:nth-child(4) span,.story-facts>div:nth-child(4) b{color:#FFFFFF}
.story-facts .fi{font-size:22px;display:block;margin-bottom:8px}
/* full-bleed tinted sections */
.story-section{border:0!important;position:relative}
.story-section.tint{box-shadow:0 0 0 100vmax var(--bg);clip-path:inset(0 -100vmax);background:var(--bg)}
#challenge.tint{--bg:#FFFFFF}
#built.tint{--bg:#F7F8FB}
#control.tint{--bg:#F0EFFA}
#result.tint{--bg:#FFFFFF}
.context-grid>div{background:#FFFFFF;border-radius:20px;padding:24px;box-shadow:0 18px 36px -28px rgba(10,22,40,.5)}
.context-grid>div:first-child{background:#EAF0FB;box-shadow:none}
.context-grid>div:last-child{background:#EDF3FB;box-shadow:none}
.context-grid .ci{font-size:22px;display:block;margin-bottom:10px}
.story .tools span{background:#FFFFFF!important;color:#0A1628!important;font-weight:600;border:1px solid #E7EAF0}
#built .build-copy .tools span{background:#EAF0FB!important;border:0}
.build-copy .count{font-weight:700}
#control .control-grid{background:#FFFFFF;box-shadow:0 24px 50px -30px rgba(10,22,40,.45)}
#control .control-grid>div+div{background:linear-gradient(160deg,#0A1628,#1B2C4F);}
#control .control-grid>div+div h3,#control .control-grid>div+div li{color:#FFFFFF}
#control .control-grid>div+div li:before{color:#0047AB}
#control .control-grid li:before{content:'✓';color:#16A06A;font-weight:700}
.result-band{background:radial-gradient(60% 100% at 100% 0%,rgba(0,71,171,.4),transparent 60%),linear-gradient(130deg,#0A1628,#1B2C4F)!important}
.story-cta{margin:24px 0 64px;padding:56px 32px!important;border-radius:30px;background:linear-gradient(120deg,#EDF3FB 0%,#F0EFFA 55%,#EAF0FB 100%)}
@media(max-width:767px){
 .story-facts{grid-template-columns:1fr 1fr!important}
 .story .measure .story-section{padding:44px 0}
 .story-cta{padding:40px 20px!important;border-radius:22px}
 .client-logo img{width:120px}
}
/* r3.1: line icons replace emoji */
.svg-i{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.story-facts .fi,.context-grid .ci{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#EAF0FB,#EEF1FF);color:#0047AB;font-size:0}
.r3-guard .rules .ico{color:#0047AB}
.r3-who .who-card .emo{color:#0047AB;font-size:0}
.r3-who .who-card .emo .svg-i{width:24px;height:24px}
.r3-who .who-card.t-navy .emo{color:#FFFFFF}
.ficon.mail{color:#0047AB}.ficon.mail .svg-i{width:16px;height:16px}
.say-list .sdot{flex:0 0 8px;height:8px;border-radius:50%;margin-top:6px}
.sdot.red{background:#E5484D}.sdot.amber{background:#F5A524}.sdot.green{background:#16A06A}
