/* SaveOnPhone.com — Redesign 2026-03-29 */

/* ── RESET & TOKENS ── */
:root {
  --navy: #0c1b33;
  --navy-light: #132d50;
  --teal: #10b981;
  --teal-dark: #059669;
  --teal-light: #d1fae5;
  --blue: #3b82f6;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --tmobile: #e20074;
  --att: #009fdb;
  --verizon: #cd040b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--slate-50); color: var(--slate-800); line-height: 1.5; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ── NAV ── */
.nav { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: baseline; font-family: var(--font); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; text-decoration: none; gap: 0; }
.logo:hover { text-decoration: none; }
.logo-save { color: var(--white); }
.logo-on { color: var(--white); }
.logo-phone { color: var(--teal); }
.logo-dot { color: var(--slate-400); font-size: 14px; font-weight: 500; margin-left: 1px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--slate-300); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--white); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 1px; transition: all 0.2s; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0f3460 100%); padding: 48px 24px 44px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-block; background: rgba(16,185,129,0.15); color: var(--teal); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; border: 1px solid rgba(16,185,129,0.25); }
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 14px; }
.hero-accent { color: var(--teal); }
.hero-sub { font-size: 17px; color: var(--slate-400); max-width: 520px; margin: 0 auto 24px; line-height: 1.5; }
.hero-cta { display: inline-block; background: var(--teal); color: var(--white); font-size: 15px; font-weight: 600; padding: 12px 28px; border-radius: var(--radius); transition: background 0.15s, transform 0.15s; }
.hero-cta:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }

/* ── TOOLBAR ── */
.toolbar { background: var(--white); border-bottom: 1px solid var(--slate-200); position: sticky; top: 56px; z-index: 90; box-shadow: var(--shadow-sm); }
.toolbar-inner { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { background: var(--white); border: 1.5px solid var(--slate-200); color: var(--slate-600); font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: all 0.15s; white-space: nowrap; font-family: var(--font); }
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill.active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--slate-400); }
#planSearch { border: 1.5px solid var(--slate-200); border-radius: var(--radius); padding: 8px 12px 8px 32px; font-size: 13px; width: 200px; outline: none; transition: border-color 0.15s; font-family: var(--font); background: var(--white); }
#planSearch:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
#sortSelect { border: 1.5px solid var(--slate-200); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; outline: none; cursor: pointer; background: var(--white); color: var(--slate-700); font-family: var(--font); }
#sortSelect:focus { border-color: var(--teal); }

/* ── PLANS TABLE ── */
.plans { padding: 0 24px 32px; }
.plans-inner { max-width: 1280px; margin: 0 auto; }
.plans-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 10px; }
.plans-count { font-size: 13px; color: var(--slate-500); }
.table-container { border-radius: var(--radius-lg); border: 1px solid var(--slate-200); background: var(--white); box-shadow: var(--shadow); overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-table thead th { background: var(--slate-50); color: var(--slate-600); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--slate-200); white-space: nowrap; user-select: none; cursor: pointer; position: relative; }
.plan-table thead th:hover { color: var(--slate-800); }
.th-sub { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--slate-400); }
.plan-table tbody tr { border-bottom: 1px solid var(--slate-100); transition: background 0.1s; }
.plan-table tbody tr:last-child { border-bottom: none; }
.plan-table tbody tr:hover { background: #f0fdf9; }
.plan-table td { padding: 14px 16px; vertical-align: middle; }
.loading-cell { text-align: center; padding: 48px 16px; color: var(--slate-400); }

/* Carrier cell */
.carrier-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.carrier-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--white); flex-shrink: 0; letter-spacing: -0.3px; }
.carrier-logo { width: 100px; height: 36px; object-fit: contain; flex-shrink: 0; }
.carrier-name { font-weight: 600; font-size: 14px; color: var(--slate-800); white-space: nowrap; }

