/* =============================================================================
   MCP-Security — Material Design 3 (2026)
   Token-based M3 implementation. No @material/web (would pull Google Fonts +
   Material Symbols → breaks the self-hosted / GDPR / CSP setup). Instead the
   M3 `md.sys` roles are expressed as CSS custom properties and applied by hand.
   Seed color: brand green #1E6E5A → full tonal scheme (light + dark).
   ========================================================================== */

/* Self-hosted Space Grotesk (variable, weights 400–700). No Google Fonts request → GDPR-safe. */
@font-face{
  font-family:'Space Grotesk';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url(assets/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Space Grotesk';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url(assets/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------------------- */
/* M3 design tokens — LIGHT scheme (seed #1E6E5A)                             */
/* -------------------------------------------------------------------------- */
:root{
  /* Color roles */
  --md-sys-color-primary:#006b5a;
  --md-sys-color-on-primary:#ffffff;
  --md-sys-color-primary-container:#7df8de;
  --md-sys-color-on-primary-container:#00201a;
  --md-sys-color-secondary:#4a635c;
  --md-sys-color-on-secondary:#ffffff;
  --md-sys-color-secondary-container:#cce8df;
  --md-sys-color-on-secondary-container:#06201a;
  --md-sys-color-tertiary:#416276;
  --md-sys-color-on-tertiary:#ffffff;
  --md-sys-color-tertiary-container:#c4e7ff;
  --md-sys-color-on-tertiary-container:#001e2e;
  --md-sys-color-error:#ba1a1a;
  --md-sys-color-on-error:#ffffff;
  --md-sys-color-error-container:#ffdad6;
  --md-sys-color-on-error-container:#410002;

  --md-sys-color-surface:#f5fbf7;
  --md-sys-color-on-surface:#171d1b;
  --md-sys-color-on-surface-variant:#3f4945;
  --md-sys-color-surface-container-lowest:#ffffff;
  --md-sys-color-surface-container-low:#eff5f1;
  --md-sys-color-surface-container:#e9efeb;
  --md-sys-color-surface-container-high:#e3e9e6;
  --md-sys-color-surface-container-highest:#dde4e0;
  --md-sys-color-surface-dim:#d5dbd7;
  --md-sys-color-surface-bright:#f5fbf7;

  --md-sys-color-outline:#6f7975;
  --md-sys-color-outline-variant:#bec9c3;
  --md-sys-color-inverse-surface:#2b322f;
  --md-sys-color-inverse-on-surface:#ecf2ee;
  --md-sys-color-inverse-primary:#5ddbc1;

  /* state-layer opacities */
  --md-state-hover:.08;
  --md-state-focus:.12;
  --md-state-press:.12;

  /* Shape */
  --md-sys-shape-corner-small:8px;
  --md-sys-shape-corner-medium:12px;
  --md-sys-shape-corner-large:16px;
  --md-sys-shape-corner-extra-large:28px;
  --md-sys-shape-corner-full:9999px;

  /* Type families */
  --md-font-brand:'Space Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;
  --md-font-plain:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;

  /* Motion */
  --md-ease-emphasized:cubic-bezier(0.2,0,0,1);
  --md-ease-standard:cubic-bezier(0.2,0,0,1);
}

/* -------------------------------------------------------------------------- */
/* M3 design tokens — DARK scheme                                             */
/* -------------------------------------------------------------------------- */
@media (prefers-color-scheme:dark){
  :root{
    --md-sys-color-primary:#5ddbc1;
    --md-sys-color-on-primary:#003730;
    --md-sys-color-primary-container:#005046;
    --md-sys-color-on-primary-container:#7df8de;
    --md-sys-color-secondary:#b1ccc3;
    --md-sys-color-on-secondary:#1c352e;
    --md-sys-color-secondary-container:#334b44;
    --md-sys-color-on-secondary-container:#cce8df;
    --md-sys-color-tertiary:#a9cbe3;
    --md-sys-color-on-tertiary:#0f3447;
    --md-sys-color-tertiary-container:#294b5f;
    --md-sys-color-on-tertiary-container:#c4e7ff;
    --md-sys-color-error:#ffb4ab;
    --md-sys-color-on-error:#690005;
    --md-sys-color-error-container:#93000a;
    --md-sys-color-on-error-container:#ffdad6;

    --md-sys-color-surface:#0e1513;
    --md-sys-color-on-surface:#dde4e0;
    --md-sys-color-on-surface-variant:#bec9c3;
    --md-sys-color-surface-container-lowest:#090f0d;
    --md-sys-color-surface-container-low:#171d1b;
    --md-sys-color-surface-container:#1b211f;
    --md-sys-color-surface-container-high:#252b29;
    --md-sys-color-surface-container-highest:#303634;
    --md-sys-color-surface-dim:#0e1513;
    --md-sys-color-surface-bright:#343b38;

    --md-sys-color-outline:#899390;
    --md-sys-color-outline-variant:#3f4945;
    --md-sys-color-inverse-surface:#dde4e0;
    --md-sys-color-inverse-on-surface:#2b322f;
    --md-sys-color-inverse-primary:#006b5a;
  }
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--md-font-plain);
  font-size:1rem;line-height:1.5;letter-spacing:.03125rem;
  background:var(--md-sys-color-surface);
  color:var(--md-sys-color-on-surface);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
a{color:var(--md-sys-color-primary);text-decoration:none}
a:hover{text-decoration:underline}
code{
  font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  font-size:.875em;
  background:var(--md-sys-color-surface-container-high);
  color:var(--md-sys-color-on-surface);
  padding:.1em .4em;border-radius:6px;
}
em{font-style:normal;color:var(--md-sys-color-primary)}
::selection{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}

/* Type scale roles */
.display-large{font-family:var(--md-font-brand);font-weight:600;font-size:clamp(2.75rem,6vw,3.5rem);line-height:1.06;letter-spacing:-.015em}
.headline{font-family:var(--md-font-brand);font-weight:600;font-size:clamp(1.75rem,3.5vw,2rem);line-height:1.15;letter-spacing:-.005em}
.title-large{font-family:var(--md-font-brand);font-weight:600;font-size:1.375rem;line-height:1.27}
.label-large{font-family:var(--md-font-brand);font-weight:600;font-size:.875rem;line-height:1.43;letter-spacing:.006em}
.body-large{font-size:1.0625rem;line-height:1.55;letter-spacing:.0275rem}

/* -------------------------------------------------------------------------- */
/* Top app bar                                                                */
/* -------------------------------------------------------------------------- */
.nav{
  position:sticky;top:0;z-index:20;
  background:color-mix(in srgb,var(--md-sys-color-surface) 82%,transparent);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--md-sys-color-outline-variant);
}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{
  font-family:var(--md-font-brand);font-weight:700;font-size:1.25rem;
  color:var(--md-sys-color-on-surface);letter-spacing:-.01em;
}
.brand:hover{text-decoration:none}
.brand span{color:var(--md-sys-color-primary)}
.nav nav{display:flex;align-items:center;gap:4px}
.nav nav a:not(.btn-sm){
  font-family:var(--md-font-brand);font-weight:500;font-size:.9rem;
  color:var(--md-sys-color-on-surface-variant);
  padding:8px 12px;border-radius:var(--md-sys-shape-corner-full);
  transition:background .2s var(--md-ease-standard),color .2s var(--md-ease-standard);
}
.nav nav a:not(.btn-sm):hover{
  text-decoration:none;color:var(--md-sys-color-on-surface);
  background:color-mix(in srgb,var(--md-sys-color-on-surface) var(--md-state-hover),transparent);
}
.nav .btn-sm{margin-left:8px}

/* -------------------------------------------------------------------------- */
/* Buttons (M3: filled / outlined / text — pill shape, state layers)          */
/* -------------------------------------------------------------------------- */
.btn,.btn-sm{
  --_bg:var(--md-sys-color-primary);
  --_fg:var(--md-sys-color-on-primary);
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--md-font-brand);font-weight:600;font-size:.95rem;line-height:1;
  padding:14px 26px;border:none;cursor:pointer;
  border-radius:var(--md-sys-shape-corner-full);
  background:var(--_bg);color:var(--_fg);
  position:relative;overflow:hidden;isolation:isolate;
  transition:box-shadow .2s var(--md-ease-standard),transform .12s var(--md-ease-standard);
}
.btn:hover,.btn-sm:hover{text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.2),0 4px 8px rgba(0,0,0,.12)}
.btn:active,.btn-sm:active{transform:translateY(1px)}
.btn::after,.btn-sm::after{ /* state layer */
  content:"";position:absolute;inset:0;background:var(--_fg);opacity:0;z-index:-1;
  transition:opacity .2s var(--md-ease-standard);
}
.btn:hover::after,.btn-sm:hover::after{opacity:var(--md-state-hover)}
.btn:focus-visible::after,.btn-sm:focus-visible::after{opacity:var(--md-state-focus)}
.btn:focus-visible,.btn-sm:focus-visible{outline:3px solid var(--md-sys-color-primary);outline-offset:2px}

