/* The welcome page (web/index.html): a hero band in the colors of the site
   icon, and a grid of app cards with each app's icon. */

.ct-home { display: flex; flex-direction: column; min-height: 100vh; }

header.ct-bar .ct-logo { display: block; margin-right: -6px; border-radius: 6px; }

.ct-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 120%, rgba(240, 140, 58, 0.35), transparent 55%),
    linear-gradient(135deg, #1e3a5f 0%, #2f6f5e 100%);
}
/* A faint ridge line along the bottom of the band. */
.ct-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 48px;
  background: var(--bg);
  clip-path: polygon(0 70%, 12% 40%, 22% 62%, 36% 18%, 50% 58%, 63% 30%, 76% 64%, 88% 36%, 100% 60%, 100% 100%, 0 100%);
}
.ct-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px 72px;
}
.ct-hero-logo { flex-shrink: 0; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.ct-hero h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
.ct-hero-sub { margin: 4px 0 0; opacity: 0.85; font-size: 16px; }

main.ct-home-main { flex: 1; width: 100%; max-width: 960px; padding-top: 8px; }

.ct-section-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ct-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-app {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ct-app:hover, .ct-app:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.ct-app:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-app-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.ct-app-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 28px;
  font-weight: 700;
}
.ct-app-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ct-app-title { font-size: 17px; font-weight: 600; }
.ct-app-desc { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ct-app-go { color: var(--muted); transition: transform 0.15s ease, color 0.15s ease; }
.ct-app:hover .ct-app-go { transform: translateX(3px); color: var(--accent); }

.ct-home-footer {
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .ct-app, .ct-app-go { transition: none; }
  .ct-app:hover, .ct-app:focus-visible { transform: none; }
}

@media (max-width: 480px) {
  .ct-hero-inner { padding: 28px 16px 60px; }
  .ct-hero-logo { width: 56px; height: 56px; }
}
