/* Yalkut pages (philtech.app/yalkut/, and the privacy, terms and support pages). Tokens, base type, buttons, nav, hero
   shell, section spacing, footer, reveals and the Hebrew font overrides are in ../common.css, loaded first. The features
   grid, steps, trust band, FAQ and CTA follow the Budget and Forms pages, so the product pages read as one family.
   (style.css in this folder belongs to the invite helper, join.html, and is not loaded here.) */

.hero .eyebrow .bag { font-size: 18px; letter-spacing: 0; }
.num, .money { font-variant-numeric: tabular-nums; }
.money { direction: ltr; unicode-bidi: isolate; }

/* Hero: the child's Today screen, in a phone. main.js ticks the tasks one by one, the ring fills and the cheer shows,
   on a loop that pauses off screen and in background tabs; without motion (or without the script) it stays still. */
.phone-wrap { display: grid; justify-items: center; gap: 14px; animation: rise 900ms 200ms var(--ease-out) both; }
.phone { width: min(340px, 100%); background: #14161f; outline: 1px solid var(--line); border-radius: 46px; padding: 12px; box-shadow: var(--shadow); }
.screen { position: relative; overflow: hidden; background: var(--paper); border-radius: 36px; padding: 26px 20px 22px; display: grid; gap: 12px; font-family: Heebo, system-ui, sans-serif; }
.scr-head { display: flex; justify-content: space-between; align-items: baseline; }
.scr-head b { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.scr-head small { color: var(--ink-3); font-size: 13px; }
.hello { margin: -6px 0 0; color: var(--ink-2); font-size: 15px; }
.ringbox { position: relative; width: 132px; height: 132px; justify-self: center; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 700ms var(--ease-out); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-num b { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-num small { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.left { margin: 0; text-align: center; font-weight: 700; font-size: 16px; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; font-size: 14px; }
.tasks .t { flex: 1; min-width: 0; transition: color 250ms ease; }
.tasks .t b { display: block; font-size: 15px; }
.tick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--ink) 25%, var(--line)); display: grid; place-items: center; transition: background-color 200ms ease, border-color 200ms ease, transform 300ms var(--ease-out); }
.tick::after { content: "✓"; color: var(--on-teal); font-weight: 800; font-size: 16px; opacity: 0; transform: scale(.4); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.tasks li.done .tick { background: var(--teal); border-color: var(--teal); transform: scale(1.08); }
.tasks li.done .tick::after { opacity: 1; transform: none; }
.tasks li.done .t { color: var(--ink-3); text-decoration: line-through; }
.tasks .new { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); }
.exam { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.ready { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ready i { display: block; height: 100%; width: 70%; border-radius: 4px; background: var(--accent); }
.cheer { position: absolute; inset-inline: 16px; bottom: 16px; background: var(--teal); color: var(--on-teal); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.cheer span { font-size: 26px; }
.cheer.on { opacity: 1; transform: none; transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
.phone-note { margin: 0; font-size: 13px; color: var(--ink-3); }

/* Features: a bento grid, as on the Budget page; emoji instead of line icons, as in the app */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feat { position: relative; grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.feat.wide { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.feat.half { grid-column: span 3; }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; font-size: 24px; line-height: 1; }
.feat h3 { font-size: 24px; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 16px; }
.soon { position: absolute; top: 24px; inset-inline-end: 24px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
@media (max-width: 920px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .feat, .feat.half { grid-column: span 1; }
  .feat.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .feat, .feat.half, .feat.wide { grid-column: span 1; }
  .feat.wide { grid-template-columns: 1fr; }
}
.vis { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 14px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 8px; }
.vis p { margin: 0; }

/* The timetable: one day, a tag on the lesson with homework or an exam */
.tt-day, .rd-head, .mail-head { font-weight: 700; color: var(--ink-3); font-size: 13px; }
.tt-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.tt-row small { width: 40px; flex: none; color: var(--ink-3); font-weight: 600; }
.tt-row.brk { background: transparent; border-style: dashed; color: var(--ink-3); }
.tt-row.end { background: var(--teal-soft); border-color: transparent; color: var(--teal); }
.tg { margin-inline-start: auto; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); white-space: nowrap; }
.tg.ex { background: var(--teal-soft); color: var(--teal); }

/* The readiness check: a topic a row, an emoji each, and the verdict */
.rd-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.rd-row .em { font-size: 22px; line-height: 1; }
.rd-out { text-align: center; font: 800 22px/1.2 var(--display); color: var(--teal); padding-top: 4px; }

/* The parents' dashboard: a card per child */
.kid { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kid .av { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 20px; }
.kid div { display: grid; min-width: 0; }
.kid small { color: var(--ink-3); font-size: 12px; }
.rd-chip { margin-inline-start: auto; font-size: 22px; }

/* A school email turned into a suggestion the parent approves */
.mail-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.mail-card small { color: var(--ink-3); }
.mail-act { display: flex; gap: 8px; margin-top: 8px; }
.mail-act span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.mail-act .yes { background: var(--teal); color: var(--on-teal); }
.mail-act .no { border: 1px solid var(--line); color: var(--ink-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--line); transform-origin: left; }
:lang(he) .steps::before { transform-origin: right; }
.js .steps::before { transform: scaleX(0); transition: transform 1100ms var(--ease-in-out); }
.js .steps.in::before { transform: none; }
.step { padding-block-start: 32px; padding-inline-end: 28px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font: var(--display-w) 56px/1 var(--display); color: var(--accent); margin-bottom: 14px; }
.step p { color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step + .step { margin-top: 8px; } }

/* Pricing: one plan */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 44px; box-shadow: var(--shadow-sm); }
.price-main { display: grid; justify-items: start; gap: 6px; }
.amount { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.amount b { font: var(--display-w) clamp(48px, 6vw, 64px)/1 var(--display); letter-spacing: -.02em; }
.amount span { color: var(--ink-2); font-size: 18px; }
.free { margin: 0 0 18px; font-weight: 700; color: var(--teal); font-size: 18px; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.price-list li { padding-inline-start: 28px; position: relative; color: var(--ink-2); }
.price-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--teal); font-weight: 800; }
.price-list a { color: var(--teal); font-weight: 600; }
@media (max-width: 820px) { .price { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; } }

/* Privacy: the dark band, with the facts beside the heading */
.trust { background: var(--band-bg); color: var(--band-ink); border-radius: 28px; padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.trust-head p:not(.eyebrow) { opacity: .75; margin: 16px 0 0; font-size: 18px; }
.trust-head .more { opacity: 1 !important; }
.trust .more a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.facts li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); }
.facts b { font-size: 17px; }
.facts span { opacity: .75; font-size: 15px; }
@media (max-width: 920px) { .trust { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; } }
@media (max-width: 600px) { .trust { padding: 36px 20px; border-radius: 22px; } .facts { grid-template-columns: 1fr; } }

/* FAQ. Where the browser can animate to height:auto (::details-content), the answer opens instead of jumping. */
.faq { interpolate-size: allow-keywords; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq details:first-child { padding-top: 6px; }
@media (max-width: 820px) { .faq-wrap { display: block; } .faq-wrap .sec-head { position: static; margin-bottom: 28px; } }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent); flex: none; transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 300ms var(--ease-out), opacity 250ms ease, content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 760px; margin: 0 auto 18px; }
.cta p:not(.eyebrow) { color: var(--ink-2); max-width: 560px; margin: 0 auto 32px; }

/* The privacy, terms and support pages: one readable column */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.doc .updated { color: var(--ink-3); font-size: 15px; margin: 0 0 36px; }
.doc .lede { margin: 0 0 12px; max-width: none; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-inline-start: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--teal); font-weight: 600; }
.doc .path { font-weight: 700; color: var(--ink); white-space: nowrap; }
/* A Settings path with its translations is wider than a phone: kept on one line there, it widened the page */
@media (max-width: 600px) { .doc .path { white-space: normal; } }
.doc .note { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 28px 0 0; }
.doc .faq { margin-top: 12px; }
.doc .back { margin-top: 48px; }

/* Reduced motion, this page's part: common.css already drops the shared movement */
@media (prefers-reduced-motion: reduce) {
  .phone-wrap { animation: none; }
  .ring .fill, .tick, .tick::after, .tasks .t, .cheer, .cheer.on { transition: none; }
  .tasks li.done .tick, .cheer { transform: none; }
  .js .steps::before { transform: none; transition: none; }
  .faq summary::after, .faq details::details-content { transition: none; }
}