.btn-sm{padding:9px 18px;font-size:.875rem}

.btn.ghost{ /* outlined */
  --_bg:transparent;--_fg:var(--md-sys-color-primary);
  border:1px solid var(--md-sys-color-outline);
}
.btn.ghost:hover{box-shadow:none}
.btn.ghost::after{background:var(--md-sys-color-primary)}

.btn.sm{ /* tonal small — used inside cards */
  --_bg:var(--md-sys-color-secondary-container);
  --_fg:var(--md-sys-color-on-secondary-container);
  padding:11px 20px;font-size:.875rem;width:100%;
}

.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */
section{padding:72px 0}
section > h2,.wrap > h2{margin-bottom:8px}
h2{font-family:var(--md-font-brand);font-weight:600;font-size:clamp(1.75rem,3.5vw,2rem);line-height:1.15;letter-spacing:-.005em}
h3{font-family:var(--md-font-brand);font-weight:600}
.eyebrow{
  display:inline-block;
  font-family:var(--md-font-brand);font-weight:600;font-size:.75rem;
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--md-sys-color-on-secondary-container);
  background:var(--md-sys-color-secondary-container);
  padding:6px 14px;border-radius:var(--md-sys-shape-corner-full);
  margin-bottom:22px;
}
.sub{color:var(--md-sys-color-on-surface-variant);margin-bottom:28px;max-width:60ch}

