/* Profile: ruang pribadi perjalanan. Semua selector diawali .pf- agar tidak memengaruhi halaman lain. */

.pf-hero { padding-top: var(--hero-safe-top); padding-bottom: 8px; background: var(--color-ivory); }
.pf-hero__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: 28px 0 24px; }

.pf-id { display: flex; align-items: flex-start; gap: clamp(16px, 2.4vw, 28px); min-width: 0; }
.pf-avatar { flex: none; display: grid; place-items: center; width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--color-teal); border: 3px solid var(--color-lime); color: var(--color-ivory); font: 700 clamp(26px, 3.2vw, 36px)/1 var(--font-display); letter-spacing: -.01em; }
.pf-id__copy { min-width: 0; }
.pf-id h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pf-id__tagline { margin-top: 10px; font-size: clamp(18px, 1.6vw, 22px); color: var(--color-teal); }
.pf-id__meta { margin-top: 4px; font-size: 15px; }
.pf-id__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; }
.pf-quiet { min-height: 44px; padding: 8px 6px; font-size: 14px; font-weight: 600; color: var(--teal-70); text-decoration: underline; text-decoration-color: var(--teal-18); text-underline-offset: 4px; }
.pf-quiet:hover { color: var(--color-teal); text-decoration-color: var(--color-teal); }

.pf-fingerprint { min-width: 0; margin: 0; padding: 18px 20px 14px; border: 1px solid var(--teal-08); border-radius: 22px; background: var(--teal-04); }
.pf-fingerprint svg { width: 100%; height: auto; overflow: visible; }
.pf-fingerprint figcaption { margin-top: 8px; color: var(--text-muted); font-size: 14px; }
.pf-fingerprint figcaption strong { color: var(--color-teal); font-family: var(--font-display); font-size: 16px; }
.pf-fp__line { fill: none; stroke: var(--teal-40); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 8; }
.pf-fp__dot { fill: var(--color-teal); }
.pf-fp__dot--last { fill: var(--color-lime); stroke: var(--color-teal); stroke-width: 3; }

.pf-status { min-height: 1.6em; margin-top: 12px; color: var(--color-teal); font-size: 14px; font-weight: 600; }

/* Sections */
.pf-section { padding-block: clamp(48px, 7vw, 96px); }
.pf-section--tight-top { padding-top: clamp(28px, 4vw, 48px); }
.pf-section--rule { border-top: 1px solid var(--teal-12); }
.pf-section--last { padding-bottom: clamp(56px, 8vw, 104px); }
.pf-section--dark { background: var(--color-teal); color: var(--color-ivory); }
.pf-section--dark :focus-visible { outline-color: var(--color-lime); }
.pf-head h2 { max-width: 18ch; font-size: clamp(28px, 3vw, 44px); line-height: 1.08; }
.pf-head > p:not(.eyebrow):not(.pf-note) { margin-top: 12px; max-width: 42ch; font-size: 16px; }
.pf-head { margin-bottom: 28px; }
.pf-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.pf-head--row h2 { max-width: none; }
.pf-note { margin-top: 8px; font-size: 13px; color: var(--teal-70); }
.pf-h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 18px; }

