/* Styles for the platform's additions to the brochure (tools/brochure/platform.js and shop.js): search and concern
   chips, the "added" notice, Request a consultation, plan billing terms and rest mode. Loaded after the site's
   style.css and ipad.css; tools/sync-displays.mjs copies it to public/brochure/platform.css. */

/* The site styles these with display rules that would otherwise beat the hidden attribute. */
.offer-wrap[hidden], .service-section[hidden], .catalog-note[hidden], .consult[hidden], .consult-form[hidden], .consult-done[hidden],
.list-toast[hidden], .membership-button[hidden], .finder-chip[hidden] { display: none !important; }

/* Rest mode: the background stops moving while no one is using the page. */
.resting .ambient, .resting .portal .glass { animation-play-state: paused !important; }

/* Without the catalog no price is shown, rather than an old one. Twelve-week programs aren't in the catalog yet. */
.prices-unconfirmed .tier-price, .tier-program { display: none !important; }

/* ---------- Search and browse by concern ---------- */
.finder { margin: 0 0 22px; display: grid; gap: 12px; }
.finder-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 24px;
  border: 1px solid #a98b5b60; background: #fffaf0b8; color: #745439; box-shadow: inset 0 1px 2px #74543914; }
.finder-field:focus-within { outline: 2px solid var(--bronze); outline-offset: 2px; }
.finder-field svg { width: 20px; height: 20px; flex-shrink: 0; }
.finder-input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; font: 16px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); outline: none; }
/* The site's input:focus-visible ring would draw a second box inside the field's own ring. */
.finder-input:focus-visible { outline: none; }
.finder-input::placeholder { color: #806b4b; opacity: 1; }
.finder-input::-webkit-search-cancel-button { cursor: pointer; }
.finder-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-chip { min-height: 40px; padding: 8px 15px; border-radius: 20px; border: 1px solid #ac8b5966; background: #e8d6b44d; color: #674a31; font-size: 14px; }
.finder-chip[aria-pressed=true] { background: #88633e; border-color: #88633e; color: #fff3dd; }
.finder-reset { background: none; border-style: dashed; }
.finder-empty { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- The details panel ---------- */
.inline-content .detail-note { color: #6e5736; }

/* ---------- "Added to your list" notice ---------- */
.list-toast { position: fixed; z-index: 30; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 10px 10px 10px 20px; border-radius: 28px; background: #4f3a26f2; color: #fff3dd; font-size: 15px;
  box-shadow: 0 16px 40px -14px #2b1d10aa; }
.list-toast.show { animation: list-toast-in .35s cubic-bezier(.2, .75, .2, 1); }
.list-toast-text { overflow-wrap: anywhere; }
.list-toast-view { flex-shrink: 0; min-height: 44px; padding: 0 18px; border-radius: 22px; background: #e9d3a8; color: #3f2c19; font-size: 15px; font-weight: 500; }
@keyframes list-toast-in { from { opacity: 0; translate: -50% 12px; } }
.cart-count.bump { animation: list-bump .45s ease; }
@keyframes list-bump { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .list-toast.show, .cart-count.bump { animation: none; } }

/* ---------- Request a consultation ---------- */
.consult { margin-top: 26px; padding: 23px 18px 18px; border: 1px solid #b5996850; border-radius: 20px; background: #f9f0dd60; box-shadow: inset 0 1px 0 #fff8; }
.consult h3 { font: 27px/1.2 Georgia, serif; margin: 8px 0; color: #745439; letter-spacing: -.5px; }
.consult .eyebrow { font-size: 11px; }
.consult-help, .consult-hint, .consult-privacy { font-size: 14px; line-height: 1.55; color: #6e5736; margin: 0 0 14px; }
.consult-hint { margin: -6px 0 14px; }
.consult-privacy { font-size: 13px; }
.consult-label { display: block; font-size: 15px; color: #684c31; margin: 0 0 14px; min-width: 0; }
.consult-label small { font-size: 13px; opacity: .8; margin-left: 4px; }
.consult-label input, .consult-label textarea { display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: 6px; border: 1px solid #a98b5b60; border-radius: 10px;
  padding: 11px 12px; font: 16px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #59432f; background: #fffaf0d9; }
.consult-label textarea { resize: vertical; min-height: 88px; }
.consult-label input:focus-visible, .consult-label textarea:focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; }
.consult-label [aria-invalid=true] { border-color: #914d37; box-shadow: 0 0 0 1px #914d37; }
.consult-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.consult-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consult-error { color: #914d37; font-size: 15px; margin: 0 0 10px; }
.consult-error:empty { display: none; }
.consult-send { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 14px 18px; border-radius: 26px;
  background: linear-gradient(115deg, #c6a66b, #a98243); color: #44321f; border: 1px solid #ad874b; font-size: 17px; font-weight: 500; }
.consult-send svg { width: 22px; height: 22px; }
.consult-send:disabled { opacity: .7; cursor: progress; }
.consult-done p { font-size: 16px; line-height: 1.55; color: #5f4a33; }
.consult-again { min-height: 48px; padding: 0 24px; border-radius: 24px; background: #88633e; color: #fff3dd; font-size: 16px; }
.consult-assist { margin-top: 18px; text-align: center; }
.consult-assist-button { min-height: 48px; padding: 0 20px; border-radius: 24px; border: 1px solid #ac8b5966; background: #f6ecd6; color: #674a31; font-size: 16px; }
.consult-assist-status { font-size: 15px; color: #5f4a33; margin: 10px 0 0; }
.consult-assist-status:empty { display: none; }
@media (max-width: 650px) { .consult { padding: 21px 14px 16px; } .consult-pair { grid-template-columns: 1fr; } }

/* ---------- Membership plans ---------- */
.tier-terms { font-size: 13px; line-height: 1.5; color: #6a5236; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #a1875644; text-shadow: none; }
.membership-tier .tier-intro { margin: 4px 0 16px; padding: 0; border: 0; min-height: 0; }
.membership-source { font-size: 13px; line-height: 1.5; color: #6a5236; margin: 16px 0 4px; text-shadow: none; }
/* One plan open for enrollment: the card, with how membership works beside it (below it on narrow screens). */
.membership-single .membership-plan-tabs { display: none !important; }
.membership-single .membership-tiers { display: grid !important; grid-template-columns: minmax(0, 500px) minmax(0, 360px) !important; gap: 0 48px; width: auto !important; height: auto !important; min-height: 0 !important; grid-template-rows: none !important; align-items: start; align-content: start; }
.membership-single .membership-tier { grid-row: auto !important; display: flex !important; flex-direction: column; padding: 14px 0 !important; border: 0; box-shadow: none; }
.membership-single .membership-tier[hidden] { display: flex !important; }
.membership-about { padding: 22px 0 0 32px; border-left: 1px solid #a1875646; text-shadow: none; }
.membership-about .eyebrow { margin-bottom: 10px; }
.membership-terms { font-size: 15px; line-height: 1.6; color: #5f4a33; margin: 0; }
@media (max-width: 1050px) {
  .membership-single .membership-tiers { grid-template-columns: minmax(0, 1fr) !important; }
  .membership-about { padding: 18px 0 0; border-left: 0; border-top: 1px solid #a1875646; }
}

/* Headings that receive focus only so screen readers land on them. */
h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus { outline: none; }
