/* FamChek — app-inspired dark theme */
:root {
  --ink: #f4f8fb;
  --ink-soft: #9aaaba;
  --paper: #08121b;
  --paper-deep: #0b1722;
  --white: #111f2c;
  --coral: #2ca9ff;
  --coral-dark: #158edb;
  --coral-soft: rgba(44, 169, 255, 0.14);
  --mint: #36d36a;
  --mint-dark: #20b854;
  --mint-soft: rgba(54, 211, 106, 0.14);
  --blue: #5ab7ff;
  --blue-dark: #2b9ce9;
  --blue-soft: rgba(90, 183, 255, 0.14);
  --sun: #ffb226;
  --sand: rgba(255, 178, 38, 0.14);
  --line: rgba(158, 190, 213, 0.14);
  --shadow-sm: 0 18px 48px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 38px 100px rgba(0, 0, 0, 0.42);
  --font-editorial: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  color-scheme: dark;
  background: #08121b;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 3%, rgba(38, 153, 229, 0.12), transparent 28rem),
    #08121b;
}

::selection {
  color: white;
  background: rgba(44, 169, 255, 0.7);
}

.site-shell {
  overflow: clip;
}

.site-header { padding: 14px 0; }
.site-header.is-scrolled { padding: 8px 0; }

.header-inner {
  border-color: rgba(157, 194, 219, 0.13);
  background: rgba(10, 22, 32, 0.76);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.site-header.is-scrolled .header-inner {
  background: rgba(10, 22, 32, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}

.brand-name,
.footer-brand .brand-name { color: #f7fbff; }
.brand-name span,
.footer-brand .brand-name span { color: #35adff; }

.brand-mark {
  box-shadow: 0 0 0 1px rgba(77, 183, 255, 0.24), 0 8px 24px rgba(24, 152, 235, 0.18);
}

.main-nav { color: #a9b7c4; }
.main-nav > a:not(.nav-cta)::after { background: #43b4ff; }
.main-nav > a:hover,
.main-nav > a:focus-visible { color: white; }

.nav-cta,
.button-primary {
  color: white;
  background: linear-gradient(135deg, #149de9, #41b9ff);
  box-shadow: 0 12px 30px rgba(26, 158, 232, 0.28);
}

.nav-cta:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #078bd4, #2eacf4);
  box-shadow: 0 16px 36px rgba(26, 158, 232, 0.36);
}

.nav-toggle span { background: white; }

.hero {
  min-height: 890px;
  padding: 145px 0 54px;
  background:
    radial-gradient(circle at 80% 32%, rgba(43, 169, 255, 0.16), transparent 31rem),
    radial-gradient(circle at 14% 22%, rgba(54, 211, 106, 0.06), transparent 24rem);
}

.hero::before {
  z-index: 0;
  background:
    linear-gradient(rgba(123, 180, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 180, 216, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 5%, transparent 92%);
}

.hero-grid,
.quick-proof {
  position: relative;
  z-index: 1;
}

.hero-glow-one {
  background: rgba(44, 169, 255, 0.11);
  filter: blur(35px);
}

.hero-glow-two {
  background: rgba(54, 211, 106, 0.06);
  filter: blur(40px);
}

.eyebrow,
.section-kicker { color: #53bdff; }

.eyebrow {
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(62, 179, 255, 0.18);
  border-radius: 999px;
  background: rgba(28, 112, 163, 0.1);
}

.eyebrow-dot { background: rgba(44, 169, 255, 0.16); }

.eyebrow-dot svg {
  fill: #49b8ff;
  stroke: #49b8ff;
}

.hero h1,
.section-heading h2,
.steps-copy h2,
.download-content h2 { color: #f4f8fb; }

.hero h1 {
  max-width: 700px;
  font-size: clamp(52px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span,
.section-heading h2 span,
.steps-copy h2 span {
  color: #4ab9ff;
  font-family: inherit;
  font-style: normal;
  font-weight: 800;
  letter-spacing: inherit;
}

.hero-lead,
.section-heading > p,
.split-heading > p,
.steps-copy > p { color: #9aaaba; }

.hero-lead { max-width: 570px; }

.button-secondary {
  border-color: rgba(153, 190, 214, 0.18);
  color: #dce7ef;
  background: rgba(22, 38, 52, 0.7);
}

.button-secondary:hover {
  border-color: rgba(74, 185, 255, 0.42);
  background: #172838;
}

.button-dark {
  color: white;
  background: #179ee8;
}

.button-dark:hover { background: #0b8dd5; }
.hero-notes { color: #8294a4; }
.hero-notes i { background: rgba(54, 211, 106, 0.12); }
.hero-notes svg { stroke: #45dc79; }

.hero-visual { height: 620px; }

.hero-visual::before {
  top: 50px;
  left: 58px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(72, 177, 240, 0.16);
  background:
    radial-gradient(circle at 38% 35%, rgba(52, 181, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #112332, #0b1721 64%, #102431);
  box-shadow: inset 0 0 80px rgba(58, 166, 232, 0.06), 0 40px 90px rgba(0, 0, 0, 0.36);
}

.orbit { border-color: rgba(91, 179, 231, 0.16); }

.orbit::before {
  background: #2ca9ff;
  box-shadow: 0 0 0 6px rgba(44, 169, 255, 0.12), 0 0 26px rgba(44, 169, 255, 0.6);
}

.orbit-two::before {
  background: #36d36a;
  box-shadow: 0 0 0 6px rgba(54, 211, 106, 0.12), 0 0 26px rgba(54, 211, 106, 0.5);
}

.orbit-one {
  top: 15px;
  left: 22px;
  width: 590px;
  height: 590px;
}

.orbit-two {
  top: 96px;
  left: 104px;
  width: 430px;
  height: 430px;
}

.phone { filter: drop-shadow(0 36px 46px rgba(0, 0, 0, 0.46)); }

.phone-parent {
  top: 4px;
  left: 58px;
  width: 270px;
  height: 570px;
  transform: rotate(-5deg);
}

.phone-child {
  top: 104px;
  right: 17px;
  transform: rotate(5deg);
}

.phone-frame {
  border-color: #304454;
  background: #050a0f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.7);
}

.phone-island { background: #020609; }

.parent-screen {
  padding: 17px 13px 0;
  color: #f5f8fb;
  background: #0d1822;
}

.parent-screen .mock-status { color: #f2f6f9; }

.app-profile-head {
  position: relative;
  min-height: 88px;
}

.app-grid-mark {
  position: absolute;
  top: 8px;
  left: 4px;
  display: grid;
  width: 22px;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.app-grid-mark i {
  height: 8px;
  border: 1.5px solid #eef7ff;
  border-radius: 3px;
}

.app-profile-identity {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.app-profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  border: 2px solid rgba(75, 185, 255, 0.7);
  border-radius: 50%;
  color: #51bbff;
  background: radial-gradient(circle at 34% 28%, #264b63, #122634 68%);
  box-shadow: 0 0 24px rgba(40, 161, 232, 0.22);
  place-items: center;
}

.app-profile-avatar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
}

.app-profile-identity small {
  color: #778998;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.app-profile-identity strong {
  margin-top: 1px;
  font-size: 11px;
}

.app-more {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #d9e3ea;
  font-size: 12px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
}

.app-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 4px;
}

.app-shortcuts > div {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(132, 178, 208, 0.08);
  border-radius: 12px;
  background: #1a2a38;
}

.app-shortcuts span {
  position: relative;
  display: grid;
  color: #eaf4fa;
  place-items: center;
}

.app-shortcuts svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.app-shortcuts em {
  position: absolute;
  top: -6px;
  right: -9px;
  display: grid;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  color: white;
  background: #1ca8f4;
  font-size: 5px;
  font-style: normal;
  font-weight: 800;
  place-items: center;
}

.app-shortcuts b {
  overflow: hidden;
  max-width: 100%;
  color: #dbe6ed;
  font-size: 5.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-caught-up {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #aab9c5;
  background: #172633;
}

.app-caught-up span {
  display: grid;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  color: white;
  background: #2dcc5d;
  place-items: center;
}

.app-caught-up svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.app-caught-up b { font-size: 7px; }

.app-family-panel {
  margin-top: 8px;
  padding: 9px 10px 10px;
  border: 1px solid rgba(132, 178, 208, 0.08);
  border-radius: 14px;
  background: #172633;
}

.app-family-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #57bfff;
  font-size: 6px;
  font-weight: 750;
}

.app-family-title span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-family-title svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.app-family-title small {
  color: #7e8d99;
  font-size: 5px;
}

.app-profiles {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.app-profiles > div {
  display: grid;
  width: 52px;
  padding: 6px;
  border-radius: 10px;
  background: #213342;
  text-align: center;
  place-items: center;
}

.app-profiles span {
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #f58a58, #e85b74);
  font-size: 8px;
  font-weight: 800;
  place-items: center;
}

.app-profiles > div:nth-child(2) span {
  background: linear-gradient(135deg, #4ca9f0, #6b6fe8);
}

.app-profiles b {
  margin-top: 3px;
  font-size: 6px;
}

.app-profiles em {
  color: #8193a1;
  font-size: 4.5px;
  font-style: normal;
}

.app-action-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 14px;
  background: #172633;
}

.app-action-list > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.app-action-list > div > span {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: white;
  place-items: center;
}

.app-action-list span.blue { background: #159fe9; }
.app-action-list span.green { background: #2bc85b; }
.app-action-list span.amber { background: #f0a11b; }

.app-action-list svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.app-action-list p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.app-action-list b { font-size: 6px; }
.app-action-list small { color: #718594; font-size: 4.7px; }

.app-parent-nav,
.mock-nav,
.child-nav {
  border-top-color: rgba(124, 166, 193, 0.1);
  background: rgba(25, 42, 56, 0.98);
}

.mock-nav i { border-color: #748899; }

.mock-nav i:first-child {
  border-color: #2ca9ff;
  background: rgba(44, 169, 255, 0.18);
}

.child-screen {
  background: linear-gradient(165deg, #168fd1 0 28%, #10202c 28.1%);
}

.kid-card,
.reward-teaser {
  color: #eef5fa;
  background: #172936;
}

.kid-progress,
.kid-task {
  border-color: rgba(147, 184, 207, 0.12);
  background-color: transparent;
}

.kid-task small,
.reward-teaser small { color: #8295a3; }

.reward-teaser > span {
  color: #ffbd40;
  background: rgba(255, 178, 38, 0.13);
}

.floating-card {
  border-color: rgba(112, 184, 228, 0.18);
  color: #edf6fb;
  background: rgba(18, 34, 47, 0.88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.floating-card small { color: #8093a1; }

.floating-icon.coral {
  color: #4cbaff;
  background: rgba(44, 169, 255, 0.14);
}

.floating-icon.blue {
  color: #4ce07d;
  background: rgba(54, 211, 106, 0.13);
}

.quick-proof { margin-top: 24px; }

.quick-proof > div,
.quick-proof > div:last-child {
  border-color: rgba(131, 177, 207, 0.13);
  background: rgba(17, 32, 45, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.quick-proof b {
  color: #45b5fb;
  font-family: inherit;
  font-style: normal;
}

.quick-proof span { color: #9babb7; }
.quick-proof svg { color: #42d574; }

.section { padding: 108px 0; }
.apps-section { background: #0b1721; }

.features-section {
  background:
    radial-gradient(circle at 85% 14%, rgba(44, 169, 255, 0.08), transparent 28rem),
    #08131d;
}

.steps-section,
.faq-section { background: #0b1721; }
.download-section { background: #08131d; }

.section-heading h2,
.steps-copy h2 { font-size: clamp(40px, 4.5vw, 61px); }
.section-heading.centered > p { color: #91a3b2; }

.app-card {
  min-height: 590px;
  border: 1px solid rgba(134, 181, 210, 0.12);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.app-card-parent {
  background:
    radial-gradient(circle at 88% 18%, rgba(44, 169, 255, 0.22), transparent 17rem),
    linear-gradient(145deg, #132536, #101d2a);
}

.app-card-child {
  background:
    radial-gradient(circle at 88% 18%, rgba(54, 211, 106, 0.18), transparent 17rem),
    linear-gradient(145deg, #132b2d, #101f27);
}

.app-label {
  color: #57beff;
  background: rgba(44, 169, 255, 0.12);
}

.app-card-child .app-label {
  color: #54df82;
  background: rgba(54, 211, 106, 0.12);
}

.app-card h3 { color: #f3f8fb; }
.app-card-copy > p,
.check-list { color: #91a4b3; }

.check-list li span {
  color: #45d976;
  background: rgba(54, 211, 106, 0.13);
}

.text-link { color: #53bdff; }
.app-card-child .text-link { color: #52df81; }

.art-circle {
  border-color: rgba(103, 191, 245, 0.14);
  background: rgba(42, 154, 222, 0.1);
}

.app-card-child .art-circle { background: rgba(47, 194, 96, 0.1); }

.art-phone {
  border-color: #304555;
  background: #0a141d;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
}

.art-profile span,
.art-kid-star { background: #219fe9; }
.art-chart { background: #182a37; }
.art-chart i,
.art-row i { background: #3bb5ff; }
.art-row,
.art-task { background: #172734; }
.art-row span,
.art-kid-title,
.art-task i { background: #607889; }

.art-badge {
  border-color: rgba(142, 190, 219, 0.16);
  color: #eef7fb;
  background: rgba(20, 36, 49, 0.92);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
}

.feature-card {
  min-height: 370px;
  border-color: rgba(125, 174, 204, 0.13);
  color: #eff6fb;
  background: #111f2c;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.25);
}

.feature-card::after { box-shadow: 0 0 24px currentColor; }

.feature-coral {
  background:
    radial-gradient(circle at 88% 50%, rgba(44, 169, 255, 0.11), transparent 18rem),
    #111f2c;
}

.feature-mint { background: linear-gradient(145deg, #11242b, #101e2a); }
.feature-sand { background: linear-gradient(145deg, #17232b, #111e2a); }

.feature-blue {
  background:
    radial-gradient(circle at 86% 50%, rgba(91, 126, 255, 0.12), transparent 18rem),
    #111f2c;
}

.feature-card h3 { color: #f1f7fb; }
.feature-card p { color: #91a3b1; }
.feature-number { color: #5f7686; }

.feature-icon,
.feature-coral .feature-icon,
.feature-mint .feature-icon,
.feature-sand .feature-icon,
.feature-blue .feature-icon {
  color: #54beff;
  background: rgba(44, 169, 255, 0.12);
}

.feature-mint .feature-icon {
  color: #4bdf7d;
  background: rgba(54, 211, 106, 0.12);
}

.feature-sand .feature-icon {
  color: #ffbd45;
  background: rgba(255, 178, 38, 0.12);
}

.mini-missions,
.reward-bubble,
.control-stack > div,
.chat-preview {
  border: 1px solid rgba(126, 177, 208, 0.1);
  color: #e9f2f7;
  background: #172936;
}

.mini-missions > div { border-color: rgba(131, 174, 201, 0.1); }
.mini-check { border-color: #526b7c; }

.mini-check.done {
  border-color: #36d36a;
  background: #2ac55a;
}

.reward-bubble small,
.chat-preview small { color: #7f92a0; }

.reward-bubble > span {
  color: #ffb226;
  background: rgba(255, 178, 38, 0.14);
}

.control-stack { margin-top: 24px; }

.control-stack span {
  color: #ffbd45;
  background: rgba(255, 255, 255, 0.035);
}

.control-stack i { background: #2ca9ff; }
.chat-avatar { background: #765ee9; }

.chat-preview i {
  color: #56c4ff;
  background: rgba(44, 169, 255, 0.12);
}

.steps-list::before { background: rgba(95, 145, 176, 0.22); }

.steps-list li {
  border: 1px solid rgba(125, 174, 204, 0.12);
  background: #111f2c;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.steps-list li > span {
  color: white;
  background: #1ca2eb;
}

.steps-list li:nth-child(2) > span { background: #2abd5a; }
.steps-list li:nth-child(3) > span { background: #6d6ee8; }
.steps-list h3 { color: #eef5fa; }
.steps-list p { color: #8194a3; }

.download-panel {
  border: 1px solid rgba(101, 198, 255, 0.22);
  background:
    radial-gradient(circle at 78% 26%, rgba(92, 216, 255, 0.24), transparent 22rem),
    linear-gradient(135deg, #0c80c2, #12699f 55%, #124e75);
  box-shadow: 0 34px 90px rgba(0, 66, 105, 0.34);
}

.download-content > p,
.store-note { color: rgba(236, 247, 253, 0.76); }

.store-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
  background: rgba(7, 20, 30, 0.78);
}

.store-button:hover { background: #0a1620; }

.download-phone {
  border-color: #334b5b;
  background: #0c1923;
}

.download-phone.front span,
.download-phone.back span {
  color: #58c2ff;
  background: rgba(44, 169, 255, 0.14);
}

.faq-list details {
  border-color: rgba(125, 174, 204, 0.13);
  background: #111f2c;
}

.faq-list summary { color: #eaf3f8; }
.faq-list details p { color: #8fa2b0; }
.faq-list summary span,
.faq-list summary span::after { background: #48b7fb; }

.site-footer {
  border-top-color: rgba(129, 175, 204, 0.12);
  color: #8fa1af;
  background: #071019;
}

.footer-links b { color: #e8f1f6; }
.footer-links a:hover,
.footer-links a:focus-visible { color: #4bb9ff; }
.footer-bottom { border-top-color: rgba(129, 175, 204, 0.1); }

@media (max-width: 1080px) {
  .hero-grid { gap: 0; }
  .hero-visual { transform: scale(0.84); transform-origin: center right; }
  .feature-card { min-height: 410px; }
}

@media (max-width: 900px) {
  .js .main-nav {
    color: #c4d1db;
    background: rgba(7, 17, 25, 0.99);
  }

  .hero { padding-top: 126px; }
  .hero-copy { max-width: 760px; }

  .hero-visual {
    width: 650px;
    height: 610px;
    margin: 28px auto -32px;
    transform: scale(0.9);
    transform-origin: center;
  }

  .feature-card { min-height: 420px; }
}

@media (max-width: 640px) {
  .site-header { padding: 9px 0; }
  .header-inner { padding: 7px 8px 7px 13px; }
  .hero { padding: 105px 0 44px; }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(41px, 12vw, 52px);
    line-height: 1;
  }

  .hero-lead { font-size: 15px; }

  .hero-actions .button-secondary {
    color: #aebdca;
    background: transparent;
  }

  .hero-visual {
    width: 650px;
    height: 335px;
    margin: 4px 0 0 calc((100% - 650px) / 2);
    scale: 0.52;
    transform: none;
    transform-origin: top center;
  }

  .hero-visual::before {
    width: 520px;
    height: 520px;
  }

  .quick-proof { margin-top: 8px; }

  .quick-proof > div,
  .quick-proof > div:last-child {
    min-height: 72px;
    padding: 11px;
  }

  .section { padding: 78px 0; }

  .section-heading h2,
  .steps-copy h2 { font-size: 39px; }

  .app-card {
    min-height: 670px;
    border-radius: 26px;
  }

  .feature-card,
  .feature-sand { min-height: 0; }

  .feature-card { padding: 27px; }

  .feature-coral,
  .feature-blue { min-height: 430px; }

  .control-stack { margin-top: 24px; }
  .download-panel { border-radius: 27px; }
  .store-button { background: rgba(7, 20, 30, 0.86); }
}
