
/* ==========================================================================
   HanziHeart — brand pages (landing + legal)
   Rose #E0567A · Blush #FDF2F4 · Plum #2A1922 · Cinema #2E1822 · Fraunces + Inter
   ========================================================================== */
.hh-page,
body.hh-legal {
  --hh-rose: #e0567a;
  --hh-rose-dark: #993556;
  --hh-coral: #f2998a;
  --hh-ink: #2a1922;
  --hh-muted: #8a6b75;
  --hh-blush: #fdf2f4;
  --hh-blush-soft: #fbe7ec;
  --hh-cinema: #2e1822;
  --hh-berry: #9b3b5e;
  --hh-amber: #e8a24c;
  --hh-soft: #fad7e0;
  --hh-border: rgba(176, 82, 110, 0.16);
  --hh-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --hh-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.hh-page { font-family: var(--hh-sans); color: var(--hh-ink); background: var(--hh-blush); }
.hh-page h1, .hh-page h2, .hh-page h3 { font-family: var(--hh-serif); font-weight: 600; letter-spacing: -0.01em; }

/* 心 corner stamp */
.hh-stamp {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--hh-serif); font-size: 1.5rem; color: var(--hh-rose);
  opacity: 0.5; user-select: none;
}

/* Hero */
.hh-hero {
  position: relative; overflow: hidden; padding: 5.5rem 20px 4.5rem;
  background:
    radial-gradient(circle at 12% 14%, rgba(224, 86, 122, 0.18), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(242, 153, 138, 0.20), transparent 30%),
    linear-gradient(160deg, #fff6f8 0%, var(--hh-blush) 55%, var(--hh-blush-soft) 100%);
}
.hh-hero-grid {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 3.5rem; align-items: center;
}
.hh-hero-copy { max-width: 640px; }
.hh-brand-mark { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 1.4rem; }
.hh-brand-icon { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 8px 20px rgba(224, 86, 122, 0.30); }
.hh-brand-text { display: flex; flex-direction: column; gap: 2px; }
.hh-brand-name { font-family: var(--hh-serif); font-size: 1.55rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; color: var(--hh-ink); }
.hh-brand-tag { font-family: var(--hh-sans); font-size: 0.92rem; line-height: 1.2; color: var(--hh-muted); }
.hh-pill {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 0.4rem 0.85rem; margin-bottom: 1rem; border-radius: 999px;
  background: var(--hh-soft); border: 1px solid var(--hh-border);
  color: var(--hh-rose-dark); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hh-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1.0; margin-bottom: 1.1rem; color: var(--hh-ink); }
.hh-hero h1 em { font-style: italic; color: var(--hh-rose); }
.hh-lede { max-width: 520px; margin-bottom: 1.8rem; color: var(--hh-muted); font-size: clamp(1.08rem, 2.3vw, 1.32rem); line-height: 1.55; }
.hh-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.hh-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.7rem; border-radius: 12px; font-size: 1rem; font-weight: 600; font-family: var(--hh-sans); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hh-btn-primary { background: var(--hh-rose); color: #fff; box-shadow: 0 12px 26px rgba(224, 86, 122, 0.32); }
.hh-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224, 86, 122, 0.42); }
.hh-btn-ghost { background: #fff; color: var(--hh-rose-dark); border: 1px solid var(--hh-border); }
.hh-btn-ghost:hover { transform: translateY(-2px); border-color: var(--hh-rose); }
.hh-coming { margin-top: 1rem; color: var(--hh-muted); font-size: 0.9rem; }
.hh-coming strong { color: var(--hh-rose-dark); }

/* The "reveal" demo card */
.hh-reveal {
  position: relative; background: #fff; border: 1px solid var(--hh-border);
  border-radius: 22px; padding: 1.6rem; box-shadow: 0 30px 70px rgba(42, 25, 34, 0.16);
}
.hh-reveal-source { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hh-muted); margin-bottom: 0.9rem; }
.hh-reveal-pinyin { font-family: var(--hh-sans); font-style: italic; color: var(--hh-muted); font-size: 1.05rem; margin-bottom: 0.1rem; }
.hh-reveal-hanzi { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 2.6rem; line-height: 1.1; color: var(--hh-ink); margin-bottom: 1.1rem; }
.hh-reveal-row { padding: 0.7rem 0; border-top: 1px solid var(--hh-border); }
.hh-reveal-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--hh-rose-dark); margin-bottom: 0.2rem; }
.hh-reveal-text { color: var(--hh-ink); font-size: 1rem; line-height: 1.45; }
.hh-reveal-text.subtext { font-family: var(--hh-serif); font-style: italic; font-size: 1.12rem; color: var(--hh-ink); }
.hh-reveal-reply { display: inline-block; margin-top: 0.2rem; padding: 0.55rem 0.9rem; border-radius: 12px; background: var(--hh-soft); color: var(--hh-rose-dark); font-weight: 500; }
/* Heat meter */
.hh-heat { margin-top: 1.1rem; }
.hh-heat-label { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hh-muted); margin-bottom: 0.35rem; }
.hh-heat-track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--hh-amber) 0%, var(--hh-coral) 45%, var(--hh-rose) 70%, var(--hh-berry) 100%); }
.hh-heat-marker { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--hh-berry); transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(42, 25, 34, 0.25); }

