/* ═══════════════════════════════════════════════════════════ */
/* SECTION 1 - INTRO */
/* ═══════════════════════════════════════════════════════════ */
.download-intro {
    padding: calc(var(--navbar-height) + var(--spacing-2xl)) var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(to bottom, var(--brand-primary-tint-100), var(--surface-background) 90%);
}

/* Not --font-size-hero: that clamps to ~1rem on small screens, which would sink the h1 below the section h2s */
.download-intro h1 {
    font-size: clamp(1.7rem, calc(1.1rem + 2.14vw), 2rem);
    /* font-size: clamp(2rem, calc(2rem + 0.8vw), 2.5rem); */
    color: var(--brand-primary-500);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.download-eyebrow {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    background-color: var(--accent-gold-tint-100);
    color: var(--icon-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-lead {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 2 - NOTIFY SIGNUP FORM */
/* Temporary: replaces the store-links section until the app is published. */
/* ═══════════════════════════════════════════════════════════ */
.download-notify {
    padding: var(--spacing-xl) var(--spacing-md);
}

.download-notify h2 {
    font-size: clamp(1.2rem, calc(0.95rem + 2.14vw), 1.6rem);
    color: var(--brand-primary-500);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

/* Matches the panel treatment on the contact form */
.notify-form-container {
    max-width: 650px;
    background: #E8EFF5;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: var(--shadow-small);
}

#notify-form .form-label,
#notify-form legend.form-label {
    font-weight: 600;
    color: var(--brand-primary-500);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    /* Bootstrap floats legends full-width; this keeps it sized to its text */
    float: none;
    width: auto;
}

#notify-form .required-indicator {
    margin-left: var(--spacing-xs);
}

#notify-form .form-check-label {
    font-weight: normal;
    color: var(--text-primary);
    margin-bottom: 0;
}

.notify-field-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

/* This page doesn't load contact.css, so the shared .form-check treatment
   (flex row, card background) is repeated here rather than cross-imported */
#notify-form .form-check {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--surface-background);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

/* flex-basis: 0 keeps the long consent text on the same line as its checkbox —
   with basis auto its max-content width overflows and wraps below */
#notify-form .form-check .form-check-label {
    flex: 1 1 0;
    min-width: 0;
}

/* Drop the feedback onto its own line instead of a third flex column */
#notify-form .form-check .invalid-feedback {
    flex-basis: 100%;
}

#notify-form .form-check-input {
    -webkit-appearance: none;
    appearance: none;
    float: none;
    margin-left: 0;
    width: 1.4em;
    height: 1.4em;
    border: 2px solid var(--border-default);
    border-radius: 4px;
    background-color: var(--surface-background);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#notify-form .form-check-input[type="radio"] {
    border-radius: var(--radius-rounded);
}

#notify-form .form-check-input:checked {
    background-color: var(--brand-primary-500);
    border-color: var(--brand-primary-500);
    background-repeat: no-repeat;
    background-position: center;
}

#notify-form .form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 80%;
}

#notify-form .form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
    background-size: 100%;
}

#notify-form .form-check-input:focus {
    outline: 3px solid var(--brand-primary-tint-200);
    outline-offset: 2px;
}

#notify-form .form-control {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background-color: var(--surface-background);
}

#notify-form .form-control:focus {
    border-color: var(--brand-primary-500);
    box-shadow: var(--shadow-form-input);
}

/* Bootstrap's own invalid styles are (0,3,0) and lose to the id-scoped rules
   above, so the error state is restated at a specificity that wins */
#notify-form.was-validated .form-control:invalid,
#notify-form.was-validated .form-check-input:invalid {
    border-color: #dc3545;
}

#notify-form.was-validated .form-check-input:invalid:focus {
    outline-color: #f5c2c7;
}

/* The consent text is a <p> inside .form-check, so it needs the same indent
   Bootstrap gives a real .form-check-label */
.notify-consent .form-check-label {
    margin-bottom: 0;
}

.notify-footnote a {
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────── */
/* Success panel (shown once the signup goes through)          */
/* ─────────────────────────────────────────────────────────── */
.notify-success {
    padding: var(--spacing-md) 0;
}

.notify-success:focus {
    outline: 3px solid var(--brand-primary-tint-200);
    outline-offset: 4px;
}

.notify-success-icon {
    font-size: 2.5rem;
    color: var(--brand-primary-500);
    margin-bottom: var(--spacing-sm);
}

.notify-success h3 {
    color: var(--brand-primary-500);
    margin-bottom: var(--spacing-sm);
}

/* ═══════════════════════════════════════════════════════════ */
/* SECTION 3 - AFTER YOU INSTALL */
/* ═══════════════════════════════════════════════════════════ */
.download-next {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-2xl);
    background: linear-gradient(to bottom, var(--surface-background), var(--bg-yellow));
}

.download-next h2 {
    font-size: clamp(1.2rem, calc(0.95rem + 2.14vw), 1.6rem);
    /* font-size: clamp(1.6rem, calc(1.6rem + 0.5vw), 2rem); */
    font-weight: 600;
    color: var(--brand-primary-500);
    margin-bottom: var(--spacing-md);
}

.download-next-lead {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.download-next-links {
    max-width: 640px;
    margin: 0 auto;
}

.download-next-links li {
    margin-bottom: var(--spacing-md);
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER */
/* ═══════════════════════════════════════════════════════════ */

footer {
    padding-top: var(--spacing-xl);
}