/* Tonal "band" sections: centered rounded surface card (M3 container) */
.band{
  background:var(--md-sys-color-surface-container-low);
  border-radius:var(--md-sys-shape-corner-extra-large);
  padding:56px clamp(24px,5vw,56px);
  margin:12px auto;
}

/* Hero */
.hero{padding:88px 24px 64px}
.hero h1{
  font-family:var(--md-font-brand);font-weight:600;
  font-size:clamp(2.75rem,6.5vw,4.25rem);line-height:1.02;letter-spacing:-.02em;
  max-width:16ch;margin:0 0 20px;
}
.lead{font-size:clamp(1.125rem,2.2vw,1.375rem);line-height:1.5;max-width:44ch;color:var(--md-sys-color-on-surface-variant)}
.lead strong{color:var(--md-sys-color-on-surface);font-weight:600}
.async{
  margin-top:20px;font-size:.95rem;color:var(--md-sys-color-on-surface-variant);
  display:inline-flex;align-items:center;gap:8px;
}
.async strong{color:var(--md-sys-color-primary);font-weight:600}

/* Problem paragraph */
#problem p{font-size:1.0625rem;line-height:1.6;max-width:70ch;color:var(--md-sys-color-on-surface-variant)}
#problem p{margin-top:8px}

/* -------------------------------------------------------------------------- */
/* Pricing cards (M3 filled/elevated cards, radius large)                     */
/* -------------------------------------------------------------------------- */
.cards{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:16px;margin-top:24px;
}
.card{
  display:flex;flex-direction:column;
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-large);
  padding:24px;
  transition:box-shadow .25s var(--md-ease-emphasized),transform .25s var(--md-ease-emphasized);
}
.card:hover{transform:translateY(-3px);box-shadow:0 2px 6px rgba(0,0,0,.15),0 8px 24px rgba(0,0,0,.12)}
.card h3{font-size:1.25rem;line-height:1.3;margin-bottom:14px}
.card .price{font-family:var(--md-font-brand);font-weight:700;font-size:1.6rem;color:var(--md-sys-color-primary);line-height:1.1}
.card .price span{font-size:.9rem;font-weight:500;color:var(--md-sys-color-on-surface-variant)}
.card .dur{
  font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;
  color:var(--md-sys-color-on-surface-variant);margin:6px 0 16px;
}
.card ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin-bottom:22px;flex:1}
.card li{position:relative;padding-left:28px;font-size:.95rem;line-height:1.4;color:var(--md-sys-color-on-surface)}
.card li::before{
  content:"";position:absolute;left:0;top:2px;width:18px;height:18px;
  border-radius:50%;background:var(--md-sys-color-primary-container);
}
.card li::after{
  content:"";position:absolute;left:5px;top:7px;width:8px;height:4px;
  border-left:2px solid var(--md-sys-color-on-primary-container);
  border-bottom:2px solid var(--md-sys-color-on-primary-container);
  transform:rotate(-45deg);
}
/* Featured plan → primary-container tonal emphasis */
.card.feature{
  background:var(--md-sys-color-primary-container);
  color:var(--md-sys-color-on-primary-container);
  outline:1px solid color-mix(in srgb,var(--md-sys-color-primary) 40%,transparent);
}
.card.feature h3,.card.feature .price{color:var(--md-sys-color-on-primary-container)}
.card.feature .price span,.card.feature .dur{color:color-mix(in srgb,var(--md-sys-color-on-primary-container) 75%,transparent)}
.card.feature li{color:var(--md-sys-color-on-primary-container)}
.card.feature li::before{background:var(--md-sys-color-primary)}
.card.feature li::after{border-color:var(--md-sys-color-on-primary)}
.card.feature .btn.sm{--_bg:var(--md-sys-color-primary);--_fg:var(--md-sys-color-on-primary)}

