/* Premium visual layer for the public palmistry preview. */
.palmistry-page {
    --palm-bg: #0c100e;
    --palm-surface: #151b17;
    --palm-surface-raised: #1b231c;
    --palm-gold: #e4c98d;
    --palm-gold-bright: #f3ddb0;
    --palm-copy: #f5f0e7;
    --palm-muted: #b5b8ae;
    --palm-dim: #858b80;
    --palm-border: rgba(228, 201, 141, .20);
    background:
        radial-gradient(circle at 84% 11%, rgba(112, 139, 87, .13), transparent 25rem),
        radial-gradient(circle at 8% 38%, rgba(228, 201, 141, .06), transparent 28rem),
        var(--palm-bg);
}

.palmistry-page .header {
    background: rgba(12, 16, 14, .88);
    border-bottom-color: rgba(228, 201, 141, .15);
    backdrop-filter: blur(18px);
}

.palmistry-page .nav-link {
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.palmistry-page .nav-link.active {
    border: 1px solid rgba(228, 201, 141, .24);
    border-radius: 999px;
    background: rgba(228, 201, 141, .08);
    color: var(--palm-gold-bright);
}

.palm-shell {
    width: min(1240px, calc(100% - 96px));
    padding: 72px 0 88px;
}

/* A contained editorial hero feels more premium than an open, empty canvas. */
.palm-hero {
    position: relative;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: clamp(36px, 6vw, 92px);
    min-height: 0;
    margin-top: 42px;
    padding: clamp(42px, 6vw, 76px);
    border: 1px solid rgba(228, 201, 141, .20);
    border-radius: 30px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(29, 39, 30, .98), rgba(15, 21, 17, .96) 56%, rgba(18, 27, 20, .98)),
        var(--palm-surface);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.palm-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 201, 141, .13), transparent 68%);
    pointer-events: none;
}

.palm-hero::after {
    content: '✦';
    position: absolute;
    right: 42%;
    bottom: 22px;
    color: rgba(228, 201, 141, .22);
    font-size: 13px;
    pointer-events: none;
}

.palm-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.palm-hero-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.palm-hero-kicker .palm-eyebrow {
    margin: 0;
    color: var(--palm-gold);
}

.palm-kicker-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(171, 209, 150, .28);
    border-radius: 999px;
    color: #c7dfbb;
    background: rgba(122, 161, 101, .10);
    font-size: 9px;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.palm-kicker-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9fcb88;
    box-shadow: 0 0 0 4px rgba(159, 203, 136, .10), 0 0 14px rgba(159, 203, 136, .65);
}

.palm-hero h1 {
    max-width: 690px;
    margin: 22px 0 24px;
    color: var(--palm-copy);
    font-size: clamp(54px, 6.2vw, 88px);
    line-height: .94;
    letter-spacing: -3.8px;
    text-wrap: balance;
}

.palm-hero h1 em {
    color: var(--palm-gold);
    font-style: italic;
}

.palm-hero-lede {
    max-width: 530px;
    color: var(--palm-muted) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
}

.palm-hero-actions {
    margin-top: 30px;
    gap: 15px 25px;
}

.palm-hero-actions .home-button {
    min-height: 56px;
    padding-inline: 23px;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(228, 201, 141, .13);
}

.palm-hero-actions .home-text-link {
    gap: 12px;
    color: var(--palm-gold);
}

.palm-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid rgba(228, 201, 141, .16);
}

.palm-hero-proof > div {
    display: grid;
    gap: 2px;
    min-width: 96px;
}

.palm-hero-proof strong {
    color: var(--palm-gold-bright);
    font: 500 22px/1 var(--home-serif);
}

