:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-elevated: #ffffff;
  --bg-ink: #101114;
  --bg-soft: #ece8df;
  --text: #1d1d1f;
  --text-muted: #68666f;
  --text-inverse: #f7f4ed;
  --line: rgba(29, 29, 31, 0.12);
  --line-inverse: rgba(255, 255, 255, 0.14);
  --blue: #147ce5;
  --green: #0f7b5f;
  --gold: #c47a12;
  --red: #c93550;
  --purple: #7c4bc7;
  --shadow-sm: 0 8px 24px rgba(20, 18, 15, 0.08);
  --shadow-lg: 0 24px 80px rgba(16, 17, 20, 0.2);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 1180px;
  --nav-height: 58px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(246, 244, 239, 0.82);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

.nav {
  width: min(100%, var(--content));
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
}

.nav__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--bg-ink);
  color: var(--text-inverse);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.nav__name {
  font-size: 0.95rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav__link:hover {
  background: rgba(29, 29, 31, 0.06);
  color: var(--text);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav__hamburger,
.nav__hamburger::before,
.nav__hamburger::after,
.nav__hamburger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  display: block;
}

.nav__hamburger {
  position: relative;
  background: transparent;
}

.nav__hamburger::before,
.nav__hamburger::after,
.nav__hamburger span {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav__hamburger::before {
  top: -6px;
}

.nav__hamburger span {
  top: 0;
}

.nav__hamburger::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__hamburger span {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: min(820px, 100svh);
  padding: calc(var(--nav-height) + 42px) clamp(18px, 4vw, 32px) 44px;
  background:
    linear-gradient(130deg, rgba(196, 122, 18, 0.18), transparent 30%),
    linear-gradient(315deg, rgba(20, 124, 229, 0.18), transparent 32%),
    var(--bg-ink);
  color: var(--text-inverse);
  overflow: hidden;
}

.hero__inner {
  width: min(100%, var(--content));
  min-height: calc(min(820px, 100svh) - var(--nav-height) - 86px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.hero__copy {
  max-width: 620px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.featured-app h2,
.page-hero h1 {
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 8vw, 5.85rem);
  max-width: 720px;
}

.hero__summary {
  margin-top: 22px;
  max-width: 560px;
  color: rgba(247, 244, 237, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.hero__actions,
.inline-actions,
.app-card__links,
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  font-size: 0.94rem;
}

.button--primary {
  background: var(--text-inverse);
  color: var(--bg-ink);
}

.button--secondary {
  border: 1px solid var(--line-inverse);
  color: var(--text-inverse);
}

.button--dark {
  background: var(--bg-ink);
  color: var(--text-inverse);
}

.button:hover,
.text-link:hover,
.app-card__links a:hover,
.site-footer__links a:hover {
  opacity: 0.74;
}

.hero__showcase {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  position: absolute;
  width: clamp(132px, 18vw, 236px);
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(22px, 3vw, 36px);
  background: #06070a;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 2.2%;
  left: 50%;
  z-index: 2;
  width: 31%;
  aspect-ratio: 3.3 / 1;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center top;
  border-radius: clamp(18px, 2.7vw, 31px);
}

.phone--heard {
  z-index: 3;
  width: clamp(158px, 20vw, 272px);
  transform: translate(0, -8px);
}

.phone--teachin {
  z-index: 2;
  transform: translate(-64%, 54px) rotate(-5deg);
}

.phone--fox {
  z-index: 1;
  transform: translate(66%, 66px) rotate(5deg);
}

.section-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

.featured-app,
.app-index,
.craft,
.page-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.featured-app {
  background: var(--bg);
}

.featured-app__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
}

.featured-app__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111;
  box-shadow: var(--shadow-sm);
}

.featured-app__media img,
.app-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-heading__icon,
.app-card__icon {
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(16, 17, 20, 0.12);
}

.app-heading__icon {
  width: 72px;
  height: 72px;
}

.featured-app h2,
.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.lead {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.42;
}

.feature-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 650;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.inline-actions {
  margin-top: 28px;
}

.text-link,
.app-card__links a,
.resource-list a {
  color: var(--blue);
  font-weight: 800;
}

.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(124, 75, 199, 0.12);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-index {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading:not(.section-heading--left) {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading__summary {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.45;
}

.app-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.resource-card,
.policy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.app-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.app-card__icon {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 58px;
  height: 58px;
}

.app-card__image {
  background: #ddd;
}

.app-card__body {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card__category {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-card h3,
.resource-card h2,
.policy-card h2 {
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.app-card p,
.resource-card p,
.policy-card p,
.craft__text,
.page-hero p,
.page-copy p {
  color: var(--text-muted);
}

.app-card__links {
  margin-top: auto;
  padding-top: 8px;
  gap: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.app-card--future {
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(15, 123, 95, 0.12), transparent 58%),
    var(--bg-elevated);
}

.future-mark {
  width: 74px;
  height: 74px;
  margin: 24px 0 28px 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--green);
  font-size: 2.5rem;
  line-height: 1;
}

.craft {
  background: var(--bg);
}

.craft__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
}

.craft__text {
  display: grid;
  gap: 18px;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.55;
}

.site-footer {
  padding: 34px 0;
  background: var(--bg-ink);
  color: rgba(247, 244, 237, 0.72);
}

.site-footer__inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__links a {
  color: var(--text-inverse);
  font-weight: 700;
}

.page-hero {
  padding: calc(var(--nav-height) + 66px) 0 56px;
  background: var(--bg-ink);
  color: var(--text-inverse);
}

.page-hero__inner {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.page-hero p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(247, 244, 237, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card,
.policy-card {
  padding: 24px;
}

.resource-card {
  display: grid;
  gap: 12px;
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-list li,
.policy-card li {
  color: var(--text-muted);
}

.policy-grid {
  display: grid;
  gap: 18px;
}

.policy-card ul {
  margin-top: 14px;
  padding-left: 1.1rem;
  list-style: disc;
}

.page-copy {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
  display: grid;
  gap: 18px;
}

.page-actions {
  margin-top: 12px;
}

.approach {
  padding: clamp(48px, 6vw, 64px) 0;
  background: var(--bg);
}

.approach__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.approach__grid article,
.product-feature-grid article {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.approach__grid h3,
.product-feature-grid h2,
.product-support-strip h2 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.approach__grid p,
.product-feature-grid p {
  color: var(--text-muted);
}

.approach__grid article {
  min-height: 0;
  justify-content: flex-start;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.approach__grid h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.2;
}

.product-hero {
  min-height: min(760px, 100svh);
  padding: calc(var(--nav-height) + 46px) 0 56px;
  background: var(--bg-ink);
  color: var(--text-inverse);
  overflow: hidden;
}

.product-hero__inner {
  width: min(100%, var(--content));
  min-height: calc(min(760px, 100svh) - var(--nav-height) - 102px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.product-hero h1 {
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.product-hero__lead {
  margin-top: 24px;
  color: rgba(247, 244, 237, 0.88);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.16;
  font-weight: 750;
  max-width: 680px;
}

.product-hero__text {
  margin-top: 18px;
  color: rgba(247, 244, 237, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 620px;
}

.product-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0b0d12;
}

.product-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-hero__media--phone {
  width: min(100%, 390px);
  justify-self: center;
  padding: 8px;
  border: 1px solid var(--line-inverse);
  border-radius: 42px;
}

.product-hero__media--phone img {
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  object-position: center top;
}

.product-page--heard .product-hero {
  background: radial-gradient(circle at 72% 28%, rgba(124, 75, 199, 0.38), transparent 32%), radial-gradient(circle at 22% 70%, rgba(20, 124, 229, 0.26), transparent 32%), var(--bg-ink);
}

.product-page--teachin .product-hero {
  background: radial-gradient(circle at 74% 28%, rgba(196, 122, 18, 0.32), transparent 34%), radial-gradient(circle at 18% 72%, rgba(15, 123, 95, 0.22), transparent 30%), var(--bg-ink);
}

.product-page--fox .product-hero {
  background: radial-gradient(circle at 74% 26%, rgba(201, 53, 80, 0.34), transparent 34%), radial-gradient(circle at 16% 72%, rgba(196, 122, 18, 0.2), transparent 30%), var(--bg-ink);
}

.product-section {
  padding: clamp(52px, 7vw, 88px) 0;
  background: var(--bg);
}

.product-section--soft {
  background: var(--bg-soft);
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.resource-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resource-card__links a {
  color: var(--blue);
  font-weight: 800;
}

.policy-card--large {
  padding: clamp(24px, 4vw, 34px);
}

.policy-card--large p {
  max-width: 900px;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
}

#approach,
#apps {
  scroll-margin-top: var(--nav-height);
}

.page-copy .button--secondary,
.product-section--soft .button--secondary {
  border-color: var(--line);
  color: var(--text);
}

@media (max-width: 1120px) {
  .approach__layout {
    grid-template-columns: 1fr;
    row-gap: clamp(32px, 4vw, 48px);
  }

  .approach .section-heading {
    margin-bottom: 0;
  }

  .section-heading--left {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .hero__inner,
  .featured-app__layout,
  .product-hero__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: 0;
  }

  .hero__showcase {
    min-height: 470px;
  }

  .featured-app__copy {
    max-width: 720px;
  }

  .app-grid,
  .approach__grid,
  .product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero__media--phone {
    width: min(100%, 320px);
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: grid;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    padding: 14px 18px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(246, 244, 239, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav__menu[aria-hidden="false"] {
    display: flex;
  }

  .nav__link {
    min-height: 46px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 34px);
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.25rem);
  }

  .hero__showcase {
    min-height: 360px;
    margin-top: 8px;
  }

  .phone--heard {
    width: clamp(145px, 42vw, 190px);
  }

  .phone--teachin,
  .phone--fox {
    width: clamp(116px, 34vw, 152px);
  }

  .phone--teachin {
    transform: translate(-55%, 44px) rotate(-5deg);
  }

  .phone--fox {
    transform: translate(55%, 50px) rotate(5deg);
  }

  .app-grid,
  .resource-grid,
  .approach__grid,
  .product-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
  }

  .product-hero__inner {
    min-height: 0;
  }

  .product-support-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero__actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .app-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
