/* ===========================
   Torch AI — GI Bill Calculator
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #e0e0e0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Nav (same as about page) --- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: #007AFF;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: #0063d1;
}

/* --- Hero --- */

.hero {
    max-width: 600px;
    margin: 0 auto;
    padding: 7rem 1.5rem 2rem;
    text-align: center;
}

.hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #34C759;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
}

/* --- Product Wrapper (the "phone frame") --- */

.product-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem;
}

.phone-frame {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(31, 77, 46, 0.08);
}

/* --- Benefit Card --- */

.benefit-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 28px;
}

.card-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.card-pill {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-pill.eligible {
    background: #34C759;
    color: #fff;
}

.card-pill.ineligible {
    background: #FF3B30;
    color: #fff;
}

.card-pill.warning {
    background: #FF9500;
    color: #fff;
    font-size: 0.75rem;
}

.card-summary {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 14px;
    padding-left: 30px;
    transition: all 0.3s ease;
}

.card-details {
    padding-left: 30px;
    transition: all 0.3s ease;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
}

.detail-label {
    font-size: 0.85rem;
    color: #888;
    min-width: 100px;
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.card-ineligible {
    padding-left: 30px;
}

.ineligible-text {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.6;
}

/* --- Service Info Toggle --- */

.service-info {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.service-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.service-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chevron {
    color: #666;
    transition: transform 0.3s ease;
}

.service-toggle[aria-expanded="false"] .chevron {
    transform: rotate(-90deg);
}

.service-fields {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
}

.field select:focus {
    outline: none;
    border-color: #34C759;
}

.field select option {
    background: #1a1a1a;
    color: #fff;
}

/* --- Tier Table --- */

.tier-section {
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.tier-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tier-intro {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.tier-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.tier-row:last-child {
    border-bottom: none;
}

.tier-header {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tier-row:not(.tier-header) {
    color: #aaa;
}

.tier-row:not(.tier-header) span:last-child {
    font-weight: 600;
    color: #ccc;
}

.tier-row.active {
    background: rgba(52, 199, 89, 0.12);
}

.tier-row.active span {
    color: #34C759 !important;
    font-weight: 600;
}

.tier-source {
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.75rem;
}

.tier-source a {
    color: #555;
    text-decoration: underline;
    transition: color 0.2s;
}

.tier-source a:hover {
    color: #888;
}

/* --- CTA Section --- */

.cta-section {
    max-width: 520px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-section > p {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-primary {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: #34C759;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
}

.cta-primary:hover {
    background: #2db84e;
    transform: translateY(-1px);
}

.cta-appstore {
    transition: opacity 0.2s;
}

.cta-appstore:hover {
    opacity: 0.85;
}

.cta-note {
    font-size: 0.85rem;
    color: #555;
    margin-top: 1rem;
}

/* --- Footer (same as about page) --- */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-brand img {
    border-radius: 6px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #aaa;
}

/* --- Platform visibility --- */

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.25rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .product-wrapper {
        padding: 1rem;
    }

    .phone-frame {
        padding: 16px;
        border-radius: 24px;
    }

    .cta-section h2 {
        font-size: 1.3rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