.palm-hero-proof span {
    color: var(--palm-dim);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.palm-visual {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(228, 201, 141, .19);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 43%, rgba(181, 199, 141, .18), transparent 37%),
        linear-gradient(145deg, rgba(40, 51, 38, .90), rgba(16, 23, 18, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 50px rgba(0, 0, 0, .23);
}

.palm-visual::before,
.palm-visual::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(228, 201, 141, .12);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.palm-visual::before { width: 440px; height: 270px; }
.palm-visual::after { width: 330px; height: 205px; transform: rotate(31deg); }

.palm-visual-head {
    position: absolute;
    top: 20px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    color: rgba(238, 224, 190, .65);
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.palm-art {
    z-index: 1;
    width: min(76%, 320px);
    height: 76%;
    aspect-ratio: auto;
}

.palm-art::before,
.palm-art::after { display: none; }

.palm-art svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 25px 24px rgba(0, 0, 0, .45));
}

.palm-art .palm-fill {
    fill: url(#palm-page-fill);
    stroke: rgba(228, 201, 141, .76);
    stroke-width: 1.25;
}

.palm-art .palm-crease { stroke: rgba(240, 213, 155, .94); }

.palm-visual-caption {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(228, 201, 141, .17);
    border-radius: 12px;
    background: rgba(12, 16, 14, .58);
    backdrop-filter: blur(12px);
}

.palm-caption-mark {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(228, 201, 141, .36);
    border-radius: 50%;
    color: var(--palm-gold);
    font-size: 12px;
}

.palm-visual-caption span:last-child {
    display: grid;
    gap: 2px;
}

.palm-visual-caption strong {
    color: var(--palm-copy);
    font-size: 10px;
    font-weight: 600;
}

.palm-visual-caption small {
    color: var(--palm-dim);
    font-size: 9px;
}

/* The guide and capture area use quiet cards instead of one flat block. */
.palm-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
    color: var(--palm-gold);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.palm-guide-head span:last-child {
    color: var(--palm-dim);
    font-size: 10px;
    letter-spacing: .2px;
    text-transform: none;
}

.palm-guide {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.palm-guide-step {
    min-height: 88px;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid rgba(228, 201, 141, .13);
    border-radius: 14px;
    background: rgba(24, 32, 25, .68);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.palm-guide-step:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 201, 141, .30);
    background: rgba(32, 43, 32, .82);
}

.palm-guide-step > strong {
    font-size: 24px;
    line-height: 1;
}

.palm-guide-step > span {
    display: grid;
    gap: 5px;
    padding-top: 1px;
}

.palm-guide-step b {
    color: var(--palm-copy);
    font-size: 11px;
    font-weight: 600;
}

.palm-guide-step small {
    color: var(--palm-dim);
    font-size: 10px;
    line-height: 1.45;
}

.palm-workspace {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(228, 201, 141, .16);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(25, 33, 26, .96), rgba(17, 23, 18, .97));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.palm-workspace-head {
    margin-bottom: 30px;
}

.palm-workspace-head h2 {
    margin: 10px 0 12px;
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: -1.8px;
}

.palm-workspace-head p:not(.palm-eyebrow) {
    max-width: 660px;
    color: var(--palm-muted);
    line-height: 1.75;
}

.palm-privacy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-color: rgba(171, 209, 150, .24);
    border-radius: 999px;
    color: #c7dfbb;
    background: rgba(122, 161, 101, .08);
}

.palm-privacy::before {
    content: '◆';
    color: #9fcb88;
    font-size: 7px;
}

.palm-hand-grid { gap: 14px; }

.palm-hand-card {
    min-height: 360px;
    padding: 23px;
    border-color: rgba(228, 201, 141, .15);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 48%, rgba(155, 183, 132, .08), transparent 44%),
        rgba(12, 17, 13, .66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.palm-hand-card:hover {
    border-color: rgba(228, 201, 141, .40);
    transform: translateY(-3px);
}

.palm-card-top { align-items: flex-start; }

.palm-card-top > div {
    display: grid;
    gap: 6px;
}

.palm-card-index {
    color: var(--palm-gold);
    font-size: 8px;
    letter-spacing: 1.5px;
}

.palm-card-top h3 {
    color: var(--palm-copy);
    font-size: 31px;
    line-height: 1;
}

.palm-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 5px;
    color: var(--palm-dim);
    font-size: 9px;
    white-space: nowrap;
}

.palm-card-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 1px solid rgba(228, 201, 141, .55);
    border-radius: 50%;
}

.palm-hand-card.has-image .palm-card-status::before {
    border-color: #9fcb88;
    background: #9fcb88;
    box-shadow: 0 0 0 3px rgba(159, 203, 136, .10);
}

