/* Heyvora website — tokens mirror app/lib/core/theme/tokens.dart (class T)
   so the site matches the app. Soft tints are the app's alpha tints
   (primaryTint 12%, secondarySoft 8%, divider 8%) flattened onto white. */
/* Inter (SIL OFL 1.1, see assets/fonts/Inter-LICENSE.txt), self-hosted so
   visiting the site sends nothing to third-party font servers. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
  --primary: #5B4BDB;        /* T.primary */
  --primary-dark: #4A3BC9;   /* hover only (primary, slightly darker) */
  --primary-soft: #EBE9FB;   /* T.primaryTint #1F5B4BDB on white */
  --secondary: #E46B4F;      /* T.secondary / T.live */
  --secondary-soft: #FDF4F1; /* T.secondarySoft #14E46B4F on white */
  --bg: #F7F8FC;             /* T.bg */
  --surface: #FFFFFF;        /* T.surface */
  --text: #1F2430;           /* T.text */
  --text-2: #687080;         /* T.textSecondary */
  --line: #EEEEEF;           /* T.divider #141F2430 on white */
  --success: #2E9E6B;        /* T.success */
  --warning: #E0A02C;        /* T.warning */
  --danger: #D64541;         /* T.danger */

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 24px;

  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;

  --shadow-card: 0 2px 10px #1F243014;
  --shadow-sheet: 0 8px 24px #1F24301F;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--s-md); }
