/* ===== Variables ===== */
:root {
  --bg-page: #F5EEE9;
  --yellow: #F3E500;
  --yellow-alt: #F1EA29;
  --black: #000000;
  --footer-bg: #0A0A0A;
  --white: #FFFFFF;
  --gray-border: #A6A6A6;
  --gray-text: #7B7B7B;
  --gray-soft: rgba(0, 0, 0, 0.05);
  --shadow-soft: 0px 12px 16px rgba(87, 43, 12, 0.05);
  --max-width: 1280px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--black);
  background: var(--bg-page);
  overflow-x: hidden;
}

.hero-image {
  margin-left: -48px;
}

.image-phone {
  transform: translateY(4px);
}

/* ===== Landing Page ===== */
.landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  isolation: isolate;
  position: relative;
  width: 100%;
  min-width: 320px;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 1024px;
  background: var(--bg-page);
}

.frame-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 160px;
  width: 100%;
  max-width: 1440px;
  flex: none;
}

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

/* ===== Hero (top) ===== */
.hero-top {
  padding: 24px 0;
  gap: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 0;
}

.logo {
  width: 208px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 722px;
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: clamp(48px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
  margin: 0;
  align-self: stretch;
  max-width: 722px;
}

.hero-subtitle {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  color: var(--black);
  margin: 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.store-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-phone {
  z-index: 1;
}

.hero-image-dish {
  position: absolute;
  top: 216px;
}

/* ===== Section block ===== */
.section-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 48px;
  width: 100%;
}

.section-title {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: clamp(48px, 4vw, 56px);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -1.5px;
  color: var(--black);
  margin: 0;

  &.section-title-daily {
    max-width: 610px;
  }

  &.section-title-recipes {
    max-width: 518px;
  }

  &.section-title-phones {
    max-width: 558px;
  }

  &.section-title-shopping {
    max-width: 590px;
  }

  &.section-title-favorites {
    max-width: 702px;
  }

  &.section-title-year {
    max-width: 654px;
  }
}

/* ===== Footer ===== */
.footer {
  width: 100vw;
  background: var(--footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  flex: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 0;
  gap: 24px;
  max-width: 492px;
}

.footer-tagline {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -1.5px;
  color: var(--white);
  margin: 0;
}

.footer-store-buttons {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-store-btn {
  width: 120px;
  height: 40px;
}

.footer-legal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  gap: 16px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal a {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-dot {
  width: 4px;
  height: 4px;
  background: var(--yellow-alt);
  border-radius: 50%;
}

.footer-credits {
  padding: 0 16px 24px;
  font-size: 11px;
  color: var(--gray-text);
  text-align: center;
}

.footer-credits a {
  color: var(--gray-text);
  text-decoration: underline;
}

.footer-credits a:hover {
  color: var(--white);
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 48px 24px 80px;
}

.legal-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  margin-bottom: 32px;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--black);
  margin: 0 0 16px;
}

.legal-date {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0 0 32px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--black);
  margin: 0 0 12px;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 12px;
}

.legal-section ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.legal-section a {
  color: var(--black);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--gray-text);
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
}

.legal-table th {
  background: var(--gray-soft);
  font-weight: 600;
  color: var(--black);
}

.legal-table td {
  color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .frame-main {
    gap: 80px;
  }
}

@media (max-width: 600px) {
  .logo {
    display: none;
  }
  .hero-title, .section-title {
    margin: 0 16px;
  }
  .hero-content {
    padding-top: 48px;
  }
  .hero-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5%;
    text-transform: uppercase;
  }
  .hero-text {
    margin-bottom: 16px;
  }
  .store-buttons {
    gap: 8px;
  }
  .footer-tagline {
    max-width: 294px;
  }
}
