/* Heart marketing site, in the Ink preset of the Heart design system.
   The tokens (colors, faces, radii) come from tokens.css, generated from
   shared/heart_design/tokens.json; this file only uses them, and never
   invents a twelfth. */

/* In-page links (Get App, the support index) slide rather than jump. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-text);
}

/* Workout card, straight from the design system's component spec:
   title → date → two hero stats in the display face → hairline → roster. */
.workout-card {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 12px 14px 16px;
    font-family: var(--font-text);
    font-size: 12px;
    line-height: 1.4;
}

.workout-card .wc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workout-card .wc-title {
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 600;
}

.workout-card .wc-more {
    color: var(--faint);
    letter-spacing: 2px;
}

.workout-card .wc-date {
    color: var(--muted);
}

.workout-card .wc-stats {
    display: flex;
    margin-top: 14px;
}

.workout-card .wc-stat {
    flex: 1;
}

.workout-card .wc-value {
    font-family: var(--font-display, var(--font-title));
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
}

.workout-card .wc-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.workout-card .wc-rule {
    height: 1px;
    background: var(--border);
    margin: 12px 0 8px;
}

.workout-card .wc-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.workout-card .wc-row + .wc-row {
    margin-top: 4px;
}

.workout-card .wc-row span:first-child {
    color: var(--muted);
}

.workout-card .wc-row span:last-child {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Entrance motion. The system is silent on motion; keep it short and honest. */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.3s;
}

.animate-delay-300 {
    animation-delay: 0.5s;
}

.opacity-0 {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-in {
        animation: none;
        opacity: 1;
    }
}

/* Utility classes must not resurrect an element the hidden attribute removed. */
[hidden] {
    display: none !important;
}

/* "On the roadmap" mark in the comparison table: a quiet tag, never a pill. */
.roadmap {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--fill);
    color: var(--accent-ink);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Code in blog posts, highlighted at build time (pages/lib/code_block.dart).
   Accent-ink for the language, ink for the names, the destructive red only
   as a hue for literals: no new colours. */
.tok-keyword {
    color: var(--accent-ink);
}

.tok-type {
    color: var(--ink);
    font-weight: 600;
}

.tok-string,
.tok-constant {
    color: var(--destructive);
}

.tok-comment {
    color: var(--faint);
    font-style: italic;
}
