/* ============================================================
   Mist Ambassador landing — [mist_ambassador]  (inc/ambassador.php)
   Palette is lifted from the Ambassador Agreement PDF so the page and the
   contract read as one brand: sage, cream, peach.
   ============================================================ */
/* WP puts a bare `page` class on the <article>; the base theme's `.page` rule is the 670px CMS-page column. */
.page-article.page-article--landing { max-width: none; width: 100%; margin: 0; padding: 0; position: static; }

.mist-amb {
	--amb-sage: #7a8470;
	--amb-sage-dark: #5b6453;
	--amb-sage-deep: #474e41;
	--amb-ink: #2b2c26;
	--amb-muted: #6d6e63;
	--amb-cream: #f8f3e3;
	--amb-card: #fffdf8;
	--amb-line: #e6e0cc;
	--amb-peach: #ebb89a;
	--amb-peach-dark: #c98a66;
	--amb-radius: 22px;
	--amb-shadow: 0 10px 30px rgba(71, 78, 65, .10);
	background: var(--amb-cream);
	color: var(--amb-ink);
	line-height: 1.55;
	overflow-x: clip;
}
.mist-amb *, .mist-amb *::before, .mist-amb *::after { box-sizing: border-box; }
:where(.mist-amb) :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.mist-amb ul, .mist-amb ol { list-style: none; padding: 0; }
:where(.mist-amb) a { color: inherit; }
/* The base theme draws an animated underline on every link (a::after + gradient); not wanted here. */
.mist-amb a { background-image: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; box-shadow: none; }
.mist-amb a::after { content: none; }

.amb-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.amb-section { padding-top: clamp(56px, 8vw, 96px); }
.amb-h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin-bottom: 14px; color: var(--amb-ink); }
.amb-spark { color: var(--amb-peach); font-size: .7em; margin-right: 6px; vertical-align: .12em; }
.amb-muted { color: var(--amb-muted); font-size: 17px; max-width: 54ch; }
.amb-fine { margin-top: 16px; font-size: 13px; color: var(--amb-muted); }

/* ---- pills / buttons ---- */
.amb-pill {
	display: inline-block; padding: 8px 18px; border: 1px solid rgba(248,243,227,.55); border-radius: 999px;
	font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amb-cream);
}
.amb-pill--light { border-color: rgba(248,243,227,.5); }
.amb-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 30px;
	border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.amb-btn:hover { transform: translateY(-2px); }
.amb-btn--peach { background: var(--amb-peach); color: var(--amb-sage-deep); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.amb-btn--peach:hover { background: #f2c6aa; color: var(--amb-sage-deep); }
.amb-btn--ghost { border-color: rgba(248,243,227,.6); color: var(--amb-cream); }
.amb-btn--ghost:hover { background: rgba(248,243,227,.14); color: var(--amb-cream); }

/* ---- hero ---- */
.amb-hero {
	position: relative; overflow: hidden; background: var(--amb-sage); color: var(--amb-cream);
	padding: clamp(64px, 9vw, 120px) 0 clamp(120px, 14vw, 170px);
	border-radius: 0 0 clamp(36px, 8vw, 110px) clamp(36px, 8vw, 110px);
}
.amb-hero::before, .amb-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(248,243,227,.09); pointer-events: none; }
.amb-hero::before { width: 640px; height: 640px; top: -300px; right: -180px; }
.amb-hero::after  { width: 420px; height: 420px; bottom: -220px; left: 30%; background: rgba(248,243,227,.06); }
.amb-hero__inner { position: relative; z-index: 1; }
.amb-hero__title {
	margin: 26px 0 18px; font-size: clamp(38px, 7vw, 76px); line-height: 1.04; color: var(--amb-cream); font-weight: 600; letter-spacing: -.01em;
}
.amb-hero__title em { font-style: normal; color: var(--amb-peach); }
.amb-hero__lead { max-width: 52ch; font-size: clamp(17px, 2vw, 20px); color: rgba(248,243,227,.92); }
.amb-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.amb-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; font-size: 14px; color: rgba(248,243,227,.85); }
.amb-hero__facts li::before { content: '✓'; color: var(--amb-peach); margin-right: 8px; font-weight: 700; }