.palm-placeholder {
    min-height: 220px;
}

.palm-placeholder svg {
    width: 116px;
    height: 150px;
    opacity: .30;
}

.palm-placeholder p {
    color: #aeb3a5;
    font-size: 10px;
    letter-spacing: .2px;
}

.palm-actions { gap: 8px; }

.palm-action {
    min-height: 46px;
    border-color: rgba(228, 201, 141, .20);
    border-radius: 9px;
    background: rgba(228, 201, 141, .05);
    font-size: 10px;
}

.palm-action:hover {
    border-color: var(--palm-gold);
    background: rgba(228, 201, 141, .12);
}

.palm-bottom {
    gap: 22px;
    margin-top: 20px;
    padding-top: 22px;
    border-top-color: rgba(228, 201, 141, .13);
}

.palm-consent {
    max-width: 650px;
    color: var(--palm-dim);
    font-size: 10px;
}

.palm-submit {
    min-height: 54px;
    border-radius: 10px;
    padding-inline: 25px;
    background: linear-gradient(135deg, #ecd39b, #cba76a);
    box-shadow: 0 10px 26px rgba(228, 201, 141, .12);
}

.palm-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #f6e1b1, #dfbd7c);
    box-shadow: 0 13px 30px rgba(228, 201, 141, .18);
}

.palm-status {
    color: var(--palm-dim);
}

.palm-results {
    margin-top: 20px;
    padding: 28px;
    border: 1px solid rgba(159, 203, 136, .28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(34, 49, 35, .95), rgba(22, 34, 24, .98));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .20);
}

.palm-results h2 { font-size: 42px; letter-spacing: -1px; }
.palm-result-card { border-radius: 13px; background: rgba(12, 17, 13, .36); }
.palm-result-link { color: var(--palm-gold-bright); }

.palm-note {
    max-width: 760px;
    color: var(--palm-dim);
}

/* Keep the visual hierarchy intact on smaller screens. */
@media (max-width: 900px) {
    .palm-hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 42px 34px 34px;
    }

    .palm-hero-copy { max-width: none; }
    .palm-hero-lede { max-width: 620px; }
    .palm-visual { min-height: 420px; }
    .palm-art { width: min(70%, 280px); height: 72%; }
}

@media (max-width: 640px) {
    .palm-shell { width: calc(100% - 28px); padding: 48px 0 64px; }
    .palm-hero { margin-top: 22px; padding: 30px 21px 22px; border-radius: 22px; }
    .palm-hero h1 { margin-top: 18px; font-size: clamp(49px, 15vw, 72px); letter-spacing: -2.8px; }
    .palm-hero-lede { font-size: 13px !important; }
    .palm-hero-actions { align-items: stretch; flex-direction: column; }
    .palm-hero-actions .home-button, .palm-hero-actions .home-text-link { width: 100%; }
    .palm-hero-actions .home-text-link { justify-content: center; }
    .palm-hero-proof { gap: 15px; margin-top: 30px; }
    .palm-hero-proof > div { min-width: 80px; }
    .palm-visual { min-height: 355px; border-radius: 18px; }
    .palm-art { width: 70%; height: 70%; }
    .palm-visual-caption { right: 12px; bottom: 12px; left: 12px; }
    .palm-guide-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .palm-guide { grid-template-columns: 1fr; }
    .palm-guide-step { min-height: 0; }
    .palm-workspace { padding: 22px 15px; border-radius: 18px; }
    .palm-workspace-head h2 { font-size: 41px; }
    .palm-hand-card { min-height: 330px; padding: 19px; }
    .palm-card-top h3 { font-size: 28px; }
    .palm-bottom { grid-template-columns: 1fr; }
    .palm-submit { width: 100%; }
    .palm-results { padding: 20px; }
    .palm-results h2 { font-size: 34px; }
}

@media (max-width: 1100px) {
    /* mobile-ui.js hides legacy logo children; keep the premium brand visible. */
    .palmistry-page .site-shell .logo > .premium-brand-mark {
        display: grid !important;
    }

    .palmistry-page .site-shell .logo > .premium-brand-copy {
        display: flex !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .palmistry-page *, .palmistry-page *::before, .palmistry-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