/* Feature strip */
.hh-strip { padding: 3.5rem 20px; background: #fff; }
.hh-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hh-card { background: var(--hh-blush); border: 1px solid var(--hh-border); border-radius: 18px; padding: 1.6rem; }
.hh-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0.9rem; background: var(--hh-soft); color: var(--hh-rose); font-size: 1.4rem; font-family: var(--hh-serif); }
.hh-card strong { display: block; font-family: var(--hh-serif); font-size: 1.15rem; margin-bottom: 0.3rem; }
.hh-card span { color: var(--hh-muted); line-height: 1.55; }

/* Section heading */
.hh-section { padding: 5rem 20px; }
.hh-section.alt { background: #fff; }
.hh-section.cinema { background: var(--hh-cinema); }
.hh-heading { max-width: 680px; margin: 0 auto 2.75rem; text-align: center; }
.hh-heading h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.7rem; color: var(--hh-ink); }
.hh-heading p { color: var(--hh-muted); font-size: 1.1rem; line-height: 1.6; }
.hh-section.cinema .hh-heading h2 { color: #fbeef2; }
.hh-section.cinema .hh-heading p { color: #c6a3b0; }

/* How it reads — the four layers */
.hh-layers { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.hh-layer { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: #fff; border: 1px solid var(--hh-border); border-radius: 16px; padding: 1.2rem 1.4rem; }
.hh-layer-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--hh-rose); color: #fff; font-family: var(--hh-serif); font-weight: 600; }
.hh-layer h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.hh-layer p { color: var(--hh-muted); line-height: 1.55; }

/* FAQ */
.hh-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.hh-faq-item { background: #fff; border: 1px solid var(--hh-border); border-radius: 14px; padding: 1.1rem 1.3rem; }
.hh-faq-item summary { cursor: pointer; font-family: var(--hh-serif); font-weight: 600; color: var(--hh-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.hh-faq-item summary::-webkit-details-marker { display: none; }
.hh-faq-item summary::after { content: '+'; color: var(--hh-rose); font-size: 1.4rem; }
.hh-faq-item[open] summary::after { content: '\2013'; }
.hh-faq-item p { margin-top: 0.8rem; color: var(--hh-muted); line-height: 1.6; }
.hh-faq-item a { color: var(--hh-rose-dark); border-bottom: 1px solid var(--hh-border); }

/* Final CTA */
.hh-cta-band { padding: 4.5rem 20px; }
.hh-cta-inner { max-width: 900px; margin: 0 auto; text-align: center; background: var(--hh-cinema); border-radius: 26px; padding: 3.5rem 2rem; color: #fbeef2; box-shadow: 0 30px 70px rgba(42, 25, 34, 0.32); }
.hh-cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.7rem; color: #fff; }
.hh-cta-inner h2 em { font-style: italic; color: var(--hh-rose); }
.hh-cta-inner p { color: #c6a3b0; font-size: 1.1rem; margin-bottom: 1.8rem; }
.hh-cta-inner .hh-btn-primary { background: var(--hh-rose); color: #fff; }

/* Subfooter + legal headers (rose/blush variants of the shared app-legal classes) */
.hanziheart-legal-header {
  background:
    radial-gradient(circle at 16% 20%, rgba(224, 86, 122, 0.16), transparent 32%),
    linear-gradient(135deg, #fff6f8 0%, var(--hh-blush-soft) 100%);
  color: var(--hh-ink);
}
.hanziheart-legal-header p { color: var(--hh-muted); opacity: 1; }
body.hh-legal { font-family: var(--hh-sans); color: var(--hh-ink); }
body.hh-legal .app-legal-brand { font-family: var(--hh-serif); font-weight: 600; letter-spacing: -0.01em; color: var(--hh-ink); }
body.hh-legal .legal-content h2, body.hh-legal .legal-content h3 { font-family: var(--hh-serif); }
.hanziheart-subfooter { background: linear-gradient(180deg, #fff6f8 0%, var(--hh-blush-soft) 100%); border-top-color: var(--hh-border); }
.hanziheart-subfooter .app-subfooter-label { color: var(--hh-rose-dark); }
.hanziheart-subfooter .app-subfooter-copy, .hanziheart-subfooter .app-subfooter-operator { color: var(--hh-muted); }
.hanziheart-subfooter .app-subfooter-links a { color: var(--hh-rose-dark); border-bottom: 1px solid var(--hh-border); }

@media (max-width: 900px) {
  .hh-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hh-strip-grid { grid-template-columns: 1fr; }
  .hh-hero { padding: 4.5rem 20px 3.5rem; }
}
@media (max-width: 620px) {
  .hh-cta-row { flex-direction: column; align-items: stretch; }
  .hh-btn { justify-content: center; }
  .app-subfooter-inner { flex-direction: column; align-items: flex-start; }
  .hanziheart-subfooter .app-subfooter-nav { justify-items: start; }
  .hanziheart-subfooter .app-subfooter-links { justify-content: flex-start; }
}

/* HanziHeart skin for the shared links-page */
.links-page-hh {
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 153, 138, 0.30), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(224, 86, 122, 0.26), transparent 30%),
    linear-gradient(180deg, #fff6f8 0%, #fbe7ec 100%);
}
.links-page-hh .links-card {
  color: #fbeef2;
  background:
    radial-gradient(circle at 50% 0%, rgba(224, 86, 122, 0.22), transparent 32%),
    linear-gradient(180deg, #3d212e 0%, #2e1822 60%, #241019 100%),
    #2e1822;
  box-shadow: 0 30px 80px rgba(42, 25, 34, 0.32);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
.links-page-hh .links-card::after { background: rgba(224, 86, 122, 0.20); }
.links-page-hh .links-logo-wrap { background: #e0567a; border-color: rgba(251, 238, 242, 0.30); }
.links-page-hh .links-kicker { color: #f7b9c8; }
.links-page-hh .links-profile h1 { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.02em; color: #fffafb; }
.links-page-hh .links-stamp { position: absolute; top: 1.6rem; right: 1.8rem; font-family: "Fraunces", serif; font-size: 1.6rem; color: rgba(247, 185, 200, 0.6); z-index: 2; }
.links-page-hh .links-button-primary { background: #e0567a; color: #fff; box-shadow: 0 18px 38px rgba(224, 86, 122, 0.30); }
.links-page-hh .links-button-primary:hover { background: #e96b8c; }
