:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #242820;
  background: #f5f4ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #242820;
  --muted: #777a70;
  --paper: #f5f4ef;
  --green: #396448;
  --line: #e4e2d9;
  --orange: #e77b4a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
}

a { color: inherit; }

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(6.5vw, 24px);
}

.topbar {
  height: 78px;
  border-bottom: 1px solid rgba(36, 40, 32, .09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
}

.brand-logo { width: 48px; height: 48px; border-radius: 9px; object-fit: contain; }

.brand-light { color: #7e8178; font-weight: 600; }

.top-link,
.footer > a:last-child {
  color: #55594f;
  font-size: 13px;
  text-decoration: none;
}

.top-link span { padding-left: 6px; color: var(--orange); }

.hero {
  position: relative;
  display: flex;
  min-height: 438px;
  align-items: center;
  overflow: hidden;
  padding: 66px max(10vw, 26px) 86px;
  background: #e9ede5;
}

.hero-copy { position: relative; z-index: 1; width: min(620px, 58%); }

.eyebrow {
  margin: 0 0 18px;
  color: #6b7568;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
}

h1 {
  margin: 0;
  color: #263b2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 75px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.02;
}

h1 span { color: #738676; }

.hero-description {
  max-width: 480px;
  margin: 22px 0 26px;
  color: #62685e;
  font-size: 15px;
  line-height: 1.75;
}

.creator-credit {
  margin: -12px 0 15px;
  color: #405d45;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 12px 0;
  border-bottom: 1px solid #6c806f;
  color: #344c39;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hero-link span { color: var(--orange); font-size: 18px; }

.hero-art {
  position: absolute;
  top: 50%;
  right: 12%;
  width: 310px;
  height: 310px;
  transform: translateY(-53%);
}

.orbit {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(64, 98, 71, .22);
  border-radius: 50%;
}

.orbit-one { transform: rotate(-32deg) scaleX(.67); }
.orbit-two { transform: rotate(38deg) scaleX(.67); }

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(64, 98, 71, .28);
  border-radius: 50%;
  background: #dfe7dc;
}

.orbit-core img { width: 78px; height: 78px; border-radius: 15px; object-fit: contain; }

.orbit-label {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid rgba(64, 98, 71, .17);
  border-radius: 20px;
  background: #eff1e9;
  color: #506253;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.label-browser { top: 49px; right: 20px; }
.label-calc { bottom: 55px; left: 5px; }
.label-school { right: 12px; bottom: 30px; }

.orbit-star {
  position: absolute;
  color: var(--orange);
  font-size: 17px;
}

.star-one { top: 31px; left: 87px; }
.star-two { top: 133px; right: -3px; font-size: 11px; }

.hero-foot {
  position: absolute;
  right: max(10vw, 26px);
  bottom: 24px;
  left: max(10vw, 26px);
  display: flex;
  justify-content: space-between;
  color: #81877d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 36px 68px;
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-heading .eyebrow { margin-bottom: 10px; }

h2 {
  margin: 0;
  color: #283b2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.045em;
}

.heading-period { color: var(--orange); }

.search {
  display: flex;
  width: min(270px, 100%);
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #dfded5;
  border-radius: 6px;
  background: #faf9f5;
}

.search-icon { color: #767a70; font-size: 23px; line-height: 1; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; }
.search kbd { padding: 2px 6px; border: 1px solid #e6e4dc; border-radius: 3px; color: #85877f; font: 11px "Segoe UI", sans-serif; }

.filters {
  display: flex;
  gap: 9px;
  margin: 28px 0 23px;
}

.filter {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #e1dfd6;
  border-radius: 22px;
  background: transparent;
  color: #686b62;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.filter:hover { border-color: #9aa798; }
.filter.is-active { border-color: #314b38; background: #314b38; color: #fff; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.app-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #e2e0d7;
  border-radius: 9px;
  background: #fbfaf6;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.app-card:hover { transform: translateY(-3px); border-color: #c7d0c3; box-shadow: 0 12px 32px rgba(48, 62, 45, .06); }
.app-card[hidden] { display: none; }
.card-top { display: flex; min-height: 62px; align-items: flex-start; justify-content: space-between; }

.app-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
}

.app-icon img { width: 100%; height: 100%; object-fit: contain; }
.icon-browser { background: #e8eee8; }
.icon-calculator { background: #f0eee3; }
.icon-clock { background: #e6edf0; }
.icon-billing { background: #f1e8e1; }
.icon-school { background: #e6eee8; }
.icon-ai { background: #e9e9ee; color: #5a586f; font-size: 14px; font-weight: 800; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #eaf1e9;
  color: #486f4d;
  font-size: 10px;
  font-weight: 700;
}

.availability i { width: 5px; height: 5px; border-radius: 50%; background: #5b9664; }
.availability-pending { background: #f1eee5; color: #84744d; }

.category {
  margin: 17px 0 8px;
  color: #7e8177;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.category span { padding: 0 4px; color: #b7b7ab; }

.app-card h3 {
  margin: 0;
  color: #28382c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.app-description {
  min-height: 66px;
  margin: 10px 0 14px;
  color: #70736b;
  font-size: 12px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 14px;
  padding-top: 12px;
  border-top: 1px solid #eceae2;
  color: #7c7f75;
  font-size: 10px;
}

.download-button {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid #36563d;
  border-radius: 5px;
  background: #36563d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}

.download-button:hover { background: #294630; }
.download-size { color: #d0decf; font-size: 9px; font-weight: 500; white-space: nowrap; }
.arrow { color: #e6ad89; font-size: 15px; }
.download-group { display: grid; gap: 7px; }
.download-secondary { border-color: #d9e1d7; background: transparent; color: #39533d; }
.download-secondary:hover { background: #eef2eb; }
.download-secondary .download-size { color: #81867b; }
.download-secondary .arrow { color: #a56d4c; }
.app-card-school .app-description { min-height: 46px; }
.download-note { margin: 10px 0 0; color: #7c7e75; font-size: 10px; line-height: 1.5; }
.app-card-unavailable { background: #f8f7f2; }

.unavailable-note {
  margin: auto 0 0;
  padding: 12px;
  border: 1px dashed #d7d2c3;
  border-radius: 5px;
  color: #777366;
  font-size: 11px;
  line-height: 1.5;
}

.empty-state { margin: 26px 0; color: var(--muted); font-size: 14px; }

.download-info {
  display: flex;
  max-width: 1208px;
  align-items: center;
  gap: 20px;
  margin: 0 auto 78px;
  padding: 22px 26px;
  border: 1px solid #e1dfd7;
  border-radius: 8px;
  background: #eeede6;
}

.info-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dde6dc;
  color: #45634a;
  font-size: 20px;
}

.download-info h2 {
  color: #354c3a;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.download-info p { max-width: 690px; margin: 5px 0 0; color: #70736b; font-size: 11px; line-height: 1.6; }
.info-side { margin-left: auto; color: #898b82; font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1.6; text-align: right; }

.footer {
  min-height: 83px;
  border-top: 1px solid #e4e2d9;
}

.footer-brand { font-size: 11px; }
.footer-brand .brand-logo { width: 40px; height: 40px; }
.footer p { color: #86887f; font-size: 11px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

:focus-visible { outline: 3px solid #d67d51; outline-offset: 3px; }

@media (max-width: 950px) {
  .hero { padding-left: 7vw; }
  .hero-art { right: 4%; transform: translateY(-53%) scale(.82); }
  .hero-copy { width: min(560px, 68%); }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { padding-right: 28px; padding-left: 28px; }
  .download-info { margin-right: 28px; margin-left: 28px; }
}

@media (max-width: 650px) {
  .topbar { height: 66px; }
  .hero { min-height: 460px; align-items: flex-start; padding: 54px 25px 86px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(43px, 12vw, 62px); }
  .hero-description { max-width: 410px; font-size: 14px; }
  .hero-art { top: auto; right: -75px; bottom: -96px; transform: scale(.62); transform-origin: center; opacity: .56; }
  .hero-foot { right: 25px; left: 25px; font-size: 8px; }
  .catalog { padding: 58px 20px 46px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .search { width: 100%; }
  .filters { margin-top: 20px; }
  .app-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-card { padding: 20px; }
  .app-description { min-height: 0; }
  .download-info { align-items: flex-start; margin: 0 20px 50px; padding: 18px; }
  .info-side { display: none; }
  .footer { min-height: 92px; flex-wrap: wrap; gap: 4px 12px; padding: 14px 20px; }
  .footer p { order: 1; width: 100%; margin: 0; }
  .footer > a:last-child { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