.addon,.whitelabel{
  margin-top:28px;font-size:.95rem;line-height:1.6;
  color:var(--md-sys-color-on-surface-variant);max-width:80ch;
}
.addon{
  background:var(--md-sys-color-tertiary-container);
  color:var(--md-sys-color-on-tertiary-container);
  padding:16px 20px;border-radius:var(--md-sys-shape-corner-medium);
}
.addon strong{color:var(--md-sys-color-on-tertiary-container)}
.whitelabel strong{color:var(--md-sys-color-on-surface)}

/* -------------------------------------------------------------------------- */
/* Proof cards (outlined, interactive state layer)                            */
/* -------------------------------------------------------------------------- */
.proof-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:24px}
.proof{
  display:block;position:relative;overflow:hidden;isolation:isolate;
  background:var(--md-sys-color-surface-container-lowest);
  border:1px solid var(--md-sys-color-outline-variant);
  border-radius:var(--md-sys-shape-corner-large);
  padding:24px;color:inherit;
  transition:border-color .2s var(--md-ease-standard),transform .2s var(--md-ease-standard);
}
.proof::after{content:"";position:absolute;inset:0;background:var(--md-sys-color-primary);opacity:0;z-index:-1;transition:opacity .2s}
.proof:hover{text-decoration:none;transform:translateY(-2px);border-color:var(--md-sys-color-primary)}
.proof:hover::after{opacity:var(--md-state-hover)}
.proof h3{font-size:1.15rem;margin-bottom:8px}
.proof p{font-size:.95rem;line-height:1.5;color:var(--md-sys-color-on-surface-variant);margin-bottom:14px}
.proof .link{font-family:var(--md-font-brand);font-weight:600;font-size:.875rem;color:var(--md-sys-color-primary)}
.note-line{margin-top:22px;font-size:.9rem;color:var(--md-sys-color-on-surface-variant)}

