.app-presentation.section {
  padding-block: 42px 80px;
}

.app-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: .8125rem;
  text-underline-offset: 5px;
}

.app-breadcrumb:hover {
  color: var(--accent);
  text-decoration: underline;
}

.app-breadcrumb .icon {
  width: 18px;
  height: 18px;
}

.app-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 58px;
}

.app-detail-copy {
  min-width: 0;
}

.app-detail-copy .eyebrow {
  margin-bottom: 20px;
}

.app-detail-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
}

.app-lede {
  max-width: 48ch;
  margin-top: 24px;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 25px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ice);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.6;
}

.app-status .icon {
  width: 18px;
  height: 18px;
}

.app-platform {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.8;
}

.app-detail-copy .hero-actions {
  margin-top: 25px;
}

.app-hero-media,
.featured-screenshot,
.login-screenshot {
  min-width: 0;
  margin: 0;
}

.app-hero-media > a,
.featured-screenshot > a,
.login-screenshot > a,
.app-gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: zoom-in;
}

.app-hero-media img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.app-hero-media figcaption,
.featured-screenshot figcaption,
.login-screenshot figcaption,
.app-gallery-grid figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.7;
}

.shared-access-app .login-screenshot {
  grid-column: 2 / -1;
  max-width: 880px;
  width: 100%;
  margin-top: 22px;
}

.login-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.app-gallery-grid figure {
  min-width: 0;
  margin: 0;
}

.app-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .shared-access-app .login-screenshot {
    grid-column: 1 / -1;
  }

  .app-gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .app-gallery-grid figure:last-child {
    max-width: 350px;
    justify-self: center;
  }
}

.calendar-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 370px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ice);
}

.calendar-flow-label {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.6;
}

.calendar-flow-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.calendar-flow-inputs > span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.calendar-flow > .icon,
.calendar-flow-arrow,
.calendar-flow-connector {
  justify-self: center;
  color: var(--accent);
}

.calendar-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-flow-result {
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

.calendar-flow-result > .icon {
  display: block;
  width: 35px;
  height: 35px;
  margin-bottom: 20px;
  color: var(--accent);
}

.calendar-flow-result strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.calendar-flow-result p {
  margin-top: 9px;
  font-size: .8125rem;
  line-height: 1.7;
}

.app-narrative.section,
.app-steps.section,
.app-capabilities.section,
.app-roadmap.section {
  padding-block: 80px;
  border-top: 1px solid var(--line);
}

.app-narrative {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 80px;
}

.app-section-heading h2,
.app-steps > h2,
.app-capabilities > h2,
.app-roadmap h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.app-section-heading > p:not(.eyebrow),
.app-roadmap header > p:not(.eyebrow),
.app-steps > p:not(.eyebrow),
.app-capabilities > p:not(.eyebrow) {
  max-width: 55ch;
  margin-top: 22px;
  line-height: 1.85;
}

.app-story-copy {
  max-width: 65ch;
  font-size: 1rem;
  line-height: 1.9;
}

.app-story-copy p + p {
  margin-top: 24px;
}

.app-step-list,
.app-roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.app-step-list li {
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.app-step-number {
  display: block;
  margin-bottom: 19px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 650;
}

.app-step-list h3,
.app-roadmap-list h3,
.app-feature-list h3 {
  font-size: 1.1875rem;
  line-height: 1.45;
}

.app-step-list p,
.app-roadmap-list p {
  margin-top: 14px;
  font-size: .9375rem;
  line-height: 1.85;
}

.app-feature-list {
  margin: 35px 0 0;
}

.app-feature-list > div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 80px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}

.app-feature-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.app-feature-list dd {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.85;
}

.app-roadmap header {
  max-width: 720px;
}

.app-roadmap-list {
  padding-top: 25px;
  border-top: 1px solid var(--line-strong);
}

.app-roadmap-list li {
  min-width: 0;
}

.app-roadmap-list .app-planned-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .055em;
  line-height: 1.6;
}

.app-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.app-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.6;
  text-underline-offset: 5px;
}

.app-detail-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.app-detail-link .icon {
  width: 19px;
  height: 19px;
}

.featured-app {
  align-items: center;
}

.featured-app .app-copy {
  flex: 1 1 0;
  max-width: none;
}

.featured-app .app-detail-link {
  margin-top: 16px;
}

.featured-screenshot {
  flex: 0 1 42%;
  align-self: center;
}

.featured-screenshot img {
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
}

.featured-screenshot .calendar-flow {
  min-height: 235px;
  padding: 20px;
  gap: 12px;
  background: var(--bg);
}

.featured-screenshot .calendar-flow-inputs {
  gap: 9px;
}

.featured-screenshot .calendar-flow-label {
  font-size: .75rem;
}

.featured-screenshot .calendar-flow-inputs > span {
  min-height: 40px;
  padding: 9px 11px;
  font-size: .75rem;
}

.featured-screenshot .calendar-flow-result {
  padding: 18px 14px;
}

.featured-screenshot .calendar-flow-result > .icon {
  width: 27px;
  height: 27px;
  margin-bottom: 14px;
}

.featured-screenshot .calendar-flow-result strong {
  font-size: .875rem;
}

.featured-screenshot .calendar-flow-result p {
  font-size: .75rem;
}

