/* Donor presentation stays below the protected header and hero. Font names are isolated. */
@font-face { font-family: 'Memorias Lower Sans'; src: url('assets/lower/manrope-latin.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Memorias Lower Serif'; src: url('assets/lower/dm-serif-display-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
#lower-home, #home-view #templates {
  --purple: var(--mw-pink); --muted: var(--mw-lavender-text); --line: #bca1db30; --white: var(--mw-pearl);
  --sans: 'Memorias Lower Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--mw-night-violet); color: var(--mw-pearl); font-family: var(--sans); color-scheme: dark;
}
#home-view #templates { max-width: none; min-height: calc(100svh - 210px); padding: 20px max(5%, calc((100% - 1152px) / 2)) 48px; }
#lower-home :focus-visible, #templates :focus-visible { outline: 3px solid var(--mw-pink); outline-offset: 5px; }
/* Keep route focus without framing the static catalog title. */
#templates #templates-heading:focus { outline: none; }
#lower-home .section-wrap.trust-panel-wrap { padding-block: 32px 0; }
#lower-home .trust-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 28px 24px; list-style: none; background: #241744; border: 1px solid #bca1db40; border-radius: 24px; box-shadow: 0 8px 20px #0c061c25; }
#lower-home .trust-panel-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding-inline: 8px; text-align: center; gap: 8px; }
#lower-home .trust-panel-item + .trust-panel-item { border-left: 1px solid #bca1db30; }
#lower-home .trust-panel-lead { font: 800 28px/1.15 var(--sans); color: #ffb5e8; }
#lower-home .trust-counter-static { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#lower-home .trust-panel-label { font: 700 14px/1.4 var(--sans); color: #fff8f3; }
@media (max-width: 800px) {
  #lower-home .section-wrap.trust-panel-wrap { padding-block: 24px 0; }
  #lower-home .trust-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 16px; }
  #lower-home .trust-panel-lead { font-size: 24px; }
  #lower-home .trust-panel-item + .trust-panel-item { border-left: 0; }
  #lower-home .trust-panel-item:nth-child(even) { border-left: 1px solid #bca1db30; }
  #lower-home .trust-panel-item:nth-child(-n + 2) { padding-bottom: 16px; }
  #lower-home .trust-panel-item:nth-child(n + 3) { padding-top: 16px; border-top: 1px solid #bca1db30; }
}
:is(#lower-home, #templates) .section-heading { margin-bottom: 22px; align-items: center; }
:is(#lower-home, #templates) .section-heading :is(h1, h2), #lower-home :is(.how-section, .faq-section) h2 { font: 800 clamp(30px, 2.8vw, 40px)/1.2 var(--sans); letter-spacing: -.045em; color: var(--mw-pearl); margin-bottom: 0; }
:is(#lower-home, #templates) .section-heading :is(h1, h2) em, #lower-home :is(.how-section, .faq-section) h2 em { font: italic 400 1.13em/1 'Memorias Lower Serif', Georgia, serif; color: var(--mw-pink); letter-spacing: -.025em; }
:is(#lower-home, #templates) .eyebrow { color: var(--mw-pink); }
:is(#lower-home, #templates) .section-heading .eyebrow { margin-bottom: 10px; }
#templates .resume-draft { flex-shrink: 0; color: var(--mw-pink); }
#templates .catalog-topline { margin-bottom: 28px; }
#templates .catalog-topline .text-link { font-size: 12px; color: var(--mw-lavender-text); padding-block: 6px; }
#templates .catalog-controls { padding: 14px 18px; border: 1px solid #bca1db30; border-radius: 20px; background: var(--mw-violet); margin-top: 22px; margin-bottom: 24px; gap: 10px 20px; }
#home-view #templates #templates-heading { font-size: 36px; font-weight: 800; letter-spacing: -.035em; }
#templates .catalog-subtitle { color: var(--mw-lavender-text); font-size: 15px; line-height: 1.7; margin: 14px 0 0; }
#templates .catalog-search { flex-basis: 100%; margin-bottom: 12px; }
#templates .catalog-search label { display: block; color: var(--mw-lavender-text); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
#templates .catalog-search-field { display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 0 16px; border: 1px solid #bca1db59; border-radius: 14px; background: var(--mw-night-violet); color: var(--mw-pink); }
#templates .catalog-search-field svg { width: 20px; height: 20px; flex-shrink: 0; }
#templates .catalog-search input { min-width: 0; width: 100%; min-height: 48px; border: 0; border-radius: 0; background: transparent; color: var(--mw-pearl); font: inherit; font-size: 14px; padding: 10px 0; }
#templates .catalog-search input::placeholder { color: var(--mw-lavender-text); opacity: 1; }
#templates .catalog-search-field:focus-within { border-color: var(--mw-pink); }
#templates .template-card .art-label { font-size: 10px; letter-spacing: .025em; }
#templates .occasion-filters button { border: 1px solid #bca1db40; color: #e3d5ed; background: #2a1b43; border-radius: 100px; transition: background .2s, border-color .2s, color .2s; }
#templates .occasion-filters button:hover { border-color: #ffb5e880; background: #38244f; color: var(--mw-pearl); }
#templates .occasion-filters button[aria-pressed="true"] { color: #27113f; background: var(--mw-pink-soft); border-color: var(--mw-pink-soft); }
#templates .availability-filter input { accent-color: var(--mw-pink-soft); }
#templates .template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
#templates .template-card { display: flex; flex-direction: column; border: 1px solid #bca1db40; border-radius: 24px; background: linear-gradient(145deg, #382650, #2a1c40); box-shadow: 0 16px 40px #0c061c26; container-type: inline-size; container-name: catalog-card; }
#templates .template-card[data-available="true"]:hover { border-color: #ffb5e875; }
#templates .template-card[data-available="false"] { background: var(--mw-violet); border-color: #bca1db2b; border-style: dashed; box-shadow: none; }
#templates .template-art { flex-shrink: 0; border-radius: 16px; }
#templates .template-info { display: flex; flex-direction: column; flex: 1; }
#templates .card-actions, #templates .future-label { margin-top: auto; }
#templates .tags span { background: #c9a1dd16; color: #eed6f1; border: 1px solid #c9a1dd24; }
#templates .card-actions .text-link { color: var(--mw-pink); }
:is(#lower-home, #templates) .template-info h3 { color: var(--mw-pearl); font-weight: 750; }
:is(#lower-home, #templates) .button.primary { color: var(--mw-pearl); background: var(--mw-gradient-primary) 0 0 / 200% 100%; border-color: transparent; box-shadow: var(--mw-shadow-primary); border-radius: 100px; }
:is(#lower-home, #templates) .button.primary:hover { background-position: 100% 0; filter: brightness(1.06); }
:is(#lower-home, #templates) .button.secondary { color: var(--mw-pearl); border-color: #bda0d059; background: #ffffff06; border-radius: 100px; }
:is(#lower-home, #templates) .button.secondary:hover { background: #ffffff0d; border-color: #ffb5e880; }
:is(#lower-home, #templates) .circle-arrow { color: #27113f; background: #ffe2f3; }
:is(#lower-home, #templates) .art-label { color: #27113f; background: #fff8f3f2; }
:is(#lower-home, #templates) [data-available="false"] .art-label { color: #4e345d; background: #f0e4f5ed; }
:is(#lower-home, #templates) .admiration-art { color: #30273b; background: #f0d5df; }
:is(#lower-home, #templates) .admiration-word em, :is(#lower-home, #templates) .mini-star { color: #93445f; }
:is(#lower-home, #templates) .story-art { color: #30273b; background: #e9dff2; }
:is(#lower-home, #templates) .story-word em { color: #93445f; }
:is(#lower-home, #templates) .story-flower { color: #7955a5; }
:is(#lower-home, #templates) .story-art svg path:first-of-type { stroke: #b56d97; }
:is(#lower-home, #templates) .story-art svg path:nth-of-type(2) { stroke: #8e70b4; }
:is(#lower-home, #templates) .universe-art { background: radial-gradient(ellipse at 55% 35%, #755487, #382652); }
:is(#lower-home, #templates) .birthday-art { background: radial-gradient(ellipse at 50% 25%, #63416f, #211432 85%); }
:is(#lower-home, #templates) .album-page em, :is(#lower-home, #templates) .album-heart { color: #93445f; }
#templates .catalog-empty { border-color: #bca1db59; border-radius: 20px; background: #302047; }
#templates .catalog-empty > span { color: var(--mw-pink); }
#lower-home .how-section { max-width: 1150px; padding: 36px 4%; border: 1px solid #bca1db30; border-radius: 24px; background: radial-gradient(ellipse at 50% 0%, #ad639320, transparent 75%), var(--mw-violet); }
#lower-home .how-section h2 { margin-bottom: 32px; }
#lower-home .step-number { border: 1px solid var(--mw-pink-soft); background: var(--mw-pink-soft); color: #27113f; box-shadow: 0 4px 18px #f58bd918; font-weight: 800; }
#lower-home .steps-grid article:nth-child(2) .step-number { background: #d9c4f4; border-color: #d9c4f4; }
#lower-home .steps-grid article:nth-child(3) .step-number { background: #f1d6a0; border-color: #f1d6a0; }
#lower-home .steps-grid h3 { color: var(--mw-pearl); }
/* Homepage summary is isolated from the dedicated Plans view and routing. */
#lower-home .home-plans { padding-block: 56px; }
#lower-home .home-plans-status { flex-shrink: 0; padding: 7px 14px; border: 1px solid #bca1db59; border-radius: 100px; color: var(--mw-pink); font-size: 12px; font-weight: 700; }
#lower-home .home-plans .section-heading { flex-direction: column; align-items: center; gap: 18px; text-align: center; margin-bottom: 18px; }
#lower-home .home-plans-intro { color: var(--mw-lavender-text); line-height: 1.7; margin: 0 auto 48px; max-width: 600px; text-align: center; }
#lower-home #home-plans .plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin: auto; }
#lower-home #home-plans .plan-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #a490d34d; border-radius: 24px; background: #191d36; box-shadow: 0 20px 48px #090a2040; }
#lower-home #home-plans .plan-card-header { position: relative; padding: 28px; background: radial-gradient(ellipse at 100% 0, #a37bff80, transparent 70%), linear-gradient(120deg, #633bba, #4245ac); }
#lower-home #home-plans .plan-premium .plan-card-header { background: radial-gradient(ellipse at 100% 0, #db85ee65, transparent 65%), linear-gradient(120deg, #7540bb, #5645b5); }
#lower-home #home-plans .plan-symbol { position: absolute; right: 28px; top: 25px; color: #eee1ff; font-size: 36px; line-height: 1; }
#lower-home #home-plans .plan-label { font-size: 10px; font-weight: 800; letter-spacing: .13em; color: #e0d7ff; margin: 0 0 10px; }
#lower-home #home-plans .plan-card h3 { color: #fff; font: 800 24px/1.3 var(--sans); letter-spacing: -.02em; margin: 0; }
#lower-home #home-plans .plan-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 14px; color: #fff; font-size: 24px; line-height: 1; }
#lower-home #home-plans .plan-price strong { font-size: 56px; font-weight: 800; letter-spacing: -.05em; }
#lower-home #home-plans .plan-duration { color: #eee5ff; font-size: 12px; margin: 0; }
#lower-home #home-plans .plan-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
#lower-home #home-plans .plan-description { color: #f5eaff; font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0 0 20px; }
#lower-home #home-plans .plan-card ul { list-style: none; padding: 0; margin: 0 0 22px; color: #ded9ed; font-size: 13px; }
#lower-home #home-plans .plan-card li { position: relative; padding-left: 23px; margin-bottom: 12px; }
#lower-home #home-plans .plan-card li::before { content: '✓'; position: absolute; left: 0; color: #b9a2f5; font-weight: 800; }
#lower-home #home-plans .plan-pending { border-top: 1px solid #bca1db26; padding-top: 18px; color: #c3bed6; font-size: 12px; line-height: 1.7; margin: auto 0 20px; }
#lower-home #home-plans .button { min-height: 48px; width: 100%; border-radius: 12px; font-size: 13px; }
#lower-home #home-plans .plans-primary { color: var(--mw-pearl); background: var(--mw-gradient-primary) 0 0 / 200% 100%; border-color: transparent; box-shadow: var(--mw-shadow-primary); }
#lower-home #home-plans .plans-secondary { background: #353052; border-color: #8e77b3; color: #fff2ff; }
#lower-home .home-plans-bottom { display: flex; justify-content: center; align-items: center; margin-top: 24px; }
#lower-home #home-plans .home-plans-bottom .button { width: auto; max-width: 100%; min-height: 44px; padding: 10px 20px; font-size: 13px; border-radius: 100px; }
@media (max-width: 600px) {
  #lower-home .home-plans { padding-block: 36px; }
  #lower-home .home-plans .section-heading { align-items: center; flex-direction: column; gap: 16px; }
  #lower-home .home-plans-intro { margin-bottom: 28px; }
  #lower-home #home-plans .plans-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #lower-home #home-plans .plan-card-header, #lower-home #home-plans .plan-card-body { padding: 24px; }
}
/* Standalone Orbital artwork is reused by the catalog and featured copies. */
:is(#lower-home, #templates) .orbital-art { position: relative; isolation: isolate; background: radial-gradient(ellipse at 50% 35%, #5d234c, #160c28 75%); color: #fff3fc; }
:is(#lower-home, #templates) .orbital-heart { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); font-size: 88px; line-height: 1; color: #ffa3d5; text-shadow: 0 0 28px #ff6fb5aa; }
:is(#lower-home, #templates) .orbital-ring { position: absolute; width: 80%; height: 27%; top: 26%; left: 10%; border: 1px solid #e5a5edaa; border-radius: 50%; transform: rotate(-20deg); }
:is(#lower-home, #templates) .orbital-ring-two { transform: rotate(23deg); border-color: #a295f0aa; }
:is(#lower-home, #templates) .orbital-caption { position: absolute; bottom: 28px; left: 22px; font: 700 27px/1.12 var(--sans); letter-spacing: -.035em; }
:is(#lower-home, #templates) .orbital-caption em { color: #ffc3e9; }
#lower-home .orbital-heart { font-size: 66px; top: 11%; }
#lower-home .orbital-caption { font-size: 23px; bottom: 20px; }
/* Standalone space artwork has no dependency on the editor or gift renderer. */
:is(#lower-home, #templates) .space-art { position: relative; isolation: isolate; background: radial-gradient(ellipse at 70% 25%, #5b325f, #110d2b 70%); color: #fff3fc; }
:is(#lower-home, #templates) .space-stars { position: absolute; top: 20%; left: 12%; width: 76%; text-align: center; color: #e9c8ff; font-size: 28px; letter-spacing: .2em; }
:is(#lower-home, #templates) .space-planet { position: absolute; top: 20%; left: 50%; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #f9b6d5, #8f4a9c 65%, #342752); box-shadow: 0 0 35px #f580ca40; }
:is(#lower-home, #templates) .space-planet::after { content: ''; position: absolute; inset: 23% -25%; border: 2px solid #dfb5f299; border-radius: 50%; transform: rotate(-25deg); }
:is(#lower-home, #templates) .space-caption { position: absolute; bottom: 28px; left: 22px; font: 700 27px/1.12 var(--sans); letter-spacing: -.035em; }
:is(#lower-home, #templates) .space-caption em { color: #ffc3e9; }
#lower-home .space-planet { width: 54px; height: 54px; top: 18%; }
#lower-home .space-caption { font-size: 23px; bottom: 20px; }
/* Standalone local 3D pumpkin entry; the artwork itself needs no WebGL. */
:is(#lower-home, #templates) .pumpkin-art { position: relative; isolation: isolate; background: radial-gradient(ellipse at 50% 35%, #633145, #190d2f 75%); color: #fff3fc; }
:is(#lower-home, #templates) .pumpkin-glow { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); font-size: 86px; line-height: 1.1; filter: drop-shadow(0 0 18px #ff9f4d66); }
:is(#lower-home, #templates) .pumpkin-stars { position: absolute; top: 20%; left: 12%; color: #d6c1ff; font-size: 25px; letter-spacing: .25em; }
:is(#lower-home, #templates) .pumpkin-caption { position: absolute; bottom: 28px; left: 22px; font: 700 27px/1.12 var(--sans); letter-spacing: -.035em; }
:is(#lower-home, #templates) .pumpkin-caption em { color: #ffd1a6; }
#lower-home .pumpkin-glow { font-size: 64px; top: 11%; }
#lower-home .pumpkin-caption { font-size: 23px; bottom: 20px; }
/* The Valentine entry artwork is static; only its independent page needs WebGL. */
:is(#lower-home, #templates) .valentine-art { position: relative; isolation: isolate; background: radial-gradient(ellipse at 55% 35%, #702a75, #160a2c 75%); color: #fff3fc; }
:is(#lower-home, #templates) .valentine-heart { position: absolute; top: 7%; left: 50%; transform: translateX(-50%); font: 100px/1.2 Georgia, serif; color: #ff9dcc; text-shadow: 0 0 12px #ff4fa0, 0 0 30px #ff4fa099; }
:is(#lower-home, #templates) .valentine-stars { position: absolute; top: 30%; left: 9%; width: 82%; color: #e5d0ff; font-size: 23px; letter-spacing: .25em; text-align: center; }
:is(#lower-home, #templates) .valentine-caption { position: absolute; bottom: 28px; left: 22px; font: 700 27px/1.12 var(--sans); letter-spacing: -.035em; }
:is(#lower-home, #templates) .valentine-caption em { color: #ffc3e9; }
#lower-home .valentine-heart { font-size: 74px; top: 6%; }
#lower-home .valentine-caption { font-size: 23px; bottom: 20px; }
#plans { --sans: 'Memorias Lower Sans', ui-sans-serif, system-ui, sans-serif; --muted: #c8c4dc; color: var(--mw-pearl); background: var(--mw-night); background-image: radial-gradient(ellipse at 50% 14%, #58418a2b, transparent 50%); font-family: var(--sans); color-scheme: dark; padding: 24px 5% 72px; min-height: calc(100svh - 76px); }
#plans :focus-visible, #plans h1:focus, #plans h2:focus { outline: 3px solid var(--mw-pink); outline-offset: 5px; }
/* Preserve heading focus for navigation without framing the static page title. */
#plans #plans-heading:focus { outline: none; }
#plans .plans-shell { max-width: 960px; margin: auto; }
#plans .plans-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: #c8c4dc; }
#plans .plans-topline a { display: inline-flex; align-items: center; min-height: 44px; }
#plans .plans-status { padding: 5px 12px; border: 1px solid #c6a2ed40; border-radius: 100px; color: var(--mw-pink); background: #25203e; font-size: 11px; font-weight: 700; }
#plans .plans-heading { text-align: center; max-width: 700px; margin: 24px auto 28px; }
#plans .eyebrow { color: #cdb8f7; font-size: 10px; letter-spacing: .12em; margin-bottom: 14px; }
#plans h1 { font: 800 clamp(32px, 4vw, 48px)/1.16 var(--sans); letter-spacing: -.045em; color: var(--mw-pearl); margin: 0 0 16px; }
#plans h1 em { font: italic 400 1.08em/1 'Memorias Lower Serif', Georgia, serif; color: var(--mw-pink); }
#plans .plans-heading > p:not(.eyebrow) { color: #c8c4dc; font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
#plans .plans-help { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border: 1px solid #a58ad650; border-radius: 100px; background: #24213e; color: #ede3ff; font-size: 12px; }
#plans .plans-help span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #7860c0; color: #fff; font-weight: 800; }
#plans .plans-notice { text-align: center; margin: 0 auto 24px; color: #d7cee9; font-size: 12px; }
#plans .plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin: auto; }
#plans .plan-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #a490d34d; border-radius: 24px; background: #191d36; box-shadow: 0 20px 48px #090a2040; }
#plans .plan-card-header { position: relative; padding: 28px; background: radial-gradient(ellipse at 100% 0, #a37bff80, transparent 70%), linear-gradient(120deg, #633bba, #4245ac); }
#plans .plan-premium .plan-card-header { background: radial-gradient(ellipse at 100% 0, #db85ee65, transparent 65%), linear-gradient(120deg, #7540bb, #5645b5); }
#plans .plan-symbol { position: absolute; right: 28px; top: 25px; color: #eee1ff; font-size: 36px; line-height: 1; }
#plans .plan-label { font-size: 10px; font-weight: 800; letter-spacing: .13em; color: #e0d7ff; margin: 0 0 10px; }
#plans .plan-card h2 { color: #fff; font: 800 24px/1.3 var(--sans); letter-spacing: -.02em; margin: 0; }
#plans .plan-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 14px; color: #fff; font-size: 24px; line-height: 1; }
#plans .plan-price strong { font-size: 56px; font-weight: 800; letter-spacing: -.05em; }
#plans .plan-duration { color: #eee5ff; font-size: 12px; margin: 0; }
#plans .plan-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
#plans .plan-description { color: #f5eaff; font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0 0 20px; }
#plans .plan-card ul { list-style: none; padding: 0; margin: 0 0 22px; color: #ded9ed; font-size: 13px; }
#plans .plan-card li { position: relative; padding-left: 23px; margin-bottom: 12px; }
#plans .plan-card li::before { content: '✓'; position: absolute; left: 0; color: #b9a2f5; font-weight: 800; }
#plans .plan-pending { border-top: 1px solid #bca1db26; padding-top: 18px; color: #c3bed6; font-size: 12px; line-height: 1.7; margin: auto 0 20px; }
#plans .button { min-height: 48px; width: 100%; border-radius: 12px; font-size: 13px; }
#plans .plans-primary { color: var(--mw-pearl); background: var(--mw-gradient-primary) 0 0 / 200% 100%; border-color: transparent; box-shadow: var(--mw-shadow-primary); }
#plans .plans-secondary { background: #353052; border-color: #8e77b3; color: #fff2ff; }
#plans a:hover { filter: brightness(1.12); }
#plans :is(.plans-comparison, .plans-faq) { max-width: 820px; margin: 48px auto 0; }
#plans :is(.plans-comparison, .plans-faq, .plans-payment) h2 { color: var(--mw-pearl); font: 750 21px/1.4 var(--sans); letter-spacing: -.025em; margin: 0 0 12px; }
#plans .plans-comparison > p { color: #c8c4dc; font-size: 13px; margin-bottom: 20px; }
#plans dl { margin: 0; border: 1px solid #a490d333; border-radius: 18px; overflow: hidden; background: #191d36; }
#plans dl > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 16px 22px; font-size: 13px; }
#plans dl > div + div { border-top: 1px solid #a490d326; }
#plans dt { color: #c8c4dc; } #plans dd { margin: 0; color: #f2e7ff; }
#plans .plans-payment { display: flex; gap: 22px; max-width: 820px; margin: 32px auto 0; padding: 26px; border: 1px solid #a490d333; border-radius: 18px; background: #26213e; }
#plans .payment-symbol { font-size: 32px; color: #d4b4fa; line-height: 1; }
#plans .plans-payment .eyebrow { margin-bottom: 8px; }
#plans .plans-payment p:not(.eyebrow), #plans details p { color: #c8c4dc; font-size: 13px; line-height: 1.8; margin: 0 0 12px; }
#plans .plans-payment p:last-child { margin: 0; } #plans .plans-payment strong { color: #f0d5ff; }
#plans details { border-bottom: 1px solid #a490d333; } #plans summary { padding: 20px 24px 20px 0; color: #ede4fc; font-size: 14px; cursor: pointer; }
#plans details p { padding-right: 24px; }
body:is([data-route="plans"], [data-route="account"]) .homepage-footer { background: var(--mw-night); border-color: #a490d333; color: #c8c4dc; }
@media (max-width: 540px) {
  #plans { padding-block: 16px 48px; }
  #plans .plans-heading { margin-top: 28px; } #plans h1 em { display: block; }
  #plans .plans-grid { grid-template-columns: minmax(0, 1fr); }
  #plans .plan-card-header, #plans .plan-card-body { padding: 24px; }
  #plans dl > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; }
  #plans .plans-payment { padding: 22px; } #plans .payment-symbol { display: none; }
}
#lower-home .faq-section h2 { margin-bottom: 18px; }
#lower-home .faq-list details { border-color: #bca1db30; transition: background .2s; }
#lower-home .faq-list details:hover, #lower-home .faq-list details[open] { background: #c9a1dd08; }
#lower-home .faq-list summary { padding: 20px 42px 20px 16px; color: var(--mw-pearl); }
#lower-home .faq-list summary::after { right: 16px; color: var(--mw-pink); }
#lower-home .faq-list p { padding-inline: 16px 24px; }
body:is([data-route="home"], [data-route="templates"]) .homepage-footer { background: var(--mw-night-violet); border-color: #bca1db30; color: var(--mw-pearl); font-family: 'Memorias Lower Sans', ui-sans-serif, system-ui, sans-serif; }
body:is([data-route="home"], [data-route="templates"]) .homepage-footer .brand-mark { color: var(--mw-pink); }
body:is([data-route="home"], [data-route="templates"]) .homepage-footer nav { color: #e3d5ed; }
body:is([data-route="home"], [data-route="templates"]) .homepage-footer nav a:hover { color: var(--mw-pink); }
body:is([data-route="home"], [data-route="templates"]) .homepage-footer > span { color: var(--mw-lavender-text); }
body:is([data-route="home"], [data-route="templates"]) .homepage-footer :focus-visible { outline-color: var(--mw-pink); }
#lower-home .featured-section { padding-block: 54px 62px; }
#lower-home .featured-section .section-heading { margin-bottom: 28px; }
#lower-home .featured-all { color: var(--mw-pink); font-size: 13px; white-space: nowrap; }
#lower-home .featured-track { position: relative; display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 24px; }
#lower-home .featured-track::-webkit-scrollbar { display: none; }
#lower-home .featured-track:focus-visible { outline-offset: -3px; }
#lower-home .featured-card { flex: 0 0 calc((100% - 60px) / 4); min-width: 250px; display: flex; flex-direction: column; scroll-snap-align: start; padding: 8px; border: 1px solid #bca1db40; border-radius: 22px; background: linear-gradient(145deg, #382650, #281b40); box-shadow: 0 8px 20px #0c061c25; transition: border-color .2s, box-shadow .2s; }
#lower-home .featured-card[data-available="true"]:hover { border-color: #ffb5e880; box-shadow: 0 8px 24px #0c061c40; }
#lower-home .featured-card[data-available="false"] { border-style: dashed; background: var(--mw-violet); }
#lower-home .featured-card .template-art { height: 188px; flex-shrink: 0; border-radius: 15px; }
#lower-home .featured-card .art-label { top: 12px; left: 12px; padding: 4px 8px; font-size: 8px; }
#lower-home .featured-card .circle-arrow { width: 28px; height: 28px; right: 12px; bottom: 12px; font-size: 17px; }
#lower-home .featured-card .template-polaroid { width: 92px; left: 9%; top: 30px; padding: 6px 6px 9px; }
#lower-home .featured-card .template-polaroid img { height: 98px; }
#lower-home .featured-card .template-polaroid span { font-size: 6px; margin-top: 5px; }
#lower-home .featured-card .admiration-word { font-size: 27px; top: 65px; right: 6%; width: 47%; }
#lower-home .featured-card .mini-star { font-size: 23px; left: 14px; bottom: 10px; }
#lower-home .featured-card .album-preview { top: 30px; left: 10%; width: 80%; height: 105px; }
#lower-home .featured-card .album-page { padding: 7px; gap: 5px; }
#lower-home .featured-card .album-page img { height: 60px; border-width: 3px; }
#lower-home .featured-card .album-page strong { font-size: 17px; }
#lower-home .featured-card .album-page > span:last-child { font-size: 6px; }
#lower-home .featured-card .album-heart { font-size: 21px; }
#lower-home .featured-card .album-star { font-size: 21px; top: 24px; right: 9%; }
#lower-home .featured-card .birthday-word { font-size: 12px; left: 13px; bottom: 14px; max-width: calc(100% - 54px); }
#lower-home .featured-card .planet { width: 72px; height: 72px; top: 32px; left: 48%; }
#lower-home .featured-card .planet-orbit { width: 158px; left: 29%; top: 43px; }
#lower-home .featured-card .universe-word { font-size: 23px; bottom: 18px; left: 16px; }
#lower-home .featured-card .star-a { top: 49px; left: 21%; font-size: 15px; }
#lower-home .featured-card .star-b { top: 23px; right: 12%; font-size: 28px; }
#lower-home .featured-card .star-c { top: 110px; right: 22%; font-size: 13px; }
#lower-home .featured-card .story-word { font-size: 27px; left: 16px; bottom: 17px; }
#lower-home .featured-card .story-flower { font-size: 30px; top: 25px; right: 17px; }
#lower-home .featured-card .template-info { display: flex; flex-direction: column; flex: 1; padding: 17px 9px 10px; }
#lower-home .featured-card h3 { font: 750 17px/1.35 var(--sans); letter-spacing: -.025em; margin: 0 0 9px; color: var(--mw-pearl); }
#lower-home .featured-card .template-info > p { font-size: 12px; line-height: 1.7; min-height: 41px; margin-bottom: 18px; }
#lower-home .featured-card .card-actions { gap: 8px; margin-top: auto; flex-wrap: nowrap; }
#lower-home .featured-card .button { min-height: 44px; padding: 9px 11px; gap: 8px; font-size: 11px; border-radius: 100px; }
#lower-home .featured-card .future-label { min-height: 44px; margin-top: auto; display: flex; align-items: center; padding: 8px 0; font-size: 10px; }
#lower-home .featured-navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px; }
#lower-home .featured-arrows { display: flex; gap: 8px; }
#lower-home .featured-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #bca1db59; border-radius: 50%; color: var(--mw-pearl); background: #302047; font-size: 20px; }
#lower-home .featured-arrows button:hover:not(:disabled) { border-color: var(--mw-pink); background: #422b59; }
#lower-home .featured-arrows button:disabled { opacity: .3; }
#lower-home .featured-pagination { display: flex; align-items: center; }
#lower-home .featured-pagination button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 100px; background: transparent; }
#lower-home .featured-pagination button::before { content: ''; display: block; width: 7px; height: 7px; border-radius: 100px; background: #9d83b3; transition: background .2s; }
#lower-home .featured-pagination button[aria-pressed="true"]::before { width: 22px; background: var(--mw-pink); }
@media (max-width: 1100px) {
  #lower-home .featured-card { flex-basis: calc((100% - 40px) / 3); }
  #templates .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #lower-home .featured-card { flex-basis: calc((100% - 20px) / 2); }
  #lower-home .featured-section { padding-block: 38px 44px; }
  #lower-home .how-section { border-radius: 0; border-inline: 0; padding-inline: 5%; }
}
@media (max-width: 540px) {
  #lower-home .featured-card { flex-basis: 86%; min-width: 0; max-width: 340px; }
  #lower-home .featured-track { gap: 14px; }
  #lower-home .featured-section .section-heading { gap: 8px; margin-bottom: 20px; }
  #lower-home .featured-all { font-size: 12px; min-height: 44px; }
  #templates .catalog-controls { padding: 14px; margin-top: 20px; }
  #templates .catalog-topline { margin-bottom: 22px; }
  #templates .template-grid { grid-template-columns: minmax(0, 1fr); }
  :is(#lower-home, #templates) .section-heading :is(h1, h2), #lower-home :is(.how-section, .faq-section) h2 { font-size: 29px; }
}
/* Narrow catalog thumbnails use the same donor composition as featured cards. */
@container catalog-card (max-width: 340px) {
  #templates .template-art { height: 188px; border-radius: 14px; }
  #templates .art-label { top: 12px; left: 12px; padding: 4px 8px; font-size: 8px; }
  #templates .circle-arrow { width: 28px; height: 28px; right: 12px; bottom: 12px; font-size: 17px; }
  #templates .template-polaroid { width: 92px; left: 9%; top: 30px; padding: 6px 6px 9px; }
  #templates .template-polaroid img { height: 98px; }
  #templates .template-polaroid span { font-size: 6px; margin-top: 5px; }
  #templates .admiration-word { font-size: 27px; top: 65px; right: 6%; width: 47%; }
  #templates .mini-star { font-size: 23px; left: 14px; bottom: 10px; }
  #templates .album-preview { top: 30px; left: 10%; width: 80%; height: 105px; }
  #templates .album-page { padding: 7px; gap: 5px; }
  #templates .album-page img { height: 60px; border-width: 3px; }
  #templates .album-page strong { font-size: 17px; }
  #templates .album-page > span:last-child { font-size: 6px; }
  #templates .album-heart { font-size: 21px; }
  #templates .album-star { font-size: 21px; top: 24px; right: 9%; }
  #templates .birthday-word { font-size: 12px; left: 13px; bottom: 14px; max-width: calc(100% - 54px); }
  #templates .planet { width: 72px; height: 72px; top: 32px; left: 48%; }
  #templates .planet-orbit { width: 158px; left: 29%; top: 43px; }
  #templates .universe-word { font-size: 23px; bottom: 18px; left: 16px; }
  #templates .star-a { top: 49px; left: 21%; font-size: 15px; }
  #templates .star-b { top: 23px; right: 12%; font-size: 28px; }
  #templates .star-c { top: 110px; right: 22%; font-size: 13px; }
  #templates .story-word { font-size: 27px; left: 16px; bottom: 17px; }
  #templates .story-flower { font-size: 30px; top: 25px; right: 17px; }
  #templates .template-info { padding: 17px 9px 10px; }
  #templates .template-info h3 { font-size: 17px; line-height: 1.35; min-height: 1.35em; }
  #templates .template-info > p { font-size: 13px; min-height: 3.2em; }
  #templates .tags { flex-wrap: wrap; gap: 6px; }
  #templates .tags span { font-size: 10px; padding: 3px 8px; }
  #templates .card-actions { flex-wrap: nowrap; gap: 8px; }
  #templates .card-actions .button { min-height: 44px; padding: 9px 11px; gap: 8px; font-size: 11px; }
  #templates .card-actions .text-link { font-size: 11px; gap: 6px; white-space: nowrap; }
  #templates .future-label { min-height: 44px; display: flex; align-items: center; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#lower-home, #templates) *, :is(#lower-home, #templates) *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
body.reduced-motion :is(#lower-home, #templates) *, body.reduced-motion :is(#lower-home, #templates) *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (max-width: 800px) {
  #home-view #templates #templates-heading { font-size: 28px; }
  #templates .catalog-subtitle { font-size: 14px; }
}
