:root {
	--amj-ink: #172a3a;
	--amj-navy: #203d56;
	--amj-blue: #587d98;
	--amj-rust: #b45f45;
	--amj-amber: #e8a84c;
	--amj-cream: #f8f4ec;
	--amj-paper: #fffdf9;
	--amj-line: #d9d6ce;
	--amj-green: #3e7962;
	--amj-shadow: 0 18px 55px rgba(23, 42, 58, .12);
}

body:has(.amj-app), body:has(.amj-auth-shell), body:has(.amj-guest-hero) {
	background: var(--amj-cream);
}

body:has(.amj-app) .site-header,
body:has(.amj-auth-shell) .site-header,
body:has(.amj-guest-hero) .site-header,
body:has(.amj-app) .launch-header,
body:has(.amj-auth-shell) .launch-header,
body:has(.amj-guest-hero) .launch-header,
body:has(.amj-app) .site-footer,
body:has(.amj-auth-shell) .site-footer,
body:has(.amj-guest-hero) .site-footer,
body:has(.amj-app) .launch-footer,
body:has(.amj-auth-shell) .launch-footer,
body:has(.amj-guest-hero) .launch-footer,
body:has(.amj-app) .launch-mobile-cta,
body:has(.amj-auth-shell) .launch-mobile-cta,
body:has(.amj-guest-hero) .launch-mobile-cta {
	display: none !important;
}

body:has(.amj-app) .launch-page-header,
body:has(.amj-auth-shell) .launch-page-header,
body:has(.amj-guest-hero) .launch-page-header {
	display: none !important;
}

body:has(.amj-app) .site-main,
body:has(.amj-auth-shell) .site-main,
body:has(.amj-guest-hero) .site-main,
body:has(.amj-app) .launch-main,
body:has(.amj-auth-shell) .launch-main,
body:has(.amj-guest-hero) .launch-main {
	padding: 0 !important;
	max-width: none !important;
}

