/* Ninebloom app page. Loaded after styles.css; every rule is scoped under .nb so nothing else changes. */

.nb {
  --g: #0b6e63;
  --g-dark: #08493f;
  --g-soft: #dceee9;
  --cream: #f5faf8;
  --peach: #fff4d6;
  --sun: #ffc857;
  --card: var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nb { --g: #4fbfa9; --g-dark: #8fdccb; --g-soft: #17302b; --cream: #142824; --peach: #2e2a1c; --sun: #ffd36b; }
}
:root[data-theme="dark"] .nb { --g: #4fbfa9; --g-dark: #8fdccb; --g-soft: #17302b; --cream: #142824; --peach: #2e2a1c; --sun: #ffd36b; }

.nb img { max-width: 100%; height: auto; display: block; }
.nb h1, .nb h2 { letter-spacing: -0.01em; }
.nb .kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800; color: var(--g-dark); margin: 0 0 12px; }
.nb .section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.nb .section-head h2 { margin: 0 0 0.35em; }
.nb .section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.nb section { padding: 72px 0; }
.nb .btn { background: var(--g); }
.nb .btn:hover { background: var(--g-dark); }
.nb .btn.secondary { background: transparent; }

/* Hero */
.nb .hero2 {
  position: relative; overflow: hidden; padding: 56px 0 80px;
  background: radial-gradient(1000px 500px at 85% 0%, color-mix(in srgb, var(--g) 22%, transparent), transparent 60%),
              linear-gradient(180deg, var(--g-soft), var(--bg));
}
.nb .hero2 .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.nb .hero2 h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; }
.nb .hero2 h1 em { font-style: normal; color: var(--g-dark); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 55%, transparent) 62%); }
.nb .hero2 .lead { max-width: 560px; }
.nb .soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 0.95rem; }
.nb .soon .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 30%, transparent); }
.nb .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.nb .chips li { background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.nb .stage { position: relative; min-height: 560px; }
.nb .stage::before { content: ""; position: absolute; inset: 6% 4% 2% 10%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: color-mix(in srgb, var(--g) 18%, var(--cream)); }
.nb .phone { position: absolute; width: 46%; border-radius: 26px; overflow: hidden; background: #111; padding: 6px; box-shadow: 0 30px 60px -20px rgba(8, 73, 63, 0.45), 0 8px 18px rgba(0, 0, 0, 0.12); }
.nb .phone img { border-radius: 20px; }
.nb .phone.p1 { left: 6%; top: 4%; transform: rotate(-5deg); }
.nb .phone.p2 { right: 2%; top: 14%; transform: rotate(4deg); width: 48%; }
.nb .icon-float { position: absolute; left: 0; bottom: 2%; width: 24%; z-index: 2; border-radius: 22%; box-shadow: 0 18px 30px -10px rgba(8, 73, 63, 0.55); }
.nb .bubble { position: absolute; left: 22%; bottom: 16%; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }
@media (max-width: 900px) {
  .nb .hero2 .wrap { grid-template-columns: 1fr; }
  .nb .stage { min-height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
}

/* Trust strip */
.nb .strip { padding: 0; margin-top: -28px; position: relative; z-index: 2; }
.nb .strip .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.25); overflow: hidden; }
.nb .strip .stat { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.nb .strip .stat:last-child { border-right: 0; }
.nb .strip .num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--g-dark); line-height: 1.1; }
.nb .strip .lbl { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) { .nb .strip .row { grid-template-columns: repeat(2, 1fr); } .nb .strip .stat:nth-child(2) { border-right: 0; } .nb .strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Feature rows */
.nb .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.nb .feature + .feature { margin-top: 88px; }
.nb .feature.flip .media { order: 2; }
.nb .feature h2 { margin: 0 0 0.4em; }
.nb .feature p { color: var(--muted); font-size: 1.08rem; }
.nb .ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.nb .ticks li { position: relative; padding-left: 30px; }
.nb .ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--g); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 14.4 3.6 10l1.4-1.4 3 3 7-7L16.4 6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 14.4 3.6 10l1.4-1.4 3 3 7-7L16.4 6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nb .media { position: relative; display: flex; justify-content: center; }
.nb .media .blob { position: absolute; inset: 8% 10%; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; background: var(--g-soft); }
.nb .media .shot { position: relative; width: min(300px, 70%); border-radius: 30px; padding: 7px; background: #111; box-shadow: 0 30px 60px -24px rgba(8, 73, 63, 0.5); }
.nb .media .shot img { border-radius: 24px; }
.nb .media.duo .shot { width: min(240px, 46%); }
.nb .media.duo .shot + .shot { margin-left: -6%; margin-top: 10%; }
@media (max-width: 860px) { .nb .feature { grid-template-columns: 1fr; gap: 28px; } .nb .feature.flip .media { order: 0; } .nb .feature + .feature { margin-top: 64px; } }

/* Tinted sections */
.nb .tint { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nb .cols10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.nb .col { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.nb .col:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.3); }
.nb .col img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.nb .col div { padding: 12px 14px 16px; }
.nb .col b { display: block; font-family: var(--serif); font-size: 1.02rem; }
.nb .col span { color: var(--muted); font-size: 0.85rem; line-height: 1.4; display: block; margin-top: 4px; }
@media (max-width: 960px) { .nb .cols10 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .nb .cols10 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Ways to play */
.nb .modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nb .mode { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.nb .mode h3 { margin: 0 0 6px; font-size: 1.1rem; }
.nb .mode p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.nb .mode .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-dark); margin-bottom: 8px; }
@media (max-width: 860px) { .nb .modes { grid-template-columns: 1fr; } }

/* Screenshot gallery */
.nb .gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px; scrollbar-width: thin; }
.nb .gallery figure { flex: 0 0 auto; width: 240px; margin: 0; scroll-snap-align: center; }
.nb .gallery .frame { border-radius: 28px; padding: 6px; background: #111; box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.5); }
.nb .gallery img { border-radius: 22px; }
.nb .gallery figcaption { text-align: center; margin-top: 12px; font-weight: 700; font-size: 0.95rem; }
.nb .gallery figcaption small { display: block; font-weight: 400; }
.nb .tablet { margin: 28px auto 0; max-width: 880px; padding: 10px; background: #111; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.5); }
.nb .tablet img { border-radius: 14px; }
.nb .tablet-cap { text-align: center; color: var(--muted); margin-top: 14px; }

/* Steps */
.nb .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.nb .step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; position: relative; }
.nb .step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 800; display: grid; place-items: center; }
.nb .step h3 { margin: 6px 0 6px; }
.nb .step p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .nb .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Compare / principles */
.nb .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nb .pr { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.nb .pr h3 { margin: 0 0 6px; font-size: 1.1rem; }
.nb .pr p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .nb .principles { grid-template-columns: 1fr; } }

