/* ============================================================
   CarVerdict — mobile.css
   Full mobile visual rebuild for every page.
   Loaded on all pages via <link> after style.css.
   All rules scoped inside @media (max-width: 768px).
   ============================================================ */

/* ================================================================
   1. GLOBAL
   ================================================================ */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  main { overflow-x: hidden; }

  /* Orbs — toned back */
  .glow-orb { opacity: .06; }
  .orb1 { width: 280px; height: 280px; top: -70px; right: -50px; }
  .orb2 { width: 240px; height: 240px; bottom: -50px; left: -50px; }
  .orb3 { display: none; }
}

/* ================================================================
   2. TOOL PAGE HERO — scam, symptom, value, vin, etc.
   ================================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 1.6rem 1.25rem 1.25rem;
    position: relative;
    background: linear-gradient(180deg, rgba(232,255,71,.05) 0%, transparent 70%);
  }
  /* lime shimmer across top */
  .hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(232,255,71,.55), transparent);
  }
  .hero h1 {
    font-size: clamp(44px, 12vw, 72px);
    line-height: .87;
    letter-spacing: .5px;
    margin-bottom: .8rem;
  }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    padding: 5px 13px; border-radius: 100px;
    background: rgba(232,255,71,.08); border: 1px solid rgba(232,255,71,.22);
    color: #E8FF47; margin-bottom: .9rem;
  }
  .hero-sub {
    font-size: 14px; color: #888; line-height: 1.65; margin-bottom: 1rem;
  }
  /* inline trust icons inside hero — keep centered */
  .hero > div[style] { justify-content: center !important; gap: 1rem !important; flex-wrap: wrap !important; }
}

/* ================================================================
   3. CHECKER CARD — edge-to-edge, native app feel
   ================================================================ */
@media (max-width: 768px) {
  .checker-wrap { padding: 0 0 2.5rem; }

  .checker-card {
    border-radius: 0 !important;
    border-left: none !important; border-right: none !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    padding: 1.5rem 1.25rem !important;
    box-shadow: none !important;
    background: #0b0b0b !important;
    position: relative; overflow: hidden;
  }
  /* lime accent line at very top of card */
  .checker-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(232,255,71,.4) 50%, transparent 95%);
  }
}

/* ================================================================
   4. STEPS INDICATOR — segmented control style
   ================================================================ */
@media (max-width: 768px) {
  .steps {
    display: flex; gap: 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; padding: 4px;
    margin-bottom: 1.5rem;
  }
  .step {
    flex: 1; padding: 10px 8px; border-radius: 10px;
    transition: background .2s, border-color .2s;
    border: 1px solid transparent;
  }
  .step.active {
    background: rgba(232,255,71,.1) !important;
    border-color: rgba(232,255,71,.2) !important;
  }
  .step-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px; line-height: 1;
  }
  .step-label { font-size: 10.5px; }
  .step-line { display: none !important; }
}

/* ================================================================
   5. FORM FIELDS
   ================================================================ */
