/* treehouse.ng landing page */
:root {
  --navy: #090D2B; --navy-2: #0f1440; --navy-3: #161c52;
  --pink: #FF3F9B; --blue: #12B9F5; --violet: #8b5cf6; --teal: #2dd4bf;
  --ink: #ffffff; --ink-2: #d9dcf5; --muted: #9aa0c8; --line: rgba(255,255,255,.1); --card: rgba(255,255,255,.045);
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.08; margin: 0; }
p { margin: 0 0 14px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; } .tiny { font-size: 12.5px; }
.mono { font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.link { color: #7dd3fc; text-decoration: none; font-weight: 700; }
.link:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 "Plus Jakarta Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-pink { background: linear-gradient(135deg, #ff5aa9, var(--pink) 55%, #e8338a); color: #fff; box-shadow: 0 12px 30px -12px var(--pink); }
.btn-pink:hover { box-shadow: 0 16px 36px -12px var(--pink); }
.btn-glass { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-white { background: #fff; color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: -.035em; }
.brand i { flex: none; display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--pink); margin-left: -8px; align-self: flex-end; margin-bottom: .14em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9,13,43,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 68px; padding-top: env(safe-area-inset-top); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: radial-gradient(110% 80% at 10% 0%, #2a1478 0%, #15104f 40%, var(--navy) 78%); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; }
.g1 { width: 420px; height: 420px; background: var(--pink); right: -120px; top: 40px; opacity: .28; }
.g2 { width: 360px; height: 360px; background: var(--blue); left: -140px; bottom: -120px; opacity: .22; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--pink), #c084fc 50%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.center-row { justify-content: center; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.25); color: var(--ink-2); font-weight: 700; font-size: 14.5px; line-height: 1.15; }
.store small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.store svg { width: 24px; height: 24px; fill: currentColor; opacity: .85; }
a.store { border-style: solid; border-color: color-mix(in srgb, var(--blue) 55%, transparent); color: var(--ink); text-decoration: none; }
a.store:hover { background: rgba(255,255,255,.06); }
.hero-art { position: relative; height: 560px; }
.phone { margin: 0; border-radius: 34px; padding: 8px; background: linear-gradient(160deg, #2b3170, #11163f); box-shadow: 0 30px 70px -24px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12); }
.phone img { border-radius: 27px; width: 100%; height: auto; }
.hero-art .phone { position: absolute; width: 250px; }
.p-front { left: 50%; top: 10px; transform: translateX(-10%) rotate(4deg); z-index: 2; }
.p-back { left: 50%; top: 50px; transform: translateX(-92%) rotate(-6deg); opacity: .9; }
.float { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 14px; background: rgba(15,20,64,.9); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.f1 { right: 0; bottom: 96px; }
.f2 { left: 0; top: 70px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Strip */
.strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 18px 0; color: var(--ink-2); font-size: 15px; }
.strip b { color: #fff; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); }
.kicker { margin: 0 0 10px; color: var(--pink); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; margin-bottom: 18px; }
.section h2.center { max-width: 18em; margin-inline: auto; }
.sub { color: var(--muted); max-width: 40em; margin: -6px auto 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about p { color: var(--ink-2); font-size: 17px; }
.profile { margin: 0; display: grid; gap: 0; padding: 8px 22px; }
.profile div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile div:last-child { border-bottom: 0; }
.profile dt { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.profile dd { margin: 0; font-weight: 600; }
.profile a { color: #7dd3fc; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature { --c: var(--pink); position: relative; overflow: hidden; padding: 26px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.feature::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .12; filter: blur(10px); }
.feature.violet { --c: var(--violet); } .feature.blue { --c: var(--blue); } .feature.teal { --c: var(--teal); }
.f-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; background: color-mix(in srgb, var(--c) 18%, transparent); margin-bottom: 16px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.screens figure { margin: 0; text-align: center; }
.phone.sm { border-radius: 28px; padding: 6px; }
.phone.sm img { border-radius: 23px; }
.screens figcaption { margin-top: 14px; font-weight: 700; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 26px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--violet)); font: 800 18px/1 var(--display); margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }

/* Safety */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.split > div p { color: var(--ink-2); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 16px 18px 16px 52px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.16); color: #4ade80; font-weight: 800; font-size: 14px; }
.checks b { color: #fff; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.privacy h3 { font-size: 19px; margin-bottom: 8px; }
.privacy p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* Download */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.dl-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dl-card > p { color: var(--ink-2); margin: 0; }
.dl-card.android { border-color: color-mix(in srgb, var(--pink) 45%, transparent); background: linear-gradient(160deg, rgba(255,63,155,.12), rgba(255,255,255,.03)); }
.dl-head { display: flex; gap: 14px; align-items: center; }
.dl-head h3 { font-size: 22px; }
.dl-head p { margin: 4px 0 0; font-size: 14px; }
.dl-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.08); font-size: 28px; flex: none; }
.howto summary { cursor: pointer; font-weight: 700; color: #7dd3fc; }
.howto ol, .mini { margin: 10px 0; padding-left: 22px; color: var(--ink-2); }
.howto li, .mini li { margin: 6px 0; }
.dl-card .btn { margin-top: auto; }
.dl-pair { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-pair .btn { margin: 0; justify-content: center; text-align: center; }
@media (max-width: 520px) { .dl-pair { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 34px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 500; color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Final CTA */
.final { padding: 30px 0 90px; }
.final-in { text-align: center; padding: 56px 24px; border-radius: 32px; background: radial-gradient(120% 140% at 0% 0%, #ff3f9b 0%, #8b5cf6 45%, #12B9F5 100%); box-shadow: 0 30px 70px -30px rgba(255,63,155,.6); }
.final h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; max-width: 18em; margin: 0 auto; }
.final .cta-row { margin-bottom: 0; }
.final .btn-glass { background: rgba(9,13,43,.25); border-color: rgba(255,255,255,.35); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-in p { margin-top: 12px; }
.foot-in p a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot-in p a:hover { color: #fff; }
.profile dd br + a { display: inline-block; margin-top: 4px; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 36px; align-content: start; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: #fff; }
.copy { margin-top: 26px; }

/* Tablet */
@media (max-width: 960px) {
  .hero-in, .about, .split { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .stores { justify-content: center; }
  .hero-art { height: 500px; max-width: 520px; margin: 0 auto; width: 100%; }
  .features, .privacy { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
/* Phone */
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: #090D2B; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; margin: 0; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-in { gap: 12px; }
  .brand { flex: none; font-size: 22px; }
  .nav-cta { margin-left: auto; flex: none; padding: 0 16px; }
  .nav-toggle { display: flex; flex: none; margin-right: -8px; }
  .hero { padding: 36px 0 56px; }
  .hero-art { height: 430px; }
  .hero-art .phone { width: 200px; }
  .float { font-size: 12px; padding: 8px 11px; }
  .f1 { bottom: 30px; } .f2 { top: 30px; }
  .cta-row .btn { width: 100%; }
  .section { padding: 64px 0; }
  .features, .privacy, .dl { grid-template-columns: 1fr; }
  .screens { gap: 14px; }
  .profile div { grid-template-columns: 1fr; gap: 2px; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
}
/* Narrow phones: smaller logo, and "Open treehouse" becomes "Open" so the menu button keeps its size. */
@media (max-width: 400px) {
  .nav-in { gap: 10px; }
  .brand { font-size: 19px; gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .nav-cta { padding: 0 14px; font-size: 13.5px; }
  .cta-long { display: none; }
  .dl-card { padding: 20px; }
  .dl-card .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .float { animation: none; } * { transition: none !important; } }

/* Download: direct APK and Google Play test, side by side */
.dl-card { position: relative; }
.dl-tag { position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.dl-tag.blue { background: var(--blue); color: #04122b; }
.dl-card.play { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: linear-gradient(160deg, rgba(18,185,245,.12), rgba(255,255,255,.03)); }
.dl-card.play .dl-ico svg { width: 28px; height: 28px; fill: #7dd3fc; }
.dl-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.dl-facts li { position: relative; padding-left: 24px; }
.dl-facts li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 800; }
.play-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.play-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.play-steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(18,185,245,.18); color: #7dd3fc; font-weight: 800; }
.play-steps li > div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-width: 0; }
.play-steps .btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-blue { background: linear-gradient(135deg, #3cc8f8, var(--blue)); color: #04122b; }
.dl-card.ios { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.dl-card.ios > p { margin: 0; }
.dl-card.ios .btn { margin: 0; }
@media (max-width: 900px) { .dl-card.ios { grid-template-columns: 1fr; } }
.play-steps .btn { margin-top: 0; }
