/* All About Parker — landing page.
   Cinematic but calm: navy ink, cream paper, a restrained gold accent — the
   guidebook soul of the app, dialled up for a front door. */

:root {
  --navy: #1c2b4a;
  --navy-dark: #14203a;
  --navy-muted: #3a4a6b;
  --cream: #f4ecd8;
  --cream-deep: #ece0c4;
  --surface: #fffdf8;
  --gold: #c9a227;
  --gold-deep: #a8851c;
  --gold-soft: #efe3b8;
  --ink: #1c2b4a;
  --ink-muted: #5b6577;
  --border: #e5dcc4;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Kill the translucent blue box Android/iOS paint over tapped elements — our
   interactions provide their own feedback (ripples, lifts, particles). */
* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- buttons --------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: 16px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(201, 162, 39, 0.32); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.4); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(244, 236, 216, 0.32); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(28, 43, 74, 0.28); }
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- top nav --------------------------------------------------------------*/
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 32, 58, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(244, 236, 216, 0.1);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding-top: 9px; padding-bottom: 9px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.brand b { color: var(--cream); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: 14px;
  padding: 9px 15px; border-radius: 10px; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35); }
.nav-cta .ic { width: 16px; height: 16px; }
.lbl-short { display: none; }

/* ---- custom icons (drawn, never emoji) -----------------------------------*/
.ic, .ic-lg { display: inline-block; vertical-align: middle; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 18px; height: 18px; }
.ic-lg { width: 26px; height: 26px; stroke-width: 1.6; }
.ic.fill, .ic-lg.fill, .ic .fill, svg .fill { fill: currentColor; stroke: none; }

