/* Heritage Hub — home page only (/ and /hi/). Shared tokens, header, footer,
 * buttons and cards are in site.css; colours come from its generated
 * brand tokens. Layout: app/web/site/layout/home-layout.mjs. */

/* ---- skip link (keyboard users) ---- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--card); color: var(--green-deep); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* ---- top bar: on phones the links move to a second row ---- */
.top-nav { flex-wrap: wrap; }
.lang-switch { display: inline-flex; align-items: center; color: var(--muted); }
.lang-switch a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-app {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--green-deep); font-weight: 600; text-decoration: none;
}
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; column-gap: 4px; padding-bottom: 4px; }
  .nav-app { margin-left: auto; padding-right: 0; }
  .top-nav { order: 3; margin-left: 0; width: 100%; justify-content: space-between; gap: 0; }
  .site-header nav a { padding: 0 8px; }
  .site-header nav a:first-child { padding-left: 0; }
}

/* ---- "read this page in Hindi" suggestion ---- */
.lang-suggest {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--green-tint); border-bottom: 1px solid var(--green-border); padding: 4px 16px;
}
.lang-suggest[hidden] { display: none; }
.lang-suggest a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }
.lang-suggest-close {
  min-height: 48px; min-width: 48px; background: none; border: none; color: var(--muted);
  font: inherit; cursor: pointer; text-decoration: underline;
}

/* ---- first screen ---- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 32px;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0 24px; }
}
.hero-grid h1 { font-size: 2.6rem; margin-bottom: 0.35em; }
@media (max-width: 480px) { .hero-grid h1 { font-size: 2rem; } }
.emotion { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green-deep); }
.hero-grid .lede { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { color: var(--muted); font-size: 1rem; margin: 10px 0 0; }
/* Landing follow-up Part 8 — each shows only when the owner turns it on. */
.hero-founding { color: var(--green-deep); font-weight: 600; font-size: 1.05rem; margin: 12px 0 0; }
.hero-founding[hidden] { display: none; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
/* The stores' own badge artwork, shown as they ask: unaltered, 48px tall, clear space around. */
.store-link { display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.store-link img { display: block; height: 48px; width: auto; }
.store-link:hover, .store-link:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
.cta .stores { justify-content: center; }

.btn--outline {
  background: transparent; color: var(--green-deep); border: 2px solid var(--green-deep);
}
.btn--outline:hover { background: var(--green-tint); color: var(--green-deep); }

/* Pilot or public: one of each pair shows (home.js sets data-access from the
   server's sign-up setting; without it the pilot version shows). */
body[data-access="pilot"] .when-public,
body[data-access="public"] .when-pilot { display: none; }

.trust {
  display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 18px 0 0;
  font-size: 0.95rem;
}
.trust li + li::before { content: "·"; color: var(--muted); padding: 0 10px; }
.trust a { color: var(--body); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.trust a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---- the sample tree, drawn like the app's tree cards, in a phone ---- */
.tree-figure { margin: 0; }
.tree-figure figcaption { text-align: center; color: var(--muted); font-size: 0.95rem; padding-top: 10px; }
.phone {
  max-width: 360px; margin: 0 auto;
  border: 10px solid var(--ink); border-radius: 40px;
  background: #FAF6EE; /* BrandColors.canvas, the app's tree canvas */
  padding: 26px 10px 18px;
  box-shadow: 0 12px 32px rgba(43, 41, 38, 0.14);
}
.tree { position: relative; aspect-ratio: 300 / 390; container-type: inline-size; }
.tree svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.person {
  position: absolute; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--card); border: 2px solid var(--border); border-radius: 12px;
  box-shadow: 0 3px 8px rgba(43, 41, 38, 0.06);
  padding: 4px 2px; text-align: center; line-height: 1.15;
}
.person img { width: 70%; height: auto; border-radius: 50%; margin-bottom: 4%; }
.person-name { font-weight: 600; color: var(--ink); font-size: 12px; font-size: 4cqw; }
.person-rel { color: var(--muted); font-weight: 500; font-size: 10.5px; font-size: 3.5cqw; }
.person--you { background: #F2F8F3; border: 3px solid var(--green); }
.you-badge {
  position: absolute; top: 4px; left: 4px;
  background: var(--green-deep); color: #fff; border-radius: 4px;
  padding: 0 5px; font-size: 10px; font-size: 3.3cqw; font-weight: 700;
}

/* ---- feature cards ---- */
.card-icon { color: var(--green-deep); margin-bottom: 6px; }
.cards .card-extra { margin-top: 0.8em; color: var(--green-deep); }
.languages { text-align: center; color: var(--body); margin: 20px 0 0; }

/* ---- how it works ---- */
.steps { counter-reset: step; padding: 0; margin: 16px 0 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-deep);
  font-family: var(--serif); font-weight: 600; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 0.3em; }
.steps p { margin: 0; font-size: 1rem; }

/* ---- founder note ---- */
.founder-body { display: flex; gap: 20px; align-items: flex-start; }
@media (max-width: 560px) { .founder-body { flex-direction: column; } }
.founder-photo {
  flex: none; width: 96px; height: 96px; border-radius: 50%;
  background: var(--green-tint); border: 2px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.8rem; color: var(--green-deep);
}
.founder blockquote { margin: 0; }
.founder blockquote p { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.founder blockquote footer { color: var(--muted); }

/* ---- what families say (only with real quotes) ---- */
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quotes blockquote { margin: 0; height: 100%; box-sizing: border-box; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.quotes blockquote p { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin: 0 0 10px; }
.quotes blockquote footer { color: var(--muted); }

/* ---- early access ---- */
.strip {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin: 32px 0; text-align: center; color: var(--body);
}
.strip p { margin: 4px 0; }

/* ---- questions ---- */
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  margin: 0 0 10px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--green-deep); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: 1.1rem; }
.faq details p { margin: 0 0 16px; }

.cta h2 { margin-top: 0.5em; }
.cta .hero-actions { justify-content: center; }
