/* ================================================================
   Download Page — download.css
   ================================================================ */

/* ── Shared helpers ───────────────────────────────────────────── */
.section-eyebrow {
    display: inline-flex; align-items: center;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #4f46e5; background: #ede9fe;
    padding: 0.25rem 0.85rem; border-radius: 20px;
    margin-bottom: 0.85rem;
}

.section-header {
    text-align: center; max-width: 600px; margin: 0 auto 3rem;
}

.section-title {
    font-size: 2rem; font-weight: 900; color: #111827;
    letter-spacing: -0.5px; margin-bottom: 0.75rem; line-height: 1.2;
}

.section-desc {
    font-size: 1rem; color: #6b7280; line-height: 1.7; margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.dl-hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(160deg, #fafafe 0%, #f0f0ff 60%, #fafafe 100%);
    position: relative; overflow: hidden;
}

.dl-hero-orb {
    position: absolute; border-radius: 50%;
    pointer-events: none; filter: blur(80px); opacity: 0.3;
}

.orb-a {
    width: 380px; height: 380px;
    background: #c4b5fd; top: -120px; right: -80px;
}

.orb-b {
    width: 220px; height: 220px;
    background: #a5b4fc; bottom: -60px; left: -50px;
}

.dl-hero-inner {
    display: flex; align-items: center;
    gap: 3rem; position: relative; z-index: 1;
}

/* ── Copy ─────────────────────────────────────────────────────── */
.dl-hero-copy { flex: 1; max-width: 520px; }

.dl-eyebrow {
    display: inline-flex; align-items: center;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #4f46e5; background: #ede9fe;
    padding: 0.25rem 0.85rem; border-radius: 20px;
    margin-bottom: 1.25rem;
}

.dl-hero-title {
    font-size: 2.8rem; font-weight: 900;
    color: #111827; letter-spacing: -1px;
    line-height: 1.15; margin-bottom: 1rem;
}

