/* famzo.app — "Bright blocks": the app's own world, big, warm and playful (D-078). */
:root {
  --violet: #6638ee; --violet-deep: #4a22c4; --lime: #c4f04e; --ink: #1c1130; --canvas: #f3f0fa;
  --lav: #e7ddff; --mint: #e2f7b5; --sky: #dae9ff; --sun: #fff0b0; --peach: #ffe1cf; --rose: #ffdce8;
  --muted: #5b5270; --line: #e2daf2; --night: #150c29;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ---------- nav and buttons ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 24px var(--display); letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand i { font-style: normal; color: var(--lime); }
.on-light .brand i { color: var(--violet); }
.links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.links a { text-decoration: none; opacity: .88; transition: opacity .2s; }
.links a:hover { opacity: 1; }
.langs { display: flex; gap: 4px; background: rgba(255, 255, 255, .14); border-radius: 99px; padding: 4px; }
.on-light .langs { background: #fff; }
.langs a { padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; opacity: .8; }
.langs a[aria-current] { background: var(--lime); color: var(--ink); opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 16px 26px; font: 700 16px var(--body); text-decoration: none; transition: transform .25s var(--spring); border: 0; cursor: pointer; }
.btn:hover { transform: scale(1.04) rotate(-1deg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.violet { background: var(--violet); color: #fff; }

/* ---------- type ---------- */
.eyebrow { display: inline-block; font: 800 14px var(--display); background: var(--sun); padding: 6px 12px; border-radius: 9px; transform: rotate(-2deg); margin-bottom: 18px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
h2 { font-size: clamp(40px, 5.2vw, 76px); }
h2 .serif, h1 .serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--violet); }
mark { background: var(--lime); color: inherit; padding: 0 .12em; border-radius: .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-top: 20px; }
section { padding: 110px 0 0; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- hero ---------- */
.hero { padding: 20px 20px 0; }
.stage { background: var(--violet); border-radius: 48px; color: #fff; position: relative; overflow: hidden; }
.ring { position: absolute; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .09); pointer-events: none; }
.dot { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 26px 0 80px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 108px); line-height: .92; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--lime); display: inline-block; transform: rotate(-2deg); transform-origin: left; }
.hero .sub { font-size: 20px; max-width: 480px; margin: 26px 0 34px; opacity: .93; }
.cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; opacity: .78; }
.hero-art { position: relative; height: 700px; display: grid; place-items: center; }
.hero-art .phone { rotate: 5deg; }
.chip { position: absolute; border-radius: 24px; padding: 14px 18px; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.25; box-shadow: 0 24px 40px -18px rgba(20, 8, 60, .5); animation: float 6s ease-in-out infinite; display: flex; gap: 12px; align-items: center; rotate: var(--r, 0deg); }
.chip small { display: block; font-weight: 500; font-size: 12.5px; opacity: .72; }
.chip .e { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .7); flex: none; }
.sticker { position: absolute; background: var(--sun); color: var(--ink); font: 800 17px var(--display); padding: 10px 16px; border-radius: 12px; rotate: -8deg; box-shadow: 0 14px 24px -12px rgba(20, 8, 60, .6); white-space: nowrap; }

/* ---------- phone (drawn in code, like the app's Home) ---------- */
.phone { width: 300px; height: 620px; border-radius: 46px; background: #0d0718; padding: 10px; box-shadow: 0 50px 80px -30px rgba(28, 17, 48, .55), 0 0 0 2px rgba(255, 255, 255, .08) inset; position: relative; flex: none; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; margin-left: -43px; background: #0d0718; border-radius: 14px; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 37px; background: var(--canvas); overflow: hidden; padding: 54px 16px 0; position: relative; color: var(--ink); line-height: 1.3; }
.screen .date { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.screen .hello { font: 800 21px var(--display); letter-spacing: -.03em; margin: 2px 0 12px; }
.next { background: var(--violet); border-radius: 26px; padding: 16px; color: #fff; position: relative; overflow: hidden; }
.next::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .14); }
.next .tag { display: inline-block; background: var(--sun); color: var(--ink); font: 800 9.5px var(--display); padding: 3px 8px; border-radius: 6px; rotate: -4deg; }
.next b { display: block; font: 800 22px var(--display); letter-spacing: -.03em; margin-top: 8px; }
.next small { font-size: 10.5px; opacity: .85; }
.next .open { display: inline-block; margin-top: 10px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 11px; padding: 7px 14px; border-radius: 99px; }
.brief { background: var(--lav); border-radius: 22px; padding: 13px; margin-top: 10px; color: #45259e; }
.brief .top { display: flex; align-items: center; gap: 8px; font: 800 12.5px var(--display); }
.brief .sun { width: 26px; height: 26px; border-radius: 50%; background: #cdb9ff; display: grid; place-items: center; font-size: 13px; flex: none; }
.brief .listen { margin-left: auto; background: var(--ink); color: #fff; font: 700 9px var(--body); padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.brief p { font-size: 10.5px; line-height: 1.45; margin-top: 7px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile { border-radius: 20px; padding: 12px; font-size: 10px; font-weight: 600; }
.tile b { display: block; font: 800 15px var(--display); margin-top: 14px; letter-spacing: -.02em; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 50px; border-radius: 99px; background: var(--ink); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.tabbar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.tabbar i:first-child { width: 36px; height: 36px; background: var(--lime); }

/* ---------- the family day ---------- */
.day-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 44px; }
.day-head p { max-width: 330px; font-size: 18px; color: var(--muted); padding-bottom: 8px; }
.day { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.day .dash { position: absolute; left: 0; right: 0; top: 21px; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); opacity: .22; }
.stop { position: relative; }
.time { display: inline-block; background: var(--ink); color: #fff; font: 800 15px var(--display); padding: 9px 14px; border-radius: 99px; position: relative; z-index: 1; }
.card { margin-top: 18px; border-radius: 28px; padding: 22px; min-height: 262px; display: flex; flex-direction: column; transition: transform .35s var(--spring); }
.card:hover { transform: translateY(-8px) rotate(-1deg); }
.card .e { font-size: 30px; line-height: 1; }
.card h3 { font-size: 23px; line-height: 1.05; letter-spacing: -.03em; margin: 14px 0 8px; }
.card p { font-size: 14.5px; line-height: 1.45; opacity: .8; }
.who { margin-top: auto; padding-top: 16px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.who i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 11px; flex: none; }
.stop:nth-child(even) .card { margin-top: 44px; }
.card.big { background: var(--violet); color: #fff; }
.card.big p { opacity: .93; }
.card.big .who i { background: var(--lime); color: var(--ink); }

/* ---------- everything the week needs (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.cell { border-radius: 32px; padding: 30px; min-height: 250px; position: relative; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.cell h3 { font-size: 28px; line-height: 1.02; margin-bottom: 10px; }
.cell p { font-size: 16px; color: var(--muted); max-width: 420px; }
.cell .e { font-size: 34px; margin-bottom: auto; padding-bottom: 26px; line-height: 1; }
.cell.w3 { grid-column: span 3; } .cell.w2 { grid-column: span 2; } .cell.w4 { grid-column: span 4; }
.cell.tint p { color: inherit; opacity: .8; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills span { background: var(--canvas); border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; }
.pills span.on { background: var(--ink); color: #fff; }

/* ---------- KidZo ---------- */
.kidzo { padding: 110px 20px 0; }
.kidzo .stage { background: var(--night); }
.kidzo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 90px 0; }
.kidzo h2 span { color: var(--lime); }
.kidzo .lead { color: #cfc6e6; }
.promises { list-style: none; padding: 0; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promises li { background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 14px 16px; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.promises li::before { content: "✕"; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.kid-art { display: grid; place-items: center; position: relative; min-height: 640px; }
.kid-art .phone { rotate: -4deg; }
.kid .screen { background: #fff7d6; padding-top: 60px; text-align: center; }
.kid .step { font-size: 11px; font-weight: 700; color: #6b4b00; }
.kid .big-e { width: 150px; height: 150px; border-radius: 50%; background: var(--sun); margin: 26px auto 20px; display: grid; place-items: center; font-size: 74px; }
.kid .what { font: 800 27px/1.05 var(--display); letter-spacing: -.03em; padding: 0 10px; }
.kid .dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0 26px; }
.kid .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e9d98f; }
.kid .dots i.on { background: var(--ink); width: 24px; border-radius: 9px; }
.kid .buttons { display: grid; gap: 9px; padding: 0 6px; }
.kid .buttons span { border-radius: 99px; padding: 14px; font: 800 15px var(--display); }
.kid .done { background: var(--violet); color: #fff; }
.kid .later { background: #fff; }
.kid .hear { background: var(--lime); }

/* ---------- no pressure ---------- */
.calm { text-align: center; }
.calm h2 { max-width: 980px; margin: 0 auto; }
.nevers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.nevers span { background: #fff; border-radius: 99px; padding: 13px 22px; font-weight: 700; font-size: 16px; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--violet); color: var(--muted); }
.nevers span.yes { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- privacy ---------- */
.priv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.priv { background: #fff; border-radius: 28px; padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.priv .e { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex: none; }
.priv h3 { font-size: 21px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
.priv p { color: var(--muted); font-size: 15.5px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { border-radius: 36px; padding: 36px; background: #fff; display: flex; flex-direction: column; }
.plan.plus { background: var(--violet); color: #fff; position: relative; overflow: hidden; }
.plan h3 { font-size: 30px; }
.plan .price { font: 800 54px/1 var(--display); letter-spacing: -.04em; margin: 18px 0 4px; }
.plan .price small { font: 600 16px var(--body); letter-spacing: 0; opacity: .75; }
.plan .per { font-size: 14.5px; opacity: .78; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 16px; font-weight: 500; }
.plan li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; margin-top: 1px; }
.plan.plus li::before { background: var(--lime); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .trial { position: absolute; right: 26px; top: 30px; background: var(--lime); color: var(--ink); font: 800 14px var(--display); padding: 8px 14px; border-radius: 10px; rotate: 5deg; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 18px; max-width: 760px; }

/* ---------- FAQ and final call ---------- */
.faq { max-width: 860px; margin: 44px auto 0; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 22px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 800 19px var(--display); letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--canvas); display: grid; place-items: center; font-weight: 700; flex: none; transition: rotate .3s var(--spring), background .2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--lime); }
.faq p { padding: 0 0 20px; color: var(--muted); font-size: 16.5px; max-width: 700px; }
.final { padding: 110px 20px 20px; }
.final .stage { text-align: center; padding: 100px 24px; }
.final h2 { font-size: clamp(44px, 6.4vw, 96px); }
.final h2 em { font-style: normal; color: var(--lime); }
.final .cta { justify-content: center; margin-top: 34px; }

/* ---------- footer ---------- */
footer { padding: 40px 0 50px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; font-size: 14.5px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- text pages (support, privacy) ---------- */
.page-head { padding: 30px 0 10px; }
.page-head h1 { font-size: clamp(44px, 6vw, 84px); }
.page-head .lead { margin-top: 16px; }
.prose { max-width: 780px; padding: 40px 0 20px; }
.prose h2 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; margin: 44px 0 12px; }
.prose p, .prose li { font-size: 17px; color: #3a3050; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--violet); font-weight: 600; }
.contact { background: var(--violet); color: #fff; border-radius: 32px; padding: 34px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.contact h2 { font-size: 30px; margin: 0; color: #fff; }
.contact p { color: #fff; opacity: .9; margin: 6px 0 0; }
.prose .faq { margin: 20px 0 0; max-width: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .links .hide-m { display: none; }
  .hero-grid, .kidzo-grid, .day-head, .plans, .priv-grid { grid-template-columns: 1fr; }
  .hero-art { height: 680px; }
  .day { grid-template-columns: 1fr 1fr; } .day .dash { display: none; }
  .stop:nth-child(even) .card { margin-top: 18px; }
  .bento { grid-template-columns: 1fr 1fr; } .cell.w3, .cell.w2, .cell.w4 { grid-column: span 1; }
  .kidzo-grid { padding: 70px 0 40px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero, .kidzo, .final { padding-left: 10px; padding-right: 10px; }
  .stage { border-radius: 34px; }
  section { padding-top: 80px; }
  .hero-grid { padding-bottom: 40px; }
  .hero .sub { font-size: 18px; }
  .hero-art { height: 600px; scale: .9; margin: -20px -20px; }
  .chip { font-size: 13px; padding: 10px 13px; } .chip .e { width: 34px; height: 34px; font-size: 16px; }
  .day, .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .promises { grid-template-columns: 1fr; }
  .plan { padding: 28px; } .plan .trial { position: static; align-self: flex-start; margin-bottom: 14px; rotate: -2deg; }
  .btn { padding: 15px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
