/* GSHost - Lightweight, modern minimalist stylesheet */

:root {
    --bg-main: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-hover: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --danger: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --radius: 10px;
    --radius-sm: 6px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* Form controls do not inherit the page font by default */
button, input, textarea, select {
    font: inherit;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ── Top Navigation Bar ─────────────────────────────────────────── */
header.site-header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-dot {
    color: var(--primary);
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-subtle);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── Layout & Main Container ────────────────────────────────────── */
main.main-content {
    flex: 1;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem 1.5rem;
}

/* ── Hero / Page Header ─────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 3rem 1rem 4rem 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.badge-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Offer / Pricing Cards ──────────────────────────────────────── */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
    align-items: stretch;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* A ring instead of a thicker border, so the featured card's content lines up with the others */
.offer-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.card-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-wrap: balance;
}

.price-box {
    margin: 1.25rem 0 0.5rem 0;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-old {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.feature-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.55rem 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.feature-icon {
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-item strong {
    color: var(--text-primary);
}

/* ── Buttons & Actions ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    width: 100%;
}

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

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

.btn-secondary {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-hover);
}

.btn-lg {
    font-size: 1.05rem;
    padding: 0.9rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions .btn {
    width: auto;
    padding: 0.85rem 1.8rem;
}

.hero-compact {
    padding-bottom: 2rem;
}

/* ── Info Features / Benefits Grid ──────────────────────────────── */
.features-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 2rem;
}

.benefit-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Forms (Cart, Login, Signup, Contact) ────────────────────────── */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.form-tab-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-bottom: 2px solid transparent;
}

.form-tab-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-card-wide {
    max-width: 600px;
}

.form-row-end,
.form-row-center {
    display: flex;
    margin-bottom: 1.5rem;
}

.form-row-end {
    justify-content: flex-end;
}

.form-row-center {
    justify-content: center;
    margin: 1.5rem 0 0 0;
}

.form-note {
    margin: 1.25rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.text-muted-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Login honeypot: present in the form for bots, invisible to people */
.honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.cart-label {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

/* ── Cart Summary Table ─────────────────────────────────────────── */
.cart-summary {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

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

.cart-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 0.75rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-subtle);
    margin-top: auto;
    padding: 2.5rem 1.5rem;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-nav a {
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--text-primary);
}

/* ── Terms / Text Content ───────────────────────────────────────── */
.text-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    line-height: 1.7;
}

.text-content h2, .text-content h3, .text-content h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.text-content p, .text-content ul {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.text-content ul {
    padding-left: 1.5rem;
}

/* Clauses carry their own "1." numbering, so the list bullet is dropped */
.text-content ul.clauses {
    list-style: none;
    padding-left: 0;
}

/* ── Alerts (gshost/alert.html) ─────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.alert-body {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.6;
    cursor: pointer;
}

.alert-close:hover {
    opacity: 1;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--danger);
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.alert-success {
    background: var(--success-bg);
    border-color: #bbf7d0;
    color: var(--success);
}

.alert-info {
    background: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary);
}

/* ── Responsive adjustments ─────────────────────────────────────── */
@media (max-width: 768px) {
    main.main-content {
        padding: 1.5rem 1rem 3rem;
    }

    .hero {
        padding: 2rem 0.25rem 2.5rem;
    }

    .text-content {
        padding: 1.25rem;
    }

    .nav-container {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: wrap;
        width: 100%;
    }

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

    .form-card {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }
}