.dl-hero-accent {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-hero-desc {
    font-size: 1rem; color: #6b7280;
    line-height: 1.7; margin-bottom: 1.5rem;
}

/* Version strip */
.dl-version-strip {
    display: flex; align-items: center;
    flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 1.75rem;
}

.dl-version-item {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.75rem; font-weight: 500; color: #6b7280;
}

.dl-version-item i { color: #4f46e5; font-size: 0.72rem; }
.dl-version-sep    { color: #d1d5db; font-size: 0.75rem; }

/* Download buttons */
.dl-buttons {
    display: flex; gap: 0.85rem;
    flex-wrap: wrap; margin-bottom: 1.25rem;
}

/* Microsoft Store button */
.btn-dl-store {
    display: inline-flex; align-items: center; gap: 0.85rem;
    background: #000; color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.25rem; border-radius: 12px;
    transition: opacity 0.15s, transform 0.1s;
    border: 1.5px solid #000;
}

.btn-dl-store:hover {
    opacity: 0.88; transform: translateY(-1px); color: #fff;
}

.btn-dl-store-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}

.btn-dl-store-text {
    display: flex; flex-direction: column; gap: 1px;
}

.btn-dl-store-sub {
    font-size: 0.65rem; opacity: 0.7; font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.btn-dl-store-main {
    font-size: 0.95rem; font-weight: 700; letter-spacing: -0.2px;
}

.btn-dl-store-arrow {
    font-size: 0.72rem; opacity: 0.5; margin-left: 0.25rem;
}

/* Protocol button */
.btn-dl-protocol {
    display: inline-flex; align-items: center;
    background: #fff; color: #374151;
    text-decoration: none;
    font-size: 0.875rem; font-weight: 600;
    padding: 0.7rem 1.25rem; border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: border-color 0.15s, color 0.15s;
}

.btn-dl-protocol:hover { border-color: #4f46e5; color: #4f46e5; }
.btn-dl-protocol i { color: #4f46e5; }

/* Trust row */
.dl-trust-row {
    display: flex; flex-wrap: wrap; gap: 1rem;
}

.dl-trust-row span {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.75rem; color: #9ca3af; font-weight: 500;
}

.dl-trust-row i { color: #059669; font-size: 0.72rem; }

/* ── Visual card ──────────────────────────────────────────────── */
.dl-hero-visual {
    flex: 1; max-width: 420px; position: relative;
}

.dl-app-card {
    background: #fff; border-radius: 18px;
    border: 1.5px solid #f3f4f6;
    box-shadow: 0 20px 60px rgba(79,70,229,0.12),
                0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* App header */
.dl-app-card-header {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-bottom: 1.5px solid rgba(255,255,255,0.08);
}

.dl-app-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}

.dl-app-name {
    font-size: 0.95rem; font-weight: 800; color: #fff;
    margin-bottom: 0.15rem;
}

.dl-app-publisher {
    font-size: 0.72rem; color: rgba(255,255,255,0.55);
}

.dl-app-badge {
    margin-left: auto;
    font-size: 1.4rem; color: #818cf8;
}

/* Identity block */
.dl-identity-block {
    padding: 1rem 1.5rem;
    border-bottom: 1.5px solid #f3f4f6;
    display: flex; flex-direction: column; gap: 0.55rem;
}

.dl-identity-row {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 0.75rem;
}

.dl-identity-label {
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #9ca3af; flex-shrink: 0; min-width: 80px;
    padding-top: 1px;
}

.dl-identity-value {
    font-size: 0.75rem; text-align: right;
}

.dl-identity-value code {
    font-size: 0.72rem; background: #f3f4f6;
    padding: 0.15rem 0.4rem; border-radius: 4px; color: #374151;
}

.dl-identity-value.text { color: #374151; font-weight: 500; }

.dl-identity-value code.sm { font-size: 0.65rem; }

/* Card store button */
.dl-card-store-btn {
    display: flex; align-items: center;
    gap: 0.5rem; padding: 0.85rem 1.5rem;
    font-size: 0.82rem; font-weight: 700;
    color: #4f46e5; text-decoration: none;
    background: #fafafa;
    border-bottom: 1.5px solid #f3f4f6;
    transition: background 0.15s;
}

.dl-card-store-btn:hover { background: #ede9fe; color: #4f46e5; }
.dl-card-store-btn i:first-child { font-size: 1rem; }

/* QR hint */
.dl-card-qr-hint {
    padding: 0.65rem 1.5rem;
    font-size: 0.72rem; color: #9ca3af;
    display: flex; align-items: center; gap: 0.35rem;
}

/* Floating badge */
.dl-float-badge {
    position: absolute; bottom: -16px; left: -24px;
    display: flex; align-items: center; gap: 0.65rem;
    background: #fff; border-radius: 12px;
    padding: 0.65rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1.5px solid #f3f4f6;
    animation: dl-float 4s ease-in-out infinite;
}

.dl-float-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #059669; flex-shrink: 0;
    animation: dl-pulse 1.5s infinite;
}

.dl-float-title {
    font-size: 0.78rem; font-weight: 700; color: #111827;
}

.dl-float-sub {
    font-size: 0.68rem; color: #9ca3af; margin-top: 1px;
}

@keyframes dl-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes dl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ════════════════════════════════════════════════════════════════
   INSTALL GUIDE
   ════════════════════════════════════════════════════════════════ */
.dl-guide-section {
    padding: 5rem 0 4rem; background: #fff;
}

.dl-steps {
    display: flex; align-items: flex-start;
    justify-content: center; gap: 0;
    margin-bottom: 2rem;
}

.dl-step {
    flex: 1; max-width: 280px;
    position: relative; text-align: center;
}

.dl-step-num {
    position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}

.dl-step-card {
    background: #f9fafb; border: 1.5px solid #f3f4f6;
    border-radius: 16px; padding: 1.5rem 1.25rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.dl-step-card:hover {
    box-shadow: 0 4px 20px rgba(79,70,229,0.1);
    border-color: #c4b5fd;
}

.dl-step-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto 1rem;
}

.dl-step-icon.blue   { background: #dbeafe; color: #2563eb; }
.dl-step-icon.indigo { background: #ede9fe; color: #4f46e5; }
.dl-step-icon.green  { background: #d1fae5; color: #059669; }

.dl-step-card h3 {
    font-size: 0.9rem; font-weight: 800;
    color: #111827; margin-bottom: 0.5rem;
}

.dl-step-card p {
    font-size: 0.78rem; color: #6b7280;
    line-height: 1.6; margin-bottom: 1rem;
}

.dl-step-card p a {
    color: #4f46e5; text-decoration: none; font-weight: 600;
}

.dl-step-card p a:hover { text-decoration: underline; }

.dl-step-action {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 700;
    color: #4f46e5; text-decoration: none;
    transition: gap 0.15s;
}

.dl-step-action:hover { gap: 0.5rem; color: #4f46e5; }

.dl-step-action.store { color: #000; }
.dl-step-action.store:hover { color: #000; }

/* Arrow between steps */
.dl-step-arrow {
    display: flex; align-items: center; justify-content: center;
    padding-top: 40px; color: #c4b5fd;
    font-size: 1.25rem; flex-shrink: 0; padding-left: 0.5rem; padding-right: 0.5rem;
}

/* Guide note */
.dl-guide-note {
    display: flex; align-items: flex-start; gap: 0.75rem;
    background: #fffbeb; border: 1.5px solid #fde68a;
    border-radius: 12px; padding: 1rem 1.25rem;
    font-size: 0.82rem; color: #92400e; line-height: 1.6;
    max-width: 700px; margin: 0 auto;
}

.dl-guide-note i { color: #d97706; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════
   REQUIREMENTS
   ════════════════════════════════════════════════════════════════ */
.dl-requirements-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.dl-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.dl-req-card {
    background: #fff; border: 1.5px solid #f3f4f6;
    border-radius: 16px; padding: 1.5rem;
}

.dl-req-card.identity { border-color: #e0e7ff; }

.dl-req-card.full-width {
    grid-column: 1 / -1;
}

.dl-req-card-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; font-weight: 800; color: #111827;
    margin-bottom: 1.1rem;
}

.dl-req-card-title i { color: #4f46e5; font-size: 0.9rem; }

/* Requirement rows */
.dl-req-table {
    display: flex; flex-direction: column; gap: 0.6rem;
}

.dl-req-row {
    display: flex; align-items: flex-start;
    gap: 0.75rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid #f9fafb;
}

.dl-req-row:last-child { border-bottom: none; padding-bottom: 0; }

.dl-req-label {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #9ca3af; flex-shrink: 0; min-width: 90px;
    padding-top: 1px;
}

.dl-req-value {
    font-size: 0.78rem; color: #374151;
    font-weight: 500; line-height: 1.4;
}

.dl-req-value code {
    font-size: 0.72rem; background: #f3f4f6;
    padding: 0.15rem 0.4rem; border-radius: 4px; color: #374151;
}

.dl-req-value code.sm { font-size: 0.65rem; word-break: break-all; }

/* Identity links */
.dl-identity-links {
    display: flex; gap: 0.65rem; margin-top: 1.1rem; flex-wrap: wrap;
}

.dl-identity-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; font-weight: 700;
    padding: 0.45rem 0.9rem; border-radius: 9px;
    text-decoration: none; transition: opacity 0.15s;
}

.dl-identity-link.web {
    background: #ede9fe; color: #4f46e5;
}

.dl-identity-link.store {
    background: #111827; color: #fff;
}

.dl-identity-link:hover { opacity: 0.82; }

/* Privacy grid */
.dl-privacy-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-bottom: 1rem;
}

.dl-privacy-col-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.dl-privacy-col-title.does     { color: #065f46; }
.dl-privacy-col-title.does-not { color: #991b1b; }
.dl-privacy-col-title i        { font-size: 0.82rem; }

.dl-privacy-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
}

.dl-privacy-list li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.78rem; color: #374151; line-height: 1.5;
}

.dl-privacy-list li i { font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }

.dl-privacy-list.does     li i { color: #059669; }
.dl-privacy-list.does-not li i { color: #ef4444; }

.dl-privacy-footer {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: #6b7280;
    padding-top: 1rem;
    border-top: 1.5px solid #f3f4f6;
    flex-wrap: wrap;
}

.dl-privacy-footer i { color: #4f46e5; }
.dl-privacy-footer a { color: #4f46e5; text-decoration: none; font-weight: 500; }
.dl-privacy-footer a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════════════════ */
.dl-final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    text-align: center;
    position: relative; overflow: hidden;
}

.dl-final-orb {
    position: absolute; width: 400px; height: 400px;
    border-radius: 50%; background: rgba(255,255,255,0.05);
    top: -150px; right: -80px; pointer-events: none;
}

.dl-final-inner {
    position: relative; z-index: 1;
    max-width: 560px; margin: 0 auto;
}

.dl-final-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    margin: 0 auto 1.5rem;
}

.dl-final-title {
    font-size: 2.2rem; font-weight: 900;
    color: #fff; letter-spacing: -0.5px;
    line-height: 1.2; margin-bottom: 1rem;
}

.dl-final-desc {
    font-size: 1rem; color: rgba(255,255,255,0.75);
    line-height: 1.7; margin-bottom: 2rem;
}

.dl-final-buttons {
    display: flex; justify-content: center;
    gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}

/* Store button in CTA */
.btn-dl-final-store {
    display: inline-flex; align-items: center; gap: 0.85rem;
    background: #fff; color: #111827;
    text-decoration: none;
    padding: 0.7rem 1.25rem; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: opacity 0.15s, transform 0.1s;
}

.btn-dl-final-store:hover {
    opacity: 0.92; transform: translateY(-1px); color: #111827;
}

.btn-dl-final-store-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: #111827;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
}

.btn-dl-final-sub {
    font-size: 0.62rem; color: #6b7280;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.btn-dl-final-main {
    font-size: 0.9rem; font-weight: 800; color: #111827;
}

/* Register button */
.btn-dl-final-register {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.12); color: #fff;
    text-decoration: none;
    font-size: 0.95rem; font-weight: 600;
    padding: 0.75rem 1.5rem; border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: background 0.15s;
}

.btn-dl-final-register:hover {
    background: rgba(255,255,255,0.2); color: #fff;
}

/* Final links */
.dl-final-links {
    display: flex; align-items: center;
    justify-content: center; gap: 0.6rem; flex-wrap: wrap;
}

.dl-final-links a {
    font-size: 0.8rem; color: rgba(255,255,255,0.55);
    text-decoration: none; font-weight: 500; transition: color 0.15s;
}

.dl-final-links a:hover { color: #fff; }
.dl-final-links span { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .dl-hero-inner  { flex-direction: column; text-align: center; }
    .dl-hero-copy   { max-width: 100%; }
    .dl-hero-visual { max-width: 420px; margin: 0 auto; }
    .dl-buttons     { justify-content: center; }
    .dl-trust-row   { justify-content: center; }
    .dl-version-strip { justify-content: center; }
}

@media (max-width: 768px) {
    .dl-hero-title  { font-size: 2rem; }
    .dl-final-title { font-size: 1.7rem; }
    .section-title  { font-size: 1.6rem; }
    .dl-steps       { flex-direction: column; align-items: center; }
    .dl-step        { max-width: 100%; width: 100%; }
    .dl-step-arrow  { transform: rotate(90deg); padding: 0.25rem 0; }
    .dl-req-grid    { grid-template-columns: 1fr; }
    .dl-privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .dl-hero        { padding: 3rem 0 4rem; }
    .dl-buttons     { flex-direction: column; align-items: stretch; }
    .btn-dl-store,
    .btn-dl-protocol { justify-content: center; }
    .dl-float-badge { display: none; }
    .dl-final-buttons { flex-direction: column; align-items: center; }
    .btn-dl-final-store,
    .btn-dl-final-register { width: 100%; justify-content: center; }
}
