/* ===================================================================
   YakTimer marketing / landing page
   Built to WCAG 2.1 AA:
   - 17px readable base, line-height ≥1.5 (SC 1.4.4 resize, 1.4.12 spacing)
   - all body text ≥ 4.5:1 contrast, large text ≥ 3:1 (SC 1.4.3)
   - visible keyboard focus on every control (SC 2.4.7)
   - rem units so text scales/zooms to 200% cleanly
   - reflows to one column with no horizontal scroll on small screens
   Everything is scoped under .yt-home so the app UI is untouched.
   =================================================================== */

.yt-home {
    font-size: 1.0625rem;          /* ~17px */
    line-height: 1.6;
    color: #1f2933;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 72px;
    box-sizing: border-box;
}
.yt-home *,
.yt-home *::before,
.yt-home *::after { box-sizing: border-box; }

/* Visible keyboard focus (SC 2.4.7) */
.yt-home a:focus-visible,
.yt-home button:focus-visible,
.yt-home .yt-btn:focus-visible {
    outline: 3px solid #1c5fd6;
    outline-offset: 3px;
}

/* ---- Buttons ---- */
.yt-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.yt-btn {
    display: inline-block;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 14px 26px;            /* generous target size (SC 2.5.5) */
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.yt-btn-primary { background: #0b5ed7; color: #ffffff; }      /* white on #0b5ed7 ≈ 5.2:1 */
.yt-btn-primary:hover { background: #0a52be; }
.yt-btn-secondary { background: #ffffff; color: #0a4aa8; border-color: #b9ccea; }
.yt-btn-secondary:hover { background: #f1f6fd; }
.yt-btn-on-dark { background: #ffffff; color: #0a4aa8; }
.yt-btn-on-dark:hover { background: #eef3fb; }

/* ---- Hero ---- */
.yt-hero {
    text-align: center;
    padding: 56px 16px 44px;
    background: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%);
    border-radius: 0 0 16px 16px;
    margin-bottom: 8px;
}
.yt-hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #11212b;
}
.yt-hero .yt-subhead {
    font-size: 1.25rem;
    line-height: 1.55;
    color: #44505b;                /* ≈ 7:1 on white */
    max-width: 680px;
    margin: 0 auto 28px;
}
.yt-hero .yt-cta-row { justify-content: center; }
.yt-hero .yt-reassure {
    margin: 18px 0 0;
    font-size: 1rem;
    color: #4d5864;                /* ≈ 7:1 */
}

/* ---- Section headings ---- */
.yt-section { padding: 48px 0 8px; }
.yt-section > h2 {
    font-size: 1.9rem;
    line-height: 1.25;
    color: #11212b;
    text-align: center;
    margin: 0 0 8px;
}
.yt-section > .yt-section-intro {
    font-size: 1.15rem;
    color: #44505b;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 32px;
}

/* ---- Feature grid ---- */
.yt-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.yt-feature {
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    padding: 24px;
}
.yt-feature .yt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e7f0fc;
    color: #0a4aa8;                /* icon colour ≈ 6:1 on its tile */
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.yt-feature h3 {
    font-size: 1.2rem;
    color: #11212b;
    margin: 0 0 8px;
}
.yt-feature p {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: #3a4651;                /* ≈ 8:1 on white */
    margin: 0;
}

/* ---- How it works ---- */
.yt-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.yt-step {
    text-align: center;
    padding: 8px 12px;
}
.yt-step .yt-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0b5ed7;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.yt-step h3 {
    font-size: 1.2rem;
    color: #11212b;
    margin: 0 0 6px;
}
.yt-step p {
    font-size: 1.0625rem;
    color: #3a4651;
    margin: 0;
}

/* ---- Closing CTA band ---- */
.yt-cta-band {
    margin-top: 56px;
    background: #11212b;           /* white text on this ≈ 14:1 */
    color: #ffffff;
    border-radius: 16px;
    padding: 44px 24px;
    text-align: center;
}
.yt-cta-band h2 { font-size: 1.9rem; margin: 0 0 10px; color: #ffffff; }
.yt-cta-band p { font-size: 1.2rem; color: #e6ebf1; margin: 0 0 24px; }  /* ≈ 13:1 */
.yt-cta-band .yt-cta-row { justify-content: center; }

/* ---- Responsive: stack to one column, no horizontal scroll at 320px ---- */
@media (max-width: 880px) {
    .yt-features { grid-template-columns: 1fr 1fr; }
    .yt-steps { grid-template-columns: 1fr; }
    .yt-hero h1 { font-size: 2.1rem; }
    .yt-section > h2, .yt-cta-band h2 { font-size: 1.6rem; }
}
@media (max-width: 560px) {
    .yt-features { grid-template-columns: 1fr; }
    .yt-hero { padding: 40px 12px 32px; }
}
