/* Aplikace (/aplikace/): the native apps' promotion page. Builds on about.css (breadcrumbs, the activity list,
   the navy membership band) and shows the real iOS screens in a plain phone outline, never a fake device. */
.apps-hero { padding-top: 30px; overflow-x: clip; }
.apps-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 28px; }
.apps-hero__copy { padding-bottom: 56px; }
.apps-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.08; max-width: 15ch; }
.apps-hero__lead { max-width: 46ch; margin-top: 24px; font-size: 1.125rem; line-height: 1.75; color: var(--on-dark-2); }
.apps-eyebrow { margin-bottom: 16px; color: var(--teal-300); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.apps-eyebrow--light { color: var(--teal-700); margin-bottom: 12px; }
.apps-requires { margin-top: 16px; color: var(--on-dark-3); font-size: .8125rem; }
.apps-testing { margin-top: 12px; color: var(--on-dark-2); font-size: .9375rem; }
.apps-testing a { color: var(--teal-300); font-weight: 600; white-space: nowrap; }
.apps-testing svg { width: 1em; height: 1em; vertical-align: -.125em; }

/* Store badges: Apple's and Google's own artwork at the same visible height (Google's PNG is cropped to its badge). */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.store-badge { display: inline-flex; border-radius: 9px; transition: transform .25s var(--ease-out); }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 50px; width: auto; }
.store-badge:focus-visible { outline-offset: 4px; }

/* Phone: the screenshot with the display's corner radius and a dark bezel drawn as a shadow, so layout ignores it. */
.phone { width: 100%; height: auto; border-radius: 13% / 6%; background: var(--paper-2); box-shadow: 0 0 0 5px #050d17, 0 0 0 6px rgba(226, 235, 245, .14), var(--shadow-float); }
/* The two phones overlap in one grid cell. Only their top shows: the clip cuts them flat where the white sheet
   begins, as if they stood behind it, and leaves the sides and the shadows free. */
.apps-hero__phones { display: grid; justify-content: center; align-self: end; height: 520px; padding-top: 8px; clip-path: inset(-80px -100vw 0 -100vw); }
.apps-hero__phones .phone { grid-area: 1 / 1; align-self: start; }
.phone--back { width: clamp(180px, 19vw, 240px); margin-top: 64px; transform: translateX(-46%); filter: brightness(.86); }
.phone--front { width: clamp(200px, 21vw, 270px); transform: translateX(26%); }

/* Opening question block */
.apps-intro__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.apps-page h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.apps-intro__questions { font: 500 clamp(1.25rem, 1.05rem + .8vw, 1.6rem)/1.45 var(--font-display); color: var(--ink); }
.apps-intro__grid p + p { margin-top: 18px; color: var(--ink-2); max-width: 62ch; }

/* Feature rows: copy beside one screen, alternating sides */
.app-feature { padding-block: clamp(48px, 6vw, 72px); }
.app-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.app-feature__grid--flip .app-feature__copy { order: 2; }
.app-feature__copy { max-width: 50ch; justify-self: end; }
.app-feature__grid--flip .app-feature__copy { justify-self: start; }
.app-feature__copy p:last-child { margin-top: 18px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.app-feature__shot { margin: 0; width: min(290px, 100%); justify-self: start; }
.app-feature__grid--flip .app-feature__shot { justify-self: end; }
.app-feature__shot .phone { box-shadow: 0 0 0 5px var(--navy-900), var(--shadow-card); }

.apps-page .activity-list dd { font-size: 1rem; line-height: 1.7; }

/* Download band */
.apps-download { padding-block: clamp(48px, 6vw, 72px); }
.apps-download h2 { color: var(--on-dark); }
.apps-steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.apps-steps li { counter-increment: step; display: flex; align-items: baseline; gap: 14px; color: var(--on-dark-2); }
.apps-steps li::before { content: counter(step); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-400); color: var(--navy-900); font-weight: 700; font-size: .875rem; transform: translateY(-1px); }
.apps-steps strong { color: var(--on-dark); }
.apps-qr { display: flex; gap: 28px; align-items: center; }
.apps-qr img { flex: none; width: 160px; height: 160px; padding: 10px; background: var(--paper); border-radius: var(--radius-m); }
.apps-qr p { margin: 10px 0 0; }
.apps-qr .more { font-size: .875rem; white-space: normal; }

@media (max-width: 900px) {
  .apps-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .apps-hero__copy { padding-bottom: 36px; }
  .apps-hero__phones { height: 340px; }
  .phone--back { width: 180px; margin-top: 40px; transform: translateX(-34%); }
  .phone--front { width: 200px; transform: translateX(22%); }
  .app-feature__grid, .app-feature__grid--flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .app-feature__grid--flip .app-feature__copy { order: 0; }
  .app-feature__copy, .app-feature__grid--flip .app-feature__copy { justify-self: start; }
  .app-feature__shot, .app-feature__grid--flip .app-feature__shot { justify-self: center; width: min(260px, 72vw); }
}
/* A phone needs no code to reach this page: the QR panel is for computers only. */
@media (max-width: 900px), (hover: none) {
  .apps-download .membership__grid { grid-template-columns: minmax(0, 1fr); }
  .apps-qr { display: none; }
}
@media (max-width: 640px) {
  .apps-hero { padding-top: 20px; }
  .apps-hero__grid { padding-top: 20px; }
  .apps-hero__lead { font-size: 1rem; }
  .apps-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .store-badge img { height: 46px; }
}

/* Testování (/aplikace/testovani/): the sign-up for the Android closed test. The form is the membership form's. */
.testing-hero__cta { margin-top: 32px; }
.testing-hero__phone { height: 460px; }
.testing-hero__phone .phone--front { transform: none; }
.testing-steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.testing-steps li { counter-increment: step; padding: 22px 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); }
.testing-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-700); color: var(--paper); font-weight: 700; font-size: .9375rem; }
.testing-steps h3 { margin-top: 14px; font-size: 1.125rem; }
.testing-steps p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; line-height: 1.65; }
.testing-page #prihlaska { scroll-margin-top: 16px; }
.testing-page #prihlaska:focus { outline: none; }
.testing-page .application h2 + p { margin-top: 14px; color: var(--ink-2); }
.testing-sent p + p { margin-top: 16px; color: var(--ink-2); }
@media (max-width: 1000px) {
  .testing-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* On a phone the form matters more than a picture of one. */
@media (max-width: 900px) {
  .testing-hero__phone { display: none; }
}
@media (max-width: 560px) {
  .testing-steps { grid-template-columns: minmax(0, 1fr); }
}
