/* ============================================================
   AppsHealthy — umbrella landing
   Hand-written CSS (no framework) for fast Core Web Vitals.
   ============================================================ */

:root {
  --emerald: #10B981;
  --teal:    #0EA5A4;
  --blue:    #2563EB;
  --indigo:  #4F46E5;
  --purple:  #7C5CBF; /* Shebalance accent */

  --ink:      #0B1524;
  --ink-soft: #51607A;
  --line:     #E5EAF1;
  --bg:       #F7FAFC;
  --surface:  #FFFFFF;

  --grad: linear-gradient(135deg, var(--emerald), var(--blue));
  --grad-soft: linear-gradient(135deg, rgba(16,185,129,.12), rgba(37,99,235,.12));

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(11,21,36,.05);
  --shadow: 0 20px 50px -24px rgba(11,21,36,.30);
  --shadow-lg: 0 40px 90px -36px rgba(37,99,235,.40);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "cv11";
}
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.12; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ───────────── Background orbs ───────────── */
.orb-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.orb-1 { width: 520px; height: 520px; top: -160px; left: -140px;
  background: radial-gradient(closest-side, #6EE7D6, transparent); animation: drift1 24s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; top: 30%; right: -160px;
  background: radial-gradient(closest-side, #93C5FD, transparent); animation: drift2 28s ease-in-out infinite alternate; }
.orb-3 { width: 420px; height: 420px; bottom: -160px; left: 35%; opacity: .35;
  background: radial-gradient(closest-side, #A7F3D0, transparent); animation: drift3 32s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 70px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-110px, 90px) scale(.95); } }
@keyframes drift3 { to { transform: translate(80px, -90px) scale(1.08); } }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; border-radius: var(--radius-sm); cursor: pointer;
  padding: 13px 22px; border: 0; transition: transform .18s ease, box-shadow .18s ease, background .18s, color .18s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(37,99,235,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(37,99,235,.6); }
.btn-primary.purple { background: linear-gradient(135deg, #7C5CBF, #4FD1C5); box-shadow: 0 12px 30px -10px rgba(124,92,191,.55); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--blue); }
.btn-pill { background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; }
.btn-pill:hover { transform: translateY(-1px); background: #15233b; }

.eyebrow {
  display: inline-block; font-family: 'Sora', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); background: rgba(14,165,164,.10); padding: 6px 13px; border-radius: 999px;
}

/* ───────────── Nav ───────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(247,250,252,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(37,99,235,.35)); }
.brand-text { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.pulse-path { stroke-dasharray: 60; stroke-dashoffset: 0; animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { stroke-dashoffset: 0; } 45% { stroke-dashoffset: 60; } 55% { stroke-dashoffset: 120; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-pill { color: #fff; }

/* ───────────── Hero ───────────── */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; margin: 18px 0 0; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin-top: 20px; max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.d1 { background: var(--emerald); } .d2 { background: var(--blue); } .d3 { background: var(--teal); }

/* Hero visual */
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.glass-card {
  position: relative; z-index: 2; width: min(100%, 380px);
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 22px;
}
.gc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gc-eyebrow { font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.gc-badge { font-size: 11px; font-weight: 800; color: #fff; background: var(--grad); padding: 3px 10px; border-radius: 999px; }
.app-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.app-icon { box-shadow: var(--shadow-sm); border-radius: 12px; }
.app-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; }
.app-tag { font-size: 12.5px; color: var(--ink-soft); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.ms { text-align: center; background: var(--grad-soft); border-radius: 14px; padding: 12px 6px; }
.ms-num { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); }
.ms-lbl { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.ghost-card { position: absolute; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ghost-card.g1 { z-index: 1; width: 300px; height: 200px; transform: rotate(-7deg) translate(-40px, 36px); opacity: .8; }
.ghost-card.g2 { z-index: 0; width: 280px; height: 180px; transform: rotate(8deg) translate(60px, -30px); opacity: .55; }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ───────────── Section heads ───────────── */
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-top: 14px; }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }

/* ───────────── Values ───────────── */
.values { padding: 40px 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(37,99,235,.3); }
.v-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.ic-a { background: rgba(16,185,129,.12); } .ic-b { background: rgba(37,99,235,.12); }
.ic-c { background: rgba(14,165,164,.12); } .ic-d { background: rgba(124,92,191,.12); }
.value h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.value p { font-size: 14.5px; color: var(--ink-soft); }

/* ───────────── Apps ───────────── */
.apps { padding: 80px 0; }
.apps-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: stretch; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; transition: transform .25s, box-shadow .25s; }
.app-card.featured { box-shadow: var(--shadow); position: relative; overflow: hidden; }
.app-card.featured::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--purple), #4FD1C5); }
.app-card.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ac-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ac-icon { border-radius: 14px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.ac-top h3 { font-size: 24px; font-weight: 800; }
.ac-tag { font-size: 13.5px; color: var(--ink-soft); }
.ac-status { margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 800; color: #0f9d6f; background: rgba(16,185,129,.14); padding: 4px 10px; border-radius: 999px; }
.ac-desc { color: var(--ink-soft); font-size: 15.5px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chips li { font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--grad-soft); border: 1px solid rgba(37,99,235,.14); padding: 6px 12px; border-radius: 999px; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.app-card.soon { display: grid; place-items: center; text-align: center; background: var(--grad-soft); border-style: dashed; border-color: rgba(37,99,235,.3); }
.soon-inner { max-width: 320px; }
.soon-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--blue); font-size: 30px; font-weight: 700; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.app-card.soon h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.app-card.soon p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }

/* ───────────── Mission ───────────── */
.mission { padding: 80px 0; }
.mission-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.mission h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 14px 0; }
.mission p { color: var(--ink-soft); }
.mission .lede { color: var(--ink); font-weight: 500; }
.mission p + p { margin-top: 14px; }
.standards { display: grid; gap: 14px; }
.std { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.std-k { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.std-v { font-size: 14.5px; color: var(--ink-soft); }

/* ───────────── Areas ───────────── */
.areas { padding: 40px 0 80px; }
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(16,185,129,.3); }
.area h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.area p { color: var(--ink-soft); font-size: 15px; }
.area strong { color: var(--ink); }

/* ───────────── FAQ ───────────── */
.faq { padding: 40px 0 80px; }
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding: 18px 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { transition: transform .25s; color: var(--blue); font-size: 20px; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; font-size: 15px; }
.faq details a { color: var(--blue); font-weight: 600; }

/* ───────────── CTA ───────────── */
.cta { padding: 40px 0 90px; }
.cta-card { text-align: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 60px 32px; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(16,185,129,.25), transparent 55%), radial-gradient(circle at 85% 100%, rgba(37,99,235,.3), transparent 55%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.cta-card .grad { background: linear-gradient(135deg, #6EE7D6, #93C5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-card p { color: rgba(255,255,255,.8); margin: 14px auto 26px; max-width: 46ch; }

/* ───────────── Footer ───────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.f-brand { display: flex; align-items: center; gap: 10px; }
.f-links { display: flex; flex-wrap: wrap; gap: 22px; }
.f-links a { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; transition: color .18s; }
.f-links a:hover { color: var(--ink); }
.f-copy { width: 100%; color: var(--ink-soft); font-size: 13px; }

/* ───────────── Reveal animation ───────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ───────────── Responsive ───────────── */
@media (max-width: 940px) {
  .hero-grid, .mission-grid, .apps-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 300px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn-pill) { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 56px 0 48px; }
  .values-grid { grid-template-columns: 1fr; }
  .ac-actions .btn { width: 100%; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