h1 { font-size: 3.25rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 var(--s-lg); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-xl); }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: var(--s-xs) var(--s-md);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-lg);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; height: 68px; gap: var(--s-xl); }
.brand { display: flex; align-items: center; gap: var(--s-sm); font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: var(--r-sm); }
.nav-links { display: flex; gap: var(--s-xl); margin-inline-start: auto; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: var(--s-sm); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); padding: 2px;
}
.lang-switch button {
  border: 0; background: transparent; font: inherit; font-size: 0.8rem; font-weight: 600;
  color: var(--text-2); padding: 4px 10px; border-radius: var(--r-pill); cursor: pointer;
}
.lang-switch button.active { background: var(--primary); color: #fff; }
.menu-toggle { display: none; border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: var(--s-md) var(--s-xl); border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px #5B4BDB40; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-sm { padding: var(--s-sm) var(--s-lg); font-size: 0.875rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: var(--s-md);
  background: var(--text); color: #fff; padding: var(--s-md) var(--s-xl);
  border-radius: var(--r-md); min-width: 180px;
}
.store-badge:hover { text-decoration: none; background: #000; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge small { display: block; font-size: 0.7rem; opacity: .8; line-height: 1.1; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background: url("../img/auth_bg.png") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,248,252,.35) 0%, rgba(247,248,252,.9) 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--primary); }
.hero h1 .accent-2 { color: var(--secondary); }
.hero-lead { font-size: 1.2rem; color: var(--text-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-md); margin: var(--s-xl) 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-xl); font-size: 0.9rem; color: var(--text-2); }
.hero-meta span::before { content: "✓"; color: var(--primary); font-weight: 700; margin-inline-end: 6px; }

/* phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 300px; border-radius: 40px; background: var(--text); padding: 12px;
  box-shadow: 0 30px 60px #1F243033, var(--shadow-sheet);
}
.phone-screen { background: var(--bg); border-radius: 30px; overflow: hidden; height: 600px; display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; padding: 10px 20px 4px; font-size: 0.7rem; font-weight: 600; }
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 10px; }
.ph-top h4 { margin: 0; font-size: 1.25rem; }
.ph-bell { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-card); display: grid; place-items: center; font-size: 0.85rem; }
.ph-chips { display: flex; gap: 6px; padding: 0 16px 10px; overflow: hidden; }
.chip { flex: none; font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); border: 1px solid var(--line); }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.ph-body { flex: 1; overflow: hidden; padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.ph-label { font-size: 0.72rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.phone-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-sm); }
.phone-note { font-size: 0.75rem; color: var(--text-2); }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-tile { background: #F2F1FC; border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 4px; min-height: 150px; }
.ph-tile.video { background: var(--secondary-soft); }
.ph-tile-top { display: flex; align-items: center; justify-content: space-between; }
.ph-ico { width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--surface); display: grid; place-items: center; font-size: 0.75rem; }
.ph-tile b { font-size: 0.74rem; line-height: 1.25; }
.ph-tile small { font-size: 0.62rem; color: var(--text-2); }
.ph-btn { margin-top: auto; text-align: center; background: var(--primary); color: #fff; border-radius: var(--r-pill); font-size: 0.62rem; font-weight: 700; padding: 5px 0; }
.ph-tile.video .ph-btn { background: var(--secondary); }
.tag, .ph-tags .tag { display: inline-block; font-size: 0.6rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: var(--r-pill); padding: 1px 6px; }
.ph-tile.video .tag { color: var(--secondary); background: var(--surface); }
.ph-creator { display: flex; gap: 10px; background: var(--surface); border-radius: var(--r-md); padding: 8px 10px; box-shadow: var(--shadow-card); align-items: flex-start; }
.ph-creator > img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary-soft); background: var(--bg); }
.ph-creator b { display: block; font-size: 0.78rem; }
.ph-creator .verified { color: var(--primary); font-size: 0.65rem; }
.ph-tags { display: flex; gap: 4px; margin: 2px 0; }
.ph-creator small { display: block; font-size: 0.64rem; color: var(--text-2); }
.ph-login { background: url("../img/auth_bg.png") center / cover; }
.ph-login-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; text-align: center; gap: 8px; }
.ph-login-body h4 { font-size: 1.15rem; margin: 0; }
.ph-login-body > p { font-size: 0.75rem; margin: 0 0 4px; }
.ph-logo { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 4px; box-shadow: var(--shadow-sheet); }
.ph-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-pill); padding: 3px; font-size: 0.7rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); }
.ph-seg span { padding: 4px 0; border-radius: var(--r-pill); }
.ph-seg .on { background: var(--primary); color: #fff; }
.ph-field { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 10px; text-align: start; font-size: 0.75rem; color: var(--text); }
.ph-field small { display: block; font-size: 0.6rem; color: var(--text-2); }
.ph-check { display: flex; gap: 6px; text-align: start; font-size: 0.62rem; color: var(--text-2); line-height: 1.35; }
.ph-check .box { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 0.55rem; display: grid; place-items: center; margin-top: 1px; }
.ph-cta { font-size: 0.8rem; padding: 8px; margin-top: 4px; }
.ph-tabs { display: flex; justify-content: space-around; padding: 10px 6px 16px; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.6rem; color: var(--text-2); }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ph-tabs span i { font-style: normal; font-size: 1rem; }
.ph-tabs .on { color: var(--primary); font-weight: 700; }
.float-card {
  position: absolute; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sheet);
  padding: var(--s-md) var(--s-lg); font-size: 0.8rem; display: flex; align-items: center; gap: var(--s-sm);
}
.float-card img { width: 34px; height: 34px; border-radius: 50%; }
.float-card b { display: block; font-size: 0.82rem; }
.float-1 { top: 130px; inset-inline-start: -10px; }
.float-2 { bottom: 70px; inset-inline-end: -16px; }
.avatars { display: flex; }
.avatars img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); margin-inline-start: -8px; }
.avatars img:first-child { margin-inline-start: 0; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.bg-surface { background: var(--surface); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-xl); padding: 40px 0; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--primary); font-weight: 800; }
.stat span { color: var(--text-2); font-size: 0.9rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.card {
  background: var(--surface); border-radius: var(--r-lg); padding: var(--s-xl);
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sheet); }
.card p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.icon-tile {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  font-size: 1.4rem; background: var(--primary-soft); margin-bottom: var(--s-lg);
}
.icon-tile.warm { background: var(--secondary-soft); }

/* creators */
.creator { text-align: center; padding: var(--s-xl) var(--s-lg); }
.creator > img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto var(--s-md); object-fit: cover; border: 3px solid var(--primary-soft); }
.creator h3 { margin-bottom: 2px; }
.creator .where { font-size: 0.85rem; color: var(--text-2); margin-bottom: var(--s-md); }
.creator .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.creator .tags .chip { font-size: 0.72rem; }
.creator .hosted { margin: var(--s-md) 0 0; font-size: 0.82rem; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-inline-start: 64px; margin-bottom: var(--s-xl); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step p { color: var(--text-2); margin: 0; }
.illus { border-radius: var(--r-lg); background: var(--bg); padding: var(--s-xl); }
.illus img { max-width: 380px; margin: 0 auto; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: var(--s-xl) 0; }
.checklist li { position: relative; padding-inline-start: 34px; margin-bottom: var(--s-lg); }
.checklist li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-size: 0.75rem; font-weight: 800; display: grid; place-items: center;
}
.checklist b { display: block; }
.checklist span { color: var(--text-2); font-size: 0.95rem; }

