/* MySidekick Prompt C design system — Direction A / North Star v1.0 */
:root {
  --ms-ink: #132238;
  --ms-teal: #006e73;
  --ms-teal-bright: #45c2b9;
  --ms-canvas: #f7f5f1;
  --ms-paper: #fffdf8;
  --ms-coral: #ff6b4a;
  --ms-mist: #e8efec;
  --ms-cloud: #edf1f2;
  --ms-line: #d8ddd9;
  --ms-muted: #64717a;
  --ms-white: #ffffff;
  --ms-max: 1520px;
  --ms-gutter: clamp(20px, 4.2vw, 72px);
  --ms-space-1: 8px;
  --ms-space-2: 14px;
  --ms-space-3: 22px;
  --ms-space-4: 34px;
  --ms-space-5: 52px;
  --ms-space-6: 78px;
  --ms-space-7: 112px;
  --ms-space-8: 152px;
  --ms-font-display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --ms-font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ms-shadow: 0 34px 90px rgba(19, 34, 56, .13);
  --ms-ease: cubic-bezier(.2,.72,.26,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ms-canvas);
  color: var(--ms-ink);
  font-family: var(--ms-font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.ms-menu-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--ms-coral); color: var(--ms-ink); }

.ms-shell { width: min(var(--ms-max), calc(100% - (var(--ms-gutter) * 2))); margin-inline: auto; }
.ms-private {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 6px var(--ms-gutter);
  background: linear-gradient(90deg, var(--ms-ink) 0 77%, var(--ms-teal) 77% 100%);
  color: rgba(255,255,255,.88);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  text-align: center;
}

.ms-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(19,34,56,.12);
  background: rgba(247,245,241,.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ms-header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 28px;
}
.ms-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -.045em;
}
.ms-brand svg { width: 44px; height: 32px; }
.ms-nav { display: flex; align-items: center; gap: 28px; }
.ms-nav a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.ms-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--ms-teal);
  transition: right .25s ease;
}
.ms-nav a:hover::after, .ms-nav a:focus-visible::after { right: 0; }
.ms-header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.ms-menu-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; font-size: 12px; font-weight: 700; }

.ms-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ms-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ms-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: -.01em;
  transition: transform .22s var(--ms-ease), background .22s ease, color .22s ease, border-color .22s ease;
}
.ms-button:hover { transform: translateY(-2px); }
.ms-button--primary { background: var(--ms-ink); color: var(--ms-white); }
.ms-button--primary:hover { background: var(--ms-teal); border-color: var(--ms-teal); }
.ms-button--light { color: var(--ms-white); border-color: rgba(255,255,255,.66); }
.ms-button--light:hover { background: var(--ms-white); color: var(--ms-ink); border-color: var(--ms-white); }
.ms-button svg { width: 13px; height: 13px; }

.ms-kicker {
  margin: 0 0 18px;
  color: var(--ms-teal);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.ms-kicker--light { color: var(--ms-teal-bright); }
.ms-display {
  margin: 0;
  font-family: var(--ms-font-display);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .93;
  text-wrap: balance;
}
.ms-section-title { font-size: clamp(46px, 5.3vw, 82px); }
.ms-lede { max-width: 720px; color: #3e4d58; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.5; }
.ms-small { color: var(--ms-muted); font-size: 12px; line-height: 1.5; }
.ms-rule { border: 0; border-top: 1px solid var(--ms-line); margin: 0; }

.ms-section { padding-block: var(--ms-space-7); border-bottom: 1px solid var(--ms-line); }
.ms-section--ink { background: var(--ms-ink); color: var(--ms-white); border-bottom-color: rgba(255,255,255,.12); }
.ms-section--mist { background: var(--ms-mist); }
.ms-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: end;
  gap: clamp(38px, 7vw, 110px);
  margin-bottom: var(--ms-space-5);
}
.ms-section-head > :last-child { justify-self: end; max-width: 620px; }
.ms-section--ink .ms-lede, .ms-section--ink .ms-small { color: rgba(255,255,255,.68); }

.ms-footer { padding: 68px 0 28px; background: #0e1a2a; color: var(--ms-white); }
.ms-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(2, .65fr); gap: 48px; padding-bottom: 58px; }
.ms-footer-brand { max-width: 520px; }
.ms-footer-brand .ms-brand { margin-bottom: 22px; }
.ms-footer-brand p { color: rgba(255,255,255,.66); }
.ms-footer h2 { margin: 0 0 16px; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.ms-footer-links { display: grid; gap: 10px; align-content: start; }
.ms-footer-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 13px; }
.ms-footer-links a:hover { color: var(--ms-teal-bright); }
.ms-footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: 10px; }

/* Content is never hidden as a prerequisite for motion. IntersectionObserver applies a
   short Web Animations API entrance when available, so no-JS and capture states stay usable. */
[data-reveal] { opacity: 1; transform: none; }

:where(a,button,input,textarea,select):focus-visible {
  outline: 3px solid var(--ms-coral);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 980px) {
  :root { --ms-space-7: 88px; --ms-space-8: 118px; }
  .ms-header-inner { grid-template-columns: 1fr auto; }
  .ms-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ms-nav {
    position: fixed;
    inset: 112px 18px auto 18px;
    display: none;
    padding: 24px;
    background: var(--ms-paper);
    border: 1px solid var(--ms-line);
    box-shadow: var(--ms-shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .ms-nav.is-open { display: flex; }
  .ms-nav a { padding: 17px 4px; border-bottom: 1px solid var(--ms-line); font-size: 17px; }
  .ms-nav a:last-child { border-bottom: 0; }
  .ms-nav a::after { display: none; }
  .ms-header-actions .ms-button { display: none; }
  .ms-section-head { grid-template-columns: 1fr; gap: 26px; }
  .ms-section-head > :last-child { justify-self: start; }
  .ms-footer-grid { grid-template-columns: 1fr 1fr; }
  .ms-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --ms-gutter: 18px; --ms-space-6: 58px; --ms-space-7: 72px; }
  .ms-private { min-height: 34px; font-size: 8px; letter-spacing: .13em; }
  .ms-header-inner { min-height: 72px; }
  .ms-brand { font-size: 21px; }
  .ms-brand svg { width: 39px; }
  .ms-nav { inset: 106px 12px auto 12px; }
  .ms-button { min-height: 48px; }
  .ms-section-title { font-size: clamp(43px, 14vw, 62px); }
  .ms-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .ms-footer-brand { grid-column: auto; }
  .ms-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
