/* =========================================================
   DigiRox Funnel Site — plan.digirox.in
   Theme: "Ledger" (Navy / Gold / Premium UI)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
    /* Color Palette */
    --navy-900: #0B1120;
    --navy-800: #111827;
    --navy-700: #1E293B;
    
    --gold-500: #C9A34E;
    --gold-600: #B08D43;
    
    --paper: #F8FAFC; /* Softer, modern off-white */
    --surface: #FFFFFF;
    --surface-alt: #F1F5F9;
    
    --border: #E2E8F0;
    --border-dark: rgba(255, 255, 255, 0.08);
    
    --ink-900: #0F172A;
    --ink-600: #475569;
    --ink-400: #94A3B8;
    
    --green-600: #10B981;
    --red-600: #EF4444;
    --blue-600: #3B82F6;
    
    /* UI Variables */
    --radius: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-900);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Sora', sans-serif; 
    font-weight: 700; 
    margin: 0; 
    letter-spacing: -0.01em;
}

a { 
    color: inherit; 
    text-decoration: none; 
    transition: var(--transition);
}

.wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* ---- Text Links ---- */
.plans-section a:not(.btn):not(.ticket-cta), 
.process-section a:not(.btn):not(.ticket-cta), 
.detail-section a:not(.btn):not(.ticket-cta) {
    color: var(--gold-600); 
    font-weight: 600;
}
.plans-section a:not(.btn):not(.ticket-cta):hover, 
.process-section a:not(.btn):not(.ticket-cta):hover, 
.detail-section a:not(.btn):not(.ticket-cta):hover {
    color: var(--gold-500);
    text-decoration: underline;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px; 
    font-weight: 600; 
    font-size: 14.5px; 
    padding: 12px 24px; 
    min-height: 48px; /* Mobile touch target */
    border-radius: 8px; 
    border: 1px solid transparent; 
    cursor: pointer; 
    font-family: inherit; 
    transition: var(--transition); 
    white-space: nowrap;
}
.btn-primary, .btn-gold { 
    background: var(--gold-500); 
    color: #ffffff; 
    box-shadow: 0 4px 14px 0 rgba(201, 163, 78, 0.25);
}
.btn-primary:hover, .btn-gold:hover { 
    background: var(--gold-600); 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 163, 78, 0.4); 
}
.btn-secondary { 
    background: var(--surface); 
    border-color: var(--border); 
    color: var(--ink-900); 
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { 
    background: var(--surface-alt); 
    border-color: var(--ink-400); 
}
.btn-dark {
    background: var(--navy-900);
    color: #ffffff;
}
.btn-dark:hover {
    background: var(--navy-700);
}
.btn:disabled { 
    opacity: 0.65; 
    cursor: not-allowed; 
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================================
   HEADER (Dark Glassmorphism)
   ========================================================= */
.site-header { 
    background: var(--navy-900); 
    border-bottom: 1px solid var(--border-dark); 
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 16px 24px; 
    max-width: 1200px;
    margin: 0 auto;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { 
    height: 34px; 
    width: auto; 
    max-width: 170px; 
    object-fit: contain; 
    background: transparent; /* Forces no background */
    padding: 0; 
    border: none;
    outline: none;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 14.5px; color: var(--ink-300); }
.main-nav a:hover { color: #ffffff; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero { 
    background: radial-gradient(100% 100% at 50% 0%, var(--navy-700) 0%, var(--navy-900) 100%); 
    padding: 100px 24px 120px; 
    color: #fff; 
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-eyebrow { 
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace; 
    color: var(--gold-500); 
    font-size: 13px; 
    letter-spacing: 0.15em; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    background: rgba(201, 163, 78, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(201, 163, 78, 0.2);
}
.hero h1 { 
    font-size: clamp(36px, 6vw, 56px); 
    line-height: 1.15; 
    color: #fff; 
    max-width: 800px; 
    margin: 0 auto;
}
.hero-sub { 
    color: var(--ink-400); 
    font-size: 18px; 
    margin: 24px auto 40px; 
    max-width: 600px; 
}

/* =========================================================
   SECTIONS & GRIDS
   ========================================================= */
.plans-section { padding: 80px 0; }
.section-title { font-size: 32px; letter-spacing: -0.01em; color: var(--ink-900); text-align: center; margin-bottom: 12px; }
.section-sub { color: var(--ink-600); font-size: 16px; text-align: center; margin: 0 auto 48px; max-width: 600px; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.category-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-sm); 
    padding: 32px 24px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 16px; 
}
.category-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--gold-500); 
}
.category-icon { 
    font-size: 40px; 
    line-height: 1; 
    background: rgba(201, 163, 78, 0.1); 
    width: 80px; 
    height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%;
    transition: var(--transition);
}
.category-card:hover .category-icon { transform: scale(1.05); }
.category-name { font-weight: 600; font-size: 18px; color: var(--ink-900); }

/* =========================================================
   PLAN TICKET CARDS (Pricing)
   ========================================================= */
.ticket-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 24px; 
    align-items: center;
}
.ticket { 
    position: relative; 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    display: flex; 
    flex-direction: column; 
    transition: var(--transition);
    overflow: hidden;
}
.ticket:hover {
    box-shadow: var(--shadow-lg);
}

/* Popular Ticket Lift Effect */
.ticket-popular { 
    border-color: var(--gold-500); 
    box-shadow: 0 10px 30px -5px rgba(201, 163, 78, 0.25);
    transform: scale(1.03); /* Pops out from the grid */
    z-index: 2;
}
@media (max-width: 900px) {
    .ticket-popular { transform: none; } /* Disable scale on mobile */
}

.ticket-ribbon { 
    position: absolute; 
    top: 0; left: 50%; transform: translateX(-50%);
    background: var(--gold-500); 
    color: #ffffff; 
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: 0.05em; 
    text-transform: uppercase; 
    padding: 6px 16px; 
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.ticket-icon { 
    width: 48px; height: 48px; 
    border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 20px; 
    background: var(--surface-alt);
    margin: 32px 0 16px 32px; 
}
.ticket-popular .ticket-icon {
    background: rgba(201, 163, 78, 0.1);
}
.ticket-body { padding: 0 32px 32px; flex-grow: 1; display: flex; flex-direction: column; }
.ticket-name { font-size: 22px; color: var(--ink-900); }
.ticket-tagline { color: var(--ink-600); font-size: 14px; margin: 8px 0 24px; min-height: 44px; }
.ticket-price { margin-bottom: 24px; }
.price-label { display: block; font-size: 12px; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.price-amount { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 36px; color: var(--ink-900); }
.price-period { font-size: 14px; color: var(--ink-600); font-weight: 400; }
.ticket-features { 
    list-style: none; margin: 0; padding: 24px 0; 
    border-top: 1px solid var(--border); 
    flex-grow: 1;
}
.ticket-features li { 
    font-size: 14px; color: var(--ink-600); 
    padding: 8px 0 8px 28px; position: relative; 
}
.ticket-features li::before { 
    content: "✓"; 
    position: absolute; left: 0; 
    color: var(--green-600); 
    font-weight: 800; 
}
.ticket-cta { 
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-alt); 
    color: var(--ink-900); 
    font-weight: 600; font-size: 15px; 
    padding: 14px; border-radius: 8px; 
    transition: var(--transition);
    margin-top: auto;
}
.ticket-cta:hover { background: var(--border); }
.ticket-popular .ticket-cta { background: var(--gold-500); color: #ffffff; }
.ticket-popular .ticket-cta:hover { background: var(--gold-600); }

/* =========================================================
   DETAIL & PURCHASE PAGES
   ========================================================= */
.detail-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 48px 24px; text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-600); font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.back-link:hover { color: var(--ink-900); }
.detail-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.detail-tagline { color: var(--ink-600); font-size: 16px; max-width: 600px; margin: 0 auto; }

.detail-section { padding: 64px 0 100px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-purchase-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-lg); 
    padding: 32px; 
    position: sticky; 
    top: 100px; 
}
.billing-toggle { 
    display: flex; 
    background: var(--surface-alt); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    padding: 4px; 
    margin-bottom: 24px; 
}
.toggle-btn { 
    flex: 1; background: none; border: none; padding: 10px 0; 
    font-family: inherit; font-weight: 600; font-size: 14px; 
    color: var(--ink-600); border-radius: 6px; cursor: pointer; 
    transition: var(--transition);
}
.toggle-btn.active { background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.btn-full { width: 100%; }

/* =========================================================
   FORMS & INPUTS (Mobile Optimized)
   ========================================================= */
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-900); margin: 20px 0 8px; }
.form-label:first-of-type { margin-top: 0; }
.optional { color: var(--ink-400); font-weight: 400; font-size: 12.5px; }