/* -------------------------------------------------------------------------- */
/* Steps                                                                      */
/* -------------------------------------------------------------------------- */
.steps{list-style:none;counter-reset:s;display:grid;gap:16px;margin-top:24px;max-width:76ch}
.steps li{
  counter-increment:s;position:relative;padding:18px 20px 18px 68px;
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-large);
  font-size:1rem;line-height:1.5;color:var(--md-sys-color-on-surface-variant);
}
.steps li strong{color:var(--md-sys-color-on-surface);font-family:var(--md-font-brand);font-weight:600}
.steps li::before{
  content:counter(s);position:absolute;left:18px;top:16px;
  width:36px;height:36px;border-radius:50%;
  background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary);
  display:grid;place-items:center;
  font-family:var(--md-font-brand);font-weight:700;font-size:1.05rem;
}

/* -------------------------------------------------------------------------- */
/* Intake form (M3 filled text fields)                                        */
/* -------------------------------------------------------------------------- */
.intake{display:flex;flex-direction:column;gap:18px;max-width:640px;margin-top:24px}
.intake .row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.intake label{
  display:flex;flex-direction:column;gap:6px;
  font-family:var(--md-font-brand);font-weight:500;font-size:.8rem;
  color:var(--md-sys-color-on-surface-variant);
}
.intake input,.intake select,.intake textarea{
  font-family:var(--md-font-plain);font-size:1rem;color:var(--md-sys-color-on-surface);
  background:var(--md-sys-color-surface-container-highest);
  border:none;border-bottom:2px solid var(--md-sys-color-outline);
  border-radius:var(--md-sys-shape-corner-small) var(--md-sys-shape-corner-small) 0 0;
  padding:14px 14px;width:100%;
  transition:border-color .2s var(--md-ease-standard),background .2s var(--md-ease-standard);
}
.intake input:hover,.intake select:hover,.intake textarea:hover{background:var(--md-sys-color-surface-container-high)}
.intake input:focus,.intake select:focus,.intake textarea:focus{
  outline:none;border-bottom-color:var(--md-sys-color-primary);border-bottom-width:2px;
}
.intake textarea{resize:vertical;min-height:96px}
.intake .check{
  flex-direction:row;align-items:flex-start;gap:12px;
  font-family:var(--md-font-plain);font-weight:400;font-size:.9rem;
  color:var(--md-sys-color-on-surface-variant);line-height:1.5;
}
.intake .check input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:var(--md-sys-color-primary)}
.intake > button{align-self:flex-start;margin-top:8px}
.form-status{
  font-size:.95rem;line-height:1.5;padding:12px 16px;border-radius:var(--md-sys-shape-corner-medium);
}
.form-status[data-state="ok"]{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container)}
.form-status[data-state="error"]{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}

/* -------------------------------------------------------------------------- */
/* FAQ (expandable list items)                                                */
/* -------------------------------------------------------------------------- */
#faq details,#faq .sub,#faq > h2{max-width:820px}
details{
  background:var(--md-sys-color-surface-container);
  border-radius:var(--md-sys-shape-corner-medium);
  margin-top:12px;overflow:hidden;
}
summary{
  font-family:var(--md-font-brand);font-weight:600;font-size:1.05rem;
  cursor:pointer;padding:18px 20px;list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  color:var(--md-sys-color-on-surface);
}
summary::-webkit-details-marker{display:none}
summary::after{
  content:"+";font-size:1.5rem;font-weight:400;color:var(--md-sys-color-primary);
  transition:transform .25s var(--md-ease-emphasized);
}
details[open] summary::after{transform:rotate(45deg)}
details p{padding:0 20px 20px;color:var(--md-sys-color-on-surface-variant);line-height:1.6;font-size:.975rem}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
footer{
  padding:48px 24px;margin-top:24px;
  border-top:1px solid var(--md-sys-color-outline-variant);
  color:var(--md-sys-color-on-surface-variant);font-size:.9rem;
}
footer p{margin:4px 0}
.legal-links a{color:var(--md-sys-color-primary)}
.disclaimer{font-size:.8rem;margin-top:10px;color:var(--md-sys-color-outline)}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width:640px){
  .nav nav{gap:0}
  .nav nav a:not(.btn-sm){display:none}
  .intake .row{grid-template-columns:1fr}
  section{padding:56px 0}
  .hero{padding:56px 24px 48px}
}

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