@import url("tokens.css");

/* Temu+ marketing site — premium shared design system.
   Tokens live in tokens.css (shared with the extension). This file styles the
   site on top of them: Geist display type, Geist Mono money figures, light/dark,
   double-bezel depth, spring motion, and a distinct Pro visual language. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: var(--accent-strong); }

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

/* ---------- scroll-reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 500; transition: color var(--dur-fast) var(--ease); }
.nav a:hover { color: var(--accent-strong); }

/* theme toggle — follows the OS until clicked, then remembers your choice */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-soft);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.theme-toggle:hover { color: var(--accent-strong); border-color: var(--accent); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { display: block; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[data-mode="dark"] .i-sun { display: block; }
.theme-toggle[data-mode="dark"] .i-moon { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    filter var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(.985) translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-pro { background: var(--pro-grad); color: #fff; border: none; box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.btn-pro:hover { filter: brightness(1.04); box-shadow: var(--pro-glow), 0 10px 26px color-mix(in srgb, var(--accent-pro) 32%, transparent); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* "Button-in-button" trailing icon — a nested circle that drifts on hover. */
.btn-ico {
  display: grid; place-items: center;
  width: 1.55em; height: 1.55em;
  margin-left: .15em; margin-right: -.35em;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-size: .86em; line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .btn-ico { transform: translate(2px, -1px); }

/* ---------- launch banner ---------- */
.launch-banner {
  background: var(--footer-bg);
  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: var(--panel);
  border: 1px solid var(--hairline);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.launch-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 70%);
  padding: 88px 0 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 auto 20px;
  max-width: 800px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-pro) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* double-bezel: the visual sits in a machined tray (outer shell + inner core) */
.hero-visual {
  max-width: 960px;
  margin: 48px auto 0;
  background: var(--tray);
  padding: var(--bezel-pad);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--r-xl) - var(--bezel-pad));
  border: 1px solid var(--hairline);
  box-shadow: var(--inset-hi);
}

/* ---------- sections ---------- */
section { padding: 92px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.03em; margin: 0 0 14px; }
.section-head p { color: var(--text-soft); font-size: 17px; margin: 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin: 0 0 16px;
}

/* ---------- machined card (shared base) ---------- */
.card, .hook, .plan, .shot {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), var(--inset-hi);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

/* ---------- problem cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { padding: 26px; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--inset-hi); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }

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

/* ---------- Pro zone — distinct gold visual language ---------- */
#pro {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--pro-tint), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--pro-edge);
}
#pro .eyebrow {
  color: var(--gold-strong);
  background: var(--pro-tint);
  border-color: var(--pro-edge);
}
.hooks { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.hook { padding: 26px; border-color: var(--pro-edge); }
.hook:hover { transform: translateY(-3px); box-shadow: var(--shadow-pro), var(--inset-hi); border-color: var(--gold); }
.hook h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hook p { margin: 0; color: var(--text-soft); font-size: 15px; }
.honest-note {
  margin-top: 30px;
  background: var(--pro-tint);
  border: 1px solid var(--pro-edge);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--text-soft);
  text-align: center;
}

/* beta / Pro chips */
.beta-tag, .pro-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--r-xs);
  line-height: 1.5;
}
.beta-tag {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
  border: 1px solid var(--hairline);
}
.pro-tag {
  background: var(--pro-grad);
  color: #fff;
  margin-bottom: 6px;
}

/* ---------- screenshot gallery ---------- */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.shot { overflow: hidden; }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--inset-hi); }
.shot img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--hairline); }
.shot .cap { padding: 18px 22px; }
.shot .cap h4 { margin: 0 0 4px; font-size: 16px; }
.shot .cap p { margin: 0; color: var(--text-soft); font-size: 14px; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.plan { padding: 32px; display: flex; flex-direction: column; }
.plan.featured {
  border: 1px solid var(--pro-edge);
  background: linear-gradient(180deg, var(--pro-tint), var(--panel) 55%);
  box-shadow: var(--shadow-pro), var(--inset-hi);
  position: relative;
}
.plan .badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--pro-grad); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 13px; border-radius: var(--r-pill);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-pro) 30%, transparent);
}
.plan h3 { margin: 0 0 4px; font-size: 21px; }
.plan .price { font-family: var(--font-mono); font-size: 36px; font-weight: 600; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price small { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan ul li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; color: var(--text-soft); }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--good); font-weight: 800;
}
.plan.featured ul li::before { color: var(--gold-strong); }
.guarantee { text-align: center; margin-top: 30px; color: var(--text-soft); font-size: 15px; }
.guarantee strong { color: var(--text); }

/* ---------- trust ---------- */
.trust { text-align: center; max-width: 700px; margin: 0 auto; }
.trust h2 { font-size: clamp(25px, 3.3vw, 34px); letter-spacing: -.03em; margin: 0 0 16px; }
.trust p { font-size: 17px; color: var(--text-soft); margin: 0 0 10px; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 4px 22px;
  margin-bottom: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-strong); font-weight: 700; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }

/* ---------- footer (intentionally dark in both themes) ---------- */
.site-footer { background: var(--footer-bg); color: #aeb6c7; padding: 56px 0 36px; font-size: 14.5px; }
.site-footer a { color: #d7dceb; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.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-family: var(--font-display); font-weight: 700; 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: 64px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.02em; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  background: var(--accent-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--text-soft);
  font-size: 15px;
}
.back-link { display: inline-block; margin-top: 36px; font-weight: 600; text-decoration: none; }

/* ---------- thank-you page ---------- */
.thanks { padding: 80px 0 88px; text-align: center; }
.thanks .wrap { max-width: 680px; }
.thanks-check {
  width: 76px; height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  font-size: 38px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: var(--inset-hi);
}
.thanks h1 { font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -.03em; margin: 0 0 14px; }
.thanks-lede { font-size: 18px; color: var(--text-soft); margin: 0 auto 38px; max-width: 580px; }
.thanks-next {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin-bottom: 34px;
  box-shadow: var(--shadow), var(--inset-hi);
}
.thanks-next h2 { font-size: 17px; margin: 0 0 12px; }
.thanks-next ul { margin: 0; padding-left: 20px; }
.thanks-next li { color: var(--text-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(15, 17, 21, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade .15s var(--ease);
}
.modal-box {
  position: relative;
  background: #fff;
  padding: 12px;
  border: 1px solid rgba(20, 25, 37, .08);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-lg);
  animation: pop .22s var(--ease-out);
}
.modal-box iframe { width: 100%; border: 0; display: block; border-radius: calc(var(--r-lg) - 12px); background: #fff; }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(20, 25, 37, .08); background: #f2f3f7; color: #4a5468;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.modal-close:hover { background: #e7e9ef; }
.modal-loading {
  position: absolute; inset: 12px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: calc(var(--r-lg) - 12px);
}
.modal-loading[hidden] { display: none; }
.modal-spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(20, 25, 37, .12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) 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; }
  section { padding: 72px 0; }
}
@media (max-width: 520px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 48px; }
  .hero-visual { margin-top: 36px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .launch-pill .dot { animation: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