/* ---- perk cards (overlap the hero) ---- */
.amb-perks { position: relative; z-index: 2; margin-top: clamp(-100px, -9vw, -70px); }
.amb-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.amb-card {
	position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 24px;
	background: var(--amb-card); border-radius: var(--amb-radius); box-shadow: var(--amb-shadow); border: 1px solid rgba(230,224,204,.7);
	transition: transform .25s ease, box-shadow .25s ease;
}
.amb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(71,78,65,.16); }
.amb-card__big { font-size: clamp(38px, 4.6vw, 52px); line-height: 1; font-weight: 700; color: var(--amb-sage-dark); letter-spacing: -.02em; }
.amb-card__big small { font-size: .42em; font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.amb-card h3 { font-size: 18px; margin-bottom: 4px; color: var(--amb-ink); }
.amb-card p { font-size: 15px; color: var(--amb-muted); }
.amb-card--gift { background: linear-gradient(160deg, #fffdf8 40%, #fbe9dc 100%); }
.amb-badge {
	position: absolute; top: -11px; right: 18px; padding: 4px 12px; border-radius: 999px; background: var(--amb-peach);
	color: var(--amb-sage-deep); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

/* ---- steps ---- */
.amb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 34px; counter-reset: none; }
.amb-steps li { position: relative; }
.amb-step__n {
	position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--amb-sage); color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 16px;
}
.amb-step__n--peach { background: var(--amb-peach); color: var(--amb-sage-deep); }
.amb-steps li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -16px; border-top: 2px dashed #cfc8ae; }
.amb-steps h3 { font-size: 19px; margin-bottom: 6px; }
.amb-steps p { font-size: 15px; color: var(--amb-muted); }

/* ---- earnings ---- */
.amb-earn {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
	padding: clamp(24px, 4vw, 48px); background: var(--amb-card); border-radius: 28px; box-shadow: var(--amb-shadow); border: 1px solid rgba(230,224,204,.7);
}
.amb-range { display: block; margin-top: 26px; }
.amb-range__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amb-muted); }
.amb-range__value { display: block; margin: 4px 0 14px; font-size: clamp(30px, 4vw, 40px); font-weight: 700; color: var(--amb-sage-dark); }
.amb-range input[type=range] {
	-webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; padding: 0; border: 0; box-shadow: none; border-radius: 999px; margin: 0; cursor: pointer; outline-offset: 6px;
	--amb-pct: 25%;
	background: linear-gradient(90deg, var(--amb-sage) var(--amb-pct), #e3dcc4 var(--amb-pct));
}
.amb-range input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--amb-peach); border: 4px solid #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.28); transition: transform .15s ease;
}
.amb-range input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--amb-peach); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.amb-range input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.amb-result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.amb-result > div { padding: 18px 18px 16px; border-radius: 16px; background: var(--amb-sage); color: var(--amb-cream); }
.amb-result > div:last-child { background: var(--amb-sage-deep); }
.amb-result__k { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.amb-result strong { font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.1; color: #fff; }
.amb-table { width: 100%; border-collapse: collapse; border: 0; font-size: 16px; }
.amb-table th, .amb-table td { border: 0; background: transparent; }
.amb-table th { padding: 0 0 12px; text-align: right; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--amb-muted); border-bottom: 1px solid var(--amb-line); }
.amb-table th:first-child, .amb-table td:first-child { text-align: left; }
.amb-table td { padding: 16px 0; text-align: right; border-bottom: 1px solid var(--amb-line); color: var(--amb-ink); }
.amb-table tr:last-child td { border-bottom: 0; }
.amb-table td strong { color: var(--amb-sage-dark); }

/* ---- features ---- */
.amb-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.amb-feat { padding: 26px 24px; border-radius: var(--amb-radius); background: transparent; border: 1px solid var(--amb-line); }
.amb-feat h3 { font-size: 20px; margin-bottom: 8px; color: var(--amb-sage-dark); }
.amb-feat p { font-size: 16px; color: var(--amb-muted); }

/* ---- terms accordion ---- */
.amb-terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.amb-terms__head { position: sticky; top: 110px; }
.amb-terms__intro { margin-bottom: 8px; }
.amb-faq { display: grid; gap: 12px; }
.amb-faq details { background: var(--amb-card); border: 1px solid var(--amb-line); border-radius: 16px; transition: box-shadow .2s ease, border-color .2s ease; }
.amb-faq details[open] { box-shadow: var(--amb-shadow); border-color: #d6cfb3; }
.amb-faq summary {
	display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; color: var(--amb-ink);
}
.amb-faq summary::-webkit-details-marker { display: none; }
.amb-faq summary b {
	display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
	background: #ece6d0; color: var(--amb-sage-dark); font-size: 13px; font-weight: 600;
}
.amb-faq summary::after { content: '+'; margin-left: auto; font-size: 24px; line-height: 1; color: var(--amb-sage); transition: transform .2s ease; }
.amb-faq details[open] summary::after { transform: rotate(45deg); }
.amb-faq details[open] summary b { background: var(--amb-sage); color: #fff; }
.amb-faq details > div { padding: 0 22px 20px 66px; color: var(--amb-muted); font-size: 16px; }
.amb-faq details > div p + p, .amb-faq details > div p + ul { margin-top: 10px; }
.amb-faq details > div ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }
.amb-faq details > div strong { color: var(--amb-ink); }
.amb-contract { margin-top: 24px; }
.mist-amb .amb-contract a { display: inline-block; text-decoration: none; padding: 12px 22px; border: 1px solid var(--amb-sage); border-radius: 999px; font-size: 14px; letter-spacing: .06em; color: var(--amb-sage-dark); text-decoration: none; transition: background .2s, color .2s; }
.amb-contract a:hover { background: var(--amb-sage); color: #fff; }

/* ---- apply ---- */
.amb-apply {
	margin-top: clamp(64px, 9vw, 110px); padding: clamp(56px, 8vw, 96px) 0 0; background: var(--amb-sage); color: var(--amb-cream);
	border-radius: clamp(36px, 8vw, 110px) clamp(36px, 8vw, 110px) 0 0; position: relative; overflow: hidden;
}
.amb-apply::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(248,243,227,.07); right: -160px; bottom: 120px; pointer-events: none; }
.amb-apply > .amb-wrap { position: relative; }
.amb-apply__title { margin: 20px 0 12px; font-size: clamp(34px, 5.5vw, 60px); line-height: 1.05; color: var(--amb-cream); font-weight: 600; }
.amb-apply__lead { max-width: 56ch; font-size: 18px; color: rgba(248,243,227,.92); }
.amb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.amb-chips li { padding: 8px 16px; border-radius: 999px; background: rgba(248,243,227,.12); border: 1px solid rgba(248,243,227,.4); font-size: 14px; }
.amb-chips li.is-peach { background: var(--amb-peach); border-color: var(--amb-peach); color: var(--amb-sage-deep); font-weight: 500; }
.amb-form { background: var(--amb-card); color: var(--amb-ink); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.amb-welcome { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); }
.amb-welcome h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--amb-cream); font-weight: 600; margin-bottom: 8px; }
.amb-welcome p { color: rgba(248,243,227,.9); font-size: 17px; }
.mist-amb .amb-welcome a { color: var(--amb-peach); text-decoration: underline; text-underline-offset: 3px; }

