/* Crave marketing site (static) */
:root {
  --text1: #ffffff;
  --text2: #000000;
  --bg1: #ffffff; /* page white */
  --bg2: #ff7a25;
  --bg3: #e9ecef;
  --accent1: #fe3a08;
  --accent2: #fd2b05;
  --accent3: #f92417;
  --discover-yellow: #feff48;
  --discover-amber: #ffb300;
  --font-barlow: "Barlow Condensed", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* ~12.5% larger than browser default — scales all rem-based type */
  font-size: 112.5%;
}

body {
  margin: 0;
  font-family: var(--font-barlow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar — desktop split pane */
@media (min-width: 1280px) {
  .home-scroll::-webkit-scrollbar {
    width: 10px;
  }
  .home-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  .home-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
  }
  .home-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

/* ---------- Homepage — responsive visibility ---------- */
.home-desktop {
  display: none;
}

.home-mobile {
  display: block;
}

@media (min-width: 1280px) {
  .home-desktop {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }
  .home-mobile {
    display: none;
  }
}

/* ---------- Desktop: fixed left column ---------- */
/* Matches old Tailwind: px-12 lg:px-16 (this column shows at 1280+ → 64px sides),
   space-y-6 (24px) between headline / desc / CTA, space-y-2 (8px) inside headline.
   Brand type: Barlow Condensed font-bold (700); Crave text-8xl, sublines text-5xl + #FEFF48. */
.home-fixed {
  width: 40%;
  height: 100%;
  min-height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
  background: var(--bg2);
}

.home-fixed-inner {
  display: flex;
  flex-direction: column;
  gap: 24px; /* space-y-6 — not affected by root font-size scale */
  max-width: 28rem;
}

.home-brand-lines {
  display: flex;
  flex-direction: column;
  gap: 8px; /* space-y-2 */
}

/* Desktop-only (narrow left column): text-7xl → md:text-8xl and text-4xl → md:text-5xl at md+ */
.home-fixed .home-brand-crave {
  margin: 0;
  line-height: 1;
  font-weight: 700;
  font-size: 96px; /* text-8xl at lg+ */
  color: var(--text1);
}

.home-fixed .home-brand-sub {
  margin: 0;
  line-height: 1;
  font-weight: 700;
  font-size: 48px; /* text-5xl */
  color: #feff48;
}

.home-fixed-desc {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.65;
  font-weight: 500;
}

.home-fixed .home-fixed-desc,
.home-mobile-hero .home-fixed-desc {
  color: var(--text1);
  opacity: 0.92;
}

.app-store-block {
  width: 100%;
}

.app-store-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.home-fixed .app-store-label,
.home-mobile-hero .app-store-label {
  color: var(--text1);
}

.app-store-btn {
  display: block;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.app-store-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.app-store-btn-inner svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--text2);
}

.app-store-btn-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text2);
}

.home-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.home-inline-links a {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-fixed .home-inline-links a,
.home-mobile-hero .home-inline-links a {
  color: var(--text1);
  opacity: 0.85;
}

.home-inline-links a:hover {
  opacity: 1;
}

/* ---------- Desktop: scrollable right (clean white column) ---------- */
.home-scroll {
  width: 60%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
}

.home-sticky-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-sticky-brand img {
  height: 3rem;
  width: auto;
}

.home-sticky-brand h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--accent1);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  background: #ffffff;
}

.hero-section-inner {
  width: 100%;
  max-width: 72rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-section-inner.reverse {
  flex-direction: row-reverse;
}

.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text2);
}

.hero-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent1);
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.65;
  color: var(--text2);
  opacity: 0.82;
}

.hero-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-container {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-container.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mockup-container img {
  width: 100%;
  max-width: 28rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.12));
  border-radius: 0.75rem;
}

.mockup-container video {
  width: 100%;
  max-width: 28rem;
  height: auto;
  object-fit: contain;
  filter: none;
  box-shadow: none;
  border-radius: 0;
}

.tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 28rem;
}

.tile-card {
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile-card:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.tile-card p {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text2);
}

.btn-learn-more {
  display: inline-block;
  padding: 1.25rem 2.75rem;
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent1);
  box-shadow: 0 10px 25px rgba(254, 58, 8, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-learn-more:hover {
  transform: scale(1.05);
}

/* ---------- Mobile / tablet homepage ---------- */
/* Matches: px-6 sm:px-12, inner py-12, space-y-6 / space-y-2; Crave text-6xl sm:text-7xl; sub text-3xl sm:text-4xl + #FFB300 */
.home-mobile-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  background: var(--bg2);
}