body:has(.amj-app) .launch-entry,
body:has(.amj-auth-shell) .launch-entry,
body:has(.amj-guest-hero) .launch-entry,
body:has(.amj-app) .launch-entry__content,
body:has(.amj-auth-shell) .launch-entry__content,
body:has(.amj-guest-hero) .launch-entry__content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.amj-app, .amj-auth-shell, .amj-guest-hero {
	color: var(--amj-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amj-app {
	width: min(1180px, calc(100% - 32px)) !important;
	max-width: 1180px !important;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 34px 24px 120px;
	font-size: 18px;
	line-height: 1.65;
}

.amj-hero {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: flex-start;
	padding: 38px 42px;
	border-radius: 28px;
	color: white;
	background:
		radial-gradient(circle at 82% 10%, rgba(232,168,76,.45), transparent 30%),
		linear-gradient(135deg, #172a3a 0%, #2a506c 64%, #5f7788 100%);
	box-shadow: var(--amj-shadow);
}

.amj-hero h1, .amj-guest-hero h1 {
	margin: 4px 0 12px;
	color: #fff !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.5rem, 6vw, 5.4rem);
	line-height: .96;
	letter-spacing: -.04em;
}

.amj-hero p:not(.amj-eyebrow) { max-width: 650px; margin: 0; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.amj-eyebrow { margin: 0 0 7px; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.amj-text-link { color: white; white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.amj-progress-card {
	position: relative;
	margin: -12px 24px 0;
	padding: 22px;
	border-radius: 20px;
	background: var(--amj-paper);
	box-shadow: 0 12px 38px rgba(23,42,58,.1);
}

.amj-progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.amj-progress-copy span { color: #61707b; font-size: .9rem; }
.amj-progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e6e2d9; }
.amj-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--amj-rust),var(--amj-amber)); transition: width .35s ease; }

.amj-week-nav {
	display: grid;
	grid-template-columns: repeat(10, minmax(64px,1fr));
	gap: 7px;
	margin-top: 18px;
}
.amj-week-nav a { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--amj-line); border-radius: 10px; color: var(--amj-ink); text-decoration: none; background: white; }
.amj-week-nav a:hover { border-color: var(--amj-rust); transform: translateY(-1px); }
.amj-week-nav a.is-complete { color: white; border-color: var(--amj-green); background: var(--amj-green); }
.amj-week-nav span { font-weight: 800; }
.amj-week-nav small { overflow: hidden; max-width: 100%; text-overflow: ellipsis; font-size: .66rem; white-space: nowrap; }

.amj-trust-note { margin: 30px 0 20px; padding: 16px 20px; border-left: 4px solid var(--amj-amber); border-radius: 0 12px 12px 0; background: #fff6df; color: #514223; }

.amj-reader-card { display:grid; grid-template-columns:auto 1fr auto; gap:20px; align-items:center; margin:0 0 26px; padding:20px 22px; border:1px solid #cbd4d8; border-radius:18px; background:#eef3f4; }
.amj-reader-card h2 { margin:0 0 4px; color:var(--amj-navy); font-family:Georgia,serif; font-size:1.55rem; }
.amj-reader-card p { margin:0; color:#344955; }
.amj-reader-icon { display:grid; width:58px; height:68px; place-items:center; border-radius:8px 8px 8px 2px; color:white; background:var(--amj-rust); font-size:.78rem; font-weight:900; letter-spacing:.08em; box-shadow:inset -8px -8px 0 rgba(0,0,0,.08); }

.amj-week {
	scroll-margin-top: 24px;
	margin: 0 0 34px;
	padding: 30px;
	border: 1px solid var(--amj-line);
	border-radius: 26px;
	background: var(--amj-paper);
	box-shadow: 0 10px 32px rgba(23,42,58,.07);
}
.amj-week.is-saving { box-shadow: 0 0 0 3px rgba(232,168,76,.24), var(--amj-shadow); }
.amj-week.is-complete { border-color: rgba(62,121,98,.55); }
.amj-week-heading { display: grid; grid-template-columns: 74px 1fr auto; gap: 20px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--amj-line); }
.amj-week-number { display: flex; height: 68px; flex-direction: column; align-items: center; justify-content: center; border-radius: 18px; color: white; background: var(--amj-navy); font-family: Georgia,serif; font-size: 2rem; line-height: .85; }
.amj-week-number span { font-family: Inter,sans-serif; font-size: .61rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.amj-week-heading h2 { margin: 0 0 8px; color: var(--amj-navy); font-family: Georgia,serif; font-size: clamp(2rem,4vw,3.4rem); line-height: 1; }
.amj-week-heading p:last-child { max-width: 820px; margin: 0; color: #344955; font-size: 1.05rem; line-height: 1.55; }
.amj-complete-badge { display: none; padding: 7px 11px; border-radius: 999px; color: var(--amj-green); background: #e5f1eb; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.amj-week.is-complete .amj-complete-badge { display: inline-flex; }

.amj-recording { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(360px,1.35fr); gap: 24px; align-items: center; margin: 25px 0; padding: 20px; border-radius: 18px; color: white; background: #1e3445; }
.amj-recording h3 { margin: 0 0 8px; font-family: Georgia,serif; font-size: 1.6rem; }
.amj-recording p:last-child { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.amj-video-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 12px; background: #0f1a22; }
.amj-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.amj-pulse { margin: 28px 0; padding: 0; border: 0; }
.amj-pulse legend { width: 100%; margin-bottom: 12px; color: var(--amj-navy); font-family: Georgia,serif; font-size: 1.5rem; font-weight: 700; }
.amj-pulse legend span { margin-left: 8px; color: #73808a; font-family: Inter,sans-serif; font-size: .85rem; font-weight: 500; }
.amj-pulse-row { display: grid; grid-template-columns: minmax(230px,1fr) 270px; gap: 24px; align-items: center; padding: 13px 14px; border-top: 1px solid #ece9e2; }
.amj-pulse-row:nth-of-type(even) { background: #faf8f3; }
.amj-scale { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }
.amj-scale label { cursor: pointer; }
.amj-scale input { position: absolute; opacity: 0; pointer-events: none; }
.amj-scale span { display: grid; height: 38px; place-items: center; border: 1px solid #c9c7c0; border-radius: 9px; background: white; font-weight: 800; }
.amj-scale input:checked + span { color: white; border-color: var(--amj-rust); background: var(--amj-rust); }
.amj-scale input:focus-visible + span { outline: 3px solid rgba(88,125,152,.3); outline-offset: 2px; }
.amj-scale-labels { display: flex; justify-content: flex-end; gap: 192px; padding: 5px 8px 0 0; color: #74808a; font-size: .72rem; }

.amj-reflections { display: grid; gap: 22px; }
.amj-question { display: grid; gap: 12px; padding: 18px; border: 1px solid #e2ded5; border-radius: 16px; background: #fff; }
.amj-question > span { display: flex; max-width: 980px; gap: 12px; color: #102737; font-size: 1.07rem; font-weight: 700; line-height: 1.58; }
.amj-question b { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 50%; color: white; background: var(--amj-blue); font-size: .78rem; }
.amj-question textarea, .amj-auth-card input, .amj-auth-card select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #c9c7c0;
	border-radius: 12px;
	color: var(--amj-ink);
	background: white;
	font: inherit;
}
.amj-question textarea { min-height: 138px; padding: 16px 17px; color: #102737; background: #fffefb; font-size: 1rem; line-height: 1.65; resize: vertical; }
.amj-question textarea:focus, .amj-auth-card input:focus, .amj-auth-card select:focus { outline: 3px solid rgba(88,125,152,.22); border-color: var(--amj-blue); }
.amj-question.has-error textarea { border-color: #b92f2f; background: #fff7f7; }

.amj-week-actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--amj-line); }
.amj-week-actions > div { display: flex; gap: 10px; flex-wrap: wrap; }
.amj-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 18px; border: 0; border-radius: 11px; color: white !important; background: var(--amj-rust); font: inherit; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.amj-button:hover { filter: brightness(.94); transform: translateY(-1px); }
.amj-button-secondary { color: var(--amj-ink) !important; background: white; }
.amj-button-complete { background: var(--amj-green); }
.amj-save-status { margin: 0; color: #6d787f; font-size: .82rem; }

.amj-sticky-save { position: fixed; z-index: 1000; right: 20px; bottom: 18px; left: 20px; display: flex; max-width: 720px; align-items: center; justify-content: space-between; gap: 18px; margin: auto; padding: 10px 12px 10px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 17px; color: white; background: rgba(23,42,58,.96); box-shadow: 0 18px 50px rgba(0,0,0,.26); backdrop-filter: blur(12px); }
.amj-sticky-save div { display: flex; flex-direction: column; }
.amj-sticky-save small { color: rgba(255,255,255,.7); }

.amj-auth-shell { display: grid; min-height: 100vh; padding: 28px; place-items: center; background: radial-gradient(circle at 15% 15%,rgba(232,168,76,.26),transparent 28%),linear-gradient(135deg,#172a3a,#3c657f); }
.amj-auth-card { width: min(560px,100%); box-sizing: border-box; padding: 38px; border-radius: 24px; background: var(--amj-paper); box-shadow: var(--amj-shadow); }
.amj-auth-card h1 { margin: 0 0 10px; font-family: Georgia,serif; font-size: clamp(2rem,6vw,3.6rem); line-height: 1; }
.amj-auth-card > p { color: #637079; }
.amj-auth-card label { display: grid; gap: 6px; margin: 14px 0; font-weight: 700; }
.amj-auth-card label small { color: #68757e; font-size: .78rem; font-weight: 500; }
.amj-auth-card input, .amj-auth-card select { height: 48px; padding: 8px 12px; }
.amj-auth-card .login-remember label { display: flex; align-items: center; gap: 8px; }
.amj-auth-card .login-remember input { width: 18px; height: 18px; }
.amj-auth-card .amj-remember { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 600; }
.amj-auth-card .amj-remember input { width: 18px; height: 18px; margin: 0; }
.amj-auth-card .login-submit input { border: 0; color: white; background: var(--amj-rust); font-weight: 800; cursor: pointer; }
.amj-team-confirm { display:flex; align-items:center; justify-content:space-between; margin:16px 0; padding:13px 15px; border:1px solid var(--amj-line); border-radius:12px; background:#f3efe6; }
.amj-team-confirm span { color:#65737c; font-size:.86rem; font-weight:700; }
.amj-team-confirm strong { color:var(--amj-navy); font-size:1.1rem; }
.amj-auth-links { margin-bottom: 0; font-size: .88rem; }
.amj-alert { margin: 16px 0; padding: 12px 14px; border-radius: 10px; color: #7b2626; background: #fde9e7; }
.amj-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

.amj-guest-hero { min-height: 100vh; box-sizing: border-box; padding: clamp(46px,10vw,130px) max(24px,calc((100vw - 980px)/2)); color: white; background: radial-gradient(circle at 85% 20%,rgba(232,168,76,.4),transparent 24%),linear-gradient(135deg,#142a3a,#375f78 70%,#6b7f8b); }
.amj-guest-hero h1 { max-width: 850px; }
.amj-guest-hero > p:not(.amj-eyebrow) { max-width: 680px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.amj-guest-actions { display: flex; gap: 12px; margin-top: 28px; }

@media (max-width: 900px) {
	.amj-week-nav { grid-template-columns: repeat(5,1fr); }
	.amj-recording { grid-template-columns: 1fr; }
	.amj-pulse-row { grid-template-columns: 1fr; gap: 8px; }
	.amj-scale-labels { gap: 0; justify-content: space-between; padding-left: calc(100% - 270px); }
}

@media (max-width: 640px) {
	.amj-app { padding: 14px 12px 112px; }
	.amj-hero { padding: 28px 22px; border-radius: 20px; }
	.amj-hero { display: block; }
	.amj-text-link { display: inline-block; margin-top: 18px; }
	.amj-progress-card { margin: -8px 8px 0; padding: 15px; }
	.amj-progress-copy { align-items: flex-start; flex-direction: column; gap: 2px; }
	.amj-week-nav { grid-template-columns: repeat(5,1fr); }
	.amj-week-nav small { display: none; }
	.amj-week { padding: 20px 16px; border-radius: 19px; }
	.amj-week-heading { grid-template-columns: 58px 1fr; gap: 12px; }
	.amj-week-number { width: 58px; height: 58px; }
	.amj-complete-badge { grid-column: 1/-1; width: fit-content; }
	.amj-recording { margin-inline: -4px; padding: 14px; }
	.amj-pulse-row { padding-inline: 0; }
	.amj-scale-labels { padding-left: 0; }
	.amj-week-actions { align-items: stretch; flex-direction: column; }
	.amj-week-actions > div, .amj-week-actions .amj-button { width: 100%; }
	.amj-reader-card { grid-template-columns:auto 1fr; }
	.amj-reader-card .amj-button { grid-column:1/-1; width:100%; }
	.amj-auth-shell { padding: 14px; }
	.amj-auth-card { padding: 26px 20px; }
	.amj-sticky-save { right: 10px; bottom: 9px; left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
