/*
 * managed_services.css — bespoke stylesheet for /managed-services ONLY.
 *
 * Deliberately off the Grand Darjeeling system (docs/design.md). Bold modern
 * agency: Ink + Bone canvas, Saffron as the single hot accent, one warm
 * saffron→coral gradient moment, oversized Archivo headlines, organic shape
 * play. Loaded LAST (after Tailwind) by layouts/managed_services.html.erb, so
 * it wins the cascade. DaisyUI/theme.css are NOT loaded on this page.
 *
 * Scope: only loaded on this one page, so element/utility selectors here do
 * not affect the rest of the app.
 */

html{scroll-behavior:smooth}

.ms-body{
  --ink:#0B0B0F;
  --ink-soft:#17171C;
  --bone:#F5F1E8;
  --bone-2:#ECE5D5;
  --bone-3:#E3DAC6;
  --saffron:#F5A200;
  --saffron-deep:#E08E00;
  --coral:#FF4D6D;
  --rule:#C9C5BC;
  --ink-66:rgba(11,11,15,.66);
  --ink-45:rgba(11,11,15,.6);   /* tuned to ~4.6:1 on bone — AA for muted labels */
  --bone-70:rgba(245,241,232,.72);
  --warm:linear-gradient(135deg,#F5A200 0%,#FF7A3C 52%,#FF4D6D 100%);
  --display:'Archivo',sans-serif;
  --body:'Lexend',sans-serif;
  --maxw:1240px;

  /* Compatibility vars for the shared inquiry "thanks" turbo_stream
     (app/views/inquiries/create.turbo_stream.erb), mapped to this palette so
     the confirmation renders on-aesthetic without loading theme.css. */
  --color-page-box:#FFFFFF;
  --color-heading:#0B0B0F;
  --color-text:#17171C;
  --color-blueprint:#C9C5BC;

  font-family:var(--body);
  background:var(--bone);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  position:relative;
  margin:0;
}

.ms-body *{box-sizing:border-box}

/* faint grain so the bone reads as paper, not flat fill */
.ms-body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(/%23n)'/%3E%3C/svg%3E");
}

.ms-body .wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}
.ms-body section{position:relative}

/* ── type ─────────────────────────────────────────────── */
.ms-body h1,.ms-body h2,.ms-body h3{font-family:var(--display);font-weight:900;letter-spacing:-.025em;line-height:.92;margin:0}
.ms-body p{margin:0}
.ms-body .overline{font-family:var(--display);font-weight:700;font-size:.72rem;letter-spacing:.22em;text-transform:uppercase}
.ms-body .lead{font-size:clamp(1.08rem,1.45vw,1.35rem);line-height:1.55;color:var(--ink-66);font-weight:400}

/* ── shapes ───────────────────────────────────────────── */
.ms-body .pill{border-radius:999px}
.ms-body .disc{border-radius:50%}
.ms-body .blob{border-radius:46% 54% 57% 43% / 54% 45% 55% 46%}

/* ── buttons ──────────────────────────────────────────── */
.ms-body .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  font-family:var(--display);font-weight:700;font-size:1rem;letter-spacing:-.01em;
  padding:.95em 1.6em;border-radius:999px;border:2px solid var(--ink);
  cursor:pointer;text-decoration:none;transition:transform .15s ease,background .15s ease,color .15s ease;
  white-space:nowrap;-webkit-appearance:none;appearance:none;
}
.ms-body .btn-saffron{background:var(--saffron);color:var(--ink);border-color:var(--ink)}
.ms-body .btn-saffron:hover{transform:translateY(-2px);background:var(--ink);color:var(--bone)}
.ms-body .btn-ink{background:var(--ink);color:var(--bone)}
.ms-body .btn-ink:hover{transform:translateY(-2px);background:var(--saffron);color:var(--ink)}
.ms-body .btn-ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.ms-body .btn-ghost:hover{transform:translateY(-2px);background:var(--ink);color:var(--bone)}

/* ── focus-visible (keyboard) ─────────────────────────── */
.ms-body a:focus-visible,.ms-body button:focus-visible,.ms-body input:focus-visible,
.ms-body textarea:focus-visible,.ms-body input[type=submit]:focus-visible{
  outline:3px solid var(--ink);outline-offset:3px;border-radius:3px;
}
.ms-body .foot a:focus-visible{outline-color:var(--bone)}