/* ---- the plugin's form, restyled ---- */
.mist-amb .mist-inf-form { max-width: none; margin: 0; }
.mist-amb .mist-inf-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.mist-amb .mist-inf-form label {
	margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--amb-sage-dark);
}
.mist-amb .mist-inf-form input[type=text],
.mist-amb .mist-inf-form input[type=email],
.mist-amb .mist-inf-form select,
.mist-amb .mist-inf-form textarea {
	margin-top: 6px; padding: 12px 2px; border: 0; border-bottom: 1px solid #cdc6aa; border-radius: 0; background: transparent;
	font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--amb-ink); box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.mist-amb .mist-inf-form select { padding-right: 24px; }
.mist-amb .mist-inf-form input:focus,
.mist-amb .mist-inf-form select:focus,
.mist-amb .mist-inf-form textarea:focus { outline: 0; border-bottom-color: var(--amb-sage); box-shadow: 0 1px 0 var(--amb-sage); }
.mist-amb .mist-inf-form label:has(textarea),
.mist-amb .mist-inf-form .mist-inf-check,
.mist-amb .mist-inf-form .cf-turnstile,
.mist-amb .mist-inf-form button { grid-column: 1 / -1; }
.mist-amb .mist-inf-form textarea { padding: 14px; border: 1px solid #cdc6aa; border-radius: 14px; min-height: 120px; background: #fff; }
.mist-amb .mist-inf-form textarea:focus { border-color: var(--amb-sage); box-shadow: 0 0 0 3px rgba(122,132,112,.18); }
.mist-amb .mist-inf-form .mist-inf-check { display: flex; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; color: var(--amb-muted); }
.mist-amb .mist-inf-form .mist-inf-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--amb-sage); flex: none; }
.mist-amb .mist-inf-form .mist-inf-check a { color: var(--amb-sage-dark); }
.mist-amb .mist-inf-form button[type=submit] {
	justify-self: start; min-height: 56px; padding: 16px 44px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--amb-sage-dark); color: var(--amb-cream); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
	box-shadow: 0 10px 24px rgba(71,78,65,.28); transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.mist-amb .mist-inf-form button[type=submit]:hover { background: var(--amb-sage-deep); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(71,78,65,.34); }