/* Plus */
.nb .plus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.nb .plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.nb .plan.featured { border: 2px solid var(--g); background: linear-gradient(180deg, var(--g-soft), var(--card) 60%); }
.nb .plan h3 { margin: 0 0 4px; }
.nb .plan .tagline { color: var(--muted); margin: 0 0 14px; }
.nb .plan .tag { display: inline-block; background: var(--g); color: #fff; font-size: 0.74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: 0.04em; }
@media (max-width: 800px) { .nb .plus { grid-template-columns: 1fr; } }

/* FAQ */
.nb .faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.nb .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.nb .faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.nb .faq summary::-webkit-details-marker { display: none; }
.nb .faq summary::after { content: "+"; font-size: 1.4rem; color: var(--g); line-height: 1; transition: transform 0.2s; }
.nb .faq details[open] summary::after { transform: rotate(45deg); }
.nb .faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final call to action */
.nb .cta { position: relative; overflow: hidden; border-radius: 30px; color: #fff; padding: 56px 32px; text-align: center; background: linear-gradient(135deg, #12867a, #06372f); }
.nb .cta > * { position: relative; }
.nb .cta h2 { color: #fff; margin: 0 0 0.3em; }
.nb .cta p { color: #d8f2ec; max-width: 560px; margin: 0 auto 22px; font-size: 1.1rem; }
.nb .cta .btn { background: #fff; color: var(--g-dark); }
.nb .cta .btn:hover { background: var(--cream); }
.nb .cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.nb .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.nb .fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.nb .fact h3 { margin: 0 0 4px; font-size: 1rem; }
.nb .fact p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) { .nb .facts { grid-template-columns: 1fr; } }

/* Gentle entrance, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .nb .rise { animation: nb-rise 0.7s ease both; }
  .nb .rise.d2 { animation-delay: 0.12s; }
  .nb .rise.d3 { animation-delay: 0.24s; }
  .nb .phone.p1 { animation: nb-bob 7s ease-in-out infinite; }
  .nb .phone.p2 { animation: nb-bob 8s ease-in-out 1s infinite; }
  @keyframes nb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes nb-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}

/* Dark mode: a deeper backdrop behind the hero phones. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nb .stage::before { background: #17332d; }
}
:root[data-theme="dark"] .nb .stage::before { background: #17332d; }


/* Ninebloom extras: the bloom petals behind the hero and the level ladder */
.nb .petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nb .petals i { position: absolute; width: 46px; height: 46px; border-radius: 60% 0 60% 0; opacity: 0.55; }
.nb .petals i:nth-child(1) { left: 4%; top: 18%; background: #ff8fa3; transform: rotate(20deg); }
.nb .petals i:nth-child(2) { left: 46%; top: 8%; background: #ffc857; transform: rotate(-30deg); width: 30px; height: 30px; }
.nb .petals i:nth-child(3) { right: 6%; bottom: 10%; background: #7fd1ae; transform: rotate(60deg); }
.nb .petals i:nth-child(4) { left: 38%; bottom: 6%; background: #8f82ff; transform: rotate(-12deg); width: 26px; height: 26px; }
.nb .ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.nb .rung { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; text-align: center; }
.nb .rung b { display: block; font-family: var(--serif); font-size: 1.08rem; }
.nb .rung span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.4; margin-top: 4px; }
.nb .rung .bar { height: 6px; border-radius: 6px; background: var(--g-soft); margin: 12px 0 0; overflow: hidden; }
.nb .rung .bar::after { content: ""; display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--g), var(--sun)); }
@media (max-width: 900px) { .nb .ladder { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .nb .ladder { grid-template-columns: repeat(2, 1fr); } }
.nb .variants { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 0; padding: 0; list-style: none; max-width: 860px; }
.nb .variants li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: 0.93rem; }
.nb .variants li.free { border-color: var(--g); color: var(--g-dark); }
