/* Weening website — shared styles */
:root {
  --bg: #F5F8FC;
  --card: #FFFFFF;
  --powder: #DCE6F7;
  --fg: #1E2A4A;
  --muted: #56627F;
  --accent: #4A6CC4;
  --accent-ink: #FFFFFF;
  --apricot: #F2A477;
  --line: #D6DFEE;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Figtree", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1629;
    --card: #1A2440;
    --powder: #24315A;
    --fg: #E8EEF9;
    --muted: #A2AECB;
    --accent: #84A0EA;
    --accent-ink: #0F1629;
    --apricot: #F2A477;
    --line: #2C3A63;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--accent), #2F4C9C);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: 9px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(to top, #fff 0 40%, rgba(255,255,255,.45) 40% 70%, rgba(255,255,255,.2) 70%);
}
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 99px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
nav a:hover { background: var(--powder); }
nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* Home hero */
.hero { padding-block: 72px 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
}
.badge-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }

/* Phone illustration */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  background: var(--card);
  border: 10px solid var(--fg);
  padding: 26px 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 60px -30px rgba(30,42,74,.45);
}
.phone .small { font-size: 12px; color: var(--muted); }
.phone .big { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; }
.phone .tile { background: var(--powder); border-radius: 16px; padding: 12px 14px; }
.phone .bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-top: 8px; }
.phone .bar span { display: block; height: 100%; width: 64%; background: var(--apricot); border-radius: 99px; }
.phone .rings { display: flex; justify-content: space-between; margin-top: 8px; }
.phone .rings i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--card); }
.phone .rings i.full { border-color: var(--apricot); }
.phone .rings i.part { border-color: var(--accent); }
.phone .sos {
  margin-top: auto;
  text-align: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 99px; padding: 12px; font-weight: 600; font-size: 14px;
}

/* Features */
.features { padding-block: 24px 72px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.feature h2 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.promise {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: 56px;
}
.promise p {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
  margin: 0;
  max-width: 24em;
  text-wrap: balance;
}

/* Document pages */
.doc { padding-block: 56px 72px; }
.doc-inner { max-width: 680px; }
.doc h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 52px);
  line-height: 1.08;
  margin: 0 0 8px;
}
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc .intro { font-size: 19px; margin: 0 0 8px; }
.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  margin: 40px 0 8px;
}
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; margin: 0 0 14px; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin: 8px 0 8px;
}
.contact-card .email { font-size: 20px; font-weight: 600; word-break: break-all; }
.contact-card p { margin: 6px 0 0; color: var(--muted); }

details {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  font-weight: 600;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute; right: 4px; top: 10px;
  font-size: 22px; font-weight: 400; color: var(--accent);
}
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

.help-box {
  margin-top: 40px;
  background: var(--powder);
  border-radius: 20px;
  padding: 24px;
}
.help-box h2 { margin-top: 0; }
.help-box p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 15px; color: var(--muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }

@media (max-width: 780px) {
  .hero { padding-block: 44px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .phone { max-width: 250px; }
}

/* Brand icon, centered hero, screenshot gallery */
.brand-icon { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.hero-centered { text-align: center; padding-block: 64px 0; }
.hero-centered h1 { margin-inline: auto; max-width: 14em; }
.hero-centered .accent { color: var(--accent); }
.hero-centered .lede { margin-inline: auto; }
.hero-image-wrap { margin-top: 40px; }
.hero-image { width: 100%; height: auto; border-radius: 28px; display: block; box-shadow: 0 30px 60px -36px rgba(30,42,74,.45); }
.features { padding-block: 56px 72px; }
.gallery { padding-block: 8px 72px; }
.section-title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 24px; }
.gallery-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 4px 16px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  scroll-padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  scrollbar-width: thin;
}
@media (min-width: 1020px) { .gallery-track { padding-left: calc((100% - 940px) / 2); scroll-padding-left: calc((100% - 940px) / 2); } }
.gallery-track img { width: 260px; height: auto; flex: none; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 16px 36px -22px rgba(30,42,74,.5); }
@media (max-width: 780px) {
  .hero-centered { padding-block: 40px 0; }
  .hero-image { border-radius: 18px; }
  .gallery-track img { width: 220px; }
}

.site-footer .social { display: inline-flex; align-items: center; gap: 6px; }
.follow { margin: 18px 0 0; color: var(--muted); font-size: 16px; }

.giving { padding-block: 0 64px; }
.giving-inner { max-width: 720px; }
.giving-inner p { font-size: 18px; margin: 0 0 10px; }
.giving-note { color: var(--muted); font-size: 15px !important; }

.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px 10px 18px; border-radius: 14px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 20px; line-height: 1.1; text-align: left; }
.store-btn small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.store-btn:hover { opacity: .9; }
.store-btn-light { background: #fff; color: #1E2A4A; margin-top: 24px; }
nav a.nav-get { background: var(--accent); color: var(--accent-ink); }
nav a.nav-get:hover { background: var(--accent); opacity: .9; }

.home-faq { padding-block: 8px 64px; }
.faq-inner { max-width: 720px; }
.faq-inner .section-title { margin-bottom: 16px; }
