/* CalmPup site - shared styles (home, /download, /invite). Built from the approved mockup (2026-10-17,
   lib/tools_for_me/WEBSITE_PLAN.md s.8): Heebo, the measured acquisition.com type scale, the two-weight headings,
   one edge per column, one moving thing per screen. */

@font-face {
  font-family: 'Heebo'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/heebo-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/heebo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --violet: #6C55F2; --violet-deep: #5641D9; --violet-soft: #B8AEFF;
  --navy: #131628; --ink: #0E0F1A; --body: #22253A; --grey: #5E6170; --line: #E4E4E8;
  --soft: #F7F7F9; --lavender: #F3F1FD;
  --app: #7265E3; --app-start: #8B63E6; --app-text: #2D3142; --app-bg: #F4F6FA;
  --sans: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  --section: 72px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --section: 120px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--body); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
bdi { unicode-bidi: isolate; white-space: nowrap; }
.nw { white-space: nowrap; }
a { color: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 2px; }

/* nav */
.nav { background: #fff; position: relative; z-index: 3; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: .06em; color: var(--navy); }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.links { display: none; gap: 30px; font-weight: 500; font-size: 16px; color: var(--navy); }
.links a { text-decoration: none; }
.links a:hover { color: var(--violet); }
.pill { display: inline-flex; align-items: center; justify-content: center; background: var(--violet); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding-inline: 20px; min-height: 45px; border-radius: 999px; transition: background .25s; }
.pill:hover { background: var(--violet-deep); }
@media (min-width: 900px) { .links { display: flex; } }

/* type: the measured scale; headings in two weights (300 + 800) like the sections */
h1 { font-weight: 800; color: var(--ink); font-size: 50px; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
h1 .l1, h2 .l1 { font-weight: 300; }
.sub { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--grey); text-wrap: balance; }
h2 { font-weight: 800; font-size: 32px; line-height: 1.15; color: var(--navy); text-wrap: balance; }
h2 em { font-style: normal; color: var(--violet); }
.lede { margin-top: 12px; font-size: 16px; line-height: 1.45; font-weight: 300; color: var(--grey); }
@media (min-width: 900px) {
  h1 { font-size: 84px; line-height: 1.04; }
  .sub { font-size: 20px; margin-top: 22px; }
  h2 { font-size: 40px; line-height: 1.1; }
  .lede { font-size: 18px; }
}

/* the main button and the store badges (official artwork; App Store first, never animated) */
.cta-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; width: min(100%, 420px); }
.cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding-inline: 28px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 700; font-size: 20px; line-height: 1.2; text-decoration: none; box-shadow: 0 14px 30px -16px rgba(108,85,242,.95); transition: background .25s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.cta:hover { background: var(--violet-deep); transform: translateY(-2px); box-shadow: 0 22px 38px -18px rgba(108,85,242,.95); }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.32) 50%, transparent 70%); transform: translateX(-130%); transition: transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.cta:hover::after { transform: translateX(130%); }
@media (min-width: 900px) { .cta { font-size: 22px; } }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 44px; width: auto; }
.badges.pulse .badge { animation: ring 1.1s ease-out 2; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(108,85,242,.7); } 100% { box-shadow: 0 0 0 12px rgba(108,85,242,0); } }
.trust { margin-top: 12px; font-size: 13.5px; color: var(--grey); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.trust span::before { content: '✓'; color: var(--violet); font-weight: 800; margin-inline-end: 6px; }

/* Bar's founder chip: his photo with the dog, his name, his credential */
.founder-row { margin-top: 26px; text-align: center; }
.founder { display: inline-flex; align-items: center; gap: 12px; text-align: start; padding-top: 20px; border-top: 1px solid var(--line); }
.founder img { flex: none; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 8px 20px -10px rgba(19,22,40,.5); }
.founder b { display: block; font-weight: 800; font-size: 16px; line-height: 1.3; color: var(--navy); }
.founder small { display: block; font-size: 14px; line-height: 1.4; color: var(--grey); }

/* the phone: a plain dark frame around a real screen; the screen crops the Android nav bar */
.phone { --pw: 280px; position: relative; width: var(--pw); max-width: 100%; padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .16); background: #0D0E16; box-shadow: 0 60px 110px -50px rgba(60,40,160,.5), inset 0 0 0 1.5px #2B2D3B; }
.phone .screen { position: relative; overflow: hidden; border-radius: calc(var(--pw) * .13); background: var(--app-bg); aspect-ratio: 1080 / 2212; }
.phone .screen > video, .phone .screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen::after { content: ''; position: absolute; top: calc(var(--pw) * .028); left: 50%; width: calc(var(--pw) * .045); aspect-ratio: 1; border-radius: 50%; background: #0D0E16; transform: translateX(-50%); }
/* a real lesson page with the lesson's own footage in its player (290-897 px down the 1080 x 2212 screen) */
.lessons { position: absolute; inset: 0; }
.lslide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.lslide.on { opacity: 1; }
.lslide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lslide video { position: absolute; left: 0; top: 13.11%; width: 100%; height: 27.46%; object-fit: cover; }


/* tap to pause: everything that moves by itself stops and starts on a tap or Enter (WCAG 2.2.2, IS 5568);
   a short icon in the middle says which */
[data-pausable] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tapicon { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.tapicon span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--navy); font: 700 15px/1 var(--sans); box-shadow: 0 8px 24px -10px rgba(19,22,40,.55); }
.tapicon.flash { opacity: 1; transition: none; }

/* sections: a two-weight heading beside one real screen (the section the owner called premium) */
.feat { padding-block: var(--section); }
.fgrid { display: grid; gap: 40px; align-items: center; max-width: 1080px; margin-inline: auto; }
.feat h2 { font-weight: 300; font-size: 40px; line-height: 1.1; color: var(--ink); }
.feat h2 b { font-weight: 800; }
.feat p { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--grey); max-width: 28em; }
.feat .media { justify-self: center; }
.feat .phone { --pw: 250px; }
@media (min-width: 900px) {
  .fgrid { grid-template-columns: 1.15fr .85fr; gap: 80px; }
  .fgrid.flip { grid-template-columns: .85fr 1.15fr; }
  .fgrid.flip .media { order: -1; }
  .feat h2 { font-size: 64px; line-height: 1.05; }
  .feat .phone { --pw: 300px; }
}

