/* Homepage teasers for the sections that moved to their own pages:
   #about -> about.html, #testimonials -> stories.html, #community -> community.html. */
.ht-section { padding: 64px 0; }
.ht-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ht-center { justify-content: center; }

/* About Dr. Daniel */
.ht-about { display: flex; align-items: center; gap: 28px; padding: 26px 28px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
.ht-about-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid color-mix(in srgb, var(--accent-2) 60%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent); }
.ht-about-text h2 { margin: 6px 0 8px; }
.ht-about-text p { margin: 0; color: var(--text-muted); max-width: 760px; line-height: 1.6; }
@media (max-width: 640px) {
  .ht-section { padding: 48px 0; }
  .ht-about { flex-direction: column; text-align: center; padding: 22px 18px; gap: 16px; }
  .ht-about-photo { width: 110px; height: 110px; }
  .ht-about .ht-actions { justify-content: center; }
}

/* Student stories: three quotes (founder 2026-10-18, "what else needs an ultra premium container").
   These were the oldest looking component left on the homepage: a flat fill, a hairline border and a
   small quote mark, next to a hero panel and a footer that had both moved on. They now carry the same
   language as the hero's app panel: a light wash from the top, a coloured hairline, a lift on hover,
   and the attribution separated by a rule instead of floating under the text. The accent is the
   purple the hover state already used. Corners stay square (square.css); the only circle is the
   student's disc, which sets its own radius inline. */
.ht-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 8px; }
.ht-quotes[hidden] { display: none; }
.ht-quote {
  position: relative; margin: 0; padding: 26px 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
  background:
    radial-gradient(130% 100% at 0% 0%, rgba(124, 108, 255, .17), transparent 62%),
    linear-gradient(180deg, rgba(16, 22, 46, .95), rgba(10, 14, 30, .95));
  border: 1px solid rgba(124, 108, 255, .3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 26px 50px -34px rgba(124, 108, 255, .85);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ht-quote:hover {
  border-color: rgba(124, 108, 255, .6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 30px 56px -30px rgba(124, 108, 255, 1);
}
/* The quote mark hangs off the card, not off the blockquote. Inside the blockquote it became part of
   the -webkit-line-clamp box, so on the two cards long enough to clamp it rendered squashed while the
   short card's looked right. As a flex item of the figure it is outside that box and all three match. */
.ht-quote::before {
  content: "\201C"; display: block; font: 700 3.1rem/1 Georgia, serif;
  color: rgba(124, 108, 255, .62); height: .42em; margin-bottom: 2px;
}
.ht-quote blockquote { margin: 0; font-size: 1rem; line-height: 1.62; color: var(--text); }
.ht-quote blockquote.ht-clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.ht-quote blockquote.ht-clamp.ht-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ht-more { align-self: flex-start; margin: -4px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 600 0.88rem var(--font-body, inherit); color: var(--accent-2); }
.ht-more:hover { text-decoration: underline; }

/* Who said it: a disc with their initial, then the name over the city. */
.ht-quote figcaption {
  margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(124, 108, 255, .2);
  display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--text-muted);
}
.ht-av {
  flex: none; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--font-head, inherit); color: #fff; letter-spacing: 0;
  background: linear-gradient(140deg, hsl(var(--ht-h, 250deg) 68% 56%), hsl(var(--ht-h, 250deg) 72% 38%));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset;
}
.ht-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ht-who strong { color: var(--text); font-size: 0.92rem; }
.ht-city { font-size: 0.8rem; color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) { .ht-quote:hover { transform: translateY(-3px); } }
@media (max-width: 860px) { .ht-quotes { grid-template-columns: minmax(0, 1fr); } }

/* Community */
.ht-community { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, #229ed9 14%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
.ht-community-text h2 { margin: 6px 0 8px; }
.ht-community-text p { margin: 0; color: var(--text-muted); }
.ht-community-text strong { color: var(--text); }
.ht-community .ht-actions { margin-top: 0; }
@media (max-width: 640px) { .ht-community { padding: 22px 18px; } }

/* Compact cards: as wide as their content, centred, never a wide empty box. */
#about > .container.ht-about { max-width: 900px; margin-left: auto; margin-right: auto; }
.ht-community { max-width: 760px; margin: 0 auto; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 28px 28px 26px; }
.ht-community-text h2 { margin: 8px 0 8px; }
.ht-community .ht-actions { justify-content: center; }
