/* A short, illustrated tour with one visible step at a time. */
.ph-home .ph-guide { font-size: 12px; font-weight: 700; cursor: pointer; }
.ph-home .ph-welcome-guide { --guide-accent: var(--ph-blue); position: fixed; inset: 0; width: min(920px,calc(100% - 40px)); max-width: none; max-height: min(860px,calc(100dvh - 40px)); margin: auto; padding: 0; border: 2px solid var(--ph-blue-bright); border-radius: 28px; color: var(--ph-text-primary); background: white; box-shadow: 0 16px 64px #0f121e40; overflow: hidden; }
.ph-home .ph-welcome-guide[open] { display: flex; flex-direction: column; }
.ph-welcome-guide::backdrop { background: #152038a6; backdrop-filter: blur(4px); }
html:has(.ph-welcome-guide[open]), body:has(.ph-welcome-guide[open]) { overflow: hidden; }
.ph-welcome-guide__header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px; border-bottom: 1px solid #ddecf6; background: var(--ph-blue-soft); }
.ph-welcome-guide__header span[lang] { font-size: 11px; letter-spacing: .08em; color: var(--ph-blue); }
.ph-welcome-guide__header h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.3; }
.ph-home .ph-welcome-guide__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ph-border-light); border-radius: 50%; background: white; color: var(--ph-text-primary); cursor: pointer; font: 30px/1 sans-serif; }
.ph-welcome-guide__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: repeating-linear-gradient(0deg,#f7fcff 0 3px,white 3px 9px); }
.ph-guide-step { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: center; gap: 28px; min-height: 410px; padding: 28px; }
.ph-guide-step[hidden] { display: none; }
.ph-guide-step--2 { --guide-accent: var(--ph-green); }
.ph-guide-step--3 { --guide-accent: var(--ph-pink); }
.ph-guide-step--4 { --guide-accent: #8850c9; }
.ph-guide-step--5 { --guide-accent: var(--ph-blue); }
.ph-guide-step__visual { position: relative; display: grid; place-items: center; min-width: 0; height: 310px; border-radius: 50%; background: radial-gradient(circle at 30% 30%,white 0 4px,transparent 5px) 0 0/24px 24px,var(--ph-blue-soft); }
.ph-guide-step--2 .ph-guide-step__visual { background-color: var(--ph-green-soft); }
.ph-guide-step--3 .ph-guide-step__visual { background-color: var(--ph-pink-soft); }
.ph-guide-step--4 .ph-guide-step__visual { background-color: #f3ecff; }
.ph-guide-step--5 .ph-guide-step__visual { background-color: #fff6c8; }
.ph-guide-step__bubble { position: absolute; z-index: 1; top: 0; left: 4px; display: flex; align-items: baseline; gap: 5px; color: var(--guide-accent); font-size: 11px; }
.ph-guide-step__bubble b { font-size: 36px; line-height: 1; }
.ph-guide-step__mascot { width: min(100%,270px); height: auto; }
.ph-guide-step__ribbon { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: max-content; max-width: 100%; padding: 8px 16px; border-radius: 8px; background: var(--guide-accent); color: white; font-size: 12px; font-weight: 700; box-shadow: 0 4px 0 #0f121e12; }
.ph-guide-step__friend { position: absolute; bottom: -2px; right: -2px; object-fit: contain; }
.ph-guide-step__copy { min-width: 0; }
.ph-guide-step__eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--guide-accent); }
.ph-guide-step__copy h3 { margin: 0; font-size: clamp(24px,2.5vw,32px); line-height: 1.45; letter-spacing: -.03em; }
.ph-guide-step__copy > p:not(.ph-guide-step__eyebrow) { margin: 16px 0 0; font-size: 14px; line-height: 1.9; }
.ph-guide-step__tip { padding: 12px 14px; border-left: 3px solid var(--guide-accent); border-radius: 0 12px 12px 0; background: white; }
.ph-guide-step__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--guide-accent); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.ph-guide-demo { width: 88%; padding: 18px; border: 2px solid var(--guide-accent); border-radius: 16px; background: white; box-shadow: 0 8px 0 #0f121e0d; transform: rotate(-4deg); font-size: 12px; }
.ph-guide-demo__caption { display: block; margin-bottom: 12px; font-weight: 700; }
.ph-guide-demo--search > div { display: flex; align-items: center; gap: 6px; padding-left: 8px; min-height: 42px; border: 1px solid var(--ph-border-light); border-radius: 24px; overflow: hidden; }
.ph-guide-demo--search b { display: grid; place-items: center; align-self: stretch; margin-left: auto; padding: 0 8px; background: var(--ph-blue-bright); color: white; white-space: nowrap; }
.ph-guide-demo--search p { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 0; }
.ph-guide-demo--search p span { padding: 4px 6px; background: var(--ph-green-soft); border-radius: 8px; font-size: 10px; }
.ph-guide-demo--card { display: grid; justify-items: center; gap: 8px; width: 72%; }
.ph-guide-demo--card > span { padding: 4px; border-radius: 4px; background: var(--ph-pink-soft); font-size: 11px; }
.ph-guide-demo--calendar > strong { display: block; padding: 0 0 12px; text-align: center; color: var(--guide-accent); }
.ph-guide-demo--calendar > div { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.ph-guide-demo--calendar > div span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 12px; background: #f3ecff; }
.ph-guide-demo--calendar .is-marked { color: white; background: var(--guide-accent); }
.ph-guide-demo--calendar small { display: block; margin-top: 12px; text-align: center; }
.ph-guide-demo--store { padding-top: 38px; text-align: center; position: relative; }
.ph-guide-demo__awning { position: absolute; top: -2px; left: -2px; right: -2px; height: 25px; border-radius: 14px 14px 6px 6px; background: repeating-linear-gradient(90deg,var(--ph-blue-bright) 0 24px,white 24px 48px); border: 2px solid var(--guide-accent); }
.ph-guide-demo--store strong { font-size: 18px; }
.ph-guide-demo--store > div { display: grid; gap: 8px; margin-top: 16px; }
.ph-guide-demo--store > div span { padding: 8px; border: 1px solid #c8e6ff; border-radius: 8px; }
.ph-guide-search { margin-top: 16px; }
.ph-guide-search label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.ph-guide-search > div { display: flex; border: 2px solid var(--ph-blue); border-radius: 24px; overflow: hidden; background: white; }
.ph-guide-search input { flex: 1; min-width: 0; width: 100%; padding: 10px 12px; border: 0; font-size: 16px; }
.ph-home .ph-guide-search button { flex: none; min-width: 66px; border: 0; background: var(--ph-blue); color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.ph-welcome-guide__footer { flex: none; padding: 14px 28px 20px; background: white; border-top: 1px solid #ddecf6; }
.ph-guide-pages { display: flex; justify-content: center; gap: 8px; }
.ph-home .ph-guide-pages button { width: 44px; height: 44px; padding: 0; border: 1px solid #c8e6ff; border-radius: 50%; background: var(--ph-blue-soft); color: var(--ph-text-secondary); font-size: 14px; cursor: pointer; }
.ph-home .ph-guide-pages button[aria-current] { color: white; background: var(--ph-blue); border-color: var(--ph-blue); }
.ph-guide-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ph-guide-navigation > span { font-size: 12px; white-space: nowrap; color: var(--ph-text-secondary); }
.ph-home .ph-guide-navigation button { min-width: 110px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ph-border-light); border-radius: 24px; background: white; color: var(--ph-text-primary); cursor: pointer; font-size: 13px; font-weight: 700; }
.ph-home .ph-guide-navigation [data-guide-next] { border-color: var(--ph-blue); background: var(--ph-blue); color: white; }
.ph-guide-navigation button:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
    .ph-welcome-guide[open] .ph-guide-step:not([hidden]) { animation: ph-guide-enter .2s ease-out; }
    @keyframes ph-guide-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 767px) {
    .ph-home .ph-welcome-guide { width: calc(100% - 16px); max-height: calc(100dvh - 24px); border-radius: 20px; }
    .ph-welcome-guide__header { padding: 12px 16px; }
    .ph-welcome-guide__header span[lang] { font-size: 9px; }
    .ph-welcome-guide__header h2 { font-size: 18px; }
    .ph-guide-step { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 20px; min-height: 0; }
    .ph-guide-step__visual { width: min(100%,280px); height: 180px; margin: 0 auto; }
    .ph-guide-step__mascot { width: 170px; }
    .ph-guide-step__bubble b { font-size: 28px; }
    .ph-guide-step__ribbon { bottom: -4px; padding: 6px 12px; font-size: 11px; }
    .ph-guide-step__friend { width: 68px; height: 68px; right: -6px; bottom: -8px; }
    .ph-guide-demo { width: 85%; padding: 14px; }
    .ph-guide-demo--card { width: 66%; gap: 4px; padding: 10px; }
    .ph-guide-demo--card > img { width: 60px; height: 60px; }
    .ph-guide-demo--store { padding-top: 32px; }
    .ph-guide-step__eyebrow { margin-bottom: 6px; }
    .ph-guide-step__copy h3 { font-size: 24px; line-height: 1.4; }
    .ph-guide-step__copy > p:not(.ph-guide-step__eyebrow) { font-size: 13px; line-height: 1.8; margin-top: 12px; }
    .ph-welcome-guide__footer { padding: 10px 12px 12px; }
    .ph-home .ph-guide-navigation button { min-width: 92px; padding: 10px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
    .ph-home .ph-welcome-guide[open] { animation: ph-guide-open 240ms cubic-bezier(.2,.7,.2,1) both; }
    .ph-welcome-guide[open]::backdrop { animation: ph-guide-backdrop-in 240ms ease both; }
    .ph-home .ph-welcome-guide.is-closing { animation: ph-guide-close 180ms ease-in both; pointer-events: none; }
    .ph-welcome-guide.is-closing::backdrop { animation: ph-guide-backdrop-out 180ms ease-in both; }
}
@keyframes ph-guide-open { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ph-guide-close { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes ph-guide-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ph-guide-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