.mist-amb .mist-inf-msg { grid-column: 1 / -1; margin: 0 0 22px; padding: 16px 20px; border-radius: 14px; font-size: 16px; }
.mist-amb .mist-inf-msg.ok { background: #e7efdc; color: #36502a; border: 1px solid #c9dab5; }
.mist-amb .mist-inf-msg.ok::before { content: '✓ '; font-weight: 700; }
.mist-amb .mist-inf-msg.err { background: #fbe6e1; color: #8a2f20; border: 1px solid #f0c3b9; }

/* ---- scroll reveal (JS only) ---- */
.mist-amb--js .amb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--amb-delay, 0ms), transform .6s ease var(--amb-delay, 0ms); }
.mist-amb--js .amb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.mist-amb--js .amb-reveal { opacity: 1; transform: none; transition: none; }
	.amb-btn, .amb-card { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 960px) {
	.amb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
	.amb-steps li:nth-child(2)::after { display: none; }
	.amb-earn { grid-template-columns: 1fr; }
	.amb-terms { grid-template-columns: 1fr; }
	.amb-terms__head { position: static; }
	.amb-feats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.amb-wrap { padding: 0 18px; }
	.amb-cards { grid-template-columns: 1fr; }
	.amb-card { flex-direction: row; align-items: center; gap: 18px; }
	.amb-card__big { min-width: 96px; }
	.amb-steps { grid-template-columns: 1fr; gap: 0; }
	.amb-steps li { padding: 0 0 26px 62px; }
	.amb-steps li .amb-step__n { position: absolute; left: 0; top: 0; margin: 0; }
	.amb-steps li:not(:last-child)::after { top: 48px; bottom: 4px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed #cfc8ae; }
	.amb-steps li:nth-child(2)::after { display: block; }
	.amb-hero__cta .amb-btn { flex: 1 1 100%; }
	.amb-result { grid-template-columns: 1fr; }
	.amb-table th:nth-child(3), .amb-table td:nth-child(3) { display: none; }
	.amb-faq summary { padding: 16px 16px; font-size: 17px; }
	.amb-faq details > div { padding: 0 16px 18px 16px; }
	.mist-amb .mist-inf-form form { grid-template-columns: 1fr; }
	.mist-amb .mist-inf-form button[type=submit] { justify-self: stretch; }
}