/* gifts */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s-md); margin-top: var(--s-md); }
.gift-head { font-size: 0.95rem; margin: var(--s-xl) 0 0; }
.gift-note { font-size: 0.8rem; margin-top: var(--s-lg); }
.gift { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-md); text-align: center; }
.gift .emo { font-size: 1.6rem; }
.gift b { display: block; font-size: 0.8rem; }
.gift small { color: var(--primary); font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-lg) var(--s-xl); margin-bottom: var(--s-md);
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: var(--s-md) 0 0; }

/* CTA */
.cta-band {
  border-radius: 28px; padding: 64px var(--s-xxl); text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #7A5BE0 55%, var(--secondary) 130%);
  box-shadow: var(--shadow-sheet);
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; font-size: 1.1rem; max-width: 560px; margin: 0 auto var(--s-xl); }
.cta-band .store-row { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-md); }
.cta-band .store-badge { background: #fff; color: var(--text); }
.cta-band .store-badge svg { fill: var(--text); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); }
.contact-grid .card a { font-weight: 600; }

/* footer */
.site-footer { background: var(--text); color: #C9CDD8; padding: 64px 0 var(--s-xxl); font-size: 0.9rem; }
.site-footer a { color: #C9CDD8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-xxl); margin-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: var(--s-md); }
.site-footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: var(--s-lg); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-sm); }
.footer-bottom { border-top: 1px solid #343a48; padding-top: var(--s-xl); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-md); }
.age-badge { display: inline-block; border: 1px solid #C9CDD8; border-radius: var(--r-sm); padding: 0 6px; font-weight: 700; font-size: 0.8rem; margin-inline-end: 6px; }

/* ---------- legal pages ---------- */
.legal-hero { padding: 64px 0 32px; background: linear-gradient(180deg, var(--primary-soft), var(--bg)); }
.legal-hero h1 { font-size: 2.5rem; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 32px 0 96px; align-items: start; }
.toc { position: sticky; top: 92px; background: var(--surface); border-radius: var(--r-lg); padding: var(--s-xl); box-shadow: var(--shadow-card); }
.toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.toc ol { padding-inline-start: 18px; margin: 0; }
.toc li { margin-bottom: var(--s-sm); font-size: 0.9rem; }
.legal-body { background: var(--surface); border-radius: var(--r-lg); padding: 40px 48px; box-shadow: var(--shadow-card); }
.legal-body h2 { font-size: 1.375rem; margin-top: var(--s-xxl); scroll-margin-top: 92px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #3c4252; }
.legal-body ul { padding-inline-start: 20px; }
.legal-body li { margin-bottom: var(--s-sm); }
.data-table { width: 100%; border-collapse: collapse; margin: var(--s-lg) 0; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: start; padding: var(--s-md); border-bottom: 1px solid var(--line); }
.data-table th { background: var(--bg); font-weight: 700; }
.note { background: var(--primary-soft); border-radius: var(--r-md); padding: var(--s-lg) var(--s-xl); margin: var(--s-xl) 0; }
.note.warm { background: var(--secondary-soft); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  h1 { font-size: 2.5rem; }
  .hero .container, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s-sm) var(--s-xl);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--s-md) 0; }
  .menu-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .grid-4, .grid-3, .contact-grid, .stats { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }
  .legal-body { padding: var(--s-xl); }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Arabic (RTL) and Hindi. Layout uses logical properties above, so it mirrors
   automatically under <html dir="rtl">; these rules only fix typography. */
html:lang(ar) { --font: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, -apple-system, sans-serif; }
html:lang(hi) { --font: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", -apple-system, "Segoe UI", sans-serif; }
/* Letter-spacing breaks Arabic letter joining and Devanagari conjuncts. */
html:lang(ar) *, html:lang(hi) * { letter-spacing: normal !important; }
html:lang(ar) body, html:lang(hi) body { line-height: 1.75; }
