/* Property Journey — hero site
   Brand: warm monochrome + muted sage accent, Apple-style restraint.
   Tokens mirror the iOS asset catalog (PJBackground / PJInk / PJSurface / PJAccent). */

:root {
  --bg:      #F7F6F2;   /* PJBackground */
  --surface: #FFFFFF;   /* PJSurface    */
  --ink:     #171817;   /* PJInk        */
  --accent:  #667864;   /* PJAccent (sage) */
  --muted:   #6B6E6A;
  --hairline: rgba(23, 24, 23, 0.10);
  --shadow: 0 20px 60px -30px rgba(23, 24, 23, 0.35);
  --radius: 22px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1B1A18;
    --surface: #262522;
    --ink:     #F2F1ED;
    --accent:  #8FA38C;
    --muted:   #A2A5A0;
    --hairline: rgba(242, 241, 237, 0.12);
    --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.brand-name { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
.header-cta {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.header-cta:hover { transform: translateY(-1px); opacity: 0.92; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.headline {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.subhead {
  margin: 0 0 34px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
}

.download-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.download-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

.app-store-badge {
  display: inline-block;
  width: 168px;
  border-radius: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  outline-offset: 4px;
}
.app-store-badge svg { display: block; width: 100%; height: auto; border-radius: 9px; }
.app-store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-store-badge.large { width: 190px; }

.trust-row {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}
.trust-row span { color: var(--accent); font-weight: 600; }

/* ---------- Phone mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 620;
  background: var(--ink);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 26px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  padding: 42px 18px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}
.app-back { font-size: 1.4rem; color: var(--ink); line-height: 1; }
.app-step { font-weight: 500; }

.app-hero-row { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 62px; height: 62px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--hairline); stroke-width: 7; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 213.6;      /* 2πr, r=34 */
  stroke-dashoffset: 136.7;     /* ~36% filled */
}
.ring-pct {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 600;
}
.app-hero-title { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.app-hero-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }

.timeline { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: var(--hairline);
}
.tl {
  position: relative;
  padding: 0 0 16px 30px;
  font-size: 0.86rem;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}
.tl-node {
  position: absolute;
  left: 2px; top: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--hairline);
  z-index: 1;
}
.tl.done { color: var(--muted); }
.tl.done .tl-node { background: var(--accent); border-color: var(--accent); }
.tl.done .tl-node::after {
  content: "";
  position: absolute;
  left: 3.5px; top: 1px;
  width: 3px; height: 6px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.tl.upcoming { color: var(--muted); opacity: 0.7; }

.tl.current { padding-left: 30px; }
.tl.current .tl-node {
  border-color: var(--accent);
  border-width: 3px;
  background: var(--surface);
  width: 15px; height: 15px;
  left: 1px;
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px -18px rgba(23,24,23,0.4);
  width: 100%;
}
.tl-card-title { margin: 0; font-size: 0.95rem; font-weight: 600; }
.tl-card-sub { margin: 3px 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Features ---------- */
.features { padding: clamp(40px, 6vw, 80px) 0; }
.section-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Closer ---------- */
.closer { padding: clamp(48px, 7vw, 96px) 0; }
.closer-inner {
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(24px, 4vw, 36px);
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
}
.closer-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.closer-inner p {
  margin: 0 0 30px;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 1.1rem;
}
.closer .app-store-badge:hover { box-shadow: 0 20px 50px -24px rgba(0,0,0,0.6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-brand { font-weight: 500; color: var(--ink); }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Focus + motion ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .subhead { max-width: 46ch; }
  .download-row { align-items: center; }
  .trust-row { justify-content: center; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-title { max-width: none; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .trust-row { flex-direction: column; align-items: center; gap: 8px; }
}