.pf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pf-split--narrow-head { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.pf-split .pf-head { margin-bottom: 0; }

/* Tombol dengan ikon panah (gaya garis, sama seperti CTA di halaman lain) */
.pf-section .btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 02 Snapshot */
.pf-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.pf-metric { display: flex; flex-direction: column-reverse; gap: 6px; padding: 18px 0 8px; border-top: 2px solid var(--color-teal); }
.pf-metric__value { font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; color: var(--color-teal); }
.pf-metric__value small { font-size: .4em; font-weight: 600; letter-spacing: 0; color: var(--teal-70); }
.pf-metric__label { font-size: 15px; color: var(--text-muted); }

/* 03 Progress */
.pf-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pf-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 2px; }
.pf-step__line { position: absolute; top: 14px; left: 50%; width: 100%; height: 4px; overflow: visible; }
.pf-step__base { stroke: var(--teal-18); stroke-width: 4; }
.pf-step__run { stroke: var(--color-lime); stroke-width: 4; transform-box: fill-box; transform-origin: left center; }
.pf-step.is-done .pf-step__base { stroke: var(--color-teal); stroke-width: 8; }
.pf-step__node { position: relative; z-index: 1; width: 28px; height: 28px; overflow: visible; }
.pf-step__node circle { fill: var(--color-ivory); stroke: var(--teal-40); stroke-width: 2; }
.pf-step.is-done .pf-step__node circle { fill: var(--color-lime); stroke: var(--color-teal); stroke-width: 2.5; }
.pf-step.is-done .pf-step__node { color: var(--color-teal); }
.pf-step.is-current .pf-step__node circle { stroke: var(--color-teal); stroke-width: 3; }
.pf-step.is-current .pf-step__node .pf-step__pulse { fill: var(--color-lime); stroke: var(--color-teal); stroke-width: 2; animation: pf-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pf-step__label { margin-top: 6px; font: 700 clamp(13px, 1.6vw, 17px)/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--color-teal); }
.pf-step__status { font-size: 12px; color: var(--teal-70); }
.pf-step.is-todo .pf-step__label { color: var(--teal-70); }
.pf-step.is-current .pf-step__status { color: var(--color-teal); font-weight: 600; }
[data-reveal].is-visible .pf-step__run { animation: pf-grow 900ms var(--ease-out) both; }

/* 04 Current journey, 09 Month (dark) */
.pf-section--dark .pf-head h2, .pf-section--dark h2 { color: var(--color-ivory); }
.pf-section--dark h2 { margin: 10px 0 24px; font-size: clamp(28px, 3vw, 44px); }
.pf-facts { display: grid; gap: 0; max-width: 460px; margin-bottom: 28px; }
.pf-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--ivory-14); }
.pf-facts dt { font-size: 14px; color: var(--ivory-60); }
.pf-facts dd { font: 700 clamp(17px, 1.6vw, 20px)/1.25 var(--font-display); text-align: right; color: var(--color-ivory); }
.pf-facts--light { margin: 24px 0 0; }
.pf-facts--light > div { border-bottom-color: var(--teal-12); }
.pf-facts--light dt { color: var(--text-muted); }
.pf-facts--light dd { color: var(--color-teal); }
.pf-cta { margin-top: 4px; }
.pf-section--dark .btn--primary:focus-visible { outline-color: var(--color-ivory); }

.pf-scene { position: relative; margin: 0; min-width: 0; padding: 20px 20px 16px; border: 1px solid var(--ivory-14); border-radius: 28px; background: var(--ivory-06); }
.pf-scene__stage { position: relative; }
.pf-scene__stage > svg { width: 100%; height: auto; }
.pf-scene__base { fill: none; stroke: var(--ivory-16); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.pf-scene__run { fill: none; stroke: var(--color-lime); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.pf-scene__node { fill: var(--color-lime); stroke: var(--color-teal); stroke-width: 3; }
.pf-scene.is-visible .pf-scene__run { animation: pf-draw 1100ms var(--ease-out) both; }
.pf-scene__vehicle { position: absolute; left: 28%; width: 44%; bottom: 4.5%; animation: pf-drift 7s ease-in-out infinite; }
.pf-scene figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 14px; color: var(--ivory-60); }
.pf-scene figcaption b { padding: 4px 12px; border-radius: 999px; background: var(--color-lime); color: var(--color-teal); font: 700 13px/1.4 var(--font-display); }

/* 05 Timeline */
.pf-timeline { position: relative; border-top: 2px solid var(--color-teal); }
.pf-tl { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--teal-12); }
.pf-tl::before { content: ''; position: absolute; left: 17px; top: 0; bottom: 0; width: 2px; background: var(--teal-12); z-index: 0; }
.pf-tl:first-child::before { top: 22px; }
.pf-tl:last-child::before { bottom: calc(100% - 40px); }
.pf-tl__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-ivory); border: 1.5px solid var(--color-teal); color: var(--color-teal); }
.pf-tl:first-child .pf-tl__icon { background: var(--color-lime); }
.pf-tl__title { font: 700 clamp(17px, 1.7vw, 20px)/1.3 var(--font-display); color: var(--color-teal); }
.pf-tl__desc { margin-top: 2px; font-size: 15px; line-height: 1.5; }
.pf-tl__date { padding-top: 3px; font-size: 13px; font-weight: 600; color: var(--teal-70); white-space: nowrap; }

/* 06 Experiments */
.pf-exps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pf-exp { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--teal-12); border-radius: var(--radius-lg); background: var(--color-ivory); }
.pf-exp__index { font: 700 13px/1 var(--font-display); color: var(--teal-70); }
.pf-exp__art { display: flex; align-items: center; gap: 12px; height: 76px; margin: 10px 0 8px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--teal-04); }
.pf-exp__glyph { display: block; flex: 1 1 0; min-width: 0; height: 46px; }
.pf-exp__arrow { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--color-teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pf-dot { fill: none; stroke: var(--teal-40); stroke-width: 1.5; }
.pf-dot--on { fill: var(--color-teal); stroke: none; }
.pf-exp__title { font-size: clamp(20px, 2vw, 24px); line-height: 1.15; }
.pf-exp__scenario { font-size: 15px; color: var(--color-teal); font-weight: 500; }
.pf-exp__change { font-size: 14px; line-height: 1.5; }
.pf-exp__estimate { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--teal-12); font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.pf-exp__estimate strong { font-size: 24px; color: var(--color-teal); }
.pf-exp__estimate span { display: block; margin-top: 2px; font-size: 12px; }

/* 07 Action */
.pf-action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--teal-12); border-radius: var(--radius-lg); background: var(--teal-04); }
.pf-act__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; width: 100%; }
.pf-act__top h3 { font-size: clamp(22px, 2.4vw, 30px); }
.pf-status-pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font: 600 13px/1.2 var(--font-body); }
.pf-status-pill.is-idle { border: 1px solid var(--teal-18); color: var(--text-muted); }
.pf-status-pill.is-active { background: var(--color-lime); color: var(--color-teal); }
.pf-status-pill.is-done { background: var(--color-teal); color: var(--color-ivory); }
.pf-act__target { font-size: 16px; }
.pf-action > svg { width: 100%; max-width: 320px; height: auto; }
.pf-act__base { stroke: var(--teal-18); stroke-width: 4; stroke-linecap: round; }
.pf-act__run { stroke: var(--color-teal); stroke-width: 4; stroke-linecap: round; }
.pf-act__node { fill: var(--color-ivory); stroke: var(--teal-40); stroke-width: 2; }
.pf-act__node.is-on { fill: var(--color-lime); stroke: var(--color-teal); stroke-width: 2.5; }
.pf-act__count { font-size: 15px; }
.pf-act__count strong { margin-right: 4px; font-size: 24px; color: var(--color-teal); }

/* 08 Patterns */
.pf-bars { display: grid; gap: 22px; }
.pf-bar__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 15px; color: var(--color-teal); }
.pf-bar__meta span:first-child { font-weight: 600; }
.pf-bar__meta .num { font-size: 14px; color: var(--text-muted); }
.pf-bar__rail { height: 14px; border-radius: 8px; background: var(--teal-08); overflow: hidden; }
.pf-bar__rail span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--color-teal); box-shadow: inset -6px 0 0 var(--color-lime); }
[data-reveal].is-visible .pf-bar__rail span { animation: pf-grow 800ms var(--ease-out) both; }

