/* PlacesBook — landing styles */

:root {
  --teal: #0E9B8E;
  --teal-dark: #0A756B;
  --teal-soft: #E6F4F2;
  --ink: #1A1F1E;
  --muted: #667471;
  --line: #E4EAE8;
  --bg: #F5F8F7;
  --card: #FFFFFF;
  --shadow: 0 18px 40px -22px rgba(14, 60, 55, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(14, 60, 55, 0.28);
  --radius: 22px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF1EF;
    --muted: #9AA9A6;
    --line: #253230;
    --bg: #0F1615;
    --card: #16201E;
    --teal-soft: #12332E;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px; height: 34px;
  border-radius: 9px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-store {
  background: #111;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-store:hover { background: #000; color: #fff; }
.btn-store svg { width: 22px; height: 22px; }
.btn-store .store-lines { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-store .store-top { font-size: 10px; font-weight: 500; opacity: .85; }
.btn-store .store-bottom { font-size: 17px; font-weight: 600; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 10px 18px;
}
.btn-ghost:hover { background: var(--card); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(14,155,142,.20), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-icon {
  width: 84px; height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 30ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* hero phones */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}
.hero-phones .phone { position: absolute; }
.hero-phones .phone-1 { transform: translateX(-58px) rotate(-6deg); z-index: 2; }
.hero-phones .phone-2 { transform: translateX(72px) translateY(26px) rotate(6deg); z-index: 1; }

/* ---------- Phone frame ---------- */
.phone {
  width: 230px;
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(160deg, #2c3634, #11201d);
  box-shadow: var(--shadow);
}
.phone img {
  border-radius: 26px;
  width: 100%;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Screenshots gallery ---------- */
.shots-bg { background: linear-gradient(180deg, transparent, var(--teal-soft) 50%, transparent); }
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 8px 24px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery .phone {
  flex: 0 0 auto;
  width: 244px;
  scroll-snap-align: center;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
}
.cta-card {
  background: linear-gradient(150deg, var(--teal), var(--teal-dark));
  border-radius: 30px;
  padding: 56px 32px;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-card img.icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  margin: 0 auto 22px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
}
.cta-card h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-card p { opacity: .92; margin: 0 auto 28px; max-width: 44ch; font-size: 17px; }
.cta-card .btn-store { background: #fff; color: #111; }
.cta-card .btn-store:hover { background: #f3f3f3; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.legal .back { font-size: 14px; font-weight: 600; }
.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin: 20px 0 6px;
}
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 24px; }
  .hero .container { grid-template-columns: 1fr; gap: 8px; }
  .hero-phones { min-height: 380px; margin-top: 12px; }
  .hero .lead { max-width: none; }
  .features { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .phone { width: 200px; }
  .hero-phones .phone-1 { transform: translateX(-46px) rotate(-6deg); }
  .hero-phones .phone-2 { transform: translateX(52px) translateY(22px) rotate(6deg); }
}