@media (max-width: 768px) {
  .field-group { gap: .85rem; }

  .field label {
    font-size: 10.5px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    color: #555; margin-bottom: 6px; display: block;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px !important; /* kills iOS zoom */
    padding: 15px 16px !important;
    border-radius: 14px !important;
    background: #111 !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    min-height: 52px;
    color: #fff;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    border-color: rgba(232,255,71,.4) !important;
    background: #141414 !important;
    outline: none;
  }
  .field input::placeholder,
  .field textarea::placeholder { color: #3a3a3a; }
  select { font-size: 16px !important; }
}

/* ================================================================
   6. SUBMIT / PRIMARY BUTTONS
   ================================================================ */
@media (max-width: 768px) {
  #check-btn, #roast-btn, #battle-btn, #value-btn,
  #vin-btn, #ins-btn, #rt-btn, #fuel-btn,
  button[id$="-btn"]:not(.auth-btn-google):not(.mobile-nav-close):not(.gr-add-btn):not([class^="gr-"]):not([class^="gcp-"]) {
    padding: 18px !important;
    font-size: 16px !important; font-weight: 800 !important;
    border-radius: 16px !important;
    width: 100% !important;
    min-height: 58px !important;
    letter-spacing: .3px;
    margin-top: .5rem;
  }
  .disclaimer {
    font-size: 11.5px; color: #444; line-height: 1.55; margin-top: 1rem;
  }
}

/* ================================================================
   7. TRUST ROW
   ================================================================ */
@media (max-width: 768px) {
  .trust-row {
    justify-content: center;
    gap: 1rem; flex-wrap: wrap;
    margin: 1rem 0 0;
    padding-bottom: 1rem;
  }
  .trust-item { font-size: 12px; }
}

/* ================================================================
   8. HOW IT WORKS
   ================================================================ */
@media (max-width: 768px) {
  .how-it-works { padding: 2.25rem 1.25rem 2rem; }
  .how-it-works h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 10vw, 54px);
    line-height: .9; margin-bottom: 1.25rem;
  }
  .hiw-sub { font-size: 14px; color: #777; }
  .steps-grid { grid-template-columns: 1fr !important; gap: .75rem !important; }
  .step-card {
    padding: 1.25rem;
    border-radius: 18px !important;
    text-align: center;
  }
  .step-card-num { font-size: 32px; margin-bottom: .5rem; display: block; }
  .step-card h3 { font-size: 15px; margin-bottom: .4rem; }
  .step-card p { font-size: 13px; line-height: 1.65; color: #666; }
}

/* ================================================================
   9. RESULT CARDS
   ================================================================ */
@media (max-width: 768px) {
  .verdict-box { border-radius: 18px !important; padding: 1.25rem !important; }
  .verdict-main { font-size: 24px !important; }
  .cost-grid { grid-template-columns: 1fr 1fr !important; gap: .75rem !important; }
  .cost-tile { border-radius: 14px !important; padding: 1rem !important; }
  .cost-tile-value { font-size: 30px !important; }
  .breakdown-row { font-size: 13px; padding: 11px 0; }
  .result-card { border-radius: 18px !important; padding: 1.25rem !important; }
  .info-box { border-radius: 16px !important; }
  .price-row { grid-template-columns: 1fr !important; gap: .75rem !important; }
  .tip-card { border-radius: 14px !important; padding: .9rem 1rem !important; font-size: 13px !important; }
  .reset-btn, .share-btn {
    padding: 14px !important; font-size: 14px !important;
    border-radius: 14px !important; font-weight: 700 !important; min-height: 50px !important;
  }
  .cv-save-btn-wrap button {
    padding: 14px !important; font-size: 14px !important;
    border-radius: 14px !important; font-weight: 700 !important;
  }
  footer { padding: 2rem 1.25rem; }
}

/* ================================================================
   10. HOME PAGE — mobile app grid (cvx-apphome)
   ================================================================ */
@media (max-width: 768px) {
  .cvx-apphome { padding: .85rem .9rem 5.5rem; }

  /* Hero banner */
  .cvx-ah-banner {
    border-radius: 24px; margin-bottom: 1.1rem;
    min-height: 210px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
  }
  .cvx-ah-banner img {
    height: 210px; width: 100%; object-fit: cover; object-position: center;
    opacity: .45;
  }
  .cvx-ah-banner .cap { padding: 1.4rem 1.5rem; }
  .cvx-ah-banner h2 { font-size: 50px; line-height: .84; letter-spacing: .5px; }
  .cvx-ah-banner h2 span { display: block; }
  .cvx-ah-banner p { font-size: 13px; color: #aaa; margin-top: 8px; max-width: 200px; line-height: 1.5; }

  /* Featured scam checker row */
  .cvx-feature {
    display: flex; align-items: center; gap: 14px;
    padding: 17px; border-radius: 20px; margin-bottom: .85rem;
    min-height: 74px;
    border-width: 1px;
  }
  .cvx-feature:active { transform: scale(.985); }
  .cvx-feature .fi {
    width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
    background: rgba(232,255,71,.16) !important;
  }
  .cvx-feature .ft { font-size: 17px; font-weight: 800; }
  .cvx-feature .fs { font-size: 12.5px; }

  /* "All tools" section label */
  .cvx-ah-sec {
    font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
    color: #2e2e2e; text-transform: uppercase;
    margin: 1.4rem 0 .7rem; display: flex; align-items: center; gap: 8px;
  }

  /* 2-column tile grid */
  .cvx-grid { grid-template-columns: 1fr 1fr !important; gap: 9px !important; }
  .cvx-tile {
    padding: 14px 13px !important;
    border-radius: 20px !important;
    min-height: 132px !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    background: #0b0b0b !important;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .cvx-tile:active {
    background: #141414 !important;
    border-color: rgba(255,255,255,.13) !important;
    transform: scale(.97);
  }
  .cvx-tile .gi {
    width: 46px; height: 46px; border-radius: 14px !important; margin-bottom: 11px;
  }
  .cvx-tile .gt { font-size: 13.5px; font-weight: 700; line-height: 1.2; color: #e2e2e2; }
  .cvx-tile .gd { font-size: 11px; color: #484848; margin-top: 4px; line-height: 1.35; }
  .cvx-tile .gb { font-size: 9.5px; padding: 3px 8px; top: 11px; right: 10px; }

  /* Pro upgrade CTA */
  .cvx-pro-mob {
    padding: 17px !important; border-radius: 22px !important;
    margin-top: 1.1rem !important; gap: 14px !important;
    min-height: 78px; align-items: center;
    display: flex;
  }
  .cvx-pro-mob:active { opacity: .88; transform: scale(.985); }
  .cvx-pro-mob .pi { width: 50px; height: 50px; border-radius: 15px; flex-shrink: 0; }
  .cvx-pro-mob .pt { font-size: 15px; font-weight: 800; }
  .cvx-pro-mob .ps { font-size: 11px; margin-top: 3px; line-height: 1.4; }
  .cvx-pro-mob .pp { font-size: 30px; letter-spacing: 0; }
}

/* ================================================================
   11. AUTH PAGES — login + signup
   ================================================================ */
@media (max-width: 768px) {
  /* hide the right visual side entirely */
  .auth-visual { display: none !important; }

  /* panel becomes full-screen */
  .auth-page {
    display: block !important;
    min-height: 100dvh;
  }
  .auth-panel {
    width: 100% !important; max-width: 100% !important;
    padding: 2rem 1.25rem 4rem !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    min-height: 100dvh;
    box-shadow: none !important;
  }

  /* logo / brand at top */
  .auth-logo { margin-bottom: 2rem !important; }

  /* heading — big Bebas on mobile */
  .auth-title {
    font-size: clamp(38px, 11vw, 56px) !important;
    line-height: .88 !important; margin-bottom: .4rem !important;
    letter-spacing: .5px;
  }
  .auth-eyebrow {
    font-size: 11px !important; padding: 5px 13px !important;
    border-radius: 100px !important; margin-bottom: .9rem !important;
  }
  .auth-sub {
    font-size: 14px !important; color: #777 !important;
    margin-bottom: 2rem !important; line-height: 1.6 !important;
  }

  /* fields */
  .auth-field { margin-bottom: .85rem !important; }
  .auth-field label {
    font-size: 10.5px !important; font-weight: 800 !important;
    letter-spacing: .8px !important; text-transform: uppercase !important; color: #555 !important;
  }
  .auth-field input {
    font-size: 16px !important;
    padding: 15px 16px !important;
    border-radius: 14px !important;
    min-height: 52px !important;
    background: #111 !important;
    border: 1px solid rgba(255,255,255,.1) !important;
  }
  .auth-field input:focus {
    border-color: rgba(232,255,71,.4) !important;
    background: #141414 !important;
  }

  /* buttons */
  .auth-btn {
    padding: 17px !important; font-size: 16px !important;
    border-radius: 16px !important; min-height: 56px !important;
    font-weight: 800 !important;
  }
  .auth-btn-google {
    padding: 15px !important; font-size: 15px !important;
    border-radius: 14px !important; min-height: 52px !important;
  }

  /* helper text */
  .auth-switch { font-size: 14px !important; margin-top: 1.5rem !important; }
  .auth-divider { margin: 1.1rem 0 !important; }
}

/* ================================================================
   12. UPGRADE / PRICING PAGE
   ================================================================ */
@media (max-width: 768px) {
  .up-hero {
    padding: 2rem 1.25rem 1.5rem !important;
  }
  .up-hero-chip { margin-bottom: .9rem !important; }
  .up-hero h1 {
    font-size: clamp(44px, 12vw, 68px) !important;
    line-height: .87 !important; letter-spacing: .5px;
  }
  .up-hero p { font-size: 14px !important; }

  .trial-pill {
    border-radius: 16px !important; padding: 1rem 1.1rem !important; margin-top: 1rem;
  }

  /* plan toggle */
  .plan-toggle-wrap {
    padding: 0 1.25rem !important; margin-bottom: 1.25rem !important;
  }
  .plan-toggle {
    width: 100%; display: flex !important;
    border-radius: 14px !important; padding: 4px !important;
  }
  .pt-btn {
    flex: 1; padding: 11px !important;
    font-size: 14px !important; border-radius: 10px !important;
  }

  /* pricing cards */
  .up-section { padding: 0 1.25rem 2rem !important; }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important; margin-top: 0 !important;
  }
  .pc {
    border-radius: 22px !important; padding: 1.5rem !important;
  }
  .pc.pro { border-radius: 22px !important; padding: 1.5rem !important; }
  .pc-price { font-size: 60px !important; line-height: 1 !important; }
  .pc-btn {
    padding: 16px !important; border-radius: 14px !important;
    font-size: 15px !important; font-weight: 800 !important;
    min-height: 54px !important;
  }
  .pc-feat { font-size: 13.5px !important; }
}

/* ================================================================
   13. QUIZ PAGE
   ================================================================ */
@media (max-width: 768px) {
  /* quiz name entry */
  .quiz-name-wrap { padding: 1.5rem 1.25rem !important; }
  .quiz-name-input {
    font-size: 16px !important; border-radius: 14px !important;
    padding: 15px 16px !important; min-height: 52px !important;
  }
  .quiz-start-btn {
    padding: 17px !important; border-radius: 16px !important;
    font-size: 16px !important; font-weight: 800 !important;
    min-height: 56px !important;
  }

  /* question card */
  .quiz-q-text { font-size: 17px !important; line-height: 1.5 !important; }
  .quiz-opt {
    padding: 15px 16px !important; border-radius: 14px !important;
    font-size: 14.5px !important; min-height: 54px !important;
  }

  /* result screen */
  .result-title { font-size: clamp(28px, 8vw, 42px) !important; }
  .result-score-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px !important; line-height: 1 !important;
  }
  .play-again-btn, .share-score-btn {
    padding: 15px !important; border-radius: 14px !important;
    font-size: 14px !important; min-height: 52px !important;
    font-weight: 700 !important;
  }
}

/* ================================================================
   14. FEEDBACK PAGE
   ================================================================ */
@media (max-width: 768px) {
  .feedback-wrap { padding: 1.5rem 1.25rem 5rem !important; }
  .feedback-card { border-radius: 20px !important; padding: 1.25rem !important; }
  .feedback-textarea {
    font-size: 16px !important; border-radius: 14px !important;
    min-height: 140px !important; padding: 14px 16px !important;
  }
  .feedback-btn {
    padding: 17px !important; border-radius: 16px !important;
    font-size: 16px !important; min-height: 56px !important;
  }
}

/* ================================================================
   15. TIPS PAGE
   ================================================================ */
@media (max-width: 768px) {
  .tips-hero { padding: 1.5rem 1.25rem 1.25rem !important; }
  .tip-of-day {
    border-radius: 20px !important; margin: 0 1.25rem 1.5rem !important;
    padding: 1.5rem !important;
  }
  .tip-of-day-head { font-size: 10px !important; letter-spacing: 1.8px !important; }
  .tip-of-day-text { font-size: 17px !important; line-height: 1.55 !important; }
  .tips-grid { grid-template-columns: 1fr !important; gap: .65rem !important; padding: 0 1.25rem 5rem !important; }
  .tip-item { border-radius: 18px !important; padding: 1.1rem 1.25rem !important; }
}

/* ================================================================
   16. OFFLINE / 404
   ================================================================ */
@media (max-width: 768px) {
  .offline-wrap, .error-wrap {
    padding: 3rem 1.5rem !important; text-align: center;
  }
  .offline-icon { font-size: 64px !important; }
  .offline-title { font-size: 32px !important; }
}

/* ================================================================
   17. TOUCH ACTIVE STATES — universal press feedback
   ================================================================ */
@media (max-width: 768px) {
  a:active, button:active { opacity: .88; }
  .step-card:active, .why-card:active { background: rgba(255,255,255,.04) !important; }
}

/* ================================================================
   18. 480px and below
   ================================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(40px, 13vw, 56px); }
  .checker-card { padding: 1.25rem 1rem !important; }
  .cvx-ah-banner h2 { font-size: 44px; }
  .cvx-tile .gt { font-size: 12.5px; }
  .cvx-tile { min-height: 124px !important; }
  .auth-panel { padding: 1.5rem 1rem 4rem !important; }
  .trust-row { margin: 1rem .25rem 0; }
}
