/* Sherlock Face Search — shared site styles */
:root {
  --yellow: #f6ce5b;
  --yellow-soft: #f9df8e;
  --cream: #fffaf0;
  --ink: #17130a;
  --ink-soft: #4c4433;
  --brown: #6b4423;
  --white: #ffffff;
  --blue: #1f9ede;
  --green: #1fa95c;
  --card-border: rgba(23, 19, 10, 0.08);
  --shadow: 0 10px 30px rgba(23, 19, 10, 0.10);
  --shadow-lg: 0 24px 60px rgba(23, 19, 10, 0.16);
  --radius: 20px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--brown); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }
.header-cta { margin-left: 8px; }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink); color: var(--white);
  box-shadow: 0 8px 24px rgba(23, 19, 10, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(23, 19, 10, 0.32); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; border-radius: 11px; }

/* Google Play badge-style button */
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 22px 10px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(23, 19, 10, 0.28);
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(23, 19, 10, 0.35); }
.play-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-badge .pb-top { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.play-badge .pb-bottom { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  overflow: hidden; position: relative;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 88px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 19, 10, 0.1);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--brown); }
.hero-sub {
  font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px;
}
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { font-size: 0.88rem; color: var(--ink-soft); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.hero-stat strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stat span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .shot {
  width: min(320px, 80%);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
}
.hero-visual .mascot {
  position: absolute; width: 150px; bottom: -28px; left: -8px;
  filter: drop-shadow(0 12px 24px rgba(23, 19, 10, 0.3));
  transform: rotate(-6deg);
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; }
  .hero-visual { margin-top: 8px; }
  .hero-visual .mascot { width: 110px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em; font-weight: 800; line-height: 1.15;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.section-alt .feature-card { background: var(--cream); }
.feature-card .emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--yellow-soft); font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 960px; margin: 0 auto;
}
.shot-card { text-align: center; }
.shot-card img {
  border-radius: 24px; box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}
.shot-card img:hover { transform: translateY(-6px); }
.shot-card figcaption {
  margin-top: 18px; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
}
.shot-card figcaption span { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.88rem; margin-top: 3px; }
@media (max-width: 680px) { .shots-grid { grid-template-columns: 1fr; max-width: 320px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 30px 28px; position: relative;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: var(--yellow);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--yellow-soft); color: var(--brown);
  padding: 4px 10px; border-radius: 999px;
}
.guide-card h3 { font-size: 1.02rem; line-height: 1.35; letter-spacing: -0.01em; }
.guide-card p { font-size: 0.88rem; color: var(--ink-soft); flex-grow: 1; }
.guide-card .more { font-size: 0.88rem; font-weight: 700; color: var(--brown); }
@media (max-width: 980px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: 16px; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--brown);
  transition: transform 0.2s ease; flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.98rem; }
.faq-item .faq-body a { font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  border-radius: 28px; padding: 56px 48px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); font-size: 1.05rem; max-width: 34em; }
.cta-band .cta-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-band .cta-mascot { width: 130px; margin: 0 auto; filter: drop-shadow(0 10px 20px rgba(23,19,10,0.25)); }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255, 250, 240, 0.75);
  padding: 64px 0 40px; margin-top: 88px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: var(--yellow); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 250, 240, 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-links { display: grid; gap: 10px; font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 250, 240, 0.15);
  padding-top: 26px; font-size: 0.84rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Guide article pages ---------- */
.article-hero {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  padding: 56px 0 48px;
}
.breadcrumbs { font-size: 0.86rem; margin-bottom: 18px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--brown); font-weight: 600; text-decoration: none; }
.article-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 800; max-width: 20em;
}
.article-hero .article-meta { margin-top: 16px; color: var(--ink-soft); font-size: 0.92rem; }

.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.article .lead { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 32px; }
.article h2 { font-size: 1.55rem; letter-spacing: -0.02em; margin: 44px 0 14px; line-height: 1.2; }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article .callout {
  background: var(--yellow-soft); border-radius: 16px; padding: 22px 24px;
  margin: 28px 0; font-size: 0.98rem;
  border: 1px solid rgba(23, 19, 10, 0.1);
}
.article .app-steps {
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px; margin: 28px 0;
  box-shadow: var(--shadow);
}
.article .app-steps h3 { margin-top: 0; }
.article img.inline-shot {
  width: min(300px, 100%); border-radius: 20px; box-shadow: var(--shadow-lg);
  margin: 28px auto;
}
.article-cta { margin: 48px 0; }
.related { max-width: 760px; margin: 0 auto; padding: 8px 24px 0; }
.related h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 18px; }
.related-links { display: grid; gap: 10px; }
.related-links a { font-weight: 600; }
