/* appsinmypocket.com static site (KAN-1045). Hand-written; no theme or plugin code.
   The site keeps its one brand look in both light and dark system themes, on purpose. */

@font-face { font-family: "Boogaloo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/boogaloo-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/source-sans-3.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/source-sans-3-italic.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --navy: #262262;
  --text: #68798d;
  --green: #39b54a;
  --green-dark: #007e15;
  --blue: #139dde;
  --blue-dark: #006aa7;
  --sky: #2ca8dd;
  --pink: #bf2067;
  --amber: #d39149;
  --pale: #ecf0f5;
  --tint: #f2f9fc;
  --wrap: 980px;
  --gutter: 30px;
  --sans: "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  --display: "Boogaloo", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.59 var(--sans); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--navy); margin: 0 0 20px; text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.41; }
h2 { font-size: 43px; line-height: 1.23; }
h3 { font-size: 22px; line-height: 1.4; margin-bottom: 8px; }
h4 { font-size: 18px; }
p { margin: 0 0 20px; }
ul, ol { margin: 0 0 20px; padding-left: 1.4em; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header and menu ---------- */
.site-header { background: #fff; padding: 0 var(--gutter); }
.site-header .wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.logo { display: block; padding: 5px 0 0; }
.logo img { display: block; width: 147px; height: 75px; }
.nav-toggle { display: none; }
#site-nav { flex: 0 0 100%; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.menu > li { position: relative; margin: 0 0 0 38px; }
.menu > li:first-child { margin-left: 0; }
.menu > li > a, .menu > li > button { display: block; font: 700 15px/85px var(--sans); letter-spacing: .02em; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; }
.menu > li > a:hover, .menu > li > button:hover, .menu a[aria-current="page"] { color: var(--pink); }
.menu .sub { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; z-index: 20; width: 224px; background: #f2efef; border-top: 3px solid #faae40; display: none; box-shadow: 0 6px 14px rgba(38, 34, 98, .12); }
.menu .has-sub:hover .sub, .menu .has-sub:focus-within .sub, .menu .has-sub.open .sub { display: block; }
.menu .sub a { display: block; padding: 7px 20px; font-size: 13px; line-height: 1.7; color: #333; border-bottom: 1px solid #dcdadb; }
.menu .sub li:last-child a { border-bottom: 0; }
.menu .sub a:hover { background: #f8f8f8; color: var(--pink); }
.menu > li.cta { margin-left: 20px; }
.menu > li.cta > a { font-weight: 400; line-height: 40px; padding: 0 35px; border-radius: 4px; color: #fff; text-transform: uppercase; letter-spacing: .07em; }
.menu > li.sign-in > a { background: var(--green); }
.menu > li.sign-in > a:hover { background: var(--green-dark); color: #fff; }
.menu > li.sign-up > a { background: var(--blue); }
.menu > li.sign-up > a:hover { background: var(--blue-dark); color: #fff; }

/* ---------- hero ---------- */
.hero { background: #e9eef2 center / cover no-repeat; padding: 0 var(--gutter); }
.hero:not(.hero-art) { position: relative; }
.hero:not(.hero-art)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 22, 60, .5), rgba(20, 22, 60, 0) 62%); }
.hero-inner { position: relative; }
.hero-inner { max-width: var(--wrap); margin: 0 auto; min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 0; }
.hero-title { font: 400 40px/1.3 var(--display); color: #fff; max-width: 460px; margin: 0 0 24px; text-shadow: 0 1px 12px rgba(20, 20, 60, .45); }
.hero-links { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art .hero-inner { justify-content: flex-end; align-items: center; padding-bottom: 24px; }
.appstore img { display: block; border-radius: 11px; }
.appstore:hover img, .appstore-bottom:hover { box-shadow: 0 0 10px #fff, 0 0 20px #005e99, 0 0 30px #005e99; }

/* ---------- sections and columns ---------- */
main { display: block; }
.band { padding: var(--pt, 0px) var(--gutter) var(--pb, 0px); background-position: center; background-repeat: no-repeat; background-size: cover; }
.row { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; column-gap: 4%; }
.band.boxed .row { max-width: 1090px; }
.col { flex: 0 0 auto; width: 100%; min-width: 0; margin-bottom: 20px; }
.col-1-2 { width: 48%; }
.col-1-3 { width: 30.6666%; }
.col-2-3 { width: 65.3333%; }
.col-1-4 { width: 22%; }
.col-3-4 { width: 74%; }
.col-1-5 { width: 16.8%; }
.col-2-5 { width: 37.6%; }
.col-3-5 { width: 58.4%; }
.band-image { color: #fff; }
.lead { font-size: 18px; line-height: 1.55; margin-bottom: 31px; }
.mobile { display: none; }

/* text pages */
.textpage main { padding-top: 55px; }
.textpage .band { --pb: 50px; }
.textpage h3 { color: var(--sky); font-size: 24px; line-height: 28px; margin: 0; padding: 20px 0 5px; }
.textpage h1 b, .textpage h3 b { font-weight: 400; }
.textpage ul { margin-top: 0; padding-bottom: 0; }
.textpage li { margin-bottom: 4px; }
.textpage p.linebreak { margin: 0; padding: 0 0 5px; }
.textpage h4 { color: var(--sky); font: 400 18px/23px var(--sans); margin: 0; padding: 20px 0 0; }
.textpage h4 a { font-weight: 600; color: var(--green); padding-left: 10px; }
.textpage h4 a:hover { color: var(--green-dark); }
a[target="_blank"]:not(.btn):not(.appstore):not(:has(img))::after { content: "\2197"; padding-left: 4px; font-size: .85em; }
@media (max-width: 400px) { .textpage a { overflow-wrap: anywhere; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--green); color: #fff; font: 600 15px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .07em; padding: 13px 49px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; text-align: center; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-white, .btn.whitebutton { background: #fff; color: var(--navy); font-weight: 700; letter-spacing: .04em; padding: 14px 30px; border-color: #fff; }
.btn-white:hover, .btn.whitebutton:hover { background: #fff; color: var(--navy); box-shadow: 0 0 10px #fff, 0 0 20px #005e99, 0 0 30px #005e99; }
.other-app-button { padding: 15px 20px; letter-spacing: .02em; }
.download-free-guide-green, .download-free-guide-blue { text-align: center; margin-bottom: 10px; }
.download-free-guide-green .btn, .download-free-guide-blue .btn { font-weight: 400; min-width: min(380px, 100%); padding: 13px 56px 13px 24px; background: var(--green) url(/assets/img/pps-white-button-arrow.png) right 20px center no-repeat; }
.download-free-guide-green .btn:hover { background-color: var(--green-dark); }
.download-free-guide-blue .btn { background-color: var(--sky); }
.download-free-guide-blue .btn:hover { background-color: #0073a5; }
.btn-play { padding: 13px 65px 13px 30px; background: var(--green) url(/assets/img/watch-button-play.png) right 25px center no-repeat; margin-bottom: 20px; }
.btn-play:hover { background-color: var(--green-dark); }
.video { margin: 0 0 30px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-note { font-size: 14px; margin: -10px 0 20px; }

/* ---------- page sections (class names carried over from the old page content) ---------- */
.bestedapp2015 h2, .amazing h2, .amazing h3, .freetrial h2, .freetrial p { color: #fff; }
.bestedapp2015 p { font-size: 23px; line-height: 35px; font-weight: 300; }
.amazing { margin-bottom: 0; }
.amazing h3 { font-size: 31px; line-height: 45px; margin: 0; }
.amazing p { font-size: 16px; line-height: 25px; font-weight: 300; margin: 0; padding: 0 30px; }
.amazing .col-1-1 { margin-top: 30px; }
#amazing-marker { margin: 30px auto 0; }
#amazing-marker img { display: block; margin: 0 auto; }
.academic-choice p.acr-text { font-size: 25px; line-height: 35px; font-weight: 300; font-style: italic; }
.academic-choice p.acr { font-size: 16px; line-height: 24px; letter-spacing: .02em; }
.academic-choice img { display: block; padding-top: 20px; }
.making-easier p, .making-easier2 p { font-size: 16px; line-height: 26px; display: flex; align-items: center; gap: 18px; }
.making-easier p img, .making-easier2 p img { flex: 0 0 67px; }
#making-phonics .row { align-items: center; }
#dad-son-ipad p { font-size: 22px; line-height: 35px; font-weight: 300; font-style: italic; letter-spacing: .03em; }
.schools-cant-be-wrong h2 { font-size: 58px; line-height: 75px; }
.parents-choice p { color: var(--navy); font-size: 25px; line-height: 35px; font-weight: 300; font-style: italic; }
.parents-choice h5 { color: #008dc0; font: 600 15px/20px var(--sans); margin: 0; }
#pps-balefire h3 { color: #fff; font: italic 300 23px/33px var(--sans); margin: 0 0 16px; }
#pps-balefire p { font-size: 16px; line-height: 20px; }
.pp-testimonials h3 { color: #fff; font: italic 300 22px/36px var(--sans); }
.pp-testimonials p { font-size: 17px; line-height: 22px; }
.screen-text-panel h2, .blue-title h2, h2.blue-title { color: var(--sky); font-size: 30px; line-height: 35px; }
.blue-title-dtd h2 { color: var(--sky); font-size: 30px; line-height: 1.35; }
.screen-text-panel p { line-height: 27px; }
.screen-caption-text p { font-size: 15px; padding: 0 30px; }
.screen-caption-text img, .col-1-3 > .center img { margin-bottom: 16px; }
#how-children p { font-size: 17px; line-height: 27px; }
#pps-learn-faster { text-align: center; padding: 0 60px; }
#step-by-step .row, #dtd .row, #pp .row { align-items: flex-end; }
#step-by-step-text, #dtd .col:first-child, #pp .col:first-child { align-self: center; }
.pps-pencil { text-align: right; }
.gallery .col { text-align: center; margin-bottom: 40px; }
.gallery img { box-shadow: 0 4px 18px rgba(38, 34, 98, .18); }

/* lightbox */
dialog.lightbox-dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox-dialog::backdrop { background: rgba(20, 20, 50, .85); }
dialog.lightbox-dialog img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; }
dialog.lightbox-dialog button { position: absolute; top: 6px; right: 6px; font: 700 15px var(--sans); background: #fff; color: var(--navy); border: 0; border-radius: 4px; padding: 8px 12px; cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--pale); text-align: center; padding: 35px var(--gutter) 40px; margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-bottom: 26px; }
.footer-menu a { color: #8c8989; font-size: 15px; }
.footer-menu a:hover, .footer-menu a[aria-current="page"] { color: var(--pink); }
.site-footer .social { display: flex; justify-content: center; gap: 20px; margin-bottom: 26px; }
.social img { display: block; width: 47px; height: 47px; }
.copyright { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; font-size: 14px; }
.copyright li + li::before { content: "|"; padding-right: 10px; }
.copyright a { color: var(--text); }
.copyright a:hover { color: var(--amber); }
.copyright a[aria-current="page"] { color: var(--pink); }

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  .menu > li { margin-left: 22px; }
  .menu > li.cta { margin-left: 12px; }
  .menu > li.cta > a { padding: 0 20px; }
}
@media (max-width: 800px) {
  :root { --gutter: 20px; }
  h2 { font-size: 35px; }
  .site-header .wrap { padding: 8px 0; }
  .nav-toggle { display: block; font: 700 15px var(--sans); color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 4px; padding: 9px 16px; cursor: pointer; }
  #site-nav { display: none; padding: 8px 0 12px; }
  #site-nav.open { display: block; }
  .menu { display: block; }
  .menu > li, .menu > li.cta { margin: 0; border-top: 1px solid var(--pale); }
  .menu > li > a, .menu > li > button { line-height: 46px; width: 100%; text-align: left; }
  .menu .sub { position: static; width: auto; box-shadow: none; border-top: 0; background: var(--tint); }
  .menu > li.cta { border-top: 0; margin-top: 10px; }
  .menu > li.cta > a { text-align: center; line-height: 44px; }
  .hero-inner { min-height: 260px; padding: 28px 0; }
  .hero-title { font-size: 30px; max-width: 300px; }
  .hero-art .hero-inner { min-height: 200px; }
  .band { padding-top: min(var(--pt, 0px), 50px); padding-bottom: min(var(--pb, 0px), 50px); }
  .col, .col[style] { width: 100%; padding: 0 !important; }
  .mobile-center-button, .mobile-center-button .center { text-align: center; }
  .desktop, .pps-pencil { display: none; }
  .mobile { display: block; }
  .mobile .pencil { float: right; width: 45%; text-align: right; }
  .mobile .marker { float: left; width: 45%; }
  .amazing p, .screen-caption-text p { padding: 0 10px; font-size: 18px; line-height: 24px; }
  #how-children p { font-size: 18px; line-height: 24px; }
  .schools-cant-be-wrong h2 { font-size: 40px; line-height: 50px; }
  .bestedapp2015 h2 { font-size: 40px; line-height: 50px; }
  #pps-learn-faster { padding: 0; }
  #dad-son-ipad { background-image: url(/assets/img/father-son-ipad-mobile.jpg) !important; background-position: top center; background-size: contain; padding-top: 36vw; background-color: #232e4a; }
  .blue-title-dtd h2 { text-align: center; padding-top: 20px; }
  .textpage main { padding-top: 30px; }
  .btn { padding-left: 30px; padding-right: 30px; }
  .btn-play { padding-right: 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
