/* WorkFromHere landing — matched to the web app (workfromhere.co) */
@font-face { font-family: "Host Grotesk"; src: url("assets/HostGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("assets/HostGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("assets/HostGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("assets/Gambetta-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("assets/Gambetta-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("assets/Gambetta-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --purple: #6670D2; --cream: #F4F3EF; --ink: #242424; --beige: #E5E0D8;
  --indigo: #475CA6; --muted: #6B7280; --surface: #FFFFFF; --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Host Grotesk", system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* Navbar — tall, large logo, search pill, actions (mirrors web) */
.nav { background: var(--cream); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.nav-logo img { height: 54px; width: auto; display: block; }
.nav-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--beige); background: rgba(255,255,255,.6); border-radius: 999px;
  padding: 11px 18px; color: var(--muted); font-size: 15px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-link:hover { color: var(--purple); }
.nav-cta { background: var(--purple); color: #fff; font-weight: 500; padding: 10px 22px; border-radius: 12px; }
.nav-cta:hover { filter: brightness(1.07); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 56px 0 80px; }
.hero-title { font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
.rotating { font-family: "Gambetta", Georgia, serif; font-weight: 500; color: var(--ink); display: inline-block; will-change: opacity, transform, filter;
  transition: opacity .6s cubic-bezier(.4,.2,.2,1), transform .6s cubic-bezier(.4,.2,.2,1), filter .6s cubic-bezier(.4,.2,.2,1); }
.rotating.out { opacity: 0; transform: translateY(-40px) scale(.92); filter: blur(8px); transition-duration: .48s; }
.rotating.in-start { opacity: 0; transform: translateY(40px) scale(.92); filter: blur(8px); transition: none; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 22px 0 28px; max-width: 34ch; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--purple); color: #fff; font-weight: 500; font-size: 16px; padding: 14px 30px; border-radius: 14px; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-outline { border: 1px solid var(--beige); color: var(--ink); font-weight: 500; font-size: 16px; padding: 13px 28px; border-radius: 14px; background: #fff; }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.mini-features { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.mini-features span { display: inline-flex; align-items: center; gap: 7px; }

/* Gambetta display headings (like the hero word) */
.display { font-family: "Gambetta", Georgia, serif; font-weight: 500; letter-spacing: 0; }

/* Concept pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.pillar { background: var(--cream); border: 1px solid var(--beige); border-radius: var(--radius); padding: 24px; }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(102,112,210,.12); display: grid; place-items: center; color: var(--purple); margin-bottom: 16px; }
.pillar h3 { font-size: 17px; font-weight: 700; }
.pillar p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.5; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }

/* Hero map mockup + listing popup */
.map-mock { position: relative; justify-self: center; width: min(540px, 92vw); aspect-ratio: 1;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--beige); box-shadow: 0 30px 60px -24px rgba(36,36,36,.35); background: #ebe9e3; }
#map { position: absolute; inset: 0; }
.map-pin { position: absolute; transform: translate(-50%,-50%); background: var(--purple); color: #fff; font-weight: 700; font-size: 14px;
  min-width: 40px; height: 40px; padding: 0 6px; border-radius: 20px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 6px 16px -4px rgba(36,36,36,.5); }
.map-pin.hi { background: var(--indigo); transform: translate(-50%,-50%) scale(1.14); z-index: 2; }
.map-popup { position: absolute; right: 14px; bottom: 14px; width: 220px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 32px -12px rgba(36,36,36,.45); }
.map-popup img { width: 100%; height: 96px; object-fit: cover; display: block; }
.map-popup .mp-body { padding: 10px 12px 12px; }
.mp-name { font-weight: 700; font-size: 14px; }
.mp-city { color: var(--muted); font-size: 12px; }
.mp-sc { display: flex; align-items: center; gap: 6px; margin: 6px 0 8px; }
.mp-sc .num { font-weight: 700; font-size: 13px; }
.cscore { display: inline-flex; }
.cscore svg { width: 15px; height: auto; margin-left: -2px; }
.mp-go { display: block; text-align: center; background: var(--beige); color: var(--ink); font-weight: 600; font-size: 13px; padding: 7px; border-radius: 10px; }

/* Sections */
.block { padding: 64px 0; }
.eyebrow { color: var(--purple); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin-top: 6px; }
.cafes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.viewall { color: var(--purple); font-weight: 600; white-space: nowrap; }

/* Café cards (web WorkspaceCard) */
.cafe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.cafe-card { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; border: 1px solid var(--beige); box-shadow: 0 18px 36px -22px rgba(36,36,36,.4); display: block; background: var(--beige); }
.cafe-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cafe-card .ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,.06) 58%, transparent); }
.cafe-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff; }
.cafe-card .nm { font-weight: 700; font-size: 17px; line-height: 1.1; }
.cafe-card .ct { font-size: 13px; opacity: .85; margin-top: 2px; }
.cafe-card .sc { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cafe-card .sc .num { font-weight: 700; font-size: 13px; }
.cafe-card .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cafe-card .tag { background: rgba(255,255,255,.9); color: var(--ink); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; }

/* CTA band */
.cta-band { background: var(--purple); color: #fff; border-radius: 28px; padding: 52px; text-align: center; margin: 8px 0 56px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 10px auto 24px; max-width: 44ch; }
.badge { display: inline-block; }

/* Footer */
footer { border-top: 1px solid var(--beige); padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 40px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 32ch; }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--ink); font-weight: 500; padding: 4px 0; }
.footer-grid a:hover { color: var(--purple); }
.footer-bottom { color: var(--muted); font-size: 13px; margin-top: 36px; }

/* Legal pages */
.legal { padding: 40px 0 80px; max-width: 720px; }
.legal h1 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 6px; }
.legal p, .legal li { color: #3a3a3a; margin-top: 8px; }
.legal ul { margin-left: 20px; }
.legal .back { color: var(--purple); font-weight: 500; display: inline-block; margin-bottom: 24px; }

@media (max-width: 860px) {
  .nav-search { display: none; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .lead { margin-inline: auto; } .cta { justify-content: center; } .mini-features { justify-content: center; }
  .map-mock { grid-row: 1; }
  .cafe-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .cafe-grid { grid-template-columns: 1fr; } }