.screenshot-dialog {
  width: min(1140px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.screenshot-dialog::backdrop {
  background: rgb(21 54 75 / .65);
}

.screenshot-close {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 12px auto;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 650;
}

.screenshot-close:hover {
  border-color: var(--accent);
  background: var(--ice);
}

.screenshot-dialog img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.screenshot-dialog .caption {
  margin-top: 16px;
  font-size: .8125rem;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .app-detail-hero {
    gap: 36px;
  }

  .calendar-flow {
    min-height: 335px;
    padding: 23px;
    gap: 12px;
  }

  .app-narrative,
  .app-feature-list > div {
    gap: 50px;
  }

  .app-step-list,
  .app-roadmap-list {
    gap: 30px;
  }

  .featured-screenshot .calendar-flow {
    padding: 16px;
    gap: 9px;
  }
}

@media (max-width: 1023px) {
  .app-presentation.section {
    padding-block: 30px 64px;
  }

  .app-detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .app-detail-copy h1 {
    font-size: clamp(2.2rem, 4.6vw, 3rem);
  }

  .app-lede {
    font-size: .9375rem;
  }

  .app-hero-media .calendar-flow {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
    padding: 22px;
  }

  .app-hero-media .calendar-flow-inputs {
    flex-direction: row;
    gap: 7px;
  }

  .app-hero-media .calendar-flow-inputs > span {
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 7px;
    text-align: center;
    font-size: .75rem;
  }

  .app-hero-media .calendar-flow > .icon,
  .app-hero-media .calendar-flow-arrow {
    transform: rotate(90deg);
  }

  .app-hero-media .calendar-flow-result {
    padding: 18px;
  }

  .app-hero-media .calendar-flow-result > .icon {
    margin-bottom: 14px;
  }

  .featured-app {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .featured-app .app-copy {
    grid-column: 2;
  }

  .featured-screenshot {
    grid-column: 2;
    width: 100%;
    max-width: 560px;
  }

  .featured-screenshot .calendar-flow {
    min-height: 205px;
    padding: 24px;
  }

  .app-narrative.section,
  .app-steps.section,
  .app-capabilities.section,
  .app-roadmap.section {
    padding-block: 64px;
  }

  .app-narrative,
  .app-feature-list > div {
    gap: 35px;
  }
}

@media (max-width: 767px) {
  .app-presentation.section {
    padding-block: 24px 52px;
  }

  .app-breadcrumb {
    margin-bottom: 23px;
  }

  .app-detail-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .app-detail-copy h1 {
    max-width: 15ch;
    font-size: clamp(2.2rem, 8.5vw, 3rem);
  }

  .app-detail-copy .eyebrow {
    margin-bottom: 17px;
    font-size: .6875rem;
  }

  .app-lede {
    margin-top: 20px;
  }

  .app-status {
    margin-top: 20px;
  }

  .app-hero-media img {
    max-height: none;
  }

  .app-hero-media .calendar-flow {
    padding: 24px;
  }

  .app-narrative,
  .app-feature-list > div {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .app-narrative.section,
  .app-steps.section,
  .app-capabilities.section,
  .app-roadmap.section {
    padding-block: 52px;
  }

  .app-narrative {
    gap: 30px;
  }

  .app-section-heading h2,
  .app-steps > h2,
  .app-capabilities > h2,
  .app-roadmap h2 {
    font-size: clamp(1.85rem, 7.2vw, 2.5rem);
  }

  .app-story-copy {
    font-size: .9375rem;
  }

  .app-step-list,
  .app-roadmap-list {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-top: 30px;
  }

  .app-step-list li {
    padding-top: 18px;
  }

  .app-step-number {
    margin-bottom: 12px;
  }

  .app-step-list p,
  .app-roadmap-list p {
    margin-top: 11px;
  }

  .app-roadmap-list li + li {
    padding-top: 23px;
    border-top: 1px solid var(--line);
  }

  .app-feature-list {
    margin-top: 27px;
  }

  .app-feature-list > div {
    gap: 10px;
    padding-block: 22px;
  }

  .app-detail-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 25px;
  }

  .featured-app {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
  }

  .featured-screenshot {
    grid-column: 1 / -1;
    max-width: none;
  }

  .featured-screenshot .calendar-flow {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
    gap: 13px;
  }

  .featured-screenshot .calendar-flow-inputs {
    flex-direction: row;
    gap: 7px;
  }

  .featured-screenshot .calendar-flow-inputs > span {
    flex: 1 1 0;
    justify-content: center;
    padding: 9px 7px;
    text-align: center;
    font-size: .6875rem;
  }

  .featured-screenshot .calendar-flow > .icon,
  .featured-screenshot .calendar-flow-arrow {
    transform: rotate(90deg);
  }

  .featured-screenshot .calendar-flow-result > .icon {
    margin-bottom: 10px;
  }

  .screenshot-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 12px;
    border-radius: 12px;
  }
}

@media (max-width: 400px) {
  .featured-app {
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 13px;
  }

  .app-hero-media .calendar-flow,
  .featured-screenshot .calendar-flow {
    padding: 16px;
  }

  .app-detail-link {
    font-size: .8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-dialog {
    scroll-behavior: auto;
  }
}

@media print {
  .app-presentation.section,
  .app-narrative.section,
  .app-steps.section,
  .app-capabilities.section,
  .app-roadmap.section {
    padding-block: 25px;
  }

  .app-breadcrumb,
  .app-detail-footer,
  .screenshot-dialog {
    display: none !important;
  }

  .app-detail-hero,
  .app-narrative {
    gap: 30px;
  }

  .app-hero-media,
  .app-step-list li,
  .app-feature-list > div,
  .app-roadmap-list li {
    break-inside: avoid;
  }

  .app-detail-copy h1 {
    font-size: 28pt;
  }
}
