/* ═══════════════════════════════════════════════════════════════════════════
   AMW HOMEPAGE — July 2027 (BrandAid / TBA)
   ---------------------------------------------------------------------------
   Front-page-only layer, enqueued behind is_front_page() in functions.php.
   That conditional IS the scoping: these rules use bare generic class names
   (.hero, .step, .feature, .button, .eyebrow, .card-icon, .dot) which are
   already used by page-aged-care, page-field-agents, home.html and a number of
   posts. Loading this file anywhere but the front page would restyle them.

   Safe on the front page itself because the live stylesheet is uniformly
   `amw-`prefixed (.amw-hero, .amw-btn, .amw-feature-card), so nothing here
   collides with it, and front-page.html renders no post_content.

   Design tokens (--ink, --paper, --purple …) come from amw-chrome-2027.css,
   which is a declared dependency of this stylesheet.

   Source: theme-july2027/style.css lines 50-59, 176-408, 432-443, 451-486.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   BASE — scoped to the homepage body
   ═══════════════════════════════════════════════════════════ */
body.amw-home {
	background: var(--paper);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	margin: 0;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* :where() so these resets keep the ZERO-class specificity the originals had
   (`a {}`, `img, svg {}`). Writing them as `body.amw-home a` instead raised
   them to (0,1,2), which then beat every single-class rule they are meant to
   yield to — `.store-button{color:#fff}` and `.light-link{color:#fff}` both
   lost, rendering dark-on-dark text on the download badges. Scope without
   specificity is exactly what :where() is for; don't "simplify" it away. */
:where(body.amw-home) a { color: inherit; text-decoration: none; }
:where(body.amw-home) a,
:where(body.amw-home) button { -webkit-tap-highlight-color: transparent; }
:where(.amw-j27) img,
:where(.amw-j27) svg { display: block; max-width: 100%; }

/* Hero CTA. `.button` lives in the chrome layer too, but scoped to
   `.site-header` for the nav pill — the homepage hero uses the bare class, so
   it needs its own copy here. `.site-header .button` (0,2,0) still wins inside
   the header, so the two don't fight. */
.button {
	background: var(--purple);
	color: #fff;
	border-radius: 999px;
	justify-content: center;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	padding: 0 24px;
	font-size: 14px;
	font-weight: 700;
	transition: transform .18s, background .18s;
	display: inline-flex;
	box-shadow: 0 14px 30px #6d48c73d;
}
.button:hover { background: var(--purple-dark); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: 70px;
	width: min(1280px, 100% - 48px);
	min-height: 850px;
	margin: 0 auto;
	padding: 170px 48px 80px;
	display: grid;
	overflow: hidden;
}
.eyebrow {
	color: var(--purple);
	letter-spacing: .17em;
	text-transform: uppercase;
	margin: 0 0 24px;
	font-size: 12px; font-weight: 800; line-height: 1.3;
}
.eyebrow.light { color: #cab6e9; }
.hero h1,
.section-heading h2,
.truth-heading h2,
.life-copy h2,
.privacy-copy h2,
.download-copy h2 {
	letter-spacing: -.055em;
	margin: 0;
	font-size: clamp(46px, 5.3vw, 78px);
	font-weight: 700;
	line-height: .98;
}
.hero h1 { max-width: 760px; }
.hero h1 span { color: var(--purple); }
.hero-intro { max-width: 650px; color: var(--ink-soft); margin: 30px 0 0; font-size: 18px; line-height: 1.7; }
.hero-actions { align-items: center; gap: 25px; margin-top: 36px; display: flex; }
.text-link { align-items: center; gap: 10px; font-size: 14px; font-weight: 700; display: inline-flex; }
.text-link span { color: var(--purple); }
.hero-note { border-left: 3px solid var(--lilac); color: var(--ink-soft); margin: 46px 0 0; padding-left: 22px; font-size: 14px; font-style: italic; font-weight: 500; }

.hero-visual { min-width: 0; height: 660px; position: relative; }
.orbit { background: var(--lilac); border-radius: 50%; position: absolute; }
.orbit-one { width: 520px; height: 520px; top: 50px; left: 40px; }
.orbit-two { background: 0 0; border: 1px solid #6d48c733; width: 240px; height: 240px; bottom: 25px; right: -30px; }
.phone { z-index: 2; width: 285px; box-shadow: var(--shadow); border-radius: 38px; position: absolute; }
.phone-front { top: 0; left: 62px; transform: rotate(-4deg); }
.phone-back { width: 252px; bottom: 3px; right: 28px; transform: rotate(7deg); }
.float-card, .voice-card {
	z-index: 5; color: #2d1441;
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	background: #ffffffdb; border: 1px solid #ffffffb3; border-radius: 16px;
	align-items: center; gap: 10px; padding: 12px 16px;
	font-size: 12px; font-weight: 700; display: flex; position: absolute;
	box-shadow: 0 16px 40px #2d144124;
}
.float-private { top: 90px; right: 5px; }
.float-together { bottom: 145px; left: 3px; }
.dot { background: #40916c; border-radius: 50%; width: 8px; height: 8px; box-shadow: 0 0 0 5px #40916c24; }
.people { background: var(--lilac); width: 32px; height: 32px; color: var(--purple-dark); border-radius: 50%; place-items: center; display: grid; }
.voice-card { min-width: 260px; bottom: 22px; left: 170px; }
.voice-card button { background: var(--purple); color: #fff; cursor: pointer; border: 0; border-radius: 50%; width: 36px; height: 36px; }
.wave { color: var(--purple); letter-spacing: 1px; white-space: nowrap; }
.voice-card small { color: #766a7f; font-size: 9px; display: block; }

/* ═══════════════════════════════════════════════════════════
   TRUTH  ("We capture plenty. We preserve very little.")
   ═══════════════════════════════════════════════════════════ */
.truth-section {
	color: #fff; background: #1a0a2e;
	grid-template-columns: .9fr .8fr; gap: 90px;
	padding: 125px max(7vw, 28px);
	display: grid; position: relative; overflow: hidden;
}
.truth-section::after { content: ""; filter: blur(4px); background: #7b5ec633; border-radius: 50%; width: 600px; height: 600px; position: absolute; top: -240px; right: -260px; }
.truth-heading h2 { max-width: 650px; }
.truth-copy { color: #d9cde2; padding-top: 44px; font-size: 17px; line-height: 1.75; }
.truth-statement { color: #fff; margin-top: 30px; font-size: 23px; font-weight: 600; line-height: 1.4; }
.memory-pair { z-index: 2; grid-column: 1 / -1; grid-template-columns: .78fr 1.22fr; gap: 20px; margin-top: 10px; display: grid; position: relative; }
.memory-photo, .memory-story { background: #ffffff14; border-radius: 28px; min-height: 260px; padding: 26px; }
.memory-photo { grid-template-columns: 180px 1fr; align-items: center; gap: 22px; display: grid; }
.photo-art { background: linear-gradient(#dcb6e9 0 56%, #f7d6a1 56%); border-radius: 20px; height: 200px; position: relative; overflow: hidden; }
.sun { background: #fff4cb; border-radius: 50%; width: 54px; height: 54px; position: absolute; top: 25px; right: 22px; }
.hill { border-radius: 50% 50% 0 0; width: 220px; height: 110px; position: absolute; bottom: -35px; }
.hill-one { background: #7964b9; left: -55px; transform: rotate(8deg); }
.hill-two { background: #503aa8; bottom: -15px; right: -90px; transform: rotate(-10deg); }
.figures { z-index: 2; color: #26133a; letter-spacing: 4px; position: absolute; bottom: 45px; left: 42px; }
.memory-photo small, .memory-story > small { color: #bcaacb; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; font-size: 10px; font-weight: 700; display: block; }
.memory-photo strong { font-size: 21px; line-height: 1.35; display: block; }
.memory-story { color: #2d1441; background: #fff; padding: 35px 42px; position: relative; }
.quote-mark { color: var(--lilac); font-family: Georgia, serif; font-size: 70px; line-height: 1; position: absolute; top: 12px; left: 22px; }
.memory-story p { margin: 10px 0 28px; font-family: Georgia, serif; font-size: 22px; line-height: 1.55; position: relative; }
.mini-player { align-items: center; gap: 12px; margin-bottom: 22px; display: flex; }
.play-circle { background: var(--purple); color: #fff; border-radius: 50%; place-items: center; width: 34px; height: 34px; font-size: 10px; display: grid; }
.mini-player small { color: #7f7288; font-size: 10px; }

/* Media filling the rounded square — cover + centre so the gradient never shows
   through, whatever aspect ratio the source happens to be. */
.photo-art-media { object-fit: cover; object-position: center; width: 100%; height: 100%; display: block; }

/* ═══════════════════════════════════════════════════════════
   VOICE PLAYER  (real <audio> driving the mock design)
   The <audio> element is the engine only — never shown. Bars are real
   elements so the waveform can react to the audio and show progress.
   ═══════════════════════════════════════════════════════════ */
.vp-audio { display: none; }
.vp-toggle {
	appearance: none; -webkit-appearance: none; border: 0; padding: 0; cursor: pointer;
	flex: none; transition: background-color .18s ease, transform .18s ease;
}
.vp-toggle:hover { background: var(--purple-dark); transform: scale(1.06); }
.vp-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
/* Play triangle → pause bars, drawn in CSS so it never depends on glyph coverage. */
.vp-icon { border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #fff; width: 0; height: 0; margin-left: 3px; }
.is-playing .vp-icon { box-sizing: border-box; border: 0; border-left: 3px solid #fff; border-right: 3px solid #fff; width: 10px; height: 12px; margin-left: 0; }
.is-loading .vp-toggle { animation: vp-pulse 1s ease-in-out infinite; }
@keyframes vp-pulse { 50% { opacity: .5; } }

.vp-wave { flex: 1; align-items: center; gap: 3px; height: 26px; min-width: 0; max-width: 190px; display: flex; }
.vp-wave i {
	background: var(--purple); border-radius: 2px; flex: 1 1 0; min-width: 2px; max-width: 5px;
	height: calc(6px + var(--h) * 20px); opacity: .85;
	transition: height .09s linear, opacity .2s ease;
}
/* Once playing, dim the bars ahead of the playhead so the waveform doubles as a
   progress indicator (the native <audio> scrubber is gone). */
.is-active .vp-wave i { opacity: .25; }
.is-active .vp-wave i.is-played { opacity: 1; }
.vp-time { font-variant-numeric: tabular-nums; flex: none; }

/* ═══════════════════════════════════════════════════════════
   DEFINITION  ("More than storage.")
   ═══════════════════════════════════════════════════════════ */
.definition-section, .how-section { padding: 125px max(7vw, 28px); }
.section-heading { grid-template-columns: 1fr .65fr; align-items: end; column-gap: 80px; display: grid; }
.section-heading .eyebrow, .section-heading h2 { grid-column: 1; }
.section-heading > p:last-child { color: var(--ink-soft); grid-area: 1 / 2 / 3; margin: 0 0 5px; font-size: 16px; line-height: 1.75; }
.feature-stage { grid-template-columns: .9fr 1.1fr; gap: 80px; margin-top: 85px; display: grid; }
.feature-list { align-self: center; }
.feature { border-bottom: 1px solid var(--line); opacity: .55; grid-template-columns: 50px 1fr; gap: 10px; padding: 25px 0; display: grid; }
.feature.active { opacity: 1; }
.feature > span { color: var(--purple); font-size: 11px; font-weight: 800; }
.feature h3 { margin: 0 0 6px; font-size: 25px; }
.feature p { max-width: 520px; color: var(--ink-soft); margin: 0; font-size: 14px; line-height: 1.65; }
.feature-phone { background: var(--lilac-soft); border-radius: 40px; place-items: center; min-height: 670px; display: grid; position: relative; overflow: hidden; }
.soft-circle { background: var(--lilac); border-radius: 50%; width: 520px; height: 520px; position: absolute; }
.feature-phone img { z-index: 2; filter: drop-shadow(0 20px 30px #2d144129); align-self: end; width: 285px; position: relative; }
.feature-caption { z-index: 4; color: #2d1441; background: #fff; border-radius: 18px; width: 220px; padding: 18px; position: absolute; bottom: 32px; left: 32px; box-shadow: 0 16px 30px #2d14411f; }
.feature-caption span { color: var(--purple); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 800; display: block; }
.feature-caption strong { margin-top: 6px; font-size: 14px; line-height: 1.45; display: block; }

/* ═══════════════════════════════════════════════════════════
   HOW  ("One moment is enough.")
   ═══════════════════════════════════════════════════════════ */
.how-section { background: var(--lilac-soft); }
.section-heading.centred { text-align: center; max-width: 800px; margin: 0 auto; display: block; }
.section-heading.centred p:last-child { max-width: 620px; margin: 25px auto 0; }
.steps { grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1240px; margin: 75px auto 0; display: grid; }
.step { border: 1px solid var(--line); background: var(--white); border-radius: 24px; min-height: 300px; padding: 28px; transition: transform .18s, box-shadow .18s; }
.step:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.step > span { background: var(--lilac); color: #503aa8; border-radius: 50%; place-items: center; width: 42px; height: 42px; margin-bottom: 70px; font-size: 11px; font-weight: 800; display: grid; }
.step h3 { margin: 0 0 12px; font-size: 20px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 13px; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   LIFE  ("Made for a whole life.")
   ═══════════════════════════════════════════════════════════ */
.life-section { color: #fff; background: #503aa8; grid-template-columns: .75fr 1.25fr; gap: 90px; padding: 125px max(7vw, 28px); display: grid; }
.life-copy { align-self: center; }
.life-copy h2 { font-size: clamp(42px, 4.7vw, 68px); }
.life-copy > p:last-child { color: #e8dcf2; margin: 30px 0 0; font-size: 16px; line-height: 1.75; }
.life-grid { grid-template-columns: 1fr 1fr; gap: 15px; display: grid; }
.life-card { color: #2d1441; border-radius: 26px; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 25px; display: flex; }
.life-card.purple { background: #cbb0ed; }
.life-card.lilac { background: #eadcf4; }
.life-card.cream { background: #fff5dd; }
.life-card.green { background: #b9d9c4; }
.card-icon { background: #ffffff8c; border-radius: 50%; place-items: center; width: 44px; height: 44px; font-size: 18px; display: grid; }
.life-card small { color: #2d1441ad; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 9px; font-size: 10px; font-weight: 800; display: block; }
.life-card h3 { margin: 0; font-size: 21px; line-height: 1.35; }

/* ═══════════════════════════════════════════════════════════
   PRIVACY  ("The audience is the people the story is for.")
   ═══════════════════════════════════════════════════════════ */
.privacy-section { color: #fff; background: #1a0a2e; grid-template-columns: 1fr .85fr; align-items: center; gap: 100px; min-height: 800px; padding: 110px max(7vw, 28px); display: grid; }
.privacy-visual { place-items: center; min-height: 590px; display: grid; position: relative; }
.privacy-halo { background: radial-gradient(circle, #7b5ec68c, #7b5ec60f 68%, #0000 69%); border-radius: 50%; width: 510px; height: 510px; position: absolute; }
.privacy-visual img { z-index: 2; filter: drop-shadow(0 25px 45px #0006); width: 260px; position: relative; }
.lock-badge { z-index: 3; color: #2d1441; background: #fff; border-radius: 18px; align-items: center; gap: 12px; padding: 15px 18px; font-size: 25px; display: flex; position: absolute; bottom: 20%; right: 6%; box-shadow: 0 18px 40px #00000040; }
.lock-badge span { font-size: 11px; font-weight: 700; line-height: 1.4; }
.privacy-copy h2 { font-size: clamp(43px, 4.6vw, 68px); }
.privacy-copy > p:not(.eyebrow) { color: #d9cde2; margin: 30px 0; font-size: 16px; line-height: 1.75; }
.privacy-copy ul { margin: 0 0 30px; padding: 0; list-style: none; }
.privacy-copy li { color: #f5edf8; border-bottom: 1px solid #ffffff1f; padding: 14px 0; font-size: 14px; }
.privacy-copy li span { color: #8ee0ae; background: #40916c4d; border-radius: 50%; place-items: center; width: 24px; height: 24px; margin-right: 10px; display: inline-grid; }
.light-link { color: #fff; }
.light-link span { color: #cab6e9; }

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD  ("Shared now. Kept for later.")
   ═══════════════════════════════════════════════════════════ */
.download-section { background: var(--lilac); color: #2d1441; border-radius: 42px; grid-template-columns: 1fr .8fr; align-items: center; gap: 40px; min-height: 690px; margin: 0 24px 24px; padding: 90px max(6vw, 28px) 0; display: grid; overflow: hidden; }
.download-copy { align-self: center; padding-bottom: 80px; }
.download-copy h2 { font-size: clamp(52px, 6vw, 88px); }
.download-copy > p:not(.eyebrow) { max-width: 570px; margin: 28px 0 32px; font-size: 16px; line-height: 1.7; }
.store-buttons { flex-wrap: wrap; gap: 10px; display: flex; }
.store-button { color: #fff; background: #1a0a2e; border-radius: 12px; align-items: center; gap: 11px; min-width: 170px; height: 58px; padding: 0 17px; font-size: 15px; font-weight: 600; display: flex; }
.store-button small { font-size: 8px; font-weight: 400; line-height: 1.2; display: block; }
.store-icon, .play-icon { font-size: 22px; }
.download-phone { align-self: end; place-items: end center; height: 600px; display: grid; position: relative; }
.download-glow { background: #ffffff6b; border-radius: 50%; width: 570px; height: 570px; position: absolute; bottom: 0; }
.download-phone img { z-index: 2; filter: drop-shadow(0 25px 45px #2d144133); width: 310px; position: relative; }

/* ═══════════════════════════════════════════════════════════
   BEST-OF-BOTH DARK LAYER
   The mockup only recolours 6 tokens for dark and hard-codes several
   light bands. These rules carry the parent site's thorough dark
   treatment across the sections the mockup left light.
   (Intentionally-dark bands — truth, privacy, life — stay as designed.)
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] { --lilac-soft: #191024; }          /* how-section, feature-phone, toggle bg */
[data-theme="dark"] .soft-circle       { background: rgba(123,94,198,0.13); }
[data-theme="dark"] .orbit-one         { background: rgba(123,94,198,0.16); }
[data-theme="dark"] .orbit-two         { border-color: rgba(123,94,198,0.35); }
[data-theme="dark"] .step > span       { background: rgba(123,94,198,0.22); color: #e8d5f5; }
[data-theme="dark"] .feature-caption   { background: #241634; color: #f8f3fc; box-shadow: 0 16px 30px rgba(0,0,0,0.45); }
[data-theme="dark"] .feature-caption strong { color: #f8f3fc; }
[data-theme="dark"] .download-section  { background: linear-gradient(135deg, #2a1758, #180f34); color: #f8f3fc; }
[data-theme="dark"] .download-copy h2  { color: #fff; }
[data-theme="dark"] .download-copy > p:not(.eyebrow) { color: #d7cce0; }
[data-theme="dark"] .download-section .eyebrow { color: #cab6e9; }
[data-theme="dark"] .download-glow     { background: rgba(123,94,198,0.20); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — homepage sections
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1050px) {
	.hero { grid-template-columns: 1fr; padding-top: 145px; }
	.hero-copy { max-width: 800px; }
	.hero-visual { width: min(650px, 100%); margin: 0 auto; }
	.truth-section, .life-section, .privacy-section { grid-template-columns: 1fr; gap: 55px; }
	.truth-copy { padding-top: 0; }
	.memory-pair { grid-column: 1; }
	.section-heading { display: block; }
	.section-heading > p:last-child { max-width: 700px; margin-top: 28px; }
	.steps { grid-template-columns: 1fr 1fr; }
	.feature-stage { gap: 35px; }
	.life-copy, .privacy-copy { max-width: 750px; }
	.privacy-visual { order: 2; }
}
@media (max-width: 720px) {
	.hero { gap: 40px; width: 100%; min-height: auto; padding: 130px 20px 60px; }
	.hero h1 { font-size: 45px; }
	.hero-intro { font-size: 16px; }
	.hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
	.hero-note { margin-top: 32px; }
	.hero-visual { height: 520px; }
	.orbit-one { width: 400px; height: 400px; left: -70px; }
	.phone-front { width: 225px; left: 18px; }
	.phone-back { width: 190px; right: -12px; }
	.float-private { top: 60px; right: 0; }
	.float-together { bottom: 96px; left: 0; }
	.voice-card { min-width: 235px; bottom: 10px; left: 25px; }
	.truth-section, .definition-section, .how-section, .life-section, .privacy-section { padding: 80px 20px; }
	.truth-heading h2, .section-heading h2, .life-copy h2, .privacy-copy h2 { font-size: 43px; }
	.memory-pair { grid-template-columns: 1fr; }
	.memory-photo { grid-template-columns: 130px 1fr; }
	.photo-art { height: 160px; }
	.memory-story { padding: 30px 25px; }
	.memory-story p { font-size: 19px; }
	.feature-stage { grid-template-columns: 1fr; margin-top: 50px; }
	.feature-phone { min-height: 580px; }
	.steps, .life-grid { grid-template-columns: 1fr; }
	.step { min-height: 245px; }
	.step > span { margin-bottom: 45px; }
	.life-card { min-height: 230px; }
	.privacy-section { min-height: auto; }
	.privacy-visual { min-height: 520px; }
	.privacy-halo { width: 390px; height: 390px; }
	.privacy-visual img { width: 225px; }
	.lock-badge { right: 0; }
	.download-section { border-radius: 30px; grid-template-columns: 1fr; min-height: 900px; margin: 0 10px 10px; padding: 70px 20px 0; }
	.download-copy { padding-bottom: 0; }
	.download-copy h2 { font-size: 55px; }
	.download-phone { height: 430px; }
	.download-phone img { width: 250px; }
	.download-glow { width: 430px; height: 430px; }
}