/* ── nav ──────────────────────────────────────────────── */
.ms-body .nav{position:sticky;top:0;z-index:100;background:var(--bone);border-bottom:1px solid var(--rule)}
.ms-body .nav .row{display:flex;align-items:center;justify-content:space-between;height:74px}
.ms-body .brand{display:flex;align-items:baseline;gap:.55rem;font-family:var(--display);text-decoration:none;color:var(--ink)}
.ms-body .brand b{font-weight:900;font-size:1.32rem;letter-spacing:-.03em}
.ms-body .brand span{font-weight:600;font-size:.78rem;letter-spacing:.04em;color:var(--ink-45)}
.ms-body .nav .btn{padding:.62em 1.25em;font-size:.92rem}

/* ── hero ─────────────────────────────────────────────── */
.ms-body .hero{padding:clamp(28px,3.5vw,56px) 0 clamp(64px,8vw,120px);overflow:hidden}
.ms-body .hero .wrap{position:relative;z-index:2}
.ms-body .eyebrow{
  display:inline-flex;align-items:center;gap:.6em;
  background:var(--ink);color:var(--bone);
  padding:.6em 1.15em;border-radius:999px;font-family:var(--display);
  font-weight:700;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;margin-bottom:30px;
}
.ms-body .eyebrow .dot{width:8px;height:8px;border-radius:50%;background:var(--saffron)}
/* ── table of contents (book-index style, above the hero) ─────────────── */
.ms-body .toc{padding:clamp(18px,3vw,34px) 0 clamp(14px,2vw,24px);}
.ms-body .toc-list{list-style:none;margin:0;padding:0}
.ms-body .toc-list a{
  display:flex;align-items:baseline;gap:.7em;text-decoration:none;color:var(--ink);
  font-family:var(--display);font-weight:600;font-size:clamp(.7rem,1.6vw,1rem);
  padding:.5em 0;transition:color .15s ease;
}
.ms-body .toc-list li:last-child a{border-bottom:none}
.ms-body .toc-list .t{flex:0 1 auto;transition:transform .15s ease}
.ms-body .toc-list a:hover .t{transform:translateX(6px)}
.ms-body .toc-list em{font-style:italic;font-weight:700;text-decoration:underline;text-decoration-color:var(--saffron);text-decoration-thickness:3px;text-underline-offset:3px}
.ms-body .toc-list .dots{flex:1 1 auto;align-self:center;min-width:20px;border-bottom:2px dotted var(--rule);transform:translateY(-.12em)}
.ms-body .toc-list .n{flex:none;font-family:var(--display);font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.ms-body h1.hero-h{font-size:clamp(2rem,8.4vw,7.6rem);max-width:14ch}
.ms-body .hl{position:relative;display:inline-block;color:var(--ink);white-space:nowrap}
.ms-body .hl::after{
  content:"";position:absolute;left:-.06em;right:-.06em;bottom:.08em;height:.42em;z-index:-1;
  background:var(--saffron);border-radius:999px;
}
.ms-body .hero p.lead{max-width:75ch;margin:0 0 34px}
.ms-body .hero .cta{display:flex;flex-wrap:wrap;gap:14px;align-items:center}

/* founder quote — frames the hero note as the founder's own words */
.ms-body .founder-quote{border-left:4px solid var(--saffron);padding-left:clamp(18px,2vw,28px);margin:34px 0 34px}
.ms-body .founder-quote p.lead{color:var(--ink-soft);margin:0;max-width:72ch}
.ms-body .founder-quote p.lead em{font-style:italic;font-weight:700;text-decoration:underline;text-decoration-color:var(--saffron);text-decoration-thickness:3px;text-underline-offset:3px}
.ms-body .founder{display:flex;align-items:center;gap:13px;margin-top:22px}
.ms-body .founder-pic{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid var(--ink);flex:none}
.ms-body .founder-meta{display:flex;flex-direction:column;line-height:1.3}
.ms-body .founder-name{font-family:var(--display);font-weight:800;font-size:1.04rem;color:var(--ink);display:inline-flex;align-items:center;gap:7px}
.ms-body .li-link{display:inline-flex;color:var(--ink-45);transition:color .15s ease}
.ms-body .li-link:hover{color:#0A66C2}
.ms-body .founder-role{display:inline-flex;align-items:center;font-size:.9rem;color:var(--ink-66)}
.ms-body .founder-role .ex-logo{height:14px;width:auto;display:inline-block;margin-left:3px;position:relative;top:2px}

/* decorative shapes bleeding off the hero */
.ms-body .shape{position:absolute;z-index:1;pointer-events:none}
.ms-body .s-warm{width:min(46vw,560px);aspect-ratio:1/.86;right:-7vw;top:4vw;background:var(--warm);opacity:.92}
.ms-body .s-ink-disc{width:148px;height:148px;background:var(--ink);right:34vw;top:7vw}
.ms-body .s-ring{width:118px;height:118px;border:14px solid var(--saffron);right:3vw;bottom:2vw}
.ms-body .s-dotgrid{
  width:170px;height:170px;right:24vw;bottom:-3vw;opacity:.6;
  background-image:radial-gradient(var(--ink) 2px,transparent 2px);background-size:18px 18px;
}

/* ── belief band (high-contrast flip) ─────────────────── */
.ms-body .belief{background:var(--ink);color:var(--bone);padding:clamp(70px,10vw,140px) 0}
.ms-body .belief h2{font-size:clamp(2.1rem,6.4vw,5.4rem);max-width:18ch;color:var(--bone)}
.ms-body .belief .s{color:var(--saffron)}
.ms-body .belief .tag{display:inline-block;margin-bottom:26px;color:var(--saffron)}

/* ── stack: audit / strategy / execution ──────────────── */
.ms-body .stack{padding:clamp(70px,9vw,130px) 0}
.ms-body .stack .head{max-width:44rem;margin-bottom:54px}
.ms-body .stack h2{font-size:clamp(1.9rem,4.2vw,3.4rem);max-width:18ch}
.ms-body .stack .head p{margin-top:18px;max-width:48ch}
.ms-body .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:start}
.ms-body .card{border-radius:34px;padding:38px 32px 44px;min-height:330px;display:flex;flex-direction:column;border:2px solid var(--ink);position:relative;overflow:hidden}
.ms-body .card .num{font-family:var(--display);font-weight:900;font-size:1rem;letter-spacing:.1em;opacity:.5}
.ms-body .card h3{font-size:clamp(1.6rem,2.4vw,2.2rem);margin:auto 0 14px}
.ms-body .card p{font-size:1rem;line-height:1.55}
.ms-body .card.c1{background:var(--bone-2);color:var(--ink)}
.ms-body .card.c2{background:var(--ink);color:var(--bone);transform:translateY(26px)}
.ms-body .card.c2 p{color:var(--bone-70)}
.ms-body .card.c3{background:var(--saffron);color:var(--ink);border-color:var(--ink)}
.ms-body .card .glyph{position:absolute;right:-30px;bottom:-30px;width:130px;height:130px;opacity:.14}
.ms-body .card.c1 .glyph{background:var(--ink);border-radius:50%}
.ms-body .card.c2 .glyph{border:16px solid var(--saffron);border-radius:50%;opacity:.5}
.ms-body .card.c3 .glyph{background:var(--ink);border-radius:42% 58% 57% 43%/54% 45% 55% 46%}
.ms-body .included{margin-top:46px;font-family:var(--display);font-weight:700;font-size:clamp(1.05rem,1.8vw,1.45rem)}
.ms-body .included u{text-decoration:none;background:var(--saffron);padding:.05em .35em;border-radius:7px}
.ms-body .included a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--saffron);text-decoration-thickness:3px;text-underline-offset:3px}
.ms-body .included a:hover{color:var(--saffron-deep)}

