/* Experienciar — functional states on the shared Restore material system. */
body { margin: 0; }
.hidden { display: none !important; }
body.session-open,body.preparation-open { overflow: hidden; }
.shell { max-width: 1120px; margin: auto; padding: 24px 24px 80px; }
.brand { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.status { color: var(--restore-muted); font-size: 11px; }
.refletir-link { color: var(--restore-brown); font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.install { background: transparent; border: 1px solid var(--restore-line); padding: 10px 16px; color: var(--restore-brown); }
.hero { background: radial-gradient(ellipse at 100% 0%,#48361e,transparent 65%),var(--restore-brown-deep); color: var(--restore-ivory); padding: 56px; border-radius: 2px; }
.hero-kicker { color: var(--restore-copper); }
.hero h1 { color: inherit; font-size: clamp(40px,5vw,64px); margin: 20px 0 28px; max-width: 850px; }
.hero p { max-width: 620px; color: #cabfae; font-size: 16px; }
.experience-cycle { font-size: 11px; letter-spacing: .025em; color: var(--restore-muted); padding: 22px 0; border-bottom: 1px solid var(--restore-line); }
.card { border: 1px solid var(--restore-line); border-radius: 2px; padding: 32px; background: #efe8dc; margin: 24px 0; }
.card h2 { font-size: clamp(28px,4vw,38px); margin: 12px 0; }
.arrival-lead { font-size: 15px; color: var(--restore-muted); }
.arrival h3 { margin: 28px 0 14px; font-size: 23px; }
.intentions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.intention { padding: 24px; border: 1px solid #bdab8f; border-radius: 2px; background: transparent; text-align: left; color: var(--restore-brown); }
.intention:hover,.intention.is-selected { background: #e2d4bb; border-color: var(--restore-gold); }
.intention-symbol { color: var(--restore-gold); font-size: 26px; display: block; margin-bottom: 14px; }
.intention strong { display: block; font: 23px var(--restore-serif); font-weight: 400; }
.intention small { display: block; margin-top: 10px; color: var(--restore-muted); }
.before-checkin { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--restore-line); display: grid; gap: 12px; }
.optional-label { font-size: 12px; color: var(--restore-muted); }
.before-moods,.completion-moods { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; max-width: 360px; }
.before-moods button,.completion-moods button { height: 46px; border: 1px solid #ad9777; background: transparent; color: inherit; border-radius: 2px; }
.before-moods button.active,.completion-moods button.active { background: var(--restore-brown); color: var(--restore-ivory); }
.composer-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.composer-duration { font-size: 12px; white-space: nowrap; color: var(--restore-gold); }
.goal-guide { display: grid; gap: 6px; border-left: 1px solid var(--restore-gold); padding: 8px 0 8px 24px; margin: 24px 0; }
.goal-guide:empty { display: none; }
.goal-guide-label { font-size: 10px; color: var(--restore-gold); text-transform: uppercase; letter-spacing: .12em; }
.goal-guide strong { font: 28px var(--restore-serif); }
.goal-guide small { color: var(--restore-muted); font-size: 12px; }
.experience-save-control { justify-self: start; background: transparent; border: 0; border-bottom: 1px solid var(--restore-gold); min-height: 44px; color: var(--restore-brown); font-size: 12px; }
.personalize { border-block: 1px solid var(--restore-line); padding-block: 8px; }
.personalize summary { min-height: 48px; cursor: pointer; padding: 12px 0; font-size: 14px; }
.personalize summary span { font-size: 11px; color: var(--restore-muted); margin-left: 16px; }
.personalize-fields { padding-bottom: 20px; }
.label { display: block; font-size: 12px; margin: 18px 0 8px; }
.label span { float: right; color: var(--restore-gold); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
select { width: 100%; padding: 12px; border: 1px solid #ae9b7c; border-radius: 2px; background: var(--restore-ivory); color: var(--restore-brown); min-height: 48px; }
.volume-control { width: 100%; accent-color: var(--restore-gold); min-height: 44px; }
.primary,.secondary { min-height: 48px; padding: 12px 24px; border-radius: 2px; font-size: 14px; }
.primary { border: 1px solid var(--restore-brown); color: var(--restore-ivory); background: var(--restore-brown); }
.secondary { border: 1px solid #ab9471; color: var(--restore-brown); background: transparent; }
.primary:disabled { opacity: .55; cursor: not-allowed; }
.start-experience { width: 100%; margin-top: 24px; }
.safety-note { font-size: 12px; color: var(--restore-muted); max-width: 700px; margin: 16px 0 0; }
.catalog-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin: 56px 0 24px; }
.catalog-heading h2 { font-size: 34px; }
.catalog-heading p { max-width: 360px; font-size: 13px; color: var(--restore-muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.exp { text-align: left; margin: 0; padding: 0; overflow: hidden; }
.exp-image { min-height: 230px; position: relative; }
.exp-shade { display: none; }
.exp-copy { padding: 32px; }
.exp h3 { font-size: 30px; margin: 16px 0; }
.exp .meta,.technique-line,.pill { font-size: 11px; color: var(--restore-muted); }
.exp-pills { display: flex; gap: 20px; margin-top: 24px; }
.exp:hover { border-color: var(--restore-gold); background: #e5d9c5; }
.returning-welcome { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 28px; margin-top: 24px; border: 1px solid #bcaa8c; }
.returning-welcome h2 { font-size: 30px; margin: 12px 0; }
.returning-welcome p { font-size: 13px; }
.history-intro { font-size: 12px; color: var(--restore-muted); }
.history-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }
.history-stats strong { display: block; font: 27px var(--restore-serif); }
.history-stats span { font-size: 12px; color: var(--restore-muted); }
.history-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--restore-line); }
.history-row strong,.history-row small { display: block; }
.history-row small,.history-row > span,.history-empty { font-size: 12px; color: var(--restore-muted); }
.preparation { position: fixed; inset: 0; z-index: 3000; display: none; place-items: center; padding: 24px; background: rgb(12 10 7 / .88); overflow-y: auto; }
.preparation.is-open { display: grid; }
.preparation-panel { position: relative; width: min(100%,580px); background: var(--restore-ivory); padding: 44px; border: 1px solid var(--restore-gold); }
.preparation-panel h2 { font-size: 36px; margin: 24px 0; }
.preparation-panel ol { padding: 0; list-style: none; }
.preparation-panel li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--restore-line); }
.preparation-panel li span { color: var(--restore-gold); font-size: 11px; }
.preparation-panel li strong { font: 20px var(--restore-serif); }
.preparation-panel .primary { width: 100%; margin-top: 16px; }
.preparation-panel small { display: block; font-size: 12px; margin-top: 16px; color: var(--restore-muted); }
.preparation-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--restore-brown); font-size: 24px; }
.player { position: fixed; inset: 0; z-index: 4000; background: radial-gradient(ellipse at 50% 40%,#302719,transparent 60%),#100e0b; color: #f5f0e7; display: none; overflow-y: auto; overscroll-behavior: contain; }
.player.show { display: block; }
.player-inner { position: relative; min-height: 100dvh; max-width: 920px; margin: auto; padding: 100px 32px 100px; display: flex; justify-content: center; align-items: center; text-align: center; }
.now { display: flex; flex-direction: column; align-items: center; width: 100%; }
.restore-session-label { order: 0; font-size: 10px; letter-spacing: .2em; color: var(--restore-copper); margin-bottom: 24px; }
.session-source { order: 0; font-size: 12px; color: #bcad94; margin-bottom: 20px; }
.session-visual { order: 1; display: grid; justify-items: center; gap: 24px; }
.breath-orb { position: relative; width: 330px; max-width: 100%; height: 220px; transition: transform 4s ease; }
.breath-orb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.breath-orb.inspira { transform: scale(1.08); }
.breath-orb.expira { transform: scale(.92); }
.breath-orb.pausa,.breath-orb.contemplative { transform: none; }
#breathPhase { display: block; font: 36px var(--restore-serif); color: #e0c89f; }
.breath-cycle,.remaining-time { display: block; font-size: 11px; color: #bcad94; margin-top: 8px; }
.session-progress { width: 260px; height: 2px; background: #4c402c; margin: 20px auto; }
.session-progress i { display: block; height: 100%; background: var(--restore-copper); width: 0; }
.instruction-box { order: 2; max-width: 720px; min-height: 90px; font: 30px/1.3 var(--restore-serif); margin: 24px 0; }
.repeat-cue { order: 3; border: 1px solid #78613f; color: #cfb88f; background: transparent; min-height: 44px; padding: 10px 18px; font-size: 12px; margin-bottom: 24px; }
.now > strong { order: 4; font: 20px var(--restore-serif); }
.now > small { order: 5; font-size: 12px; color: #bcad94; margin: 12px 0; }
.media-status { order: 6; max-width: 520px; font-size: 12px; color: #dac39c; margin: 16px 0; }
.media-retry { order: 7; min-height: 44px; border: 1px solid #91774f; background: none; color: #e0c89f; padding: 8px 20px; }
.close-player { position: fixed; top: max(16px,env(safe-area-inset-top)); right: 20px; border: 1px solid #78613f; background: #17130f; color: #e3d4bc; min-height: 44px; padding: 10px 18px; font-size: 12px; z-index: 1; }
.play { position: fixed; right: 24px; bottom: max(20px,env(safe-area-inset-bottom)); border: 1px solid #d3ae70; background: #d3ae70; color: #17130f; width: 56px; height: 56px; border-radius: 50%; font-size: 17px; }
.player .secondary { color: #e0c89f; border-color: #78613f; }
.player .primary { color: #17130f; background: #d3ae70; border-color: #d3ae70; }
.player .step-label { color: #d3ae70; }
.player.is-paused .breath-orb { transform: none; }
.session-completion { display: none; order: 1; max-width: 620px; }
.session-completion.is-visible { display: flex; flex-direction: column; align-items: center; }
.session-completion h2 { color: inherit; font-size: clamp(36px,5vw,54px); margin: 18px 0; }
.session-completion p { color: #c9bca6; font-size: 14px; }
.completion-checkin { display: grid; justify-items: center; gap: 10px; margin: 24px 0; width: 100%; }
.completion-checkin > span { font-size: 11px; color: #c9bca6; }
.completion-moods { width: 100%; }
.completion-moods button.active { background: #d3ae70; color: #17130f; }
.session-completion :is(.primary,.secondary) { margin: 8px 0; width: min(100%,420px); }
.session-completion-reflection { border-top: 1px solid #61513b; margin-top: 28px; padding-top: 24px; display: grid; gap: 12px; }
.session-completion-reflection span { color: #c9bca6; font-size: 12px; }
.session-completion a { color: #d3ae70; }
.player.is-complete :is(.session-visual,.instruction-box,.repeat-cue,.now > strong,.now > small,.play) { display: none; }
.source-context { border-top: 1px solid #61513b; padding-top: 18px; margin-top: 24px; }
#storageNotice { border: 1px solid var(--restore-gold); padding: 16px; font-size: 13px; }
@media (max-width: 720px) {
  .shell { padding: 16px 20px 56px; }
  .brand { margin-bottom: 12px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 14px; }
  .card { padding: 24px; }
  .intentions,.grid,.row { grid-template-columns: 1fr; }
  .intention { padding: 18px; }
  .intention-symbol { float: left; margin-right: 16px; margin-bottom: 0; }
  .intention strong { font-size: 22px; }
  .intention small { margin-left: 42px; }
  .catalog-heading,.returning-welcome { flex-direction: column; align-items: start; gap: 12px; }
  .composer-heading { align-items: start; }
  .preparation { padding: 16px; }
  .preparation-panel { padding: 36px 24px 24px; }
  .player-inner { padding: 90px 24px 110px; }
  .instruction-box { font-size: 25px; min-height: 100px; }
  .breath-orb { width: 280px; height: 186px; }
  .history-row { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .breath-orb,.breath-orb.inspira,.breath-orb.expira { transform: none; }
}
