/* Temu+ marketing site — single shared stylesheet, no external deps. */

:root {
  --orange: #fb7701;
  --orange-dark: #d96400;
  --orange-soft: #fff3e8;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --muted: #7b8499;
  --line: #e7e9ef;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --bg-dark: #141925;
  --green: #1a8f5a;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(20, 25, 37, .04), 0 8px 28px rgba(20, 25, 37, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- affiliation strip ---------- */
.disclaimer-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.3px;
}
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--orange-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .04s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- launch banner ---------- */
.launch-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 14.5px;
  padding: 10px 16px;
}
.launch-banner strong { color: #ffcd9b; }
.launch-banner a { color: #fff; text-decoration: underline; font-weight: 600; }

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #f6d9bd;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.launch-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(251, 119, 1, .5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 119, 1, .5); }
  70% { box-shadow: 0 0 0 7px rgba(251, 119, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 119, 1, 0); }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--orange-soft) 0%, #fff 100%);
  padding: 60px 0 56px;
  text-align: center;
}
.hero-visual {
  max-width: 940px;
  margin: 40px auto 0;
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20, 25, 37, .18);
  border: 1px solid var(--line);
}

/* ---------- screenshot gallery ---------- */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.shot .cap { padding: 16px 20px; }
.shot .cap h4 { margin: 0 0 4px; font-size: 16px; }
.shot .cap p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.shot .pro-tag {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 6px;
  margin-bottom: 6px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin: 0 auto 18px;
  max-width: 760px;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.8px; margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 8px;
}

/* ---------- problem cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- feature list ---------- */
.features { display: grid; gap: 14px 32px; grid-template-columns: repeat(2, 1fr); }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  margin-top: 2px;
}
.feature h4 { margin: 0 0 2px; font-size: 15.5px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--orange); border-width: 2px; position: relative; }
.plan .badge {
  position: absolute; top: -12px; left: 30px;
  background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .price-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan ul li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; color: var(--ink-soft); }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green); font-weight: 800;
}
.guarantee { text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: 15px; }
.guarantee strong { color: var(--ink); }

/* ---------- pro hooks ---------- */
.hooks { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.hook { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hook h3 { margin: 0 0 8px; font-size: 17px; }
.hook p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.honest-note {
  margin-top: 26px;
  background: var(--orange-soft);
  border: 1px solid #f6d9bd;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- trust ---------- */
.trust { text-align: center; max-width: 680px; margin: 0 auto; }
.trust h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.6px; margin: 0 0 14px; }
.trust p { font-size: 17px; color: var(--ink-soft); margin: 0 0 10px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--orange-dark); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: #aeb6c7; padding: 48px 0 32px; font-size: 14.5px; }
.site-footer a { color: #d7dceb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 18px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid #2a3142; padding-top: 22px; color: #7c8499; font-size: 13px; }
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom .legal-entity { color: #8b93a5; font-size: 12.5px; line-height: 1.5; }
.footer-bottom .legal-entity strong { color: #aeb6c7; font-weight: 600; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.8px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -.3px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  background: var(--orange-soft);
  border: 1px solid #f6d9bd;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.back-link { display: inline-block; margin-top: 36px; font-weight: 600; text-decoration: none; }

/* ---------- thank-you page ---------- */
.thanks { padding: 72px 0 80px; text-align: center; }
.thanks .wrap { max-width: 660px; }
.thanks-check {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #e9f7ef;
  color: var(--green);
  font-size: 36px; font-weight: 800;
  display: grid; place-items: center;
}
.thanks h1 { font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -.8px; margin: 0 0 14px; }
.thanks-lede { font-size: 18px; color: var(--ink-soft); margin: 0 auto 36px; max-width: 560px; }
.thanks-next {
  text-align: left;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.thanks-next h2 { font-size: 17px; margin: 0 0 12px; }
.thanks-next ul { margin: 0; padding-left: 20px; }
.thanks-next li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 9px; }
.thanks-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.thanks-foot { margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* ---------- waitlist modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 28px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 25, 37, .55);
  backdrop-filter: blur(2px);
  animation: fade .15s ease;
}
.modal-box {
  position: relative;
  background: #fdf4ec;
  padding: 10px;
  border-radius: 16px;
  width: 100%;
  max-width: 720px; /* wide enough for Tally to lay Name + Email inline on desktop */
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 70px rgba(20, 25, 37, .32);
  animation: pop .16s ease;
}
/* Height is managed by Tally's embed script (dynamicHeight) so the whole form
   shows; the 320px attribute is just the pre-load placeholder height. */
.modal-box iframe { width: 100%; border: 0; display: block; }
.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #f2f3f7; color: #4a5468;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.modal-loading {
  position: absolute; inset: 10px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: #fdf4ec; border-radius: 12px;
}
.modal-loading[hidden] { display: none; }
.modal-spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(20, 25, 37, .12);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-close:hover { background: #e7e9ef; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .cards, .hooks { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  section { padding: 48px 0; }
  .hero { padding: 52px 0 44px; }
}
