/* MyDataTheme - home page.

   The hero is the one saturated block on an otherwise white site: flat navy,
   no gradient, no glow. Everything below it is white or the light alt band, so
   brand weight is concentrated in a single place instead of being spread thin
   across decorative surfaces. */

.md-hero {
    background: var(--md-primary-dark);
    color: #fff;
    padding: 60px 0;
    border-bottom: 4px solid var(--md-primary);
}
.md-hero__inner {
    max-width: var(--md-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
}
.md-hero h1 { color: #fff; font-size: 44px; line-height: 1.14; letter-spacing: -.025em; margin-bottom: 16px; }
.md-hero__lead { color: #c9dcec; font-size: 17px; max-width: 50ch; margin-bottom: 28px; }
.md-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Button roles invert on the navy band, and they have to: the site-wide blue fill
   sits at only 1.6:1 against this navy, so a blue primary would dissolve into the
   background. On a dark surface the solid white fill is the loudest control
   available, so it takes the primary role and the outline takes secondary. */
.md-hero .md-btn--primary { background: #fff; border-color: #fff; color: var(--md-primary-dark); }
.md-hero .md-btn--primary:hover { background: var(--md-primary-soft); border-color: var(--md-primary-soft); color: var(--md-primary-dark); }
.md-hero .md-btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .72); }
.md-hero .md-btn--secondary:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* Hero side card: a white surface on navy, same card language as the rest of
   the page, so the hero is not a separate design island. */
.md-hero__panel {
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    padding: 24px;
}
.md-hero__panel h2 {
    color: var(--md-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--md-border);
}
.md-hero__checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; color: var(--md-ink-soft); }
.md-hero__checklist li { display: flex; gap: 10px; align-items: flex-start; }
.md-hero__checklist svg { flex: 0 0 18px; margin-top: 3px; color: var(--md-primary); }

@media (max-width: 900px) {
    .md-hero { padding: 44px 0; }
    .md-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .md-hero h1 { font-size: 30px; }
    .md-hero__lead { font-size: 16px; }
}
@media (max-width: 640px) {
    .md-hero h1 { font-size: 28px; }
    /* Two CTAs of different label lengths stack ragged when they keep their
       intrinsic width - full width is the only clean stack. */
    .md-hero__actions { flex-direction: column; align-items: stretch; }
    .md-hero__actions .md-btn { width: 100%; }
}

/* -- Assistant feature band ----------------------------------------------- */

.md-home-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .md-home-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.md-home-feature__copy p { color: var(--md-ink-soft); margin-bottom: 24px; max-width: 56ch; }

.md-home-feature__card {
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius-lg);
    padding: 24px;
}
.md-home-feature__card h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--md-muted);
    margin-bottom: 16px;
}
/* Ordered list of the steps the assistant tracks. Numbers, not status marks -
   these are the stages of the flow, never a claim about this visitor. */
.md-home-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: md-step; }
.md-home-steps li {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--md-ink);
}
.md-home-steps li::before {
    counter-increment: md-step;
    content: counter(md-step);
    flex: 0 0 24px;
    width: 24px; height: 24px;
    display: grid;
    place-items: center;
    border-radius: var(--md-radius-sm);
    background: var(--md-primary-soft);
    border: 1px solid var(--md-primary-border);
    color: var(--md-primary-dark);
    font-size: 12.5px;
    font-weight: 700;
}

/* -- Licence management / renewal band ------------------------------------ */

.md-home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-left: 4px solid var(--md-primary);
    border-radius: var(--md-radius-lg);
}
.md-home-cta__copy { flex: 1 1 420px; }
.md-home-cta__copy h2 { font-size: 22px; margin-bottom: 8px; }
.md-home-cta__copy p { margin: 0; color: var(--md-muted); max-width: 68ch; }

@media (max-width: 640px) {
    .md-home-cta { padding: 20px; }
    .md-home-cta .md-btn { width: 100%; }
}

.md-home-support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .md-home-support { grid-template-columns: minmax(0, 1fr); } }