@media (min-width: 640px) {
  .home-mobile-hero {
    padding: 0 48px;
  }
}

.home-mobile-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px; /* space-y-6 */
  padding-top: 48px;
  padding-bottom: 48px; /* py-12 */
}

.home-mobile-hero .home-brand-lines {
  text-align: center;
}

.home-mobile-hero .home-brand-crave {
  margin: 0;
  line-height: 1;
  font-weight: 700;
  font-size: 60px; /* text-6xl */
  color: var(--text1);
}

@media (min-width: 640px) {
  .home-mobile-hero .home-brand-crave {
    font-size: 72px; /* text-7xl */
  }
}

.home-mobile-hero .home-brand-sub {
  margin: 0;
  line-height: 1;
  font-weight: 700;
  font-size: 30px; /* text-3xl */
  color: #ffb300;
}

@media (min-width: 640px) {
  .home-mobile-hero .home-brand-sub {
    font-size: 36px; /* text-4xl */
  }
}

.home-mobile-hero .home-fixed-desc {
  text-align: center;
}

.home-mobile-hero .app-store-label {
  text-align: left;
}

.home-mobile-sticky {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-mobile-sticky img {
  height: clamp(2.75rem, 8vw, 4rem);
  width: auto;
}

.home-mobile-sticky h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--accent1);
}

.hero-mobile-section {
  min-height: min(100vh, auto);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  background: #ffffff;
}

.hero-mobile-inner {
  max-width: 42rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-mobile-inner h2 {
  margin: 0;
  font-size: clamp(1.85rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text2);
}

.hero-mobile-inner h3 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--accent1);
}

.hero-mobile-inner p {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.65;
  color: var(--text2);
  opacity: 0.82;
}

.hero-mobile-inner .tiles-grid {
  margin: 0 auto;
  max-width: 22rem;
}

.hero-mobile-inner .tile-card p {
  font-size: 0.9rem;
}

.hero-mobile-inner .mockup-container img,
.hero-mobile-inner .mockup-container video {
  max-width: 20rem;
}

.btn-learn-more--mobile {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
}

/* ---------- Site footer ---------- */
.site-footer {
  padding: 3rem 1.5rem;
  background: var(--bg3);
}

.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.site-footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer-social a {
  color: var(--text2);
  transition: transform 0.2s ease;
}

.site-footer-social a:hover {
  transform: scale(1.1);
}

.site-footer-social svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer-links a {
  color: var(--text2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1rem;
  font-weight: 500;
}

.site-footer-links a:hover {
  opacity: 0.8;
}

.site-footer-copy {
  text-align: center;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text2);
  opacity: 0.9;
}

/* ---------- Legal pages ---------- */
.legal-page {
  min-height: 100vh;
  padding: 3rem 1.5rem;
  background: #ffffff;
}

.legal-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent1);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.legal-back:hover {
  opacity: 0.75;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text2);
}

.legal-sub {
  margin: 0 0 2.5rem;
  font-size: 0.875rem;
  color: var(--text2);
  opacity: 0.55;
}

.legal-sub.title {
  font-size: 1.5rem;
  opacity: 1;
  color: var(--accent1);
  font-weight: 600;
}

.legal-prose {
  color: var(--text2);
  line-height: 1.65;
  font-size: 1.05rem;
}

.legal-prose > p {
  margin: 0 0 1.5rem;
}

.legal-prose section {
  margin-bottom: 2rem;
}

.legal-prose h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text2);
}

.legal-prose h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text2);
}

.legal-prose ul,
.legal-prose ol {
  margin: 0.5rem 0 1rem 1.25rem;
  padding-left: 1rem;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose a {
  color: var(--accent1);
  font-weight: 500;
}

.legal-callout {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--bg2);
  color: var(--text1);
  font-size: 0.9rem;
}

.legal-callout h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text1);
}

.legal-callout a {
  color: var(--text1);
}

.legal-accent-h2 {
  color: var(--accent1);
}

.legal-accent-h2.bad {
  color: var(--accent2);
}

.legal-accent-h2.enforce {
  color: var(--accent3);
}
