/* Home page: clear actions, generous spacing, and restrained brand color. */
:root {
  --home-text: #0f172a;
  --home-muted: #475569;
  --home-border: rgba(15, 23, 42, .09);
  --home-surface: #fff;
}
.dark {
  --home-text: #f1f5f9;
  --home-muted: #b0bed0;
  --home-border: rgba(226, 232, 240, .13);
  --home-surface: #0f172a;
}
main section[id] { scroll-margin-top: 6rem; }
.section-shell { padding: 1.75rem 1rem; }
.home-container, .section-card { max-width: 80rem; margin-inline: auto; }
.section-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--home-border);
  border-radius: 2rem;
  background: var(--home-surface);
}
.section-heading {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero-section { padding-top: 2rem; }
.hero-card {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background: radial-gradient(ellipse at 95% 15%, #dff5ff 0, transparent 55%), linear-gradient(135deg, #f8fcff, #f0f9ff);
}
.dark .hero-card {
  background: radial-gradient(ellipse at 95% 15%, rgba(14, 165, 233, .2), transparent 55%), linear-gradient(135deg, #0f172a, #102236);
}
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.section-label {
  margin: 0 0 1.25rem;
  color: #0369a1;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .06em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dark .section-label { color: #7dd3fc; }
#hero-title {
  max-width: 13ch;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  text-wrap: balance;
}
.hero-description {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  line-height: 1.75;
}
.hero-actions, .download-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  max-width: 100%;
  min-height: 3.25rem;
  padding: .875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .875rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.home-button svg, .home-button img { flex-shrink: 0; }
.home-button--primary { background: #0369a1; color: #fff; box-shadow: 0 4px 12px rgba(3, 105, 161, .12); }
.home-button--primary:hover { background: #075985; }
.home-button--secondary { border-color: var(--home-border); color: var(--home-text); background: var(--home-surface); }
.home-button--secondary:hover { background: #f1f5f9; }
.dark .home-button--secondary:hover { background: #1e293b; }
a:focus-visible, button:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 4px; }
.hero-status { max-width: 34rem; margin-top: 1.125rem; color: var(--home-muted); font-size: .875rem; line-height: 1.6; }
.hero-preview { position: relative; isolation: isolate; min-width: 0; margin: 0; text-align: center; }
.hero-preview::before, .hero-preview::after {
  content: '';
  position: absolute;
  top: -16%;
  left: 50%;
  width: 170%;
  max-width: 40rem;
  aspect-ratio: 1;
  z-index: -1;
  pointer-events: none;
  -webkit-mask: url('/assets/icons/heart.svg') center / contain no-repeat;
  mask: url('/assets/icons/heart.svg') center / contain no-repeat;
}
.hero-preview::before {
  background: linear-gradient(145deg, #c8ecfc, #def3fc);
  transform: translateX(-35%);
}
.hero-preview::after {
  z-index: -2;
  top: -11%;
  background: linear-gradient(145deg, #daf2fd, #e5f5fc);
  transform: translateX(-22%);
}
.dark .hero-preview::before { background: linear-gradient(145deg, #19445d, #173247); }
.dark .hero-preview::after { background: linear-gradient(145deg, #234b63, #1c3c52); }
.phone-frame {
  width: min(100%, 15rem);
  margin-inline: auto;
  padding: .375rem;
  border: 1px solid #334155;
  border-radius: 1.65rem;
  background: #0f172a;
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .4);
  overflow: hidden;
}
#gallery-img { display: block; width: 100%; height: auto; border-radius: 1.2rem; background: #fff; }
.gallery-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: .625rem; margin-top: 1.25rem; }
.gallery-thumb { width: 2.75rem; height: 3.25rem; padding: .1875rem; border: 1px solid var(--home-border); border-radius: .5rem; background: var(--home-surface); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: .25rem; }
.gallery-thumb.is-active { outline: 2px solid #0284c7; outline-offset: 2px; }
.gallery-caption { min-height: 2.8em; max-width: 22rem; margin: .875rem auto 0; color: var(--home-muted); font-size: .875rem; line-height: 1.4; }
.section-content { padding: clamp(1.5rem, 5vw, 4rem); }
.section-card--features { background: linear-gradient(135deg, #f8fcff, #eff8ff); }
.dark .section-card--features { background: linear-gradient(135deg, #0f172a, #102236); }
.features-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 0; }
.feature-card { min-width: 0; padding: 1.5rem; border-radius: 1.25rem; }
.feature-card h3 { color: var(--home-text); font-size: 1.0625rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.feature-card p { color: var(--home-muted); font-size: 1rem; line-height: 1.65; }
.feature-card .feature-icon { margin-bottom: 1.125rem; }
.section-card--download { background: linear-gradient(120deg, #ecfeff, #f0f9ff); }
.dark .section-card--download { background: linear-gradient(120deg, #10282f, #102236); }
.download-layout { display: grid; gap: 2rem; align-items: center; padding: clamp(1.5rem, 5vw, 4rem); }
.download-copy { min-width: 0; }
.download-description { max-width: 36rem; margin-top: 1rem; color: var(--home-muted); font-size: 1.125rem; line-height: 1.7; }
.download-apple { filter: brightness(0) invert(1); }
.android-status { display: flex; align-items: center; gap: .625rem; margin-top: 1.5rem; color: var(--home-muted); font-size: .875rem; line-height: 1.5; }
.android-status img { flex-shrink: 0; }
.download-qr { display: none; width: 13rem; margin: 0; text-align: center; }
.download-qr > img { display: block; width: 11.25rem; height: auto; margin-inline: auto; padding: .5rem; border-radius: 1rem; background: #fff; }
.download-qr figcaption { margin-top: .75rem; color: var(--home-muted); font-size: .875rem; line-height: 1.5; }
.section-card--faq { background: linear-gradient(135deg, #f8fcff, #eff8ff); }
.dark .section-card--faq { background: linear-gradient(135deg, #0f172a, #102236); }
.section-card--faq .inner-card { background: var(--home-surface); }
#faq-accordion button { color: var(--home-text); }
#faq-accordion [aria-expanded="true"] [data-rotate] { transform: rotate(180deg); }
#faq-accordion [data-i18n$="answer"], #faq-accordion [data-panel] > div { font-size: 1rem; line-height: 1.7; color: var(--home-muted); }
.section-card--about-us { background: linear-gradient(135deg, #f8fafc, #f0f9ff); }
.dark .section-card--about-us { background: linear-gradient(135deg, #0f172a, #102236); }
.mission-layout { display: grid; gap: 2rem; padding: clamp(1.5rem, 5vw, 4rem); }
.mission-heading { max-width: none; font-size: clamp(1.875rem, 2.6vw, 2.5rem); }
.mission-intro, .mission-story { margin-top: 1.25rem; color: var(--home-muted); font-size: 1rem; line-height: 1.85; }
.mission-story { margin: 0; }
.mission-story p { margin: 0; }
.mission-story p + p { margin-top: 1rem; }
.footer-links { flex-wrap: wrap; justify-content: center; }
.qr-modal::backdrop { background: rgba(2, 6, 23, .62); backdrop-filter: blur(4px); }
.qr-modal { border: 0; padding: 0; background: transparent; color: inherit; }
.qr-modal-card { width: min(90vw, 22rem); }
@media (min-width: 520px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .section-shell { padding-inline: 1.5rem; } }
@media (min-width: 900px) {
  .hero-card { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; }
  .download-layout { grid-template-columns: minmax(0, 1fr) auto; }
  .download-qr { display: block; }
  .download-actions #openAppStoreQr { display: none; }
  .mission-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
}
@media (min-width: 1100px) { .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .hero-preview::before, .hero-preview::after { top: -6%; width: 180%; max-width: 32rem; }
  .hero-preview::before { transform: translateX(-20%); }
  .hero-preview::after { top: 3%; transform: translateX(-4%); }
}
@media (max-width: 519px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .home-button, .download-actions .home-button { width: 100%; }
  .hero-preview { margin-top: .5rem; }
  .phone-frame { width: min(100%, 13rem); }
  .section-card { border-radius: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html.scroll-smooth { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-button, .transition { transition: none; }
}
