/* ========== Squazyo Website — styles.css ========== */
:root {
  --primary: #F7941D;
  --primary-light: #FDB558;
  --primary-dark: #D47A0F;
  --secondary: #1A1A1A;
  --accent: #F5C518;
  --bg: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --success: #22C55E;
  --error: #EF4444;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1120px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--secondary); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--gray-50); }
.section--primary { background: var(--primary); color: #fff; }
.section--dark { background: var(--secondary); color: #fff; }

/* ---- Typography ---- */
.heading-xl { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.heading-lg { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2; }
.heading-md { font-size: 1.25rem; font-weight: 700; }
.heading-sm { font-size: 1rem; font-weight: 700; }
.text-lg { font-size: 1.125rem; color: var(--gray-600); }
.text-md { font-size: 1rem; color: var(--gray-600); line-height: 1.7; }
.text-sm { font-size: 0.875rem; color: var(--gray-500); }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.tm { font-size: 0.6em; vertical-align: super; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; } .mt-48 { margin-top: 48px; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--gray-200); backdrop-filter: blur(8px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.nav__brand-text { font-size: 24px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { color: var(--gray-600); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.nav__links a:hover { color: var(--primary); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: transform 0.1s, box-shadow 0.2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--white { background: #fff; color: var(--primary); }
.btn--dark { background: var(--secondary); color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Hero ---- */
.hero { padding: 40px 0; text-align: center; }
.hero__tagline { max-width: 640px; margin: 0 auto 24px; }

/* ---- Cards / Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card--highlight { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); position: relative; }
.card--highlight::after { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 3px 14px; border-radius: 20px; letter-spacing: 0.5px; }
.card__icon { font-size: 2rem; margin-bottom: 12px; }
.card__price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.card__price span { font-size: 1rem; font-weight: 600; color: var(--gray-500); }

/* ---- Feature row ---- */
.feature-row { display: flex; gap: 48px; align-items: center; padding: 40px 0; }
.feature-row--reverse { flex-direction: row-reverse; }
.feature-row__visual { flex: 0 0 280px; display: flex; justify-content: center; }
.feature-row__content { flex: 1; }

/* ---- Steps ---- */
.step { text-align: center; }
.step__number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 16px; }

/* ---- Comparison Table ---- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 32px; }
.compare-table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: center; font-size: 0.9rem; }
.compare-table th { background: var(--primary); color: #fff; padding: 12px 16px; font-weight: 700; white-space: nowrap; }
.compare-table th:first-child { text-align: left; border-radius: 10px 0 0 0; }
.compare-table th:last-child { border-radius: 0 10px 0 0; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.compare-table .check { color: var(--success); font-size: 1.1rem; }
.compare-table .cross { color: var(--gray-400); font-size: 1.1rem; }
.compare-table .badge-pop {
  display: inline-block; background: var(--primary); color: #fff; font-size: 0.6rem; font-weight: 800;
  padding: 2px 8px; border-radius: 12px; letter-spacing: 0.3px; vertical-align: middle; margin-left: 4px;
}

/* ---- iPhone Mockups ---- */
.mockups { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.mockup { text-align: center; flex: 0 0 280px; }
.mockup__frame {
  width: 280px; height: 560px; border: 6px solid var(--secondary); border-radius: 40px;
  background: var(--bg); overflow: hidden; position: relative; margin: 0 auto 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.mockup__notch {
  width: 120px; height: 28px; background: var(--secondary); border-radius: 0 0 16px 16px;
  margin: 0 auto; position: relative; z-index: 2;
}
.mockup__screen { padding: 20px 16px; }
.mockup__caption { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.mockup__desc { font-size: 0.875rem; color: var(--gray-500); }

/* Mini UI elements inside mockups */
.m-chip { display: inline-block; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 5px 10px; border-radius: 14px; margin: 2px; }
.m-chip--outline { background: transparent; border: 1.5px solid var(--gray-200); color: var(--gray-600); }
.m-card { background: var(--gray-50); border-radius: 12px; padding: 12px; margin-top: 10px; text-align: left; }
.m-card__name { font-weight: 700; font-size: 0.85rem; color: var(--secondary); }
.m-card__meta { font-size: 0.7rem; color: var(--gray-500); margin-top: 2px; }
.m-card__btn { display: inline-block; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 5px 14px; border-radius: 8px; margin-top: 8px; }
.m-stars { color: var(--accent); font-size: 0.75rem; }
.m-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 12px; border-radius: 8px; letter-spacing: 0.5px; }
.m-badge--green { background: var(--success); }
.m-input { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 10px; padding: 10px; font-size: 0.75rem; color: var(--gray-500); width: 100%; margin-top: 8px; text-align: left; }
.m-btn-full { display: block; background: var(--primary); color: #fff; text-align: center; font-weight: 700; font-size: 0.8rem; padding: 12px; border-radius: 12px; margin-top: 12px; }
.m-btn-full--green { background: var(--success); }
.m-timer { font-size: 2.5rem; font-weight: 800; color: var(--secondary); text-align: center; margin: 16px 0 8px; letter-spacing: 2px; }
.m-label { font-size: 0.75rem; color: var(--gray-500); text-align: center; margin-top: 6px; }
.m-amount { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-align: center; margin-top: 8px; }
.m-heading { font-size: 1rem; font-weight: 800; color: var(--secondary); text-align: center; margin-top: 16px; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item__q { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 1rem; }
.faq-item__q::after { content: '+'; font-size: 1.5rem; color: var(--gray-400); transition: transform 0.2s; }
.faq-item__a { display: none; padding: 0 0 20px; color: var(--gray-600); line-height: 1.7; }
.faq-item.open .faq-item__q::after { content: '\2212'; }
.faq-item.open .faq-item__a { display: block; }

/* ---- Footer ---- */
.footer { background: var(--secondary); color: var(--gray-400); padding: 48px 0; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer__col { min-width: 160px; }
.footer__col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; }
.footer__col a { display: block; color: var(--gray-400); font-weight: 500; font-size: 0.875rem; margin-bottom: 8px; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom { border-top: 1px solid var(--gray-700); margin-top: 32px; padding-top: 24px; text-align: center; font-size: 0.8rem; }
.social-icon { display: inline-flex; transition: transform 0.15s; }
.social-icon:hover { transform: scale(1.15); }
.social-icon:hover svg circle:first-child { fill: var(--primary); }
.footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer__brand img { height: 50px; width: auto; }

/* ---- Legal pages ---- */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 24px 60px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 32px; }
.legal h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.2rem; }
.legal h3 { margin-top: 20px; margin-bottom: 8px; font-size: 1rem; }
.legal p, .legal li { color: var(--gray-700); line-height: 1.8; margin-bottom: 12px; }
.legal ul { padding-left: 24px; }

/* ---- Checklist items (✅ alignment) ---- */
.checklist li, .feature-row__content li {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding-left: 0; list-style: none; line-height: 1.5;
}

/* ---- Hamburger menu (hidden on desktop) ---- */
.nav__hamburger { display: none !important; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--secondary); padding: 4px; line-height: 1; }
.nav__mobile-menu {
  display: none; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--gray-200);
  position: absolute; top: 64px; left: 0; right: 0; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  display: block; padding: 14px 24px; color: var(--gray-600); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-bottom: 1px solid var(--gray-100);
}
.nav__mobile-menu a:hover { color: var(--primary); background: var(--gray-50); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Nav */
  .nav__links { display: none !important; }
  .nav__hamburger { display: block !important; }

  /* Layout */
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }

  /* Hero */
  .hero { padding: 24px 0; }
  .hero img { max-width: 200px !important; height: auto !important; margin-bottom: 12px !important; }
  .heading-xl { font-size: 1.75rem; }
  .hero__tagline { font-size: 1rem; }
  .hero .btn-group { flex-direction: column; }
  .hero .btn-group .btn { width: 100%; min-height: 48px; }

  /* Feature rows */
  .feature-row, .feature-row--reverse { flex-direction: column; text-align: left; gap: 24px; }
  .feature-row__visual { flex: none; }

  /* Cards */
  .card { padding: 20px; margin-bottom: 0; }

  /* Mockups */
  .mockups { flex-direction: column; align-items: center; gap: 40px; }
  .mockup { flex: none; }
  .mockup__frame { width: 260px; height: 520px; border-radius: 36px; }

  /* Comparison tables */
  .compare-wrap { margin-left: -16px; margin-right: -16px; padding: 0 16px; }

  /* Buttons — touch targets */
  .btn { min-height: 48px; padding: 14px 24px; }
  .btn--sm { min-height: 44px; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__col { min-width: unset; }
  .footer__brand { justify-content: center; }
  .footer .social-icon { display: inline-flex; }
  .footer__col:first-child > div:last-child { justify-content: center; }

  /* FAQ */
  .faq-item__q { font-size: 0.9rem; padding: 16px 0; }

  /* Steps */
  .grid-3 .step { margin-bottom: 24px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