/* 09 Month */
.pf-month { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pf-month__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.pf-month__stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding-top: 14px; border-top: 2px solid var(--color-lime); }
.pf-month__stats dd { font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -.02em; color: var(--color-ivory); }
.pf-month__stats dd small { font-size: .42em; font-weight: 600; letter-spacing: 0; color: var(--ivory-60); }
.pf-month__stats dt { font-size: 14px; color: var(--ivory-60); }
.pf-days { margin: 0; }
.pf-days svg { width: 100%; max-width: 420px; height: auto; }
.pf-days figcaption { margin-top: 10px; font-size: 13px; color: var(--ivory-60); }
.pf-day { fill: var(--ivory-16); }
.pf-day--on { fill: var(--color-lime); }
.pf-day--future { fill: none; stroke: var(--ivory-16); stroke-width: 1.5; }

/* 10 Insight */
.pf-insights { border-top: 2px solid var(--color-teal); }
.pf-insights li { padding: 24px 0; border-bottom: 1px solid var(--teal-12); }
.pf-insight__text { max-width: 30ch; font: 700 clamp(22px, 2.6vw, 32px)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--color-teal); }
.pf-insight__data { margin-top: 10px; font-size: 14px; }

/* 11 Milestones + badges */
.pf-miles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.pf-mile { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 20px; border: 1px solid var(--teal-12); border-radius: var(--radius-md); background: var(--color-ivory); }
.pf-mile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--teal-08); color: var(--color-teal); }
.pf-mile.is-done .pf-mile__icon { background: var(--color-lime); }
.pf-mile__title { font: 700 18px/1.25 var(--font-display); color: var(--color-teal); }
.pf-mile__desc { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.pf-mile__state { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-70); }
.pf-badges-title { margin-top: clamp(40px, 5vw, 64px); }
.pf-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--lime-20); color: var(--color-teal); font-size: 14px; font-weight: 600; }
.pf-badge.is-locked { background: transparent; border: 1.5px dashed var(--teal-40); color: var(--teal-70); }

/* 12 Settings */
.pf-settings { border-top: 2px solid var(--color-teal); }
.pf-settings li { border-bottom: 1px solid var(--teal-12); }
.pf-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 68px; padding: 14px 4px; text-align: left; transition: background var(--dur-fast) var(--ease-out); }
.pf-setting:hover { background: var(--teal-04); }
.pf-setting strong { display: block; font: 700 clamp(17px, 1.7vw, 20px)/1.3 var(--font-display); color: var(--color-teal); }
.pf-setting small { display: block; margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.pf-setting--quiet strong { color: var(--teal-70); }
.pf-setting .icon { flex: none; color: var(--teal-70); }

@keyframes pf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pf-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pf-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes pf-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -2px); } }
.pf-bar__rail span { transform-origin: left center; }

@media (max-width: 1024px) {
  .pf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
  .pf-exps { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .pf-split, .pf-split--narrow-head, .pf-month { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pf-split .pf-head { margin-bottom: 0; }
  .pf-head h2 { max-width: 22ch; }
}

@media (max-width: 800px) {
  .pf-hero__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 8px; }
  .pf-fingerprint { max-width: 420px; }
}

@media (max-width: 520px) {
  .pf-id { flex-direction: column; gap: 16px; }
  .pf-metrics { gap: 16px 20px; }
  .pf-metric__value { font-size: clamp(34px, 11vw, 44px); }
  .pf-tl { grid-template-columns: 36px minmax(0, 1fr); }
  .pf-tl__date { grid-column: 2; grid-row: 2; padding-top: 0; margin-top: -8px; }
  .pf-scene { padding: 14px 14px 12px; border-radius: 20px; }
  .pf-month__stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pf-month__stats > div:first-child { grid-column: 1 / -1; }
  .pf-exp { padding: 20px; }
  .pf-mile { padding: 16px; }
  .pf-step__status { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-scene__vehicle, .pf-step__pulse { animation: none !important; }
  [data-reveal].is-visible .pf-step__run, .pf-scene.is-visible .pf-scene__run, [data-reveal].is-visible .pf-bar__rail span { animation: none !important; }
}
