/* --- Global Styles & Variables (Shared styles from other pages can go here too) --- */
:root {
    --primary-color: #1778f2;
    /* Deep blue for branding */
    --accent-color: #177af2c2;
    /* A bright blue for links/buttons */
    --text-color: #333333;
    /* Dark gray for main text */
    --light-bg: #f8f9fa;
    /* Light gray background */
    --border-color: #e0e0e0;
    /* Light border color */
    --wrap-width: 900px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.wrap {
    max-width: var(--wrap-width);
    margin: 0 auto;
    padding: 0 20px;
}

.video-container {
  max-width: 800px;      /* maximum width of video container */
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;           /* allows scaling for smaller screens */
  aspect-ratio: 16 / 9;  /* maintain 16:9 aspect ratio */
}

.video-container video {
  width: 100%;           /* fill container width */
  height: 100%;          /* fill container height by aspect ratio */
  display: block;
  object-fit: contain;   /* preserve aspect ratio of video */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
}

a:hover {
    text-decoration: underline;
}

/* --- Buttons (btn) --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white !important;
    /* Force white text over link color */
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* --- Typography --- */
h1,
h2,
h3 {
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.2rem;
}

p.note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

ol,
ul {
    margin-bottom: 20px;
}


/* --- Header & Navigation (Reused from previous CSS) --- */
header {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    margin-right: 10px;
}

nav a:not(.btn) {
    margin-left: 20px;
    color: var(--text-color);
    font-weight: 500;
}

nav a.btn {
    margin-left: 20px;
}


/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    gap: 40px;
}

.hero>div {
    flex: 1;
}

.pill {
    display: inline-block;
    background-color: var(--border-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.hero .card {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.hero img {
    max-width: 48%;
    height: auto;
    border-radius: 8px;
    margin: 0 1%;
}


/* --- Main Sections --- */
.section {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* How it works section (uses <ol>) is standard. */


/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}


/* --- Download Form Section --- */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    gap: 15px;
    margin-top: 20px;
}

form input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}


/* --- Footer (Reused from previous CSS) --- */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer p.note {
    color: white;
    opacity: 0.6;
}


/* --- Responsiveness --- */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .actions {
        justify-content: center;
    }
}