:root {
    --navy: #293A6A;
    --amber: #AD6C2D;
    --sage: #666D5A;
    --cream: #EBE5DD;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--navy);
    background: #ffffff;
}

.site-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
}

.site-header__logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.site-header__divider {
    color: var(--sage);
    font-weight: 300;
    margin: 0 4px;
}

.hero {
    background: var(--navy);
    color: #ffffff;
    padding: 96px 24px;
}

.hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 16px;
}

.hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
    max-width: 560px;
}

.hero__badge {
    display: inline-block;
    background: var(--amber);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.site-footer {
    background: var(--cream);
    padding: 24px;
    text-align: center;
    color: var(--sage);
    font-size: 0.85rem;
}

/* Header nav (authenticated pages) */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a.btn {
    color: #ffffff;
}

.site-nav a.btn:hover {
    text-decoration: none;
}

/* Generic page header band (non-hero pages) */
.page-header {
    background: var(--cream);
    padding: 40px 24px;
}

.page-header__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.page-header__eyebrow {
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-header__title {
    font-size: 2rem;
    margin: 8px 0 0;
}

.page-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Auth pages */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 64px 24px;
    background: var(--cream);
    min-height: 60vh;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 32px;
}

.card--narrow {
    width: 100%;
    max-width: 420px;
    height: fit-content;
}

.card__title {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: var(--navy);
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}

.form-group--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc4b8;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
}

.field-error {
    display: block;
    color: #b3261e;
    font-size: 0.8rem;
    margin-top: 4px;
}

.field-hint {
    display: block;
    color: var(--sage);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--navy);
    color: #ffffff;
}

.btn--primary:hover {
    background: #1e2c52;
}

.btn--secondary {
    background: var(--amber);
    color: #ffffff;
}

.btn--outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.btn--block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.alert--error {
    background: #fbeaea;
    color: #b3261e;
    border: 1px solid #f2c6c2;
}

.alert--success {
    background: #eaf3ea;
    color: #2e5c2e;
    border: 1px solid #c6e2c6;
}

.auth-links {
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-links a {
    color: var(--navy);
}

/* Grids / cards / stats */
.grid {
    display: grid;
    gap: 20px;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-tile {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 20px;
}

.stat-tile__label {
    font-size: 0.85rem;
    color: var(--sage);
}

.stat-tile__value {
    font-size: 2rem;
    color: var(--amber);
    font-weight: 700;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 20px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.badge--webinar { background: var(--cream); color: var(--navy); }
.badge--datarelease { background: var(--navy); color: #ffffff; }
.badge--pulsesurvey { background: var(--amber); color: #ffffff; }

.content-card__title {
    font-size: 1rem;
    margin: 0 0 6px;
}

.content-card__meta {
    color: var(--sage);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.content-card__link {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-tabs a {
    padding: 8px 16px;
    border: 1px solid #ccc4b8;
    border-radius: 4px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
}

.filter-tabs a.is-active {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

.featured-banner {
    background: var(--navy);
    color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}

.featured-banner__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.featured-banner__title {
    font-size: 1.4rem;
    margin: 8px 0 16px;
}

/* Subscribe page */
.subscribe-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .subscribe-layout {
        grid-template-columns: 1fr;
    }
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-option {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border: 1px solid #ccc4b8;
    border-radius: 6px;
    padding: 14px 16px;
    cursor: pointer;
}

.plan-option:has(input:checked) {
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}

.plan-option__price {
    font-weight: 700;
    color: var(--navy);
}

.plan-option--featured {
    border-color: var(--navy);
}

.plan-option__badge {
    display: inline-block;
    background: var(--amber);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-option__savings {
    color: var(--amber);
    font-weight: 600;
}

/* Feature cards ("What you get", home page) */
.feature-card {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 28px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 24px rgba(41, 58, 106, 0.1);
    transform: translateY(-3px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.feature-card__title {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0 0 8px;
}

.feature-card__meta {
    color: var(--sage);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Pricing cards (home page) */
.pricing-card {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card--featured {
    border: 2px solid var(--navy);
}

.pricing-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--amber);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 0 6px 0 6px;
}

.pricing-card__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 8px;
}

.pricing-card__price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
}

.pricing-card__price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--sage);
}

.pricing-card__meta {
    color: var(--sage);
    font-size: 0.85rem;
    margin: 0 0 16px;
}

.pricing-card__savings-banner {
    background: var(--amber);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.pricing-card__divider {
    border: none;
    border-top: 1px solid #e5e0d8;
    margin: 0 0 16px;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.pricing-card__features li {
    color: var(--sage);
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
}

.pricing-card__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: 700;
}

/* Payment transition screen */
.payment-transition {
    display: flex;
    justify-content: center;
    padding: 64px 24px;
    background: var(--cream);
    min-height: 60vh;
}

.payment-transition__card {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.payment-transition__logo {
    height: 32px;
    width: auto;
    margin-bottom: 28px;
}

.payment-transition__spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 24px;
    border: 3px solid var(--cream);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: payment-transition-spin 0.8s linear infinite;
}

@keyframes payment-transition-spin {
    to { transform: rotate(360deg); }
}

.payment-transition__title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: var(--navy);
}

.payment-transition__text {
    color: var(--sage);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 24px;
}

.payment-transition__progress {
    height: 4px;
    background: var(--cream);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.payment-transition__progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--amber);
    animation: payment-transition-progress 5s linear forwards;
}

@keyframes payment-transition-progress {
    to { width: 100%; }
}

/* Charter Pulse survey */
.survey-block {
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.survey-block__title {
    font-weight: 600;
    color: var(--amber);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}

.survey-criteria-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.survey-criteria-row label {
    flex: 1;
    font-weight: 400;
}

.survey-criteria-row select {
    flex: 1;
}