/* Plan cell */
.plan-cell { min-width: 120px; }
.plan-name { font-weight: 600; font-size: 13px; color: var(--slate-700); }
.plan-tags { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.tag-unlimited { background: #dbeafe; color: #1d4ed8; }
.tag-budget { background: #d1fae5; color: #065f46; }
.tag-family { background: #fce7f3; color: #9d174d; }
.tag-senior { background: #fef3c7; color: #92400e; }
.tag-intl { background: #e0e7ff; color: #3730a3; }
.tag-pick { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }

/* Price cell */
.price-cell { white-space: nowrap; min-width: 80px; }
.price-amount { font-size: 20px; font-weight: 800; color: var(--slate-900); letter-spacing: -0.5px; }
.price-period { font-size: 11px; color: var(--slate-400); font-weight: 500; }

/* Data cell */
.data-cell { white-space: nowrap; }
.data-value { font-weight: 700; font-size: 14px; color: var(--slate-800); }
.data-value.unlimited { color: var(--teal-dark); }
.data-sub { font-size: 11px; color: var(--slate-400); }

/* Hotspot */
.hotspot-cell { font-size: 13px; color: var(--slate-600); white-space: nowrap; }
.hotspot-none { color: var(--slate-300); }

/* Network badge */
.net-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.net-tmobile { background: #fdf2f8; color: #be185d; }
.net-att { background: #eff6ff; color: #1d4ed8; }
.net-verizon { background: #fef2f2; color: #b91c1c; }

/* Features */
.feat-list { display: flex; flex-wrap: wrap; gap: 4px; max-width: 200px; }
.feat { font-size: 11px; color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--slate-100); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }

/* Action */
.btn-view { display: inline-block; background: var(--teal); color: var(--white); font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 6px; text-decoration: none; transition: background 0.15s; white-space: nowrap; }
.btn-view:hover { background: var(--teal-dark); color: var(--white); }

/* ── MOBILE CARDS (hidden on desktop) ── */
.plan-cards { display: none; }
.plan-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-carrier { display: flex; align-items: center; gap: 8px; }
.card-carrier .carrier-icon { width: 32px; height: 32px; font-size: 10px; }
.card-carrier .carrier-logo { width: 64px; height: 28px; object-fit: contain; }
.card-carrier-info .carrier-name { font-size: 14px; }
.card-carrier-info .plan-name { font-size: 12px; color: var(--slate-500); }
.card-price { text-align: right; }
.card-price .price-amount { font-size: 22px; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; padding: 10px 0; border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); }
.card-meta-item { text-align: center; }
.card-meta-label { font-size: 10px; color: var(--slate-400); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.card-meta-value { font-size: 13px; font-weight: 600; color: var(--slate-700); margin-top: 2px; }
.card-features { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn-view { flex: 1; text-align: center; padding: 10px; font-size: 14px; }

/* ── PICKS ── */
.picks { padding: 48px 24px; background: var(--white); border-top: 1px solid var(--slate-200); }
.picks-inner { max-width: 1280px; margin: 0 auto; }
.picks-title { font-size: 24px; font-weight: 800; color: var(--slate-900); margin-bottom: 6px; }
.picks-sub { font-size: 14px; color: var(--slate-500); margin-bottom: 24px; }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pick-card { border: 1.5px solid var(--slate-200); border-radius: var(--radius-lg); padding: 20px; position: relative; transition: box-shadow 0.2s, transform 0.2s; background: var(--white); }
.pick-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pick-badge { position: absolute; top: -1px; right: 16px; background: #fbbf24; color: #78350f; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 0 0 6px 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.pick-carrier { font-size: 12px; color: var(--slate-500); font-weight: 500; margin-bottom: 2px; }
.pick-plan { font-size: 17px; font-weight: 700; color: var(--slate-800); margin-bottom: 8px; }
.pick-price { font-size: 28px; font-weight: 800; color: var(--teal-dark); margin-bottom: 4px; }
.pick-price span { font-size: 14px; font-weight: 400; color: var(--slate-400); }
.pick-details { font-size: 13px; color: var(--slate-500); line-height: 1.6; margin-bottom: 14px; }
.pick-btn { display: block; text-align: center; background: var(--teal); color: var(--white); font-size: 14px; font-weight: 600; padding: 10px; border-radius: var(--radius); transition: background 0.15s; }
.pick-btn:hover { background: var(--teal-dark); color: var(--white); }

/* ── HOW IT WORKS ── */
.how { padding: 56px 24px; background: var(--slate-900); color: var(--white); }
.how-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.how h2 { font-size: 24px; font-weight: 800; margin-bottom: 32px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-step { text-align: center; }
.how-num { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.how-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--slate-400); line-height: 1.6; }

/* ── FAQ ── */
.faq { padding: 56px 24px; max-width: 760px; margin: 0 auto; }
.faq-inner { width: 100%; }
.faq h2 { font-size: 24px; font-weight: 800; color: var(--slate-900); text-align: center; margin-bottom: 28px; }
.faq-item { border: 1px solid var(--slate-200); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; background: var(--white); }
.faq-item summary { padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.15s; color: var(--slate-800); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--slate-400); transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--slate-50); }
.faq-item p { padding: 0 20px 16px; font-size: 14px; color: var(--slate-600); line-height: 1.7; }

/* ── FOOTER ── */
.footer { background: var(--navy); color: var(--slate-400); padding: 40px 24px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.footer-brand { max-width: 280px; }
.logo-footer { font-size: 20px; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.footer-col a { color: var(--slate-400); font-size: 13px; transition: color 0.15s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .table-container { display: none; }
  .plan-cards { display: block; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-main { flex-direction: column; gap: 24px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--navy); padding: 16px 24px; gap: 16px; box-shadow: var(--shadow-lg); }
  .nav-hamburger { display: block; }
  .hero { padding: 36px 16px 32px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .toolbar-right { width: 100%; }
  #planSearch { flex: 1; width: 100%; }
  .plans { padding: 0 12px 24px; }
  .card-meta { grid-template-columns: 1fr 1fr; }
  .picks { padding: 32px 16px; }
  .picks-grid { grid-template-columns: 1fr; }
  .how { padding: 40px 16px; }
  .faq { padding: 40px 16px; }
  .footer { padding: 32px 16px 20px; }
  .footer-links { flex-direction: column; gap: 24px; }
}
