* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

nav {
    background-color: #2a5298;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 3px solid #1e3c72;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2a5298;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2a5298;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.intro p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #e0e0e0;
}

.features li:last-child {
    border-bottom: none;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.download-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 1.5rem;
}

.download-box h3 {
    margin-top: 0;
    color: #1e3c72;
}

.code-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-block code {
    color: #f8f8f2;
    white-space: pre;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.example-box {
    background-color: #f9f9f9;
    border-left: 4px solid #2a5298;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.example-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.resource-links {
    list-style: none;
    padding-left: 0;
}

.resource-links li {
    padding: 0.5rem 0;
}

.resource-links a {
    color: #2a5298;
    text-decoration: none;
    font-size: 1.05rem;
}

.resource-links a:hover {
    text-decoration: underline;
}

footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

.faq {
    margin-top: 3rem;
}

.faq-item {
    background-color: #f9f9f9;
    border-left: 4px solid #2a5298;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1e3c72;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.7;
}

.faq-item code {
    background-color: #e8e8e8;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.use-cases {
    margin-top: 3rem;
}

.use-cases ul {
    list-style: none;
    padding-left: 0;
}

.use-cases li {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.7;
}

.use-cases li:last-child {
    border-bottom: none;
}

.use-cases strong {
    color: #1e3c72;
    display: inline-block;
    min-width: 180px;
}

/* Input field styling */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="time"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="time"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="time"]:hover,
input[type="date"]:hover,
input[type="datetime-local"]:hover,
textarea:hover,
select:hover {
    border-color: #b0b0b0;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: #999;
    opacity: 1;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Specific styling for duration/total duration inputs */
input[type="number"][name*="duration"],
input[type="number"][name*="total"],
input[type="text"][name*="duration"],
input[type="text"][name*="total"],
input.total-duration,
input.duration-input {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    color: #333;
}

input[type="number"][name*="duration"]:focus,
input[type="number"][name*="total"]:focus,
input[type="text"][name*="duration"]:focus,
input[type="text"][name*="total"]:focus,
input.total-duration:focus,
input.duration-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    background-color: #fff;
}

/* Timeline and faux-select-offer styling - prevent UI blocking */
[data-secondsdelay] {
    pointer-events: auto;
    will-change: opacity, transform;
}

.faux-select-offer {
    position: relative;
    margin: 1rem 0;
    z-index: 1;
    pointer-events: auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faux-select-offer-selected {
    cursor: pointer;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-weight: 500;
    color: #333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    pointer-events: auto;
    user-select: none;
}

.faux-select-offer-selected:hover {
    border-color: #2a5298;
    background-color: #f0f4ff;
}

.faux-select-offer-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    display: none;
}

.faux-select-offer:hover .faux-select-offer-options,
.faux-select-offer.focused .faux-select-offer-options {
    display: block;
}

.faux-select-offer-option {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    pointer-events: auto;
}

.faux-select-offer-option:last-child {
    border-bottom: none;
}

.faux-select-offer-option:hover {
    background-color: #f0f4ff;
}

.faux-select-offer-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    pointer-events: auto;
    width: auto;
    padding: 0;
}

/* Ensure timeline elements don't block interactions */
[data-secondsdelay]:not(.faux-select-offer):not(.faux-select-offer-selected):not(.faux-select-offer-option) {
    opacity: 1;
    visibility: visible;
}

/* Prevent z-index stacking issues */
.faux-select-offer,
.faux-select-offer-options {
    isolation: isolate;
}

/* Ensure no overflow blocking */
.faux-select-offer {
    overflow: visible;
}

.faux-select-offer-options {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Fix for mobile/touch devices */
@media (max-width: 768px) {
    .faux-select-offer-options {
        position: fixed;
        left: 1rem;
        right: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: 50vh;
        z-index: 10000;
    }
    
    .faux-select-offer-selected {
        touch-action: manipulation;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    nav a {
        display: block;
        margin: 0.5rem 0;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .use-cases strong {
        display: block;
        margin-bottom: 0.5rem;
    }
}

