/* MyScout theme */
:root {
	--ms-c-bg: #0C1714;
	--ms-c-panel: #12241F;
	--ms-c-line: #24413A;
	--ms-c-text: #EAF1ED;
	--ms-c-muted: #A9BDB5;
	--ms-c-dim: #7F978E;
	--ms-c-accent: #F2A900;
	--ms-light: #F2F5F3;
	--ms-ink: #12201C;
	--ms-ink-muted: #4A5E57;
	--ms-green: #17604A;
	--ms-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--ms-body: 'DM Sans', system-ui, sans-serif;
	--ms-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ms-c-bg); color: var(--ms-c-text); font-family: var(--ms-body); font-size: 16px; line-height: 1.5; }
img, svg, video { max-width: 100%; }
a { color: var(--ms-c-accent); text-decoration: none; }
a:hover { color: #FFC93C; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ms-c-accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Buttons */
.btn { display: inline-block; font-family: var(--ms-body); font-weight: 700; font-size: 16px; line-height: 1.2; padding: 14px 24px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn--sm { font-size: 15px; padding: 10px 18px; border-radius: 8px; }
.btn--lg { font-size: 17px; padding: 16px 28px; }
.btn--block { display: block; }
.btn--primary { background: var(--ms-c-accent); color: #0C1714; }
.btn--primary:hover { background: #FFC93C; color: #0C1714; }
.btn--ghost { border-color: #3A5A50; color: var(--ms-c-text); background: transparent; }
.btn--ghost:hover { border-color: var(--ms-c-accent); color: var(--ms-c-text); }
.btn--ink { background: #0C1714; color: var(--ms-c-text); }
.btn--ink:hover { background: #12241F; color: #fff; }
.btn--ink-outline { border-color: #0C1714; color: #0C1714; background: transparent; }
.btn--ink-outline:hover { background: #0C1714; color: var(--ms-c-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--ms-c-bg); border-bottom: 1px solid #1F332D; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
/* The menu wrapper is invisible above phone width, so nav and account lay out exactly as before. */
.site-menu { display: contents; }
.nav-toggle { display: none; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--ms-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: var(--ms-c-text); }
.brand:hover { color: var(--ms-c-text); }
.brand__tld { color: var(--ms-c-accent); }
.brand__logo { display: block; width: auto; height: var(--ms-logo-h, 36px); max-width: min(320px, calc(100vw - 48px)); object-fit: contain; flex: none; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.site-nav__list a { color: var(--ms-c-text); }
.site-nav__list a:hover { color: var(--ms-c-accent); }
.site-header__account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nav-link { color: var(--ms-c-text); font-weight: 500; font-size: 15px; padding: 10px 14px; }

/* Typography helpers */
.eyebrow, .mono-label { font-family: var(--ms-mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ms-c-accent); }
.eyebrow--green { color: var(--ms-green); }
.mono-label { color: var(--ms-c-dim); font-weight: 500; }
.mono-note { font-family: var(--ms-mono); font-size: 13px; letter-spacing: .06em; color: var(--ms-c-dim); text-transform: uppercase; }
.h2 { margin: 0; font-family: var(--ms-display); font-weight: 800; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; color: var(--ms-c-text); }
.h2--ink { color: var(--ms-ink); }
.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ms-c-muted); }
.lead--ink { color: var(--ms-ink-muted); }
.fine { font-size: 13px; color: var(--ms-c-dim); margin: 28px 0 0; }

/* Hero */
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__title { margin: 0; font-family: var(--ms-display); font-weight: 800; font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.hero__lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--ms-c-muted); max-width: 540px; }
.hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.pitch { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1.12; background: var(--ms-c-panel); border: 1px solid #24413A; border-radius: 20px; overflow: hidden; }
.pitch svg { position: absolute; inset: 0; }
.pitch__card { position: absolute; left: 18px; right: 18px; bottom: 18px; background: var(--ms-c-bg); border: 1px solid #2C5A4D; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pitch__card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--ms-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ms-c-dim); }
.pitch__badge { color: #0C1714; background: var(--ms-c-accent); padding: 3px 8px; border-radius: 4px; font-weight: 700; letter-spacing: .08em; }
.pitch__name { font-family: var(--ms-display); font-weight: 700; font-size: 22px; }
.pitch__meta { font-size: 14px; color: var(--ms-c-muted); }

/* Bands */
.band { padding: 96px 0; }
.band--panel { background: var(--ms-c-panel); border-top: 1px solid #1F332D; border-bottom: 1px solid #1F332D; }
.band--light { background: var(--ms-light); color: var(--ms-ink); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 44px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head--row > div { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.ms-link { font-weight: 700; font-size: 16px; color: var(--ms-c-accent); }

/* Countries */
.band--panel .mono-label + .chips { margin-top: 22px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; background: var(--ms-c-bg); border: 1px solid #24413A; border-radius: 999px; padding: 9px 16px 9px 10px; font-size: 15px; }
.chip__code { font-family: var(--ms-mono); font-weight: 700; font-size: 12px; color: #0C1714; background: var(--ms-c-accent); border-radius: 999px; padding: 4px 8px; }
.band--panel:has(.chips) { padding: 44px 0; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 24px; }
.step { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; border-top: 4px solid var(--ms-ink); padding-top: 22px; }
.step__n { font-family: var(--ms-mono); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ms-green); }
.step__title { font-family: var(--ms-display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--ms-ink); }
.step__body { font-size: 17px; line-height: 1.55; color: var(--ms-ink-muted); }

/* Why */
.why { display: flex; flex-wrap: wrap; gap: 56px; }
.why__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.why__list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; }
.why__item { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-top: 1px solid #2C5A4D; }
.why__title { font-family: var(--ms-display); font-weight: 700; font-size: 24px; }
.why__body { font-size: 17px; line-height: 1.55; color: var(--ms-c-muted); max-width: 620px; }

/* Organizations */
.orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.orgs__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.orgs__text .lead { max-width: 520px; }
.orgs__panel { flex: 1 1 400px; min-width: 0; background: #0C1714; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--ms-c-panel); border: 1px solid #2C5A4D; border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ms-c-text); }

/* Pricing */
.plans { display: flex; flex-wrap: wrap; gap: 20px; }
.plan { flex: 1 1 280px; min-width: 0; background: var(--ms-c-panel); border: 1px solid #24413A; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan--hot { background: var(--ms-c-accent); border-color: var(--ms-c-accent); color: #0C1714; }
.plan__name { font-family: var(--ms-display); font-weight: 700; font-size: 26px; }
.plan__price { font-family: var(--ms-mono); font-weight: 700; font-size: 30px; }
.plan__list { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.8; color: var(--ms-c-muted); flex: 1; }
.plan--hot .plan__list { color: #0C1714; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about > .h2 { flex: 1 1 340px; min-width: 0; }
.about__text { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__lead { margin: 0; font-size: 20px; line-height: 1.6; max-width: 680px; }
.about__text .lead { font-size: 17px; max-width: 680px; }

/* CTA */
.cta { background: var(--ms-c-accent); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.cta__title { font-family: var(--ms-display); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.025em; color: #0C1714; max-width: 640px; text-wrap: balance; }

/* Footer */
.site-footer { background: var(--ms-c-bg); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 40px; padding-bottom: 40px; }
.brand-text { font-family: var(--ms-display); font-weight: 800; font-size: 18px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer__links a { color: var(--ms-c-muted); }
.site-footer__links a:hover { color: var(--ms-c-accent); }
.site-footer__copy { font-size: 14px; color: var(--ms-c-dim); }

/* Inner pages */
.page-band { padding: 64px 0 96px; }
.page-title { margin: 0 0 32px; font-family: var(--ms-display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.025em; }
.page-title a { color: var(--ms-c-text); }
.entry { font-size: 18px; line-height: 1.65; color: var(--ms-c-muted); }
.entry h2, .entry h3 { font-family: var(--ms-display); color: var(--ms-c-text); }
.back-link { margin: 48px 0 0; }

@media (prefers-reduced-motion: no-preference) {
	.btn { transition: background-color .15s ease, border-color .15s ease; }
}
@media (max-width: 600px) {
	.band { padding: 64px 0; }
	.hero__inner { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
}

/* Installed app: keep clear of the phone's status bar, simplify the header */
html.ms-app .site-header { padding-top: env(safe-area-inset-top, 0px); position: sticky; top: 0; z-index: 40; }
html.ms-app .site-header__inner { padding-top: 12px; padding-bottom: 12px; gap: 8px 16px; }
html.ms-app .brand { font-size: 20px; }
html.ms-app .hero__inner { padding-top: 40px; padding-bottom: 48px; }
html.ms-app .band { padding: 56px 0; }
html.ms-app .page-band { padding: 32px 0 56px; }
html.ms-app .site-footer__inner { padding-bottom: 24px; }

/* ---------- Phones only (600px and under): logo + menu button, menu opens as a panel ---------- */
@media (max-width: 600px) {
	.site-header { position: sticky; top: 0; z-index: 100; }
	.site-header__inner { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
	html.js .site-header__inner { flex-wrap: nowrap; }
	.brand { font-size: 20px; gap: 10px; }
	.brand svg { width: 32px; height: 32px; flex: none; }
	.brand { min-width: 0; }
	.brand > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.brand__logo { height: min(var(--ms-logo-h, 36px), 40px); max-width: calc(100vw - 190px); flex: 0 1 auto; min-width: 0; }

	.nav-toggle {
		display: inline-flex; align-items: center; gap: 10px; flex: none;
		min-height: 44px; padding: 0 14px; margin-right: -6px;
		font: inherit; font-size: 15px; font-weight: 700; color: var(--ms-c-text);
		background: transparent; border: 1px solid #2C5A4D; border-radius: 10px; cursor: pointer;
	}
	.nav-toggle:hover { border-color: var(--ms-c-accent); }
	html:not(.js) .nav-toggle { display: none; }
	.nav-toggle__bars { position: relative; width: 20px; height: 14px; flex: none; }
	.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ms-c-accent); }
	.nav-toggle__bars span:nth-child(1) { top: 0; }
	.nav-toggle__bars span:nth-child(2) { top: 6px; }
	.nav-toggle__bars span:nth-child(3) { top: 12px; }
	.site-header.is-open .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
	.site-header.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
	.site-header.is-open .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

	/* Without JavaScript the menu simply shows, stacked under the logo */
	.site-menu { display: block; flex: 1 1 100%; min-width: 0; }
	html.js .site-menu {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--ms-c-bg); border-bottom: 1px solid #2C5A4D; box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
		max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
		padding: 4px max(24px, env(safe-area-inset-right, 0px)) 28px max(24px, env(safe-area-inset-left, 0px));
	}
	html.js .site-header.is-open .site-menu { display: block; }

	.site-nav__list { flex-direction: column; flex-wrap: nowrap; gap: 0; font-size: 20px; font-weight: 500; }
	.site-nav__list li { border-bottom: 1px solid #1F332D; }
	.site-nav__list a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 12px 2px; }
	.site-nav__list a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid #4C6A60; border-right: 2px solid #4C6A60; transform: rotate(45deg); flex: none; margin-right: 4px; }
	.site-nav__list a:hover::after { border-color: var(--ms-c-accent); }

	.site-header__account { flex-direction: column-reverse; align-items: stretch; gap: 12px; margin-top: 24px; }
	.site-header__account .nav-link, .site-header__account .btn { display: block; text-align: center; font-size: 17px; font-weight: 700; padding: 15px 20px; border-radius: 10px; }
	.site-header__account .nav-link { border: 2px solid #3A5A50; }
	.site-header__account .nav-link:hover { border-color: var(--ms-c-accent); }

	html.nav-open { overflow: hidden; }

	/* Installed app on a phone: slim header, no menu (the tab bar navigates) */
	html.ms-app .nav-toggle { display: none; }
	html.ms-app .site-menu, html.ms-app.js .site-menu { display: contents; position: static; }
	html.ms-app .site-header__inner { flex-wrap: wrap; }
	html.ms-app .site-header__account { flex-direction: row; align-items: center; margin-top: 0; gap: 12px; }
	html.ms-app .site-header__account .btn { display: inline-block; font-size: 15px; font-weight: 700; padding: 10px 18px; border-radius: 8px; }
	html.ms-app.nav-open { overflow: visible; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
	.nav-toggle__bars span { transition: transform .2s ease, opacity .15s ease, top .2s ease; }
	html.js .site-header.is-open .site-menu { animation: ms-menu-in .18s ease-out; }
}
@keyframes ms-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Installed app on any width: same hiding as before the menu existed */
html.ms-app .site-nav { display: none; }
html.ms-app .nav-link { display: none; }
