/* Advertise With AisleMates (/advertise): the public sponsor info page.
   Design spec: design channel sponsor-page/SPEC.md (Nov 22). Cream page,
   white cards with a hairline, Outfit, one 720px column with 16px edges.
   The pictures are the app's own ad components (sponsor-ads.css), built by
   scripts/build-advertise-previews.js. */

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/outfit/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/outfit/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --adv-ink: #1C1917;
  --adv-gray: #5F5A54;
  --adv-cream: #F7F1E6;
  --adv-line: #E6DED0;
  --adv-produce: #1F7A4D;
  --adv-tomato: #C9362A;
}

* { box-sizing: border-box; }

body.advertise {
  margin: 0;
  background: var(--adv-cream);
  color: var(--adv-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.adv-top,
.adv-page,
.adv-foot {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.adv-top {
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
}
.adv-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.adv-wordmark img { display: block; height: 28px; width: auto; }

.adv-page section,
.adv-page .adv-band { margin-top: 48px; }
.adv-page section:first-child { margin-top: 24px; }

h1, h2, h3 { margin: 0; color: var(--adv-ink); }
h2 { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-top: 12px; }
p { margin: 0; }

/* 1. Hero: text, then the Receipts picture beside it (under it on phones). */
.adv-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.adv-eyebrow {
  color: var(--adv-gray);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.adv-hero h1 {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
}
.adv-lede {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
}

/* Email Us: the page's only filled tomato button, 48px. */
.adv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--adv-tomato);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.adv-cta:focus-visible {
  outline: 2px solid var(--adv-ink);
  outline-offset: 2px;
}

/* 2. How AisleMates works */
.adv-steps {
  margin: 0;
  padding-left: 24px;
}
.adv-steps li { margin: 8px 0; padding-left: 4px; }
.adv-steps li::marker { color: var(--adv-gray); font-weight: 600; }

/* 3. Four places: 2x2 white cards, one column on phones. */
.adv-intro { margin-bottom: 16px; }
.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.adv-card {
  background: #FFFFFF;
  border: 1px solid var(--adv-line);
  border-radius: 16px;
  padding: 16px;
}
.adv-card p {
  margin-top: 4px;
  color: var(--adv-gray);
  font-size: 15px;
  line-height: 1.45;
}
.adv-card-wide { margin-top: 16px; }
.adv-example-label {
  margin-bottom: 8px;
  color: var(--adv-gray);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* The pictures: the real components in a cream 375px frame, not live. */
.adv-frame {
  max-width: 375px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--adv-cream);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.adv-frame .aisle-ad-card { margin: 0; }
.adv-frame .aisle-ad-discover-actions { display: none; }
/* The Matches row's look from the app (aisle.css + aisle-chat-c.css). */
.adv-frame .match-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 10px 10px 8px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.05);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
}
/* Map: the placeholder pin mid-map on a plain backdrop, its sheet below. */
.adv-frame .adv-map-bg {
  position: relative;
  height: 120px;
  border-radius: 12px 12px 0 0;
  background-color: #E8E1D3;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 6px, transparent 6px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.7) 0 6px, transparent 6px);
  background-size: 96px 72px;
  background-position: 40px 30px;
}
.adv-frame .map-screen .adv-map-pin {
  left: calc(50% - 17px);
  top: 26px;
}
.adv-frame .map-screen .aisle-ad-mapsheet {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
}

/* 4. Who sees your ads: produce check rows. */
.adv-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.adv-checks li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
}
.adv-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--adv-produce);
  border-bottom: 2.5px solid var(--adv-produce);
  transform: rotate(-45deg);
}

/* 5. What you'll provide: one white card list. */
.adv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--adv-line);
  border-radius: 16px;
}
.adv-list li { padding: 14px 16px; }
.adv-list li + li { border-top: 1px solid var(--adv-line); }

/* 6. Closing band */
.adv-band {
  margin-top: 48px;
  padding: 32px 16px;
  border-radius: 16px;
  background: var(--adv-cream);
  border: 1px solid var(--adv-line);
  text-align: center;
}
.adv-band h2 { margin-bottom: 8px; }
.adv-email {
  font-weight: 600;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}

.adv-foot {
  padding-top: 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  color: var(--adv-gray);
  font-size: 13px;
}
.adv-foot nav { display: flex; gap: 16px; margin-top: 4px; }
.adv-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--adv-gray);
}

@media (max-width: 699px) {
  .adv-page section,
  .adv-page .adv-band { margin-top: 32px; }
  .adv-page section:first-child { margin-top: 16px; }
}

@media (min-width: 700px) {
  .adv-hero { grid-template-columns: 1fr 1fr; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .adv-card-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
  .adv-card-wide h3 { margin-top: 0; }
}
