/* Home only (plan CHILD-SALES-001, row T-1, lane A). Shared look and tokens: sales.css. */

/* ---------- hero ---------- */
/* the hero sits on the page colour itself, so no colour line shows where it ends;
   both hero pictures are cut with clear, faded edges and carry the painted phone of the design */
.hero { padding: 40px 0 0; overflow: hidden; }
.hero-in { display: grid; gap: 14px; }
.hero-text { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: 36px; line-height: 1.04; }
.mark-under { position: relative; white-space: nowrap; }
.mark-under::after { content: ""; position: absolute; left: 2%; right: 8%; bottom: -5px; height: 6px; border-radius: 6px; background: var(--sun); transform: rotate(-1.5deg); }
.hero-sub { margin: 20px auto 22px; max-width: 336px; font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.hero-text .btn { min-width: 176px; min-height: 32px; padding: 0 22px; font-size: 19px; }
.hero-art { position: relative; margin: 0 calc(-1 * var(--edge)); }
.hero-pic { position: relative; container-type: inline-size; }
.hero-pic img { width: 100%; }
.hero-pic-d, .only-d { display: none; }
@media (min-width: 900px) {
  .hero-pic-d { display: block; }
  span.only-d { display: inline; }
  .hero-pic-m, .only-m { display: none; }
}
/* phone: the red dashed route leaves the School 08:02 chip and runs down the left edge, behind the content and
   outside the cards, into the coral band, where it turns white and meets the path in the drawing (as .pr-route on Prices) */
@media (max-width: 899px) {
  main { position: relative; z-index: 0; }
  main::before { content: ""; position: absolute; z-index: -1; left: 8px; top: 0; bottom: 0; width: 2.5px; background: repeating-linear-gradient(180deg, #e0503f 0 6px, transparent 6px 10px); }
  .hero { background: var(--ground); }
  .hero-pic-m::after { content: ""; position: absolute; left: 0; top: 83.4%; bottom: 0; width: 26px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M24 1C14 3 9.25 12 9.25 30' fill='none' stroke='%23e0503f' stroke-width='2.5' stroke-dasharray='6 4'/%3E%3C/svg%3E") 0 0 / 26px 30px no-repeat,
      repeating-linear-gradient(180deg, #e0503f 0 6px, transparent 6px 10px) 8px 30px / 2.5px calc(100% - 30px) no-repeat; }
  .home-band { position: relative; }
  .home-band::before { content: ""; position: absolute; z-index: 1; left: 8px; top: 0; bottom: 15vw; width: 2.5px; background: repeating-linear-gradient(180deg, #fff 0 6px, transparent 6px 10px); }
}
.chip-on { position: absolute; justify-content: center; gap: 0.3em; padding: 0; background: transparent; box-shadow: none; font-size: var(--fs); }
.chip-on svg { width: 0.9em; height: 1.15em; }

/* the phone is painted in the picture; this box lies exactly over it and names it for screen readers */
.phone { position: absolute; left: 72.07%; top: 16.57%; width: 19.64%; height: 77.35%; }
.phone > * { visibility: hidden; }
.phone-house { display: none; }

@media (min-width: 900px) {
  .hero { padding: 0; }
  .hero-in { grid-template-columns: minmax(380px, 470px) 1fr; align-items: center; gap: 24px; }
  .hero-text { text-align: left; padding: 8px 0 24px; }
  .hero h1 { font-size: 62px; line-height: 1.08; }
  .mark-under::after { bottom: -8px; height: 8px; }
  /* fix round 6: the lead at 26 px, bold, in a 370 px column, three painted lines, clear of the picture */
  .hero-sub { margin: 26px 0 30px; max-width: 370px; font-weight: 700; font-size: 26px; line-height: 1.3; }
  .hero-text .btn { min-width: 306px; min-height: 69px; font-size: 41px; }
  /* fix round 5: the picture 20 px lower, and the hero on the warm cream of the design, blending into the page */
  .hero { background: linear-gradient(180deg, var(--cream) 0, var(--cream) 82%, var(--ground) 100%); }
  .hero-art { top: 20px; margin: 0 calc(-1 * var(--edge)) 0 clamp(-196px, calc(-40px - (100vw - 1200px) * 0.65), -40px); }
  .phone { left: 72.06%; top: 20.33%; width: 20.67%; height: 68.69%; }
}

/* ---------- the moments that worry parents ---------- */
/* fix round 4: the seen gaps on the scale: phone 48 above and below the section (were about 60 and 54 from the
   painted edge to the letters), computer 96 under the hero picture (was about 126) */
@media (max-width: 899px) {
  .moments { padding-top: calc(var(--gap-sec) - 12px); }
  .how-home { padding-top: calc(var(--gap-sec) - 6px); }
}
@media (min-width: 900px) { .moments { padding-top: calc(var(--gap-sec) - 28px); } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.moment-list { display: grid; gap: var(--gap-item); }
.moment { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.moment-bad { border: 2px solid var(--coral); }
/* the painting fades into the white card, no hard line where it ends */
.scene { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 68%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 68%, rgba(0, 0, 0, 0) 100%); }
.moment-body { margin-top: -18px; position: relative; }
.moment-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: var(--pad-card); }
.moment-body h3 { font-size: 22px; white-space: nowrap; }
.moment-body > p { color: var(--text-soft); font-weight: 700; }
.alert { margin-top: auto; padding: 12px 14px; border-radius: 16px; background: #f4f6fb; border: 1px solid var(--line); }
/* side by side, the notices keep one height; stacked, each notice is only as tall as its words */
@media (min-width: 640px) { .alert p { min-height: 2.7em; } }
.moment-bad .alert { background: var(--coral-soft); border-color: #f6c4ba; }
.alert-app { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-soft); }
.alert-app svg { width: 22px; height: 14px; }
.alert-app time { margin-left: auto; font-weight: 700; }
.alert p { margin-top: 4px; font-weight: 800; font-size: 15px; line-height: 1.35; }
@media (min-width: 640px) { .moment-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .moment-body h3 { font-size: 24px; } }
@media (min-width: 1200px) { .moment-list { grid-template-columns: repeat(4, 1fr); } .moment-body h3 { font-size: 21px; } }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-item); }
.steps li { display: flex; align-items: center; gap: 16px; font-weight: 800; }
.num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--navy); font-weight: 900; font-size: 16px; }
.num-sun { background: var(--sun); }
.num-leaf { background: #5da640; color: var(--white); } /* white on this green 3.00 to 1 (was #6cc04a, 2.26 to 1) */
.num-coral { background: var(--coral); color: var(--white); }
.more-row { margin: 0; }
/* fix round 5, phone: small steps as painted (text 14 px, rows 29 px apart, not links, so no 44 px rows) */
@media (max-width: 899px) {
  .steps { gap: 7px; }
  .steps li { gap: 12px; font-size: 14px; line-height: 1.3; }
  .num { width: 22px; height: 22px; font-size: 12.5px; }
  /* fix round 5: "How it works" and "What you get" about 20 percent smaller, as painted ("Prices" and "Questions"
     are painted at the size they have, so they stay) */
  .how-home h2, .get h2 { font-size: 25px; }
}
/* fix round 5, computer: section headings about 30 percent larger (the hero heading stays) */
@media (min-width: 900px) {
  .how-home h2, .get h2, .prices-home h2, .questions-home h2 { font-size: 58px; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); text-align: center; }
  /* fix round 5: circles 74 px, step titles 38 px on two centred lines, as final5/index-1440.png */
  .steps li { flex-direction: column; gap: 8px; font-size: 36px; line-height: 1.1; text-wrap: balance; }
  .link-more { font-size: 30px; }
  .num { width: 74px; height: 74px; font-size: 40px; }
  .how-home .more-row { text-align: center; }
}

/* ---------- what you get ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-item); }
.tile { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 150px; padding: 20px 12px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; font-weight: 800; line-height: 1.25; }
.tile img { width: 104px; height: 76px; object-fit: contain; }
/* fix round 4: phone tiles about 125 px tall with icons about 62 px, as the design (were 166 and 90) */
@media (max-width: 899px) {
  .tile { min-height: 0; gap: 6px; padding: 10px 10px 14px; font-size: 15px; text-wrap: balance; }
  /* fix round 5: the phone icon set cut from final5/index-390.png, shown at its painted size in a 62 px row */
  .tile picture { display: grid; place-items: center; height: 62px; }
  .tile img { width: auto; height: auto; max-width: 100%; }
}
/* fix round 4: computer labels 30 px on two lines, as the design (were 26 px on one line) */
@media (min-width: 900px) {
  /* fix round 5: labels one step up (30 to 35 px) */
  .tile { grid-template-columns: 180px 1fr; justify-items: start; align-items: center; min-height: 160px; padding: var(--pad-card); text-align: left; font-size: 35px; line-height: 1.2; }
  .tile picture { display: block; }
  .tile span { max-width: 8.6em; text-wrap: balance; }
  .tile img { width: 172px; height: 110px; }
}

/* ---------- for the whole family, safe and fair ---------- */
/* the pictures are cut from the designs with clear, soft edges; the Park chip sits on the white pill painted under the bench */
.duo { display: grid; gap: var(--gap-sec); }
.duo-card h2 { margin-bottom: 14px; }
.duo-row { display: grid; grid-template-columns: 1fr 170px; gap: 4px; align-items: start; }
.duo-row .checks { order: -1; gap: 7px; font-size: 13.5px; line-height: 1.3; }
/* fix round 5, phone: plain green ticks as painted (no filled circle), in the two cards and the price cards */
@media (max-width: 899px) {
  main .checks li { padding-left: 22px; }
  main .checks li::before { top: 0.18em; width: 16px; height: 13px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M4 17l10 10L36 5' fill='none' stroke='%2346b83c' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  main .checks li::after { display: none; }
}
.duo-pic { position: relative; container-type: inline-size; }
.duo-pic img { width: 100%; }
.duo-pic-family { margin: -22px -16px 0 0; }
.duo-sun .duo-row { grid-template-columns: 1fr 130px; align-items: center; }
.duo-pic-safe { margin-right: calc(-1 * var(--edge)); }
.duo-chip { left: 9.63%; top: 73.61%; width: 66.31%; height: 21.94%; --fs: 8.4cqw; }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; gap: var(--gap-item); }
  .duo-card { overflow: hidden; padding: var(--pad-card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1.5px solid var(--line); }
  .duo-green { background: linear-gradient(135deg, #eef8d6, #f3f9e2); }
  .duo-sun { background: linear-gradient(135deg, #fdf4d6, #fef6dc); }
  /* fix round 5: card heading and list one step up (44 to 50, 24 to 28) */
  .duo-card h2 { margin-bottom: 8px; font-size: 50px; }
  .duo-row, .duo-sun .duo-row { grid-template-columns: 296px 1fr; gap: 12px; align-items: start; }
  .duo-sun .duo-row { grid-template-columns: 250px 1fr; gap: 28px; }
  .duo-row .checks { order: 0; font-size: 26px; line-height: 1.18; padding-top: 8px; }
  .duo-pic-family { margin: 0 0 calc(-1 * var(--pad-card)) calc(-1 * var(--pad-card) + 4px); width: 324px; }
  .duo-pic-safe { margin: 0 0 calc(-1 * var(--pad-card)) -6px; width: 274px; }
  .duo-chip { left: 2.12%; top: 73.19%; width: 70.63%; height: 18.67%; --fs: 8.2cqw; }
  .duo > * { min-width: 0; }
}
/* fix round 5, phone: the red route bends at "For the whole family" as painted: it leaves the left edge, runs right
   under the picture into the Park chip, and starts again under it back to the left edge. A strip of the page colour
   hides the straight route there. */
@media (max-width: 899px) {
  .duo-green { position: relative; }
  .duo-green::after { content: ""; position: absolute; z-index: 0; pointer-events: none; left: calc(-1 * var(--edge)); bottom: -78px; width: 240px; height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 150'%3E%3Crect x='0' y='0' width='17' height='150' fill='%23fbf4ea'/%3E%3Cpath d='M9.25 0V22C9.25 52 18 70 50 70H190C206 70 214 66 216 56' fill='none' stroke='%23e0503f' stroke-width='2.5' stroke-dasharray='6 4'/%3E%3Cpath d='M46 88C20 90 9.25 104 9.25 128V150' fill='none' stroke='%23e0503f' stroke-width='2.5' stroke-dasharray='6 4'/%3E%3C/svg%3E") 0 0 / 240px 150px no-repeat; }
  .duo-green .duo-pic { z-index: 1; }
}
/* between the phone and the computer the two cards stack, so nothing runs past the window (T-1S) */
@media (min-width: 900px) and (max-width: 1199px) { .duo { grid-template-columns: 1fr; } }

/* ---------- prices ---------- */
.plans { display: grid; gap: var(--gap-item); }
.plan { display: grid; align-content: start; gap: 12px; }
.plan h3 { font-size: 24px; }
.plan-price { font-size: 26px; font-weight: 900; line-height: 1.1; }
.plan-alt { font-weight: 800; color: var(--text-soft); }
.plan .checks { margin: 8px 0 12px; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-pic { display: none; }
.plan-family { border: 2px solid var(--coral); }
.badge { justify-self: start; padding: 4px 14px; border-radius: 999px; background: var(--sun); font-weight: 900; font-size: 15px; }
/* fix round 5, phone: label and price tight, list 14 px on 21 px rows, the year line dark navy */
@media (max-width: 899px) {
  .plan h3 + .plan-price { margin-top: -8px; }
  .plan-price + .plan-alt { margin-top: -6px; }
  .plan-alt { color: var(--navy); font-size: 14px; }
  .plan .checks { gap: 0; font-size: 14px; line-height: 1.5; }
  /* fix round 6: card label about 19 px as painted (Free 38, Family 57 px wide), badge about 118 x 22,
     26 px from the year line to the badge */
  .plan h3 { font-size: 19px; }
  .plan h3 + .plan-price { margin-top: -10px; }
  .badge { padding: 2px 7px; font-size: 12.5px; line-height: 1.4; }
  .plan-alt + .badge { margin-top: -6px; }
}
/* fix round 5, computer: card buttons 64 px tall with a 30 px label */
@media (min-width: 900px) {
  .plan .btn { min-height: 64px; font-size: 32px; }
}
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan h3 { font-size: 40px; }
  .plan-price { font-size: 48px; }
  .plan-alt { font-size: 26px; }
  .plan .checks { font-size: 22px; }
  .badge { font-size: 22px; }
  .plan-pic { display: block; justify-self: center; width: 240px; }
  .prices-home .more-row { text-align: center; }
  /* fix round 6: the card words at the painted size (measured on final5/index-1440.png): label 50, "0 dong" 62,
     the month price 52, the year line 31 dark navy, badge about 280 x 45, list 29 px on 42 px rows with 28 px plain
     ticks, button label 40; label and price tight as painted */
  .plan h3 { font-size: 50px; line-height: 1.05; }
  .plan h3 + .plan-price { margin-top: -10px; }
  .plan-price { font-size: 62px; }
  .plan-family .plan-price { font-size: 52px; }
  .plan-price + .plan-alt { margin-top: -6px; }
  .plan-alt { font-size: 33px; font-weight: 700; color: var(--navy); }
  .badge { padding: 4px 23px; font-size: 28px; line-height: 1.32; }
  .plan .checks { gap: 7px; font-size: 29px; line-height: 1.2; }
  .plan .checks li { padding-left: 44px; }
  .plan .checks li::before { top: 0.12em; width: 30px; height: 26px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M4 17l10 10L36 5' fill='none' stroke='%2346b83c' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .plan .checks li::after { display: none; }
  .plan .btn { min-height: 68px; font-size: 40px; }
  /* fix round 7: a flex column, so the button's margin-top: auto puts both card buttons on one line at the card bottom
     (in the grid with align-content: start it did nothing) */
  .plan { display: flex; flex-direction: column; gap: 12px; }
  .badge { align-self: flex-start; }
  .plan-pic { align-self: center; }
}

/* ---------- questions ---------- */
.qa { display: grid; gap: var(--gap-item); }
.qa details { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--pad-card); font-weight: 900; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 30px; line-height: 1; font-weight: 700; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 var(--pad-card) 20px; color: var(--text-soft); font-weight: 700; }
@media (min-width: 900px) {
  /* fix round 5: rows about 90 px, question text about 36 percent larger, a larger plus sign */
  .qa summary { min-height: 90px; padding-top: 14px; padding-bottom: 14px; font-size: 33px; }
  .qa summary::after { font-size: 44px; }
  /* fix round 6: a heavy drawn plus, 30 px with a 5 px stroke, as painted (a minus when open) */
  .qa summary::after { content: ""; flex: none; width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 3v24M3 15h24' stroke='%2313235b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .qa details[open] summary::after { content: ""; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M3 15h24' stroke='%2313235b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
  .questions-home .more-row { text-align: center; }
}

/* ---------- the last band ---------- */
.home-band { margin-top: var(--gap-sec); overflow: hidden; }
.band-in { display: grid; padding-top: 40px; }
.band-text p { margin: 12px 0 var(--gap-head); max-width: 13.2em; font-size: 16px; font-weight: 700; }
.band-pic { position: relative; container-type: inline-size; margin: var(--gap-head) calc(-1 * var(--edge)) 0; }
.band-pic img { width: 100%; }
.band-pic .chip-on { z-index: 2; }
/* fix round 5: the phone picture is cut without its faded sides and foot, so it runs edge to edge onto the footer */
.band-chip { left: 66.82%; top: 60.64%; width: 32.44%; height: 14.96%; --fs: 4.03cqw; }
@media (min-width: 900px) {
  .band-pic::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 18%; background: linear-gradient(90deg, var(--coral), rgba(214, 59, 42, 0)); }
  .band-chip { left: 58.91%; top: 2.96%; width: 32.07%; height: 20.71%; --fs: 3.9cqw; }
}
@media (min-width: 900px) {
  .band-in { grid-template-columns: 430px 1fr; align-items: center; padding-top: 0; }
  .band-text { padding: 40px 0; }
  /* fix round 5: heading and lead one step up, the white button about 290 by 68 with a large label */
  .band-text h2 { font-size: 56px; }
  .band-text p { max-width: none; font-size: 31px; line-height: 1.3; }
  .band-text .btn { min-width: 290px; min-height: 68px; font-size: 40px; }
  /* the picture starts 16px under the band's top edge, so the Home 17:30 chip has room above it */
  .band-pic { margin: 16px calc(-1 * var(--edge)) 0 0; }
  .band-pic img { margin: 0 0 -2px; }
}
