/* Shared visual refinements for the Pathfinder website. */
:root { --paper: #f3f8f1; --white: #ffffff; --muted: #5e7268; --gold: #eec766; }
body { line-height: 1.6; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #b08720; outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 64px)); }
.topbar { color: var(--forest); }
.nav { min-height: 100px; border-color: rgba(6,74,54,.1); }
.brand { color: var(--forest); font-family: var(--sans); font-size: 15px; letter-spacing: .08em; }
.brand img { border-radius: 50%; border: 0; }
.navlinks a { color: #405d50; font-weight: 600; }
.navlinks a:hover { color: var(--green); }
.navlinks .nav-download { background: var(--forest); border-color: var(--forest); color: white; padding: 11px 22px; }
.navlinks .nav-download:hover { background: var(--green); color: white; }
.hero { min-height: 740px; padding: 185px 0 110px; background: radial-gradient(ellipse at 90% 50%, #bdddc5, transparent 62%), linear-gradient(120deg, #f5f9f0, #e1f0e1); color: var(--forest-dark); }
.hero::before, .hero::after { border-color: rgba(6,74,54,.08); }
.hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
.hero .eyebrow { color: var(--green); font-size: 10px; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 9px; }
.hero .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #a88738; flex-shrink: 0; }
h1 { font-size: clamp(48px, 5.5vw, 74px); line-height: 1.08; font-weight: 400; letter-spacing: -.055em; margin-bottom: 26px; }
h1 span { color: #288057; }
.hero-copy { font: 16px/1.85 var(--sans); color: #5e7268; max-width: 420px; margin-bottom: 32px; }
.button { border-radius: 999px; min-height: 52px; padding: 0 22px; font-size: 13px; font-weight: 650; }
.hero .button-gold { background: var(--forest); color: white; box-shadow: 0 6px 16px #064a3614; }
.hero .button-gold:hover { background: var(--green); }
.hero .button-outline { color: var(--forest); border-color: #c6d2c8; background: transparent; }
.hero .button-outline:hover { background: #eaf0e6; border-color: var(--green); }
.download-meta { color: #65766c; font-size: 11px; margin-top: 20px; }
.hero-art { padding: 12px; border-color: #fff; border-radius: 26px; background: #ffffffb3; transform: none; box-shadow: 0 30px 70px #123e2c18, 0 5px 15px #123e2c06; }
.hero-art img { border-radius: 16px; }
.art-caption { bottom: -24px; right: 24px; padding: 15px 20px; border-radius: 14px; font: 600 12px var(--sans); transform: none; box-shadow: 0 10px 30px #123e2c10; }
.trust-strip { background: #e3efe3; border-color: #c7ddc9; }
.trust-items { min-height: 104px; gap: 20px; }
.trust-label { font-size: 10px; max-width: 200px; line-height: 1.8; }
.trust-point { font: 500 13px var(--sans); }
.trust-point span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #cce3cf; flex-shrink: 0; }
.section { padding: 110px 0; }
.section-head { max-width: 650px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: #28724e; letter-spacing: .18em; font-size: 10px; }
h2 { font-weight: 400; letter-spacing: -.035em; line-height: 1.2; }
.section-head h2 { font-size: clamp(32px, 3.5vw, 46px); }
.section-head p:last-child { color: var(--muted); font: 15px/1.8 var(--sans); }
.feature-grid { gap: 20px; }
.feature-card { padding: 30px 26px; background: linear-gradient(150deg, #ffffff, #edf6eb); border: 1px solid #c9dfcc; border-radius: 20px; box-shadow: 0 5px 15px #123e2c03; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #123e2c09; }
.feature-icon { background: #d7ebd7; color: #096344; border-radius: 50%; width: 48px; height: 48px; margin-bottom: 27px; }
.feature-card h3 { font-size: 21px; font-weight: 400; }
.feature-card p { font-size: 13px; line-height: 1.85; }
.screens-section { background: linear-gradient(145deg, #dcebdc, #e8f2e3); }
.gallery-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 22px; }
.gallery-controls button { width: 44px; height: 44px; border: 1px solid #cbd8ca; border-radius: 50%; background: #ffffffb3; color: var(--forest); font-size: 20px; cursor: pointer; }
.gallery-controls button:hover { background: white; border-color: var(--green); }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.screen-row { display: flex; gap: 24px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #9dad9a transparent; }
.screen-card { flex: 0 0 238px; padding: 9px 9px 20px; border-radius: 23px; background: #fff; border-color: #dde5d8; box-shadow: 0 8px 22px #123e2c08; scroll-snap-align: start; }
.screen-preview { border-radius: 16px; }
.screen-card figcaption { padding: 17px 9px 0; font: 500 13px/1.5 var(--sans); }
.screens-note { font-size: 11px; letter-spacing: .02em; }
.visit-card { border-radius: 28px; padding: 60px; background: linear-gradient(115deg, #064a36, #1b6547); }
.visit-card h2 { font-size: clamp(32px, 3.6vw, 44px); }
.visit-card p:not(.eyebrow) { font: 14px/1.8 var(--sans); max-width: 540px; }
.visit-card .eyebrow { font-size: 10px; }
.footer-brand strong { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; }
.footer-links a { padding: 10px 0; }
.image-dialog { border-radius: 22px; border-color: #ffffff30; }
.image-dialog::backdrop { background: #08251ecc; backdrop-filter: blur(8px); }
body:has(.image-dialog[open]) { overflow: hidden; }
/* The policy uses the same palette and quieter reading rhythm. */
.policy-page header { background: #e3efe3; border-bottom: 1px solid #dde5d8; padding: 28px 24px; }
.policy-page .brand { color: var(--forest); font: 700 14px 'Segoe UI', sans-serif; }
.policy-page .back { color: var(--green); }
.policy-page main { margin-top: 76px; }
.policy-page h1 { font-weight: 400; }
.policy-page .intro { font: 16px/1.85 'Segoe UI', sans-serif; }
.policy-page article { border-radius: 22px; padding: 40px 44px; box-shadow: 0 12px 40px #123e2c05; }
.policy-page article h2 { margin-top: 36px; font-weight: 400; }
.policy-page article h2:first-child { margin-top: 0; }
.policy-page article p { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.policy-page .policy-meta { border-radius: 14px; }
@media (max-width: 1000px) {
  .hero-grid { gap: 32px; }
  .trust-items { flex-wrap: wrap; padding: 22px 0; justify-content: center; }
  .trust-label { max-width: none; width: 100%; text-align: center; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .visit-card { padding: 40px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { padding: 145px 0 70px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 520px; }
  .hero-art { max-width: 570px; width: 100%; margin: auto; }
  .visit-card { grid-template-columns: 1fr; }
  .visit-card .button { justify-self: start; }
  .section { padding: 76px 0; }
  .navlinks { gap: 18px; }
}
@media (max-width: 650px) {
  .nav { min-height: 80px; }
  .brand { font-size: 12px; }
  .menu-toggle { color: var(--forest); border-color: #c6d2c8; border-radius: 50%; }
  .navlinks { inset: 80px 20px auto; background: #fff; border-color: #dde5d8; border-radius: 18px; box-shadow: 0 15px 40px #123e2c1a; }
  .navlinks a { padding: 14px; }
  h1 { font-size: clamp(44px, 11vw, 64px); }
  .hero .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .hero-copy { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .button { padding: 0 18px; font-size: 12px; }
  .trust-items { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .trust-label { text-align: left; }
  .trust-point { font-size: 13px; }
  .section-head { text-align: left; }
  .feature-card { padding: 24px 20px; }
  .feature-card h3 { font-size: 20px; }
  .feature-card p { font-size: 13px; }
  .screen-card { flex-basis: 220px; }
  .gallery-controls { margin-top: -10px; }
  .visit-section { padding: 64px 0; }
  .visit-card { padding: 34px 26px; border-radius: 22px; }
  .policy-page article { padding: 26px 22px; }
  .policy-page .top { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 400px) { .feature-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .screen-row { scroll-behavior: auto; } }

/* Gentle motion, with a visible pause control and system preference support. */
@keyframes pathfinder-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes pathfinder-open {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.motion-enabled .hero-art { animation: pathfinder-float 7s ease-in-out infinite; }
.motion-enabled .art-caption { animation: pathfinder-float 7s ease-in-out -3.5s infinite; }
.motion-enabled .image-dialog[open],
.motion-enabled .navlinks.open { animation: pathfinder-open .3s ease-out both; }
.motion-enabled .feature-icon { transition: transform .3s ease, background .3s ease; }
.motion-enabled .feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); background: #c5e2c7; }
.button span { display: inline-block; transition: transform .25s ease; }
.motion-enabled .button:hover span { transform: translateY(3px); }
.gallery-controls button { transition: transform .2s ease, background .2s ease; }
.motion-enabled .gallery-controls button:not(:disabled):active { transform: scale(.92); }
.motion-toggle { border: 1px solid #c6d2c8; border-radius: 999px; background: transparent; color: var(--green); padding: 8px 14px; font: 12px 'Segoe UI', sans-serif; cursor: pointer; }
.motion-toggle:hover { background: #eff4eb; }
.footer-links { align-items: center; }
.page-hidden *, .motion-enabled .hero-art:hover { animation-play-state: paused !important; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

footer { background: #e9f2e5; }
