
@media (max-width:480px) {
  .strength-card h3 {
    font-size: 3.8vw;
  }
  .strength-card p {
    font-size: 2.8vw;
    line-height: 1.4;
  }
  .heycar-lead {
    font-size: 4vw;
  }
  .heycar-logo-big {
    font-size: 15.5vw;
  }
}


@media (max-width:768px) {
  .heycar-car-img img {
    display: none;
  }
}

/* ===========================
   Mobile (<768px) — Hero Form as Toast Banner
   =========================== */
@media (max-width: 767px) {
  .hero-form-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    z-index: 95;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-form-card.toast-visible {
    transform: translateY(0);
  }

  .hero-form-card .hero-form-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-right: 56px;
  }

  .form-toast-close {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 3;
    transition: background 0.2s;
  }

  .form-toast-close:hover,
  .form-toast-close:active {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Hide bottom CTA when toast is visible */
  body.form-toast-open .bottom-cta {
    transform: translateY(100%) !important;
  }

  /* Toast handle bar (visual cue) */
  .hero-form-card.toast-visible::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    z-index: 3;
  }
}

/* ===========================
   Tablet (768px+)
   =========================== */
@media (min-width: 768px) {
  :root {
    --font-hero: 40px;
    --font-section: 32px;
    --container-padding: 32px;
  }

  .hero {
    min-height: 580px;
    padding: 80px 0;
  }

  /* Hero - 2 column layout (tablet+) */
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .hero-content {
    flex: 1;
    max-width: 640px;
  }

  .hero-form-card {
    flex: 0 0 340px;
    max-width: 340px;
    position: static;
    transform: none;
    max-height: none;
    overflow: hidden;
    border-radius: var(--radius-xl);
  }

  .form-toast-close {
    display: none !important;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .strengths-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .strength-card h3 {
    font-size: 20px;
  }

  .heycar-section {
    padding: 90px 0;
  }

  .heycar-lead {
    font-size: 24px;
  }

  .heycar-logo-big {
    font-size: 96px;
  }

  .process-timeline {
    flex-direction: row;
    gap: 14px;
    max-width: 100%;
    justify-content: space-between;
  }

  .process-step {
    flex: 1;
    text-align: center;
    padding: 30px 16px 24px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
  }

  .step-number {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 16px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .process-step h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .process-step p {
    font-size: 13px;
    line-height: 1.5;
  }

  .process-step p br {
    display: inline;
  }

  .reviews-carousel {
    gap: 20px;
  }

  .review-card {
    flex: 0 0 280px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .reviews-grid .review-card {
    flex: unset;
  }

  .reviews-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .reviews-toolbar .btn-write-review {
    justify-content: center;
  }

  .finance-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-header {
    padding: 56px 0;
  }

  .page-header h1 {
    font-size: 32px;
  }
  .heycar-car-img {
    bottom: -36px;
    left: -38px;
  }
  .heycar-car-img img {
    width: 28vw;
  }
  
}

/* ===========================
   Desktop (1024px+)
   =========================== */
@media (min-width: 1024px) {
  :root {
    --font-hero: 50px;
    --font-section: 36px;
    --section-padding: 90px 0;
  }

  .header {
    height: 80px;
  }

  body {
    padding-top: 80px;
  }

  .mobile-menu,
  .overlay {
    display: none !important;
  }

  .hamburger {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .bottom-cta {
    display: none;
  }

  .footer {
    padding: 44px 0;
  }

  /* Hero - Desktop overrides (larger) */
  .hero {
    min-height: 660px;
    padding: 100px 0 90px;
  }

  .hero-bg {
    background-position: center 20%;
  }

  .hero-inner {
    gap: 60px;
  }

  .hero h1 {
    font-size: 50px;
    line-height: 1.15;
    margin-bottom: 26px;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 35px;
  }

  .hero-form-card {
    flex: 0 0 400px;
    max-width: 400px;
  }

  .hero-form-header {
    padding: 26px 24px;
  }

  .hero-form-header h2 {
    font-size: 20px;
  }

  .hero-form {
    padding: 28px 24px 30px;
  }

  /* HeyCar Section - 2 column */
  .heycar-section {
    padding: 110px 0;
  }

  .heycar-inner {
    flex-direction: row;
    /* align-items: center; */
    justify-content: space-between;
    gap: 60px;
  }

  .heycar-text {
    text-align: left;
    flex: 1;
  }

  .heycar-lead {
    font-size: 20px;
    line-height: 1.5;
  }

  .heycar-logo-big {
    font-size: 106px;
  }
  .heycar-car-img img {
    width: 510px;
  }

  .status-board {
    flex: 0 0 480px;
    max-width: 480px;
  }

  .status-board-header {
    padding: 18px 26px;
    font-size: 15px;
  }

  .status-row {
    padding: 0 26px;
    font-size: 15px;
  }

  .badge {
    padding: 2% 16px;
    font-size: 14px;
    min-width: 70px;
  }

  /* Process Steps */
  .process-step {
    padding: 36px 20px 28px;
  }

  /* Reviews */
  .reviews-section {
    padding: 100px 0 90px;
  }

  .reviews-carousel {
    gap: 24px;
  }

  .review-card {
    flex: 0 0 300px;
  }

  /* Finance */
  .finance-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .finance-card {
    padding: 26px;
  }

  /* Footer */
  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-left {
    flex: 1;
  }

  .footer-cs {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    text-align: right;
  }

  /* Kakao Float */
  .kakao-float {
    width: 88px;
    height: 88px;
    right: 32px;
    bottom: 32px;
  }

  .kakao-float img {
    width: 36px;
    height: 36px;
  }

  .kakao-float span {
    font-size: 13px;
  }

  /* Sub pages */
  .page-header {
    padding: 120px 0;
  }

  .page-header h1 {
    font-size: 40px;
  }

  .page-header p {
    font-size: 16px;
  }

  .sell-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ===========================
   Large Desktop (1280px+)
   =========================== */
@media (min-width: 1280px) {
  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 54px;
  }
}