.form-input { 
    width: 100%; 
    padding: 12px 16px; 
    min-height: 48px; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    font-size: 15px; 
    font-family: inherit; 
    background: var(--surface-alt); 
    color: var(--ink-900); 
    transition: var(--transition); 
    appearance: none;
}
.form-input:focus { 
    outline: none; 
    border-color: var(--gold-500); 
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(201, 163, 78, 0.15); 
}
.phone-row { display: flex; gap: 12px; }

/* Status Badges */
.otp-block { margin-top: 16px; padding: 20px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; }
.otp-status { font-size: 13.5px; margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-weight: 500; }
.otp-status.otp-success { background: rgba(16, 185, 129, 0.1); color: var(--green-600); border: 1px solid rgba(16, 185, 129, 0.2); }
.otp-status.otp-error { background: rgba(239, 68, 68, 0.1); color: var(--red-600); border: 1px solid rgba(239, 68, 68, 0.2); }

.form-errors { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--red-600); padding: 14px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 24px; font-weight: 500;}
.form-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--green-600); padding: 14px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 24px; font-weight: 500;}

/* =========================================================
   TRACKING PAGE UI
   ========================================================= */
.track-lookup-form { max-width: 500px; margin: 0 auto; background: var(--surface); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border);}
.status-timeline { display: flex; justify-content: space-between; margin: 48px 0; position: relative; }
.status-timeline::before { content: ""; position: absolute; top: 11px; left: 20px; right: 20px; height: 2px; background: var(--border); z-index: 0; }
.status-step { position: relative; z-index: 1; flex: 1; text-align: center; }
.status-dot { 
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; 
    border-radius: 50%; 
    background: var(--surface); 
    border: 3px solid var(--border); 
    margin: 0 auto 12px; 
    transition: var(--transition);
}
.status-step-done .status-dot { background: var(--green-600); border-color: var(--green-600); }
.status-step-rejected .status-dot { background: var(--red-600); border-color: var(--red-600); }
.status-step-label { font-size: 12.5px; font-weight: 600; color: var(--ink-400); }
.status-step-done .status-step-label { color: var(--ink-900); }

/* =========================================================
   FOOTER (Dark Mode)
   ========================================================= */
.site-footer { background: var(--navy-900); color: #ffffff; padding: 64px 24px 32px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--border-dark); max-width: 1200px; margin: 0 auto;}
.footer-logo { 
    height: 32px; width: auto; max-width: 160px; object-fit: contain; 
    background: transparent; padding: 0; border: none; outline: none;
    display: block; margin-bottom: 16px; 
}
.footer-legal { color: var(--ink-400); font-size: 14px; margin: 4px 0; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-contact a { font-family: 'IBM Plex Mono', monospace; font-size: 14.5px; color: var(--gold-500); font-weight: 500; }
.footer-contact a:hover { color: #ffffff; text-decoration: none; }
.footer-copyright { max-width: 1200px; margin: 24px auto 0; color: var(--ink-600); font-size: 13px; text-align: center; }

@media (max-width: 768px) {
    .footer-row { flex-direction: column; }
    .footer-contact { align-items: flex-start; }
    .footer-copyright { text-align: left; }
}

a:focus-visible, .btn:focus-visible, .form-input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }