/* LittleLogic homepage mockup: the sections after the story. */

/* ---------- shared two-column heads ---------- */
.an-head, .pl-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: end; margin-bottom: clamp(30px, 4vw, 60px); }
.an-head > div, .pl-head > div, .fm-head, .pr-txt { display: grid; gap: 22px; justify-items: start; }

/* ---------- anatomy of an answer: one question, four parts, three ages ---------- */
.an-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 12px 12px 12px 14px; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px rgba(29, 31, 55, .06), 0 20px 40px -28px rgba(29, 31, 55, .45); margin-bottom: clamp(14px, 1.6vw, 22px); }
.an-q { display: flex; align-items: center; gap: 13px; min-width: 0; }
.an-q span { width: 46px; height: 46px; border-radius: 15px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; flex: none; }
.an-q b { font: 800 clamp(1.3rem, 2.1vw, 1.9rem)/1.1 var(--display); letter-spacing: -.015em; padding-top: 3px; }
.an-age { position: relative; display: inline-flex; align-items: center; background: var(--warm); border-radius: 99px; padding: 5px; }
.an-age em { font: 800 .86rem/1 var(--text); color: var(--muted); padding: 0 12px 0 14px; white-space: nowrap; }
.an-age button { position: relative; z-index: 1; height: 46px; padding: 0 18px; border-radius: 99px; font: 800 .96rem/1 var(--text); white-space: nowrap; transition: color .3s; }
.an-age button[aria-pressed="true"] { color: #fff; }
.an-th { position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--tw, 100px); border-radius: 99px; background: var(--ink); transform: translateX(var(--tx, 0px)); transition: transform .55s var(--ease), width .55s var(--ease); }
.an-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.an-card { position: relative; border-radius: clamp(24px, 2.6vw, 38px); padding: clamp(20px, 2vw, 30px); background: var(--bs); display: flex; flex-direction: column; align-items: flex-start; min-height: clamp(330px, 30vw, 430px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.an-card:hover { transform: translateY(-6px); transition-duration: .5s; }
.an-n { position: absolute; right: clamp(18px, 1.8vw, 26px); top: clamp(16px, 1.7vw, 24px); font: 800 1.5rem/1 var(--display); color: var(--bd); opacity: .34; }
.an-card .badge { background: #fff; color: var(--bd); box-shadow: 0 6px 14px -8px rgba(29, 31, 55, .35); }
.an-card h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); margin: 18px 0 12px; color: var(--ink); }
.an-t { font-size: clamp(1rem, 1.14vw, 1.12rem); line-height: 1.5; font-weight: 700; color: rgba(29, 31, 55, .88); transition: opacity .28s, transform .45s var(--ease); text-wrap: pretty; }
.an-t.out { opacity: 0; transform: translateY(10px); }
.an-why { margin-top: auto; padding-top: 18px; font: 800 .82rem/1.35 var(--text); color: var(--bd); }
.c-teal { --bs: #D7F4F3; --bd: #127F7F; } .c-orange { --bs: #FFE3D3; --bd: #B8491C; } .c-purple { --bs: #E9DDF8; --bd: #63459A; } .c-pink { --bs: #FBDDE7; --bd: #A8355C; }
@media (max-width: 1100px) { .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-card { min-height: 0; } }
@media (max-width: 900px) {
  .an-head, .pl-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; }
  .an-bar { border-radius: 26px; padding: 14px; }
  .an-age { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .an-age em { grid-column: 1 / -1; padding: 6px 10px 10px; }
  .an-age button { padding: 0 6px; font-size: .9rem; height: 44px; }
  .an-th { top: auto; height: 44px; }
}
@media (max-width: 620px) { .an-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- for families ---------- */
.fm-head { max-width: 60rem; margin-bottom: clamp(36px, 4.6vw, 70px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.bc { grid-column: span 4; background: var(--cream); color: var(--ink); border-radius: clamp(24px, 2.6vw, 38px); padding: clamp(18px, 1.8vw, 26px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bc h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); padding-inline: 6px; }
.bc > p { color: var(--muted); font-size: 1rem; line-height: 1.5; padding: 0 6px 8px; }
.bc-art { height: 178px; border-radius: clamp(16px, 1.8vw, 24px); background: var(--warm); margin-bottom: 12px; display: grid; place-items: center; overflow: hidden; position: relative; }
.bc-privacy { grid-column: span 8; background: var(--ink); color: #fff; flex-direction: row; align-items: stretch; gap: clamp(18px, 3vw, 46px); padding: clamp(24px, 3vw, 46px); }
.bc-privacy .bc-txt { flex: 1.25; display: grid; gap: 16px; align-content: center; justify-items: start; }
.bc-privacy h3 { font-size: clamp(1.9rem, 3.2vw, 3.1rem); line-height: 1; padding: 0; }
.bc-privacy p { color: var(--on-ink-2); font-size: clamp(1rem, 1.25vw, 1.18rem); }
.bc-privacy .chips { margin-top: 6px; }
.bc-privacy .chips svg.i { color: var(--teal); }
.pv-art { flex: 1; position: relative; min-height: 280px; display: grid; place-items: center; }
.pv-phone { position: relative; width: 150px; height: 286px; border-radius: 30px; background: #0d0e1f; padding: 9px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 0 30px 50px -24px #000; transform: translateX(-42px) rotate(-5deg); }
.pv-list { width: 100%; height: 100%; border-radius: 22px; background: var(--cream); display: grid; align-content: start; gap: 7px; padding: 30px 9px 9px; }
.pv-list i { height: 42px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(45, 48, 71, .08); border-left: 4px solid var(--teal); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .6s var(--spring); transition-delay: calc(var(--i) * 110ms + .4s); }
.pv-list i:nth-child(2) { border-color: var(--orange); } .pv-list i:nth-child(3) { border-color: var(--purple); } .pv-list i:nth-child(4) { border-color: var(--pink); }
.bc.in .pv-list i { opacity: 1; transform: none; }
.pv-lock { position: absolute; right: -18px; bottom: 34px; width: 54px; height: 54px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(42, 191, 191, .9); transform: scale(0); transition: transform .6s var(--spring) 1.1s; }
.bc.in .pv-lock { transform: none; }
.pv-cloud { position: absolute; z-index: 2; right: -2%; top: 0; width: 104px; text-align: center; font: 800 .74rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); transform: rotate(6deg); }
.pv-cloud svg { width: 100%; overflow: visible; margin-bottom: 8px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pv-cloud .c { stroke: rgba(255, 255, 255, .4); stroke-width: 5; stroke-dasharray: 9 9; }
.pv-cloud .x { stroke: var(--orange); stroke-width: 8; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset .6s var(--inout) 1.2s; }
.bc.in .x { stroke-dashoffset: 0; }
.bc-snap .bc-art { flex: 1; min-height: 190px; height: auto; }
.snap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bc-snap:hover .snap img { transform: scale(1.06); }
.snap-q { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 16px 16px 16px 5px; padding: 9px 14px; font: 700 1rem/1.1 var(--display); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); transform: translateY(20px); opacity: 0; transition: transform .7s var(--spring) .5s, opacity .4s .5s; }
.bc.in .snap-q { transform: none; opacity: 1; }
.snap i { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 14px; background: var(--orange); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .5); }
.kids { grid-auto-flow: column; gap: 16px; justify-content: center; }
.kids span { display: grid; justify-items: center; gap: 9px; transform: translateY(16px); opacity: 0; transition: transform .7s var(--spring), opacity .4s; }
.kids span:nth-child(2) { transition-delay: .12s; } .kids span:nth-child(3) { transition-delay: .24s; }
.bc.in .kids span { transform: none; opacity: 1; }
.kids b { width: 64px; height: 64px; border-radius: 50%; background: var(--f); color: #fff; display: grid; place-items: center; font: 800 1.7rem/1 var(--display); padding-top: 4px; box-shadow: 0 0 0 5px #fff, 0 12px 20px -10px rgba(29, 31, 55, .5); }
.kids .all b { padding: 0; }
.kids b svg.i { width: 28px; height: 28px; }
.kids em { font: 800 .78rem/1 var(--text); color: var(--muted); white-space: nowrap; }
.ages { align-content: center; gap: 14px; padding: 0 16px; justify-items: stretch; }
.age-row { display: flex; justify-content: space-between; gap: 4px; }
.age-row b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 .84rem/1 var(--display); padding-top: 2px; color: var(--muted); background: #fff; transition: background .3s, color .3s, transform .5s var(--spring); }
.age-row b.on { background: var(--gold); color: var(--ink); transform: scale(1.3); }
.ages p { min-height: 2.9em; text-align: center; font: 700 .95rem/1.3 var(--display); color: var(--ink); display: grid; place-items: center; }
.ages p b { font-weight: 700; transition: opacity .25s; }
.ages p b.out { opacity: 0; }
.hands img { width: 128px; animation: orb 2.4s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.05); } }
.hands > span { position: absolute; left: 50%; top: 50%; margin: -24px 0 0 -14px; color: #D9541E; }
.hands > span svg.i { width: 30px; height: 30px; }
.hands .bars { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: flex-end; gap: 5px; height: 22px; }
.hands .bars i { width: 5px; border-radius: 3px; background: var(--orange); height: 30%; animation: bar 1.1s ease-in-out infinite alternate; }
.hands .bars i:nth-child(2) { animation-delay: -.2s; } .hands .bars i:nth-child(3) { animation-delay: -.5s; } .hands .bars i:nth-child(4) { animation-delay: -.8s; } .hands .bars i:nth-child(5) { animation-delay: -.35s; } .hands .bars i:nth-child(6) { animation-delay: -.65s; } .hands .bars i:nth-child(7) { animation-delay: -.1s; }
@keyframes bar { to { height: 100%; } }
@media (max-width: 1000px) { .bc { grid-column: span 6; } .bc-privacy, .bc-snap { grid-column: span 12; } .bc-snap .bc-art { flex: none; height: 240px; } }
@media (max-width: 700px) { .bc { grid-column: span 12; } .bc-privacy { flex-direction: column; } .pv-art { min-height: 300px; width: 100%; } .pv-cloud { right: 6%; } }

/* ---------- featured by Apple ---------- */
.pr-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 6vw, 110px); align-items: center; }
.pr-txt h2 { max-width: 11em; }
.pr-list { display: grid; gap: 12px; width: 100%; max-width: 34rem; margin-top: 8px; }
.pr-list li { display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(29, 31, 55, .06); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.pr-list li:hover { transform: translateX(8px); transition-duration: .4s; }
.pr-i { width: 50px; height: 50px; border-radius: 50%; background: var(--warm); display: grid; place-items: center; font-size: 24px; flex: none; }
.pr-i.gold { background: var(--gold-soft); color: var(--gold); }
.pr-list em { display: block; font: 900 .7rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.pr-list b { font: 700 1.25rem/1.1 var(--display); letter-spacing: -.01em; }
.pr-card { position: relative; justify-self: center; width: min(100%, 380px); }
.pr-card::before { content: ""; position: absolute; inset: -16%; background: radial-gradient(closest-side, rgba(42, 191, 191, .3), rgba(42, 191, 191, 0)); }
.pr-card img { position: relative; width: 100%; height: auto; border-radius: clamp(28px, 3vw, 42px); box-shadow: 0 0 0 7px #fff, var(--sh-card); transform: rotate(-3deg); transition: transform .8s var(--ease); }
.pr-card:hover img { transform: rotate(0deg) scale(1.02); }
@media (max-width: 900px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } .pr-card { width: min(76vw, 320px); } }

/* ---------- pricing ---------- */
.pl-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.plan { position: relative; border-radius: clamp(26px, 3vw, 44px); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; min-width: 0; }
.plan h3 { font-size: clamp(1.7rem, 2.3vw, 2.3rem); }
.pl-sub { font-weight: 700; margin-top: 4px; opacity: .72; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price b { font: 800 clamp(2.9rem, 4.4vw, 4.2rem)/.9 var(--display); letter-spacing: -.03em; display: inline-block; }
.price span { font-weight: 800; }
.price b.flip { animation: price .5s var(--ease); }
@keyframes price { 0% { opacity: 0; transform: translateY(16px) scale(.94); } }
.plan-sub { grid-row: span 2; color: #fff; padding: clamp(26px, 3.4vw, 52px); box-shadow: 0 50px 80px -44px rgba(29, 31, 55, .75); background:
  radial-gradient(70% 90% at 100% 0%, rgba(42, 191, 191, .4), rgba(42, 191, 191, .13) 45%, rgba(42, 191, 191, 0) 72%),
  radial-gradient(64% 84% at 0% 100%, rgba(155, 114, 207, .36), rgba(155, 114, 207, .12) 45%, rgba(155, 114, 207, 0) 72%), var(--ink); }
.ps-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; }
.plan-sub h3 { font-size: clamp(2rem, 3vw, 2.9rem); }
.plan-sub .price { margin-top: clamp(22px, 2.8vw, 40px); }
.plan-sub .price b { font-size: clamp(4.2rem, 8.2vw, 7.6rem); color: #FFD36B; }
.plan-sub .price span { font-size: 1.15rem; }
.plan-sub .price em { flex-basis: 100%; font-weight: 800; color: #FFD36B; margin-top: 4px; min-height: 1.6em; }
.tiles { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(8px, 1vw, 14px); margin-top: clamp(22px, 2.6vw, 36px); }
.tl { border-radius: clamp(18px, 2vw, 28px); background: rgba(255, 255, 255, .09); padding: clamp(14px, 1.5vw, 22px); display: grid; align-content: space-between; gap: 12px; transition: transform .5s var(--ease), background .3s; }
.tl:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .14); }
.tl i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tc); color: var(--ink); }
.tl span { font-weight: 800; color: var(--on-ink-2); font-size: clamp(.86rem, 1.05vw, 1rem); line-height: 1.25; }
.tl-big b { font: 800 clamp(3rem, 5vw, 4.6rem)/.8 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tl-a { --tc: var(--teal); } .tl-b { --tc: var(--orange); } .tl-c { --tc: #C9A8F2; }
.pl-inc { margin-top: 16px; color: var(--on-ink-2); font-weight: 700; }
.ps-end { display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; margin-top: auto; padding-top: clamp(22px, 2.6vw, 36px); }
.ps-end .btn { height: 64px; padding: 0 38px; font-size: 1.1rem; }
.pl-pass { flex: 1; min-width: 14em; font-weight: 700; font-size: .95rem; line-height: 1.4; color: var(--on-ink-2); }
.bill { position: relative; display: inline-flex; background: rgba(255, 255, 255, .13); border-radius: 99px; padding: 5px; }
.bill button { position: relative; z-index: 1; height: 46px; padding: 0 20px; border-radius: 99px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; transition: color .3s; white-space: nowrap; }
.bill button[aria-pressed="true"] { color: var(--ink); }
.bill-th { position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--tw, 50%); border-radius: 99px; background: #fff; transform: translateX(var(--tx, 5px)); transition: transform .55s var(--ease), width .55s var(--ease); }
.bill em { font-size: .7rem; font-weight: 900; background: var(--orange); color: var(--ink); border-radius: 99px; padding: 5px 8px; }
.plan-free { background: #D7F4F3; }
.plan-pack { background: #FFE3D3; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pc-top .price { flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; }
.counts { display: grid; gap: 9px; margin-top: clamp(18px, 2.2vw, 30px); }
.counts li { display: flex; align-items: flex-start; gap: 10px; font-weight: 800; font-size: 1rem; line-height: 1.35; }
.counts svg.i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, .8); stroke-width: 3.2; margin-top: 1px; }
.plan-free .counts svg.i { color: #127F7F; } .plan-pack .counts svg.i { color: #B8491C; }
@media (max-width: 900px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-sub { grid-row: auto; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-big { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; }
  .ps-end .btn { width: 100%; }
  .bill button { padding: 0 15px; height: 44px; }
}

/* ---------- get the app: the meadow from the same picture ---------- */
.closing { background: linear-gradient(to bottom, #FBEFE0, #F6E7D2 46%, #E9E3C6 78%); text-align: center; overflow: clip; padding-bottom: 0; }
.closing .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; }
.closing h2 { font-size: clamp(2.8rem, 7.4vw, 7rem); line-height: .96; max-width: 9em; --qc: var(--orange-deep); }
.closing .stores { justify-content: center; }
.meadow { width: 100%; height: clamp(190px, 26vw, 420px); object-fit: cover; object-position: 50% 100%; margin-top: clamp(-90px, -5vw, -30px); -webkit-mask: linear-gradient(to bottom, transparent, #000 46%); mask: linear-gradient(to bottom, transparent, #000 46%); padding-bottom: 0; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 3; background: var(--ink); color: var(--on-ink); border-radius: var(--r-sheet) var(--r-sheet) 0 0; margin-top: calc(-1 * var(--r-sheet)); padding: clamp(50px, 6vw, 90px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); overflow: clip; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.foot .brand { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { font-weight: 800; text-decoration: none; opacity: .78; transition: opacity .2s; }
.foot nav a:hover { opacity: 1; }
.foot-word { font: 800 clamp(3.6rem, 19vw, 19rem)/.86 var(--display); letter-spacing: -.045em; color: var(--ink-2); white-space: nowrap; text-align: center; margin: clamp(30px, 5vw, 70px) 0 clamp(16px, 2.6vw, 40px); -webkit-user-select: none; user-select: none; }
.foot-end { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; font-size: .9rem; color: var(--on-ink-2); }
.foot-end .fam b { color: #fff; }
