/* App-Showcase-Seiten (z. B. /atemtimer/).
   Baut auf styles.css auf; die App-Farbe kommt pro Seite über --app / --app-rgb. */

.app-page {
  --app: #1c6b73;
  --app-rgb: 28, 107, 115;
  --app-soft: #e3f1f2;
}

.app-page section { padding: 96px 0; }

.app-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--app);
  margin-bottom: 14px;
}

.app-section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 18px;
  max-width: 760px;
}

.app-section-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
}

/* --- Hero --- */

.app-hero {
  padding: 160px 0 72px !important;
  position: relative;
  overflow: hidden;
}

.app-hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -180px;
  background: radial-gradient(circle, rgba(var(--app-rgb), 0.16), transparent 62%);
  pointer-events: none;
}

.app-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  position: relative;
}

.app-hero__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.app-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: var(--shadow-lg);
}

.app-hero__meta {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.app-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 22px;
}

.app-hero h1 span { color: var(--app); }

.app-hero__copy {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 20px;
  border-radius: 14px;
  background: #0b0f17;
  color: #fff !important;
  border: 1px solid #0b0f17;
  line-height: 1.15;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.app-store-btn small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.app-store-btn b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-store-btn svg { flex: none; }

a.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-store-btn[aria-disabled="true"] { cursor: default; }

.app-hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
}

/* --- Phone frames --- */

.phone {
  position: relative;
  border-radius: 46px;
  padding: 10px;
  background: #11161f;
  box-shadow:
    0 0 0 1.5px #2a3240,
    0 30px 60px -18px rgba(15, 23, 42, 0.45),
    0 12px 24px -10px rgba(15, 23, 42, 0.25);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 37px;
  background: #eaf0f4;
}

.phone--dark img { background: #0a1a28; }

.app-hero__phones {
  position: relative;
  height: 640px;
}

.app-hero__phones .phone {
  position: absolute;
  width: 280px;
}

.app-hero__phones .phone:nth-child(1) {
  right: 0;
  top: 40px;
  transform: rotate(4deg);
}

.app-hero__phones .phone:nth-child(2) {
  left: 4%;
  top: 0;
  transform: rotate(-3deg);
  z-index: 1;
}

/* --- Facts --- */

.app-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
  position: relative;
}

.app-fact {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}

.app-fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--app);
  line-height: 1.1;
  margin-bottom: 6px;
}

.app-fact span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Story / two column --- */

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

.app-split p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 16px;
}

.app-split .app-quote {
  border-left: 3px solid var(--app);
  padding: 4px 0 4px 22px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 28px 0 0;
}

/* --- Features --- */

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

.app-feature {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.app-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--app-soft);
  color: var(--app);
  margin-bottom: 18px;
}

.app-feature h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.app-feature p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Gallery --- */

.app-gallery-section {
  background: linear-gradient(180deg, rgba(var(--app-rgb), 0.06), rgba(var(--app-rgb), 0.02));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.app-gallery--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }

.app-gallery figure { margin: 0; }

.app-gallery figcaption {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.app-gallery figcaption b {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 2px;
}

/* --- Patterns --- */

.app-patterns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.app-pattern {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border);
}

.app-pattern b {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-pattern span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.app-pattern i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.app-pattern i.go { background: var(--app-soft); color: var(--app); }
.app-pattern i.solo { border: 1px solid var(--border-strong); color: var(--text-muted); }

.app-hint {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

/* --- Privacy band --- */

.app-privacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  background: #0b1a24;
  color: #dbe7ec;
  border-radius: 28px;
  padding: 44px 48px;
}

.app-privacy__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(103, 200, 206, 0.14);
  color: #67c8ce;
}

.app-privacy h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
}

.app-privacy p {
  color: #a9bcc5;
  line-height: 1.7;
  font-size: 16px;
}

.app-privacy .btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  white-space: nowrap;
}

.app-privacy .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* --- Build / reference --- */

.app-build {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.app-build__list {
  display: grid;
  gap: 14px;
}

.app-build__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.app-build__item:first-child { border-top: 1px solid var(--border); }

.app-build__item b {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.app-build__item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

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

/* --- Support strip --- */

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

.app-support a.app-support__card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.app-support a.app-support__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-support__card b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}

.app-support__card span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: break-word;
}

.app-disclaimer {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 760px;
}

/* --- Responsive --- */

@media (max-width: 1040px) {
  .app-gallery.app-gallery--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
  .app-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-left: auto; margin-right: auto; }
  .app-patterns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-page section { padding: 72px 0; }
  .app-hero { padding: 120px 0 56px !important; }
  .app-hero__grid, .app-split, .app-build { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .app-hero__phones { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .app-hero__phones .phone { width: 230px; }
  .app-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .app-privacy { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; gap: 20px; }
  .app-support { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .app-gallery.app-gallery--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-features, .app-patterns { grid-template-columns: minmax(0, 1fr); }
  .app-gallery { gap: 18px; }
  .app-hero__phones { height: 420px; }
  .app-hero__phones .phone { width: 186px; border-radius: 34px; padding: 7px; }
  .app-hero__phones .phone img { border-radius: 28px; }
  .app-gallery .phone { border-radius: 30px; padding: 6px; }
  .app-gallery .phone img { border-radius: 25px; }
  .app-build__item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .app-fact b { font-size: 28px; }
}
