/* Palmistry uses the same editorial system as the Cosmic Tools home page. */
.palmistry-page { --palm-bg: #111413; --palm-surface: #191d1a; --palm-gold: #d8bd87; --palm-copy: #f1eee5; --palm-muted: #b0b2a8; --palm-border: #d8bd8729; background: var(--palm-bg); color: var(--palm-copy); }
.palmistry-page .header { position: relative; z-index: 10; }
.palmistry-page .nav-link.active { color: var(--palm-gold); }
.palm-shell { width: min(1240px, calc(100% - 96px)); margin: 0 auto; padding: 92px 0 110px; }
.palm-hero { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 70px; min-height: 470px; }
.palm-eyebrow { color: var(--palm-gold); text-transform: uppercase; font: 500 10px/1.8 var(--font-body); letter-spacing: 2.3px; }
.palm-hero h1 { font: 400 clamp(42px, 6vw, 78px)/1.03 var(--home-serif); letter-spacing: -2px; margin: 20px 0 24px; }
.palm-hero h1 em { color: var(--palm-gold); font-style: normal; }
.palm-hero-copy > p:not(.palm-eyebrow) { max-width: 515px; color: var(--palm-muted); font-size: 14px; line-height: 1.9; }
.palm-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.palm-hero-note { color: #a4aa9c; font-size: 10px; margin-top: 15px; }
.palm-hero-note span { color: var(--palm-gold); padding-right: 5px; }
.palm-art { position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.palm-art::before, .palm-art::after { content: ''; position: absolute; border: 1px solid #d8bd8730; border-radius: 50%; transform: rotate(-22deg); }
.palm-art::before { inset: 9%; }
.palm-art::after { inset: 17%; border-color: #d8bd871b; transform: rotate(37deg); }
.palm-art svg { position: relative; z-index: 1; width: 66%; height: 82%; overflow: visible; filter: drop-shadow(0 24px 25px #0008); }
.palm-art .palm-fill { fill: #20261e; stroke: #d8bd8780; stroke-width: 1.3; }
.palm-art .palm-crease { fill: none; stroke: #d8bd87a8; stroke-linecap: round; stroke-width: 2; stroke-dasharray: 160 420; animation: palm-trace 5s ease-in-out infinite; }
.palm-art .palm-crease.soft { stroke: #a8a27e73; stroke-width: 1.2; animation-delay: 1.2s; }
.palm-art .palm-scan { fill: none; stroke: #eed5a0; stroke-width: 2; stroke-dasharray: 70 480; animation: palm-scan 4.5s ease-in-out infinite; }
.palm-guide { border-top: 1px solid var(--palm-border); border-bottom: 1px solid var(--palm-border); padding: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 22px; }
.palm-guide-step { display: flex; align-items: center; gap: 12px; color: var(--palm-muted); font-size: 11px; line-height: 1.45; }
.palm-guide-step strong { color: var(--palm-gold); font: 400 24px var(--home-serif); }
.palm-workspace { background: var(--palm-surface); border: 1px solid var(--palm-border); border-radius: 8px; padding: clamp(22px, 4vw, 42px); }
.palm-workspace-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 25px; }
.palm-workspace-head h2 { font: 400 clamp(32px, 4vw, 50px)/1.05 var(--home-serif); margin: 12px 0 10px; }
.palm-workspace-head p { color: var(--palm-muted); max-width: 600px; font-size: 12px; line-height: 1.8; }
.palm-privacy { color: var(--palm-gold); border: 1px solid #d8bd8742; border-radius: 3px; padding: 7px 10px; white-space: nowrap; font-size: 9px; }
.palm-hand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.palm-hand-card { min-height: 330px; position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--palm-border); border-radius: 6px; background: #20251e; padding: 20px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.palm-hand-card:hover { border-color: #d8bd8770; transform: translateY(-3px); }
.palm-hand-card.has-image { border-color: #9fb98a70; }
.palm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }
.palm-card-top h3 { font: 400 29px var(--home-serif); margin: 0; }
.palm-card-status { color: #999f91; font-size: 10px; }
.palm-hand-card.has-image .palm-card-status { color: #b7d5aa; }
.palm-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: -1; transition: opacity .3s; }
.palm-hand-card.has-image .palm-image { opacity: .3; }
.palm-image-shade { position: absolute; inset: 0; z-index: 0; opacity: 0; background: linear-gradient(180deg, #11141366, #111413e8); pointer-events: none; transition: opacity .3s; }
.palm-hand-card.has-image .palm-image-shade { opacity: 1; }
.palm-hand-card.has-image .palm-placeholder { opacity: 0; pointer-events: none; }
.palm-placeholder { flex: 1; min-height: 205px; display: grid; place-items: center; position: relative; z-index: 1; }
.palm-placeholder svg { width: 136px; height: 170px; opacity: .38; filter: grayscale(1) sepia(.5); animation: palm-breathe 4s ease-in-out infinite; }
.palm-placeholder path { fill: #d8bd8712; stroke: #d8bd8778; stroke-width: 1.4; stroke-dasharray: 8 6; }
.palm-placeholder p { color: #a9aa9c; font-size: 11px; margin: 8px 0 0; text-align: center; }
.palm-actions { display: flex; gap: 9px; position: relative; z-index: 2; }
.palm-action { flex: 1; min-height: 44px; border: 1px solid #d8bd8733; border-radius: 4px; background: #1114138f; color: var(--palm-copy); cursor: pointer; font: 500 11px var(--font-body); transition: background .2s, border-color .2s, color .2s; }
.palm-action:hover { border-color: var(--palm-gold); background: #d8bd8714; color: #f4dfb2; }
.palm-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; border-top: 1px solid var(--palm-border); margin-top: 24px; padding-top: 21px; }
.palm-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--palm-muted); font-size: 10px; line-height: 1.65; }
.palm-consent input { margin-top: 3px; accent-color: var(--palm-gold); }
.palm-submit { border: 0; border-radius: 4px; min-height: 52px; padding: 14px 25px; background: #ddc596; color: #1d251e; cursor: pointer; font: 600 12px var(--font-body); transition: transform .2s, background .2s; }
.palm-submit:hover:not(:disabled) { background: #eed8ae; transform: translateY(-2px); }
.palm-submit:disabled { opacity: .45; cursor: not-allowed; }
.palm-status { min-height: 24px; color: #9b9e93; font-size: 11px; margin-top: 15px; }
.palm-status.error { color: #ef9d8f; }.palm-status.success { color: #b7d5aa; }
.palm-results { display: none; margin-top: 18px; border: 1px solid #a9c99858; background: #202a20; padding: 24px; border-radius: 6px; animation: palm-rise .4s ease both; }
.palm-results.visible { display: block; }.palm-results-head { display: flex; justify-content: space-between; gap: 18px; }.palm-results h2 { font: 400 37px var(--home-serif); margin: 0 0 8px; }.palm-results p { color: var(--palm-muted); font-size: 11px; line-height: 1.7; }.palm-result-mark { color: var(--palm-gold); font-size: 27px; }
.palm-result-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }.palm-result-card { border: 1px solid #d8bd8728; background: #11141355; padding: 17px; border-radius: 4px; }.palm-result-card small { color: var(--palm-gold); text-transform: uppercase; letter-spacing: 1.2px; font-size: 8px; }.palm-result-card h3 { font: 400 23px var(--home-serif); margin: 8px 0; }.palm-result-card p { font-size: 11px; }
.palm-result-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--palm-border); padding-top: 19px; }.palm-result-cta p { max-width: 610px; }.palm-result-link { color: var(--palm-gold); font-size: 11px; white-space: nowrap; }
.palm-note { max-width: 650px; margin: 30px auto 0; text-align: center; color: #989d91; font-size: 10px; line-height: 1.8; }
.palm-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: #080a09c7; backdrop-filter: blur(12px); }.palm-modal.open { display: flex; }.palm-dialog { width: min(690px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid #d8bd8755; border-radius: 7px; background: #191d1a; box-shadow: 0 30px 90px #000b; }.palm-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 23px 25px 15px; border-bottom: 1px solid var(--palm-border); }.palm-dialog-head h2 { font: 400 33px var(--home-serif); margin: 7px 0 0; }.palm-close { width: 36px; height: 36px; border: 1px solid var(--palm-border); background: transparent; color: var(--palm-copy); border-radius: 4px; cursor: pointer; font-size: 20px; }.palm-dialog-body { padding: 22px 25px 25px; }.palm-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.palm-choice { display: flex; align-items: center; gap: 12px; border: 1px solid var(--palm-border); background: #111413; color: var(--palm-copy); padding: 15px; border-radius: 4px; cursor: pointer; text-align: left; }.palm-choice:hover { border-color: var(--palm-gold); }.palm-choice-icon { color: var(--palm-gold); font-size: 23px; }.palm-choice strong { display: block; font-size: 11px; font-weight: 600; }.palm-choice span:last-child { color: var(--palm-muted); display: block; font-size: 9px; line-height: 1.5; margin-top: 3px; }.palm-camera { display: none; margin-top: 16px; }.palm-camera.visible { display: block; }.palm-camera-frame { position: relative; aspect-ratio: 4/3; overflow: hidden; border: 1px solid #d8bd8755; border-radius: 5px; background: #080a09; }.palm-camera-frame video { width: 100%; height: 100%; object-fit: cover; /* Deliberately not mirrored: the saved photo must match the customer’s actual hand. */ }.palm-camera-guide { position: absolute; inset: 9%; border: 1px solid #d8bd87b5; border-radius: 42% 42% 34% 34%; box-shadow: 0 0 0 999px #080a0960; pointer-events: none; }.palm-camera-guide::after { content: 'Keep your full palm inside this guide'; position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); white-space: nowrap; color: #e6c98e; background: #111413dd; padding: 5px 9px; border-radius: 3px; font-size: 9px; }.palm-camera-scan { position: absolute; left: 12%; right: 12%; top: 9%; height: 2px; background: linear-gradient(90deg, transparent, #eed5a0, transparent); box-shadow: 0 0 12px #d8bd87; animation: palm-camera-scan 3s ease-in-out infinite; }.palm-camera-controls { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }.palm-camera-help, .palm-modal-note { color: var(--palm-muted); font-size: 10px; line-height: 1.6; text-align: center; }.palm-camera-help { margin: 12px 0; }.palm-camera-error { color: #ef9d8f; font-size: 10px; text-align: center; margin-top: 10px; }
@keyframes palm-trace { 0%, 100% { stroke-dashoffset: 0; opacity: .55; } 50% { stroke-dashoffset: -260px; opacity: 1; } } @keyframes palm-scan { 0% { transform: translateY(-120px); opacity: 0; } 20%, 75% { opacity: 1; } 100% { transform: translateY(120px); opacity: 0; } } @keyframes palm-breathe { 50% { transform: scale(1.04) rotate(-2deg); } } @keyframes palm-camera-scan { 0%,100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(230px); opacity: 1; } } @keyframes palm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) { .palm-shell { width: calc(100% - 40px); padding-top: 60px; }.palm-hero { grid-template-columns: 1fr; gap: 15px; }.palm-art { order: -1; width: min(100%, 330px); }.palm-hero h1 { font-size: clamp(42px, 12vw, 67px); }.palm-guide { gap: 12px; }.palm-guide-step { font-size: 10px; }.palm-workspace-head { display: block; }.palm-privacy { display: inline-block; margin-top: 15px; }.palm-bottom { grid-template-columns: 1fr; }.palm-submit { width: 100%; }.palm-result-cta { display: block; }.palm-result-link { display: inline-block; margin-top: 14px; } }
@media (max-width: 560px) { .palm-shell { width: calc(100% - 28px); padding-top: 35px; }.palm-hero { min-height: 0; }.palm-hero-copy { text-align: center; }.palm-hero-copy > p:not(.palm-eyebrow) { font-size: 12px; }.palm-hero-actions { justify-content: center; }.palm-hero-note { font-size: 9px; }.palm-art { width: 260px; }.palm-guide { grid-template-columns: 1fr; gap: 9px; }.palm-guide-step { justify-content: center; }.palm-hand-grid, .palm-result-cards, .palm-choice-grid { grid-template-columns: 1fr; }.palm-workspace { padding: 21px 16px; }.palm-hand-card { min-height: 310px; }.palm-card-top h3 { font-size: 27px; }.palm-dialog { border-radius: 5px; }.palm-dialog-head, .palm-dialog-body { padding-left: 18px; padding-right: 18px; }.palm-dialog-head h2 { font-size: 29px; } }