/* FAQ */
.faq-band { padding-block: var(--section); }
.faq-band h2 { text-align: center; }
.faq { max-width: 1100px; margin: 18px auto 0; }
.faq details { border-bottom: 1.5px dotted #9A9DA8; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; min-height: 52px; font-weight: 700; font-size: 18px; line-height: 1.5; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding-bottom: 18px; font-size: 16px; line-height: 1.6; color: #3B3E4F; max-width: 46em; }
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s cubic-bezier(.2,.7,.2,1), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (min-width: 900px) { .faq summary { font-size: 22px; } .faq details p { font-size: 18px; } }

/* the last call */
.final { padding-block: var(--section); text-align: center; background: linear-gradient(#fff, var(--lavender)); }

/* footer: the business details stay (shown on the old home since the AllPay merchant setup) */
footer.site { background: var(--violet); color: #fff; padding-block: 48px 34px; text-align: center; }
footer.site .logo { justify-content: center; color: #fff; }
footer.site .badges { margin-top: 22px; }
footer.site .badge img { outline: 1px solid rgba(255,255,255,.5); border-radius: 9px; }
.biz { margin-top: 22px; font-size: 14px; line-height: 1.8; opacity: .95; }
.biz a, .legal a { display: inline-block; min-height: 24px; padding-block: 2px; }
.biz a { text-decoration: none; font-weight: 700; }
.biz a:hover { text-decoration: underline; }
.legal { margin-top: 14px; font-size: 13px; opacity: .9; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.small-print { margin: 16px auto 0; max-width: 760px; font-size: 12px; line-height: 1.6; opacity: .8; }

/* the consent banner (only when an analytics id is set in site.config.json) */
.consent { position: fixed; z-index: 80; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; background: #fff; color: var(--body); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px -20px rgba(19,22,40,.45), 0 0 0 1px rgba(19,22,40,.06); font-size: 14.5px; line-height: 1.5; }
.consent p a { color: var(--violet); font-weight: 700; }
.consent .row { display: flex; gap: 10px; margin-top: 12px; }
.consent button { font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding-inline: 20px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); }
.consent button.yes { background: var(--violet); border-color: var(--violet); color: #fff; }

/* motion: reveal on scroll (the page is whole without it), all off under reduced motion */
.anim [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.anim [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cta, .cta::after, .lslide { transition: none; }
  .badges.pulse .badge { animation: none; box-shadow: 0 0 0 3px rgba(108,85,242,.7); }
  .faq details::details-content { transition: none; }
}