/* ---- hero -----------------------------------------------------------------*/
.hero {
  position: relative; color: var(--cream);
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(58, 74, 107, 0.5), transparent 55%),
    linear-gradient(180deg, var(--navy-dark), var(--navy));
  overflow: hidden;
}
.hero::before { /* faint star/paper grain */
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(244, 236, 216, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px; mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); margin: 18px 0 0; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .sub { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: rgba(244, 236, 216, 0.82); max-width: 30ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(244, 236, 216, 0.07); border: 1px solid rgba(244, 236, 216, 0.16);
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--cream);
}
.chip .ico { font-size: 15px; }
.chip .live { width: 7px; height: 7px; border-radius: 50%; background: #69d68a; box-shadow: 0 0 0 0 rgba(105, 214, 138, 0.6); animation: pulse 2.4s infinite; }
.chip b { color: var(--gold-soft); }
.chip[hidden] { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(105, 214, 138, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(105, 214, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(105, 214, 138, 0); } }

/* ---- constellation of towns ----------------------------------------------*/
.constellation { position: relative; }
.constellation svg { width: 100%; height: auto; overflow: visible; }
.constellation .line { stroke: rgba(244, 236, 216, 0.22); stroke-width: 1; stroke-dasharray: 4 5; opacity: 0; transition: opacity 1.2s ease 0.3s; }
.constellation .town { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
.constellation.in .line { opacity: 1; }
.constellation.in .town { animation: pop 0.6s var(--ease) forwards; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.constellation .town .pin { fill: var(--gold); }
.constellation .town .halo { fill: var(--gold); opacity: 0.16; }
.constellation .county {
  fill: rgba(244, 236, 216, 0.04);
  stroke: rgba(201, 162, 39, 0.55);
  stroke-width: 1.5;
  opacity: 0; transition: opacity 1s ease 0.1s;
}
.constellation.in .county { opacity: 1; }
.constellation .seat .halo { opacity: 0.22; }
.constellation .seat .star { fill: var(--gold); stroke: var(--navy-dark); stroke-width: 0.8; }
.constellation .label { fill: var(--cream); font-size: 13px; font-weight: 600; font-family: -apple-system, sans-serif; opacity: 0; transition: opacity 0.8s ease 0.5s; }
.constellation.in .label { opacity: 0.92; }
.constellation .label.end { text-anchor: end; }
.constellation .label.mid { text-anchor: middle; }
.constellation .seat-label { text-anchor: middle; font-weight: 700; fill: var(--gold-soft); }
.constellation .cap { position: relative; margin-top: 4px; text-align: center; color: rgba(244, 236, 216, 0.7); font-size: 14px; }

/* ---- generic section + reveal --------------------------------------------*/
section { padding: 92px 0; }
.section-cream { background: var(--cream); }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.section-head { max-width: 30ch; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 12px; color: var(--navy); }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-muted); max-width: 56ch; }
.rule { display: flex; align-items: center; gap: 10px; color: var(--gold); margin: 0 auto; width: max-content; }
.rule::before, .rule::after { content: ""; height: 1px; width: 56px; background: var(--gold); opacity: 0.5; }
.rule .diamond { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ---- contrast: the old way vs all about parker ---------------------------*/
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; align-items: stretch; }
.panel { border-radius: 20px; padding: 28px; }
.panel h3 { font-size: 22px; margin-bottom: 16px; }
.panel-old { background: #ece7dc; color: var(--ink-muted); position: relative; overflow: hidden; }
.panel-old h3 { color: var(--ink-muted); }
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed .post { background: #fff; border: 1px solid #ded6c4; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #8a8472; }
.feed .post.spam { transform: rotate(-1.2deg); } .feed .post.spam2 { transform: rotate(1deg); }
.feed .tag { font-size: 11px; font-weight: 700; color: #b9442f; text-transform: uppercase; letter-spacing: 0.06em; }
.panel-new { background: var(--navy); color: var(--cream); box-shadow: 0 20px 50px rgba(28, 43, 74, 0.22); }
.panel-new h3 { color: var(--cream); }
.listing-mini { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(244, 236, 216, 0.16); border-radius: 14px; padding: 16px 18px; }
.listing-mini .lm-top { display: flex; justify-content: space-between; align-items: center; }
.listing-mini .lm-name { font-weight: 700; font-size: 18px; }
.listing-mini .lm-rate { color: var(--gold); font-weight: 700; font-size: 14px; }
.listing-mini .lm-sub { color: rgba(244, 236, 216, 0.66); font-size: 14px; margin-top: 2px; }
.listing-mini .lm-actions { display: flex; gap: 8px; margin-top: 14px; }
.lm-btn { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.lm-btn.p { background: var(--gold); color: var(--navy); } .lm-btn.s { background: rgba(244, 236, 216, 0.1); color: var(--cream); }
.panel-new .note { margin-top: 16px; font-size: 14px; color: rgba(244, 236, 216, 0.7); }

/* ---- features grid + device ----------------------------------------------*/
.inside { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-top: 52px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 43, 74, 0.1); }
.feature .ficon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; font-size: 22px; }
.feature h3 { font-size: 19px; margin: 14px 0 6px; color: var(--navy); }
.feature p { font-size: 14.5px; color: var(--ink-muted); }
.feature .ficon .ic-lg { color: var(--gold-deep); }
.feature-navy { display: flex; flex-direction: column; justify-content: center; background: var(--navy); border-color: var(--navy); }
.feature-navy h3 { color: var(--cream); margin-top: 0; }
.feature-navy p { color: rgba(244, 236, 216, 0.72); }
.kicker.block { display: block; margin-top: 18px; }
.kicker-soft { color: var(--gold-soft); }

.device-col { display: flex; justify-content: center; }
.device { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  --fscale: 0.708;
  position: relative; width: 300px; height: 600px; border-radius: 44px;
  background: #0e1626; padding: 12px;
  box-shadow: 0 40px 80px rgba(20, 32, 58, 0.35), inset 0 0 0 2px rgba(244, 236, 216, 0.08);
}
/* A subtle earpiece speaker that sits in the top bezel (within the 12px frame
   padding) — adds phone realism without overlapping the live app's header. */
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 46px; height: 4px; background: rgba(244, 236, 216, 0.18); border-radius: 999px; z-index: 3; }
.phone .screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: var(--cream); position: relative; }
/* Render the app at a true phone width (390px) and scale it to fit, so the UI
   keeps real proportions instead of cramming into the narrow frame. */
.phone iframe { position: absolute; top: 0; left: 0; width: 390px; height: 847px; border: 0; transform: scale(var(--fscale)); transform-origin: top left; }
.device-cap { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 14px; font-weight: 600; }
.device-cap .ic { width: 15px; height: 15px; color: var(--gold-deep); }

/* ---- business band --------------------------------------------------------*/
.biz { background: linear-gradient(180deg, var(--navy), var(--navy-dark)); color: var(--cream); }
.biz .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.biz h2 { font-size: clamp(30px, 4.2vw, 44px); color: var(--cream); }
.biz .gold { color: var(--gold); font-style: italic; }
.biz p { color: rgba(244, 236, 216, 0.82); font-size: 18px; margin-top: 16px; }
.biz ul { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.biz li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.biz li .tick { color: var(--navy); background: var(--gold); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.biz .cta-row { margin-top: 32px; }

/* ---- pride ----------------------------------------------------------------*/
.pride { text-align: center; }
.pride h2 { font-size: clamp(32px, 5vw, 52px); color: var(--navy); margin-top: 14px; }
.pride .lede { max-width: 60ch; margin: 18px auto 0; font-size: 19px; color: var(--ink-muted); }
.towns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 36px; max-width: 800px; margin-left: auto; margin-right: auto; }
.towns span { font-size: 15px; color: var(--navy); font-weight: 600; opacity: 0.85; }
.towns span::after { content: "·"; color: var(--gold); margin-left: 14px; }
.towns span:last-child::after { content: ""; }

/* ---- footer ---------------------------------------------------------------*/
.footer { background: var(--navy-dark); color: rgba(244, 236, 216, 0.78); padding: 64px 0 40px; }
.footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer .brand b { color: var(--cream); font-size: 19px; }
.footer .brand-lg { width: 40px; height: 40px; border-radius: 9px; }
.get-head { color: var(--cream); font-weight: 600; margin-bottom: 14px; }
.badges .ic { width: 22px; height: 22px; color: var(--cream); }
.footer .tag { margin-top: 12px; font-size: 14px; max-width: 32ch; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(244, 236, 216, 0.06);
  border: 1px solid rgba(244, 236, 216, 0.18); border-radius: 12px; padding: 10px 16px; color: var(--cream);
}
.badge .b-sub { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.badge .b-main { font-size: 15px; font-weight: 700; line-height: 1.1; }
.badge .soon { margin-left: 4px; font-size: 10px; background: var(--gold); color: var(--navy); padding: 2px 7px; border-radius: 6px; font-weight: 700; }
/* A store badge only turns live where a real build exists (Android today);
   script.js adds .badge-live + an href so it becomes a tappable download. */
.badge-live { cursor: pointer; border-color: var(--gold); background: rgba(224, 168, 74, 0.12); text-decoration: none; transition: transform 0.15s ease, background 0.15s ease; }
.badge-live:hover { transform: translateY(-1px); background: rgba(224, 168, 74, 0.18); }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(244, 236, 216, 0.12); font-size: 13px; line-height: 1.7; max-width: 70ch; }
.footer .legal { margin-top: 20px; font-size: 13px; opacity: 0.6; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- playful interactions (see play.js) ----------------------------------*/
/* "Go on — tap an icon." A small, calm invite so the easter eggs get found. */
.play-hint { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; color: var(--gold-deep); font-weight: 600; white-space: nowrap; }
.play-spark { display: inline-block; color: var(--gold); animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.4; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* Cards advertise that they're tappable: pointer cursor + a livelier icon. */
.feature.playable { cursor: pointer; }
.feature.playable .ficon { transition: transform 0.2s var(--ease), background 0.2s; }
.feature.playable:hover .ficon { transform: translateY(-2px) rotate(-6deg); background: var(--gold); }
.feature.playable:hover .ficon .ic-lg { color: var(--navy); }
.feature.playable:active .ficon { transform: scale(0.92); }
.feature-navy.playable:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 43, 74, 0.18); }
.chip.playable { cursor: pointer; transition: transform 0.18s var(--ease), border-color 0.18s; }
.chip.playable:hover { transform: translateY(-1px); border-color: rgba(201, 162, 39, 0.5); }

/* The Services icon shakes its wrench loose. */
.feature.wiggle .ficon { animation: wrench-wiggle 0.5s var(--ease); }
@keyframes wrench-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 45% { transform: rotate(11deg); } 70% { transform: rotate(-7deg); } 88% { transform: rotate(4deg); } }

/* Paw prints that trot across the Vets card (positioned by play.js). */
.feature { position: relative; }
.aap-paw { position: absolute; color: var(--gold-deep); opacity: 0; transform-origin: center; transition: opacity 0.25s ease; pointer-events: none; z-index: 2; }
.aap-paw.show { opacity: 0.85; }

/* The county seat does a single proud spin when tapped. fill-box makes the
   origin resolve against the star's own box, so `center` spins it in place. */
.constellation .star.spin-once { transform-box: fill-box; transform-origin: center; animation: seat-spin 0.9s var(--ease); }
@keyframes seat-spin { to { transform: rotate(360deg); } }

/* Pins invite a grab. */
.constellation .town { cursor: grab; }

/* ---- responsive -----------------------------------------------------------*/
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .constellation { order: 2; max-width: 460px; }
  .contrast, .inside, .biz .grid { grid-template-columns: 1fr; }
  .inside { gap: 40px; }
  .device-col { order: -1; }
  section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .brand b { font-size: 15px; }
  .nav-cta { font-size: 13px; padding: 8px 13px; }
  .phone { width: 264px; height: 536px; --fscale: 0.615; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal, .constellation .town, .constellation .line { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .play-spark, .feature.wiggle .ficon, .star.spin-once { animation: none !important; }
}
