/* ============================================
   Make This Tonight - Marketing Website Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-tangerine: #FF6B35;
  --color-tangerine-hover: #e55a25;
  --color-mint: #B2F7EF;
  --color-bone: #F7F4F2;
  --color-plum: #2E1A47;
  --color-midnight: #150C22;
  --color-smoke: #9D8FB0;
  --color-white: #ffffff;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(46, 26, 71, 0.08);
  --shadow-md: 0 8px 32px rgba(46, 26, 71, 0.12);
  --shadow-lg: 0 16px 48px rgba(46, 26, 71, 0.16);
  --shadow-phone: 0 20px 60px rgba(46, 26, 71, 0.2);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-plum);
  background-color: var(--color-bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-tangerine);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-tangerine-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
}

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Mobile App Banner --- */
.app-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--color-plum);
  color: var(--color-white);
  padding: 10px 16px;
  font-size: 14px;
  align-items: center;
  gap: 12px;
}

.app-banner__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.app-banner__text {
  flex: 1;
  font-weight: 500;
}

.app-banner__text span {
  display: block;
  font-size: 12px;
  color: var(--color-smoke);
  font-weight: 400;
}

.app-banner__btn {
  background: var(--color-tangerine);
  color: var(--color-white);
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.app-banner__close {
  background: none;
  border: none;
  color: var(--color-smoke);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .app-banner.is-visible {
    display: flex;
  }

  .app-banner.is-dismissed {
    display: none;
  }

  body.has-app-banner {
    padding-top: 52px;
  }

  body.has-app-banner .site-header {
    top: 52px;
  }
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 244, 242, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 26, 71, 0.06);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-plum);
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header-logo span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--color-plum);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-tangerine);
}

.header-nav a.btn-primary,
.header-nav a.btn-primary:hover {
  color: var(--color-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-tangerine);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-tangerine-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-plum);
  border: 2px solid var(--color-plum);
}

.btn-outline:hover {
  background: var(--color-plum);
  color: var(--color-white);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-plum);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bone);
  border-bottom: 1px solid rgba(46, 26, 71, 0.1);
  padding: 24px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

body.has-app-banner .mobile-nav {
  top: 116px;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.mobile-nav a {
  color: var(--color-plum);
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .header-nav {
    display: none;
  }

  .header-inner {
    height: 56px;
  }
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-tangerine);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 56px;
  color: var(--color-plum);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 19px;
  color: rgba(46, 26, 71, 0.65);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badges a {
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badges img {
  height: 48px;
  width: auto;
}

.hero-trust {
  font-size: 13px;
  color: var(--color-smoke);
  margin-top: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  border: 6px solid var(--color-plum);
  background: var(--color-plum);
  z-index: 2;
}

.phone-mockup img {
  width: 100%;
  display: block;
  border-radius: 30px;
}

.hero-food-float {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.hero-food-float:nth-child(2) {
  width: 120px;
  top: -20px;
  right: -10px;
  transform: rotate(6deg);
}

.hero-food-float:nth-child(3) {
  width: 110px;
  bottom: 30px;
  left: -20px;
  transform: rotate(-4deg);
}

.hero-food-float:nth-child(4) {
  width: 100px;
  top: 50%;
  right: -40px;
  transform: rotate(3deg);
}

@media (max-width: 1023px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-inner {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-subtitle {
    margin: 0 auto 32px;
    font-size: 17px;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-trust {
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
  }

  .hero-food-float:nth-child(2) {
    width: 90px;
    top: -10px;
    right: 10px;
  }

  .hero-food-float:nth-child(3) {
    width: 80px;
    bottom: 20px;
    left: 10px;
  }

  .hero-food-float:nth-child(4) {
    display: none;
  }
}

/* --- Feature Sections --- */
.features-section {
  padding: 80px 0;
}

.feature {
  padding: 60px 0;
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature:nth-child(even) .feature-inner {
  direction: rtl;
}

.feature:nth-child(even) .feature-inner > * {
  direction: ltr;
}

.feature-content h2 {
  font-size: 36px;
  color: var(--color-plum);
  margin-bottom: 20px;
}

.feature-content p {
  font-size: 18px;
  color: rgba(46, 26, 71, 0.65);
  line-height: 1.7;
  max-width: 440px;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-phone {
  width: 260px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  border: 5px solid var(--color-plum);
  background: var(--color-plum);
}

.feature-phone img {
  width: 100%;
  display: block;
  border-radius: 27px;
}

@media (max-width: 767px) {
  .features-section {
    padding: 40px 0;
  }

  .feature {
    padding: 40px 0;
  }

  .feature-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .feature:nth-child(even) .feature-inner {
    direction: ltr;
  }

  .feature-content h2 {
    font-size: 28px;
  }

  .feature-content p {
    font-size: 16px;
    max-width: none;
    margin: 0 auto;
  }

  .feature-visual {
    order: -1;
  }

  .feature-phone {
    width: 220px;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-plum);
  padding: 80px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 42px;
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  color: var(--color-mint);
  margin-bottom: 36px;
}

.cta-banner .store-badges {
  justify-content: center;
}

@media (max-width: 767px) {
  .cta-banner {
    padding: 60px 24px;
  }

  .cta-banner h2 {
    font-size: 30px;
  }

  .cta-banner p {
    font-size: 16px;
  }
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 36px;
  color: var(--color-plum);
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-plum);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--color-white);
}

.testimonial-stars {
  color: var(--color-tangerine);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-mint);
}

@media (max-width: 767px) {
  .testimonials {
    padding: 60px 0;
  }

  .testimonials h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- FAQ --- */
.faq {
  padding: 100px 0;
  background: var(--color-white);
}

.faq h2 {
  text-align: center;
  font-size: 36px;
  color: var(--color-plum);
  margin-bottom: 60px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(46, 26, 71, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-plum);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--color-tangerine);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 16px;
  color: rgba(46, 26, 71, 0.7);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .faq {
    padding: 60px 0;
  }

  .faq h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .faq-question {
    font-size: 16px;
    padding: 20px 0;
  }
}

/* --- Final CTA --- */
.final-cta {
  padding: 100px 0;
  text-align: center;
}

.final-cta-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-md);
}

.final-cta h2 {
  font-size: 36px;
  color: var(--color-plum);
  margin-bottom: 8px;
}

.final-cta .tagline {
  font-size: 20px;
  color: var(--color-smoke);
  margin-bottom: 36px;
}

.final-cta .store-badges {
  justify-content: center;
}

.final-cta .hero-trust {
  text-align: center;
}

@media (max-width: 767px) {
  .final-cta {
    padding: 60px 0;
  }

  .final-cta h2 {
    font-size: 28px;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-plum);
  color: var(--color-white);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: none;
}

.footer-brand-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand-logo span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-smoke);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-smoke);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-white);
  font-size: 15px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-tangerine);
}

.footer-download .store-badges {
  flex-direction: column;
}

.footer-download .store-badges img {
  height: 40px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-smoke);
}

.footer-bottom a {
  color: var(--color-smoke);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--color-tangerine);
}

@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-download .store-badges {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- Legal Pages --- */
.legal-page {
  padding: 80px 0;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 42px;
  color: var(--color-plum);
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--color-smoke);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 24px;
  color: var(--color-plum);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 18px;
  color: var(--color-plum);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 16px;
  color: rgba(46, 26, 71, 0.75);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  font-size: 16px;
  color: rgba(46, 26, 71, 0.75);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-tangerine);
}

@media (max-width: 767px) {
  .legal-page {
    padding: 48px 0;
  }

  .legal-content h1 {
    font-size: 32px;
  }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
