:root {
  color-scheme: light;
  --navy: #0d1e2e;
  --navy-dark: #0c1722;
  --ink: #172635;
  --muted: #46596a;
  --green: #3cc287;
  --green-ink: #245c35;
  --paper: #f8faf8;
  --white: #fff;
  --line: #dce5dc;
  --wrap: 1200px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #347fc2; outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { width: 1.3em; height: 1.3em; flex: none; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.1; }
h2 { font-size: clamp(2.15rem, 4vw, 3.45rem); letter-spacing: -.055em; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
p { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.skip { position: absolute; z-index: 3; left: 1rem; top: .5rem; transform: translateY(-150%); background: white; color: var(--navy); padding: .65rem 1rem; }
.skip:focus { transform: none; }

.header, .hero { background: var(--navy); color: var(--white); }
.header { border-bottom: 1px solid #ffffff24; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 1.65rem; font-weight: 720; letter-spacing: -.075em; }
.brand-logo { width: 150px; height: auto; }
.header nav, .footer nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.8rem, 3vw, 2rem); }
.header nav a, .footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .94rem; font-weight: 550; }
.header a:hover, .footer a:hover { color: var(--green); }
.header a:focus-visible, .hero a:focus-visible, .footer a:focus-visible { outline-color: var(--green); }

.share-control { position: relative; margin-left: auto; }
.share-button { display: inline-flex; align-items: center; gap: .45rem; }
.share-button[hidden] { visibility: hidden; }
.share-button { min-width: 44px; min-height: 44px; padding: 0 .6rem; border: 0; border-radius: .45rem; background: transparent; color: white; font: inherit; font-size: .9rem; cursor: pointer; }
.share-button:hover { color: var(--green); }
.share-button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.share-feedback { position: absolute; z-index: 4; top: calc(100% + .4rem); right: 0; width: min(16rem, 75vw); }
.share-feedback p:not(:empty) { padding: .6rem .75rem; border: 1px solid #c9ded1; border-radius: .45rem; background: white; color: var(--ink); font-size: .9rem; box-shadow: 0 .25rem .75rem #04111c33; }
.share-feedback input { width: 100%; margin-top: .2rem; padding: .5rem; }
.back-to-top { position: fixed; z-index: 3; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); width: 44px; height: 44px; pointer-events: none; }
.back-to-top button:not([hidden]) { display: grid; place-items: center; }
.back-to-top button { width: 100%; height: 100%; border: 1px solid #557565; border-radius: 50%; background: var(--navy); color: #a4e8c7; box-shadow: 0 .2rem .65rem #04111c33; cursor: pointer; pointer-events: auto; }
.back-to-top button:hover { color: white; }
.back-to-top button:focus-visible { outline: 3px solid #347fc2; outline-offset: 3px; }

.hero { background: radial-gradient(ellipse at 82% 55%, #193f41, transparent 53%), var(--navy); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-block: clamp(2.1rem, 3.4vw, 3rem) clamp(2.55rem, 4.5vw, 4.2rem);
}
.hero h1 { font-size: clamp(3rem, 5.35vw, 5.15rem); line-height: .99; font-weight: 680; letter-spacing: -.045em; }
.hero h1 span { color: var(--green); display: block; }
.hero-copy p { margin-block: .95rem 1.2rem; color: #d9e6ed; font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 39ch; }
.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
.store { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border: 1px solid currentColor; border-radius: .45rem; font-size: .88rem; font-weight: 650; text-decoration: none; }
.hero .store { color: #f1f8f6; background: #112a38; border-color: #708993; }
.hero .store:hover { border-color: var(--green); }
.demo .store { color: var(--green-ink); background: white; }
.store:hover { text-decoration: underline; text-underline-offset: .2em; }
.store:has(img) { padding: 0; border: 0; background: transparent; }
.store-badge { --badge-height: 44px; display: block; }
.store-badge img { height: var(--badge-height); width: auto; }
.store-badge img[src="/assets/app-store-badge.svg"] { width: calc(var(--badge-height) * 119.66407 / 40); }
/* Google’s 880 × 572 PNG has visible artwork at x=34–845 and y=165–406. */
.store-badge:has(img[src="/assets/google-play-badge.png"]) {
  position: relative;
  overflow: hidden;
  width: calc(var(--badge-height) * 811 / 241);
  height: var(--badge-height);
}
.store-badge img[src="/assets/google-play-badge.png"] {
  position: absolute;
  top: calc(-100% * 165 / 241);
  left: calc(-100% * 34 / 811);
  width: calc(100% * 880 / 811);
  max-width: none;
  height: auto;
}

.showcase { display: grid; min-width: 0; }
.showcase-scene {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #e6ede1;
  border-radius: clamp(1rem, 3vw, 1.65rem);
  background:
    linear-gradient(113deg, #97ad9a40 0 11%, transparent 28% 42%, #ffffff50 52% 62%, transparent 76%),
    radial-gradient(ellipse at 75% 21%, #f5f2e7, transparent 64%),
    linear-gradient(180deg, #c0d0c0 0%, #dbe3d3 77%, #c1ccbc 77.4%, #dbe2d3 100%);
  box-shadow: 0 24px 46px #030e1666, inset 0 1px 0 #ffffffa6;
}
.showcase-stand {
  position: absolute;
  z-index: -1;
  inset: auto 7% 13% 7%;
  height: 7%;
  border-radius: 50% / 58% 58% 40% 40%;
  background: linear-gradient(180deg, #afc0ab 0%, #8fa88e 48%, #5f765f 53%, #738870 100%);
  box-shadow: 0 .45rem .7rem #2d463c55;
}
.devices {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 3%;
  padding: 8% 12% 13%;
}
.device {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 2.05;
  padding: clamp(3px, 1cqi, 6px);
  border: 1px solid #8a9ca5;
  border-radius: clamp(13px, 4.5cqi, 29px);
  background: linear-gradient(135deg, #627681, #101821 26%, #071319 70%, #546973);
  box-shadow: .45rem .45rem .7rem #26392d55, inset 0 0 0 1px #ffffff38;
  transform-origin: center bottom;
  color: var(--ink);
  font-size: clamp(6.5px, 2.05cqi, 12px);
  line-height: 1.28;
}
.device-home { transform: rotate(-5deg); }
.device-question { z-index: 1; transform: scale(1.055); }
.device-solution { transform: rotate(5deg); }
.device-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: clamp(10px, 3.8cqi, 24px); background: #f5f8f7; }
.device-camera { position: absolute; z-index: 1; top: .48em; left: 34%; width: 32%; height: .6em; border-radius: 2em; background: #060d13; }
.app-heading { display: grid; align-content: end; gap: .3em; min-height: 5.6em; padding: 1.3em .8em .65em; color: white; background: var(--navy); }
.app-heading img { width: 5.5em; height: auto; margin-left: -.45em; }
.app-heading-compact { min-height: 3.8em; }
.app-content { display: grid; align-content: start; gap: .45em; padding: .65em; }
.app-row { display: flex; align-items: baseline; justify-content: space-between; gap: .25em; }
.app-row > :last-child { flex: none; }
.device-home .app-content, .app-progress-content { flex: 1; align-content: space-evenly; }
.app-home-progress { display: grid; gap: .36em; }
.app-home-progress strong:last-child { color: var(--green-ink); font-size: 1.18em; }
.app-home-progress .app-meter { height: .55em; }
.app-meter { overflow: hidden; height: .4em; border-radius: 1em; background: #dfe8e4; }
.app-meter span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.app-entry { display: grid; gap: .2em; padding: .55em .6em; border-radius: .5em; color: white; background: var(--navy); }
.app-entry span { color: #dce8ee; }
.app-entry-green { align-content: center; min-height: 3.75em; color: #0c3025; background: var(--green); }
.app-entry-outline { color: var(--ink); background: white; border: 1px solid #dfe8e4; }
.app-tabbar { display: flex; justify-content: space-around; gap: .15em; margin-top: auto; padding: .5em .2em .55em; color: white; background: var(--navy); }
.app-tabbar span { display: flex; }
.app-tabbar .app-tab-active { color: var(--green); }
.device-question .device-screen { background: white; }
.app-practice { flex: 1; grid-template-rows: auto auto auto auto 1fr; }
.app-practice p { color: var(--ink); }
.app-question { font-size: .96em; font-weight: 650; }
.app-next { display: flex; align-items: center; align-self: end; justify-self: end; gap: .4em; color: var(--green-ink); font-weight: 650; }
.app-next-chevron { width: .42em; height: .42em; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.app-practice-footer { display: grid; place-items: center; min-height: 1.85em; background: var(--navy); }
.app-practice-footer span { width: 35%; height: .18em; border-radius: 1em; background: #e3ebe9; }
.app-answer { padding: .42em .5em; border: 1px solid #ecd0d7; border-radius: .45em; background: #f8e5e9; color: #772238; }
.app-feedback, .app-worked { display: grid; gap: .18em; padding-top: .33em; border-top: 1px solid #dfe8e4; }
.app-formula { display: grid; justify-items: center; gap: .15em; line-height: 1.15; }
.app-formula math { font-size: 1.1em; }
.app-final-answer { color: var(--green-ink); }
.app-select { align-items: center; padding: .35em .5em; border: 1px solid #dfe8e4; border-radius: .45em; background: white; }
.app-chevron { width: .47em; height: .47em; margin: 0 .2em .2em 0; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.app-progress-ring { display: grid; place-items: center; width: min(100%, 9em); aspect-ratio: 1; justify-self: center; }
.app-progress-ring > * { grid-area: 1 / 1; }
.app-progress-ring svg { width: 100%; height: auto; fill: none; stroke: #dfe8e4; stroke-width: 4; transform: rotate(-90deg); }
.app-progress-ring circle:last-child { stroke: var(--green); stroke-linecap: round; }
.app-progress-ring strong { font-size: 1.9em; }
.app-subject { display: grid; gap: .3em; }
.showcase-stats { grid-area: 1 / 1; position: relative; z-index: 2; }
.showcase-stats li {
  position: absolute;
  transform: translateY(50%);
  display: grid;
  align-content: center;
  gap: .15rem;
  padding: .5rem .85rem .55rem;
  border: 1px solid #527464;
  border-radius: .75rem;
  background: var(--navy);
  color: #e8f3ed;
  box-shadow: 0 .45rem 1rem #04111c55;
}
.showcase-stats li:first-child { left: -.75rem; bottom: 33%; }
.showcase-stats li:last-child { right: -.55rem; bottom: 25%; background: #d7eee3; border-color: #bedacb; color: #12392a; }
.showcase-stats strong { color: #7de1ad; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1; letter-spacing: -.05em; }
.showcase-stats li:last-child strong { color: #18533a; }
.showcase-stats span { font-size: .79rem; font-weight: 650; }
.showcase figcaption { margin-top: .55rem; text-align: center; font-size: .8rem; color: #d0e0e5; }

.proof { border-bottom: 1px solid #d0e6dc; background: #eaf5ee; }
.proof-grid { display: grid; grid-template-columns: 1fr 1.45fr 1.15fr; padding-block: .85rem; }
.proof-grid li { display: flex; align-items: center; gap: .65rem; padding-inline: clamp(.85rem, 2vw, 1.65rem); font-size: .93rem; font-weight: 650; }
.proof-grid li:first-child { padding-left: 0; }
.proof-grid li + li { border-left: 1px solid #c7dfd1; }
.proof-grid svg { color: var(--green-ink); stroke-width: 1.9; }

.study-grid, .education, .about, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(1.35rem, 5vw, 5rem);
}
.section-intro p { margin-top: .85rem; font-size: 1.07rem; max-width: 36ch; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.45rem; }
.features li { display: flex; align-items: flex-start; gap: .65rem; padding-block: .75rem; border-top: 1px solid #d7e3dd; }
.features li > svg { margin-top: .06rem; color: var(--green-ink); }
.features h3 { font-size: 1.08rem; }
.features p, .resource-card p { margin-top: .26rem; font-size: .95rem; }
.subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; margin-top: clamp(1.4rem, 3vw, 2.6rem); padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid #d0e6da; border-radius: .9rem; background: #edf6f0; }
.subjects ul { display: grid; gap: .55rem; margin-top: .8rem; }
.subjects li { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.subjects li svg { color: var(--green-ink); }
.demo p { margin: .55rem 0 .8rem; }
.resources { background: #eaf5ee; border-block: 1px solid #d0e6dc; padding-block: clamp(2rem, 4vw, 3.45rem); }
.resource-list, .testimonial-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; margin-top: 1.15rem; }
.resource-card { display: grid; grid-template-rows: auto 1fr auto; gap: .45rem; height: 100%; padding: .8rem .9rem; border: 1px solid #c9ded1; border-radius: .75rem; background: white; box-shadow: 0 3px 8px #173a2710; text-decoration: none; }
.resource-card:hover { border-color: #49765d; }
.resource-card-top { display: flex; align-items: center; gap: .65rem; }
.tile-icon { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; color: var(--green-ink); background: #e9f2e3; border-radius: .6rem; }
.resource-source { font-size: .72rem; color: var(--muted); }
.resource-action { display: inline-flex; align-items: center; gap: .35rem; color: var(--green-ink); font-size: .88rem; font-weight: 650; }
.resource-action svg { width: 1em; }
.resource-card:hover .resource-action, .resource-card:focus-visible .resource-action { text-decoration: underline; text-underline-offset: .15em; }
.education, .testimonials { padding-block: clamp(2rem, 4vw, 3.45rem); }
.education p { margin-top: .6rem; max-width: 46ch; }
.education + .about { border-top: 1px solid var(--line); }
.education-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.education-links a { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .55rem .65rem; border: 1px solid #c9ded1; border-radius: .5rem; background: white; color: var(--green-ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.education-links a:hover { border-color: #49765d; text-decoration: underline; }
.education-icon { width: 1.3em; height: 1.3em; object-fit: contain; flex: none; }
.education-links svg:last-child { margin-left: auto; width: 1em; }
.testimonials { background: #eaf5ee; border-block: 1px solid #d0e6dc; }
.testimonial-list li { padding: .9rem 1rem; border: 1px solid #c9ded1; border-radius: .65rem; background: white; }
.testimonial-list blockquote { margin: 0; }
.testimonial-list figcaption { color: var(--green-ink); font-size: .82rem; font-weight: 650; }
.testimonial-list figure > p { margin-top: .35rem; }
.testimonial-list blockquote + figcaption { margin-top: .55rem; }
.about { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.about-story h2 { margin-bottom: .85rem; }
.about p { max-width: 62ch; font-size: 1.04rem; }
.about p + p { margin-top: .8rem; }
.about-recognition { display: grid; gap: .75rem; }
.award { display: flex; align-items: flex-start; gap: .85rem; flex-wrap: wrap; padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid #c9ded1; border-radius: .75rem; background: #edf6f0; }
.award-logo { width: clamp(92px, 11vw, 138px); height: auto; }
.award > div { flex: 1 1 13.5rem; }
.award h3 { margin-bottom: .45rem; }
.award p { font-size: .96rem; }
.award ul { list-style: disc; margin-top: .55rem; padding-left: 1.2em; }
.award li { margin-block: .2rem; font-size: .93rem; }
.award li::marker { color: var(--green-ink); }
.contact { background: var(--navy); color: white; padding-block: clamp(2rem, 4vw, 3.45rem); }
.contact-list { display: grid; gap: .55rem; }
.contact-list li { padding: .2rem 0 .2rem .9rem; border-left: 2px solid #3cc287; }
.contact-list li > span { display: block; color: #d1dfe8; font-size: .91rem; }
.contact-list a { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; color: #a4e8c7; font-weight: 700; text-underline-offset: .2em; }
.contact-list a:focus-visible { outline-color: var(--green); }
.contact-list a svg:last-child { width: .95em; height: .95em; }
.footer { background: var(--navy-dark); color: white; padding-block: 1.25rem; }
.footer .store-badge { --badge-height: 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.footer p { color: #c8d6e1; font-size: .85rem; margin-top: .3rem; }
.footer .socials { gap: .45rem; }
.socials a { width: 44px; justify-content: center; border: 1px solid #45586b; border-radius: .55rem; }
.legal { max-width: 75ch; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.05em; }
.legal :is(p, h2, h3, ul, ol) { margin-top: 1rem; }
.legal h2 { margin-top: 1.75rem; font-size: clamp(1.3rem, 3.5vw, 1.55rem); letter-spacing: -.025em; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal ol { padding-left: 1.3rem; }
.legal li + li { margin-top: .35rem; }
.legal-home { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .5rem; }
.legal a { color: var(--green-ink); text-underline-offset: .15em; overflow-wrap: anywhere; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero h1 { max-width: 13ch; }
  .showcase { width: min(100%, 590px); justify-self: center; }
}
@media (min-width: 701px) and (max-width: 920px) {
  .showcase-stats li:first-child { left: -1.35rem; bottom: 35%; }
}
@media (max-width: 700px), (min-width: 921px) and (max-width: 1240px) {
  .showcase-stats li:first-child { bottom: 5%; }
  .showcase-stats li:last-child { bottom: 1%; }
  .showcase figcaption { margin-top: 2.65rem; }
}
@media (max-width: 700px) {
  .award:has(.award-logo) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .award:has(.award-logo) .award-copy { display: contents; }
  .award:has(.award-logo) h3 { margin: 0; }
  .award:has(.award-logo) .award-details { grid-column: 1 / -1; }
  .study-grid, .education, .about, .contact-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; padding-block: .65rem; }
  .proof-grid li { padding: .55rem 0; }
  .proof-grid li + li { border-left: 0; border-top: 1px solid #c7dfd1; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { justify-content: flex-start; gap: 0 1rem; padding-block: .25rem; min-height: 62px; }
  .header nav { flex-basis: 100%; gap: 0 .75rem; }
  .header nav a { font-size: .87rem; }
  .hero-grid { padding-block-start: 2rem; padding-block-end: 1.75rem; }
  .devices { padding-inline: 8%; }
  .showcase-stats li:first-child { left: -.35rem; }
  .showcase-stats li:last-child { right: -.35rem; }
  .showcase-stats li { padding-inline: .62rem; }
  .hero h1 { font-size: clamp(2.65rem, 10.7vw, 3.6rem); }
  .hero-copy p { margin-block: .85rem 1.15rem; }
  .features, .subjects { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .app-practice { font-size: .88em; gap: .28em; }
  .device-home .app-content { gap: .3em; }
  .app-entry-green { min-height: 3.45em; }
}
@media (max-width: 365px) {
  .app-practice { font-size: .83em; gap: .22em; }
}
@media (max-width: 350px) {
  .devices { padding-inline: 5.5%; }
  .device { aspect-ratio: 1 / 2.15; font-size: 6px; }
  .app-content { gap: .35em; padding: .55em; }
}
