/* WeProfit marketing site — static, self-contained, no external assets.
   Brand: #ff580a (rgb 255,88,10) */

:root {
  --brand: #ff580a;
  --brand-dark: #e04c05;
  --brand-tint: #fff3ec;
  --ink: #16181d;
  --muted: #5c6470;
  --soft: #f7f8fa;
  --border: #e7e9ee;
  --footer-bg: #16181d;
  --radius: 12px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* anchor targets must clear the sticky header */
section[id] { scroll-margin-top: 76px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.logo img { height: 26px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
/* the nav CTA must not inherit the nav-link colors: white + bold, always */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: #fff; font-weight: 700; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 88, 10, 0.35);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(255, 88, 10, 0.3); }

/* the header CTA: periodic light sweep — alive without being noisy */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, 0.5) 50%, transparent 85%);
  transform: skewX(-20deg);
  animation: btn-shine 3.4s ease-in-out infinite;
}
@keyframes btn-shine {
  0% { left: -80%; }
  45% { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-shine::after { animation: none; content: none; }
  .btn-primary, .btn-primary:hover, .btn-primary:active { transform: none; box-shadow: none; }
}
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ── Hero ── */
.hero { padding: 72px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 34em;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Product mock card (pure CSS — no screenshots) */
.mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(22, 24, 29, 0.09);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--soft);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d8dce3; display: inline-block; }
.mock-body { padding: 20px; }
.mock-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.mock-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}
.mock-row:last-child { border-bottom: 0; }
.mock-row .neg { color: var(--muted); }
.mock-row.total { font-weight: 700; font-size: 16px; }
.mock-row.total .amount { color: var(--brand); }
.mock-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mock-badge {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--brand-tint);
  color: var(--brand-dark);
}
.mock-badge.gray { background: var(--soft); color: var(--muted); }

/* ── Platform strip ── */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--soft); }
.strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.strip span { font-size: 14px; font-weight: 600; color: var(--muted); }
.strip .lbl { font-weight: 500; color: var(--muted); opacity: 0.75; font-size: 13px; }

/* ── Sections ── */
section.block { padding: 76px 0; }
section.block.alt { background: var(--soft); }
.kicker {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
h2 { font-size: 32px; letter-spacing: -0.01em; margin-bottom: 12px; }
.sub { color: var(--muted); font-size: 16.5px; max-width: 44em; margin-bottom: 40px; }

/* Features */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
}
.card h3 { font-size: 17px; margin-bottom: 7px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 7px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Formula band */
.formula {
  background: var(--footer-bg);
  color: #fff;
  border-radius: 16px;
  padding: 34px 30px;
  text-align: center;
}
.formula .eq {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  gap: 10px 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: baseline;
}
.formula .eq .op { color: #8b93a1; font-weight: 400; }
.formula .eq .hl { color: var(--brand); }
.formula p { color: #aab1bc; font-size: 14px; margin-top: 10px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 20px;
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: 14.5px; }

/* Early access */
.beta-box {
  background: var(--brand-tint);
  border: 1px solid #ffd9c4;
  border-radius: 16px;
  padding: 44px 32px;
  text-align: center;
}
.beta-box h2 { margin-bottom: 10px; }
.beta-box p { color: var(--muted); max-width: 40em; margin: 0 auto 24px; }

/* ── Footer ── */
.site-footer { background: var(--footer-bg); color: #c6ccd4; margin-top: 76px; }
.site-footer .wrap { padding-top: 52px; padding-bottom: 34px; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2a2e35;
}
.foot-brand img { height: 24px; width: auto; margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; color: #8b93a1; max-width: 26em; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c6ccd4; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
  color: #8b93a1;
}

/* ── Legal pages ── */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px 20px; }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal h3 { font-size: 16.5px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 15px; color: #333a45; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin-bottom: 6px; }
.legal .toc {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14.5px;
}
.legal .toc ul { margin: 6px 0 0 18px; }

/* ── Motion ─────────────────────────────────────────────────────────────
   Hero animates on load (pure CSS). Everything else reveals on scroll: a
   tiny inline script tags <html> with .js and flips .reveal → .in as
   elements enter the viewport — without JS nothing is ever hidden. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes glow {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 88, 10, 0); }
  50% { text-shadow: 0 0 16px rgba(255, 88, 10, 0.55); }
}

/* hero entrance — staggered rise, mock card slides in then floats */
.hero .pill { animation: rise-in 0.5s 0.05s ease-out backwards; }
.hero h1 { animation: rise-in 0.55s 0.12s ease-out backwards; }
.hero .lead { animation: rise-in 0.55s 0.22s ease-out backwards; }
.hero .hero-ctas { animation: rise-in 0.55s 0.3s ease-out backwards; }
.hero .hero-note { animation: rise-in 0.55s 0.38s ease-out backwards; }
.hero .mock {
  animation:
    slide-in-right 0.6s 0.25s ease-out backwards,
    floaty 6s 1.4s ease-in-out infinite;
}

/* scroll reveals */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
/* stagger grid children */
html.js .grid3 .reveal:nth-child(2), html.js .steps .reveal:nth-child(2) { transition-delay: 0.1s; }
html.js .grid3 .reveal:nth-child(3), html.js .steps .reveal:nth-child(3) { transition-delay: 0.2s; }
html.js .grid3 .reveal:nth-child(4) { transition-delay: 0.1s; }
html.js .grid3 .reveal:nth-child(5) { transition-delay: 0.2s; }
html.js .grid3 .reveal:nth-child(6) { transition-delay: 0.3s; }

/* cards come alive on hover */
.card, .step {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover, .step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(22, 24, 29, 0.09);
  border-color: #ffcdb2;
}
.card .ico { transition: transform 0.25s ease; }
.card:hover .ico { transform: scale(1.14) rotate(-6deg); }
.step .num { transition: transform 0.25s ease; }
.step:hover .num { transform: scale(1.15); }

/* nav links: sliding underline */
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 0.25s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }

/* formula: the answer glows */
.formula .eq .hl { animation: glow 3s ease-in-out infinite; }

/* FAQ answers fade up when opened */
.faq details[open] p { animation: rise-in 0.35s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .hero .pill, .hero h1, .hero .lead, .hero .hero-ctas, .hero .hero-note,
  .hero .mock, .formula .eq .hl, .faq details[open] p { animation: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .step:hover { transform: none; }
  .card:hover .ico, .step:hover .num { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
}
@media (max-width: 600px) {
  .grid3, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  h1 { font-size: 31px; }
  .hero { padding: 48px 0 44px; }
  section.block { padding: 56px 0; }
  .site-nav { gap: 14px; }
  /* the header wraps to two rows on small screens — anchors need more room */
  section[id] { scroll-margin-top: 124px; }
}