/* ── pedigree sentence ────────────────────────────────── */
.ms-body .pedigree{padding:clamp(70px,9vw,120px) 0}
.ms-body .pedigree .wrap{max-width:1020px}
.ms-body .pedigree .tag{margin-bottom:30px;color:var(--ink-45)}
.ms-body .ped-sentence{font-family:var(--display);font-weight:700;font-size:clamp(1.7rem,3.6vw,3rem);line-height:1.22;letter-spacing:-.02em}
.ms-body .ped-sentence .soft{color:var(--ink-45);font-weight:600}
/* Pedigree logos — Brandfetch CDN, normalised to one height so Google /
   Meta / Amazon read as equal (same treatment as the homepage). No chips. */
.ms-body .logo{display:inline-flex;align-items:center;margin:0 .12em;vertical-align:middle;position:relative;top:-.06em}
.ms-body .logo img{display:block;width:auto}
/* per-brand heights tuned so the wordmarks read at an equal optical size */
.ms-body .logo.g img{height:.62em}
.ms-body .logo.m img{height:.64em}
.ms-body .logo.a img{height:.68em}
.ms-body .ped-note{margin-top:26px;font-size:.85rem;color:var(--ink-45)}

/* ── categories ───────────────────────────────────────── */
.ms-body .cats{padding:clamp(60px,8vw,110px) 0;background:var(--bone-2);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.ms-body .cats h2{font-size:clamp(1.7rem,3.6vw,2.9rem);max-width:20ch;margin-bottom:14px}
.ms-body .cats .lead{max-width:52ch;margin-bottom:40px}
.ms-body .chips{display:flex;flex-wrap:wrap;gap:14px}
.ms-body .chip{
  display:inline-flex;align-items:center;gap:.5em;
  font-family:var(--display);font-weight:700;font-size:clamp(.95rem,1.6vw,1.25rem);
  padding:.66em 1.2em;border-radius:999px;border:2px solid var(--ink);
  transition:transform .15s ease,background .15s ease,color .15s ease;cursor:default;
}
.ms-body .chip svg{width:1.15em;height:1.15em;flex:none}
.ms-body .chip:hover{transform:translateY(-3px)}
.ms-body .chip.fill{background:var(--ink);color:var(--bone)}
.ms-body .chip.saff{background:var(--saffron);color:var(--ink)}
.ms-body .chip.out{background:transparent;color:var(--ink)}
.ms-body .cats .aside{margin-top:34px;font-size:.95rem;color:var(--ink-45);max-width:50ch}

/* ── mission / who & why ──────────────────────────────── */
.ms-body .mission{padding:clamp(72px,9vw,132px) 0;background:var(--bone-2);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.ms-body .mission .tag{color:var(--ink-45);margin-bottom:38px;display:block}
.ms-body .mission-grid{display:grid;grid-template-columns:1.22fr .78fr;gap:clamp(34px,4vw,66px);align-items:center}
.ms-body .mission-copy h2{font-size:clamp(1.9rem,4.4vw,3.5rem);max-width:17ch;margin-bottom:24px}
.ms-body .mission-copy h2 .s{color:var(--saffron)}
.ms-body .mission-copy .lead{max-width:54ch;margin-bottom:18px}
.ms-body .who-line{font-family:var(--display);font-weight:700;font-size:clamp(.98rem,1.5vw,1.18rem);margin-top:28px;padding-top:24px;border-top:2px solid var(--ink);line-height:1.45}

/* "who it's for & why" beside "where we go deep" — categories define the audience */
.ms-body .why-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(34px,5vw,72px);align-items:start}
.ms-body .cats-col .overline{display:block;margin-bottom:12px}
.ms-body .cats-head{font-size:clamp(1.6rem,3vw,2.6rem);max-width:16ch;margin-bottom:16px}
.ms-body .cats-col .lead{max-width:44ch;margin-bottom:28px}
.ms-body .cats-col .aside{margin-top:30px;font-size:.95rem;color:var(--ink-45);max-width:48ch}
.ms-body .stat-card{background:var(--ink);color:var(--bone);border-radius:34px;padding:clamp(34px,3.4vw,46px);position:relative;overflow:hidden}
.ms-body .stat-card .deco{position:absolute;right:-40px;top:-40px;width:140px;height:140px;border:16px solid rgba(245,162,0,.16);border-radius:50%;pointer-events:none}
.ms-body .stat-num{font-family:var(--display);font-weight:900;font-size:clamp(3.6rem,7.4vw,6.2rem);line-height:.86;letter-spacing:-.04em;color:var(--saffron);position:relative}
.ms-body .stat-desc{color:var(--bone-70);font-size:1.06rem;line-height:1.5;margin-top:16px;max-width:24ch;position:relative}
.ms-body .stat-desc b{color:var(--bone)}
.ms-body .stat-src{display:inline-block;margin-top:24px;color:var(--saffron);font-family:var(--display);font-weight:700;font-size:.9rem;text-decoration:none;border-bottom:2px solid var(--saffron);padding-bottom:3px;transition:opacity .15s ease;position:relative}
.ms-body .stat-src:hover{opacity:.7}

/* ── pricing ──────────────────────────────────────────── */
.ms-body .pricing{padding:clamp(74px,10vw,140px) 0;text-align:center;overflow:hidden}
.ms-body .pricing .tag{margin-bottom:26px;color:var(--ink-45)}
.ms-body .price-line{font-family:var(--display);font-weight:900;line-height:.9;letter-spacing:-.03em;font-size:clamp(3.2rem,12vw,10rem)}
.ms-body .price-line .cur{font-size:.42em;vertical-align:.55em;margin-right:.04em}
.ms-body .price-line .num{color:var(--ink)}
.ms-body .price-sub{font-family:var(--display);font-weight:700;font-size:clamp(1rem,2.1vw,1.5rem);margin-top:18px}
.ms-body .price-meta{margin-top:18px;color:var(--ink-66);font-size:1.02rem}
.ms-body .pricing .btn{margin-top:42px}

/* ── book / embed + form ──────────────────────────────── */
.ms-body .book{background:var(--ink);color:var(--bone);padding:clamp(70px,9vw,130px) 0}
.ms-body .book h2{font-size:clamp(2rem,5vw,4rem);color:var(--bone);max-width:16ch;margin-bottom:12px}
.ms-body .book .lead{color:var(--bone-70);max-width:46ch;margin-bottom:48px}
.ms-body .book-grid{display:grid;grid-template-columns:1.3fr .9fr;gap:30px;align-items:stretch}
.ms-body .cal-wrap{border-radius:28px;overflow:hidden;background:#fff;height:700px}
.ms-body .cal-wrap > div{height:100%}
.ms-body .form{background:var(--bone);color:var(--ink);border-radius:28px;padding:34px}
.ms-body .form .or{display:block;font-family:var(--display);font-weight:700;font-size:.82rem;color:var(--ink-45);margin-bottom:18px}
.ms-body .form .fl{display:block;font-family:var(--display);font-weight:700;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-45);margin:0 0 7px}
.ms-body .form input[type=email],.ms-body .form input[type=text],.ms-body .form textarea{
  width:100%;border:2px solid var(--ink);border-radius:14px;padding:.85em .95em;
  font-family:var(--body);font-size:1rem;background:#fff;color:var(--ink);margin-bottom:18px;
}
.ms-body .form textarea{resize:vertical;min-height:96px}
.ms-body .form .alert{background:#fff;border:2px solid var(--coral);border-radius:12px;padding:.7em .9em;font-size:.9rem;margin-bottom:16px;color:var(--ink)}

/* ── faq (native <details> accordion) ─────────────────── */
.ms-body .faq{padding:clamp(60px,8vw,110px) 0;background:var(--bone-2);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.ms-body .faq h2{font-size:clamp(1.8rem,3.6vw,2.9rem);margin-top:14px;max-width:20ch}
.ms-body .faq-list{margin-top:clamp(28px,4vw,44px);max-width:62rem;border-top:2px solid var(--ink)}
.ms-body .faq-item{border-bottom:1px solid var(--rule)}
.ms-body .faq-item summary{
  list-style:none;cursor:pointer;display:flex;align-items:flex-start;gap:20px;
  font-family:var(--display);font-weight:700;font-size:clamp(1.05rem,1.9vw,1.45rem);line-height:1.3;
  color:var(--ink);padding:clamp(20px,2.4vw,28px) 0;
}
.ms-body .faq-item summary::-webkit-details-marker{display:none}
.ms-body .faq-item summary .q{flex:1 1 auto}
.ms-body .faq-item summary::after{flex:none;content:"+";font-weight:700;font-size:1.4em;line-height:.85;color:var(--ink)}
.ms-body .faq-item[open] summary::after{content:"–"}
.ms-body .faq-a{padding:0 0 clamp(22px,2.6vw,30px);max-width:64ch}
.ms-body .faq-a p{font-size:1.06rem;line-height:1.6;color:var(--ink-66);margin-bottom:14px}
.ms-body .faq-a p:last-child{margin-bottom:0}

/* ── footer ───────────────────────────────────────────── */
.ms-body .foot{background:var(--ink);color:var(--bone-70);padding:40px 0;border-top:1px solid rgba(255,255,255,.08)}
.ms-body .foot .row{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;font-size:.85rem}
.ms-body .foot a{color:var(--bone);text-decoration:none}
.ms-body .foot a:hover{color:var(--saffron)}

@media(max-width:880px){
  .ms-body .cards{grid-template-columns:1fr}
  .ms-body .card.c2{transform:none}
  .ms-body .why-grid{grid-template-columns:1fr}
  .ms-body .book-grid{grid-template-columns:1fr}
  .ms-body h1.hero-h{max-width:none}
  .ms-body .s-warm{opacity:.5}
  /* hide the shapes that collide with text on small screens */
  .ms-body .s-ink-disc,.ms-body .s-dotgrid,.ms-body .s-ring{display:none}
  /* ≥44px touch targets on mobile */
  .ms-body .nav .btn{min-height:44px}
  .ms-body .toc-list a{min-height:44px}
  .ms-body .form input[type=email]{min-height:44px}
}
@media(max-width:1279px){
  /* The single-line saffron pill only has comfortable horizontal margin on
     large desktops; below that, switch to a wrapping highlighter so the long
     headline phrase breaks cleanly instead of running flush to the edge. */
  .ms-body .hl{display:inline;white-space:normal;
    background-image:linear-gradient(transparent 56%,var(--saffron) 56%,var(--saffron) 90%,transparent 90%);
    -webkit-box-decoration-break:clone;box-decoration-break:clone}
  .ms-body .hl::after{display:none}
}

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