/* RocketFreelancer — marketing site
   One stylesheet, no build step, no external fonts, no third-party assets.
   Every animation is transform/opacity only so nothing shifts the layout. */

:root {
  --brand-50:  #eef2ff;
  --brand-100: #dfe6ff;
  --brand-200: #c3d0ff;
  --brand-300: #9db0ff;
  --brand-400: #6f88fb;
  --brand-500: #3f66f5;
  --brand-600: #1b4df5;
  --brand-700: #1539c4;
  --brand-800: #122e9c;
  --brand-900: #0e2fa8;

  --ember-400: #ff8a63;
  --ember-500: #ff6a3d;
  --ember-600: #ea5327;

  --accent-500: #12b886;
  --accent-600: #0d946f;

  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --text: #0a0f1e;
  --text-muted: #545c72;
  --text-subtle: #7b8399;
  --border: #e3e7f1;
  --border-strong: #ccd3e4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 15, 30, .06), 0 1px 3px rgba(10, 15, 30, .04);
  --shadow-md: 0 6px 16px rgba(10, 15, 30, .08), 0 2px 4px rgba(10, 15, 30, .04);
  --shadow-lg: 0 24px 60px rgba(10, 15, 30, .14), 0 6px 18px rgba(10, 15, 30, .08);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: clamp(2.15rem, 1.35rem + 3.2vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: 1.13rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-600); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 2.5rem); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--brand-600); color: #fff;
  font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--brand-700); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-alt); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-sm { padding: .4rem .78rem; font-size: .86rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 252, .82);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-bottom-color: var(--border); background: rgba(255, 255, 255, .9); }
.header-inner {
  display: flex; align-items: center; gap: 1.1rem; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 750; font-size: 1.06rem; letter-spacing: -.025em; }
.brand-accent { color: var(--brand-600); }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  color: var(--text-muted); font-weight: 500; font-size: .93rem;
  padding: .45rem .7rem; border-radius: var(--radius-sm); transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: .15rem; margin: 0; padding: .6rem 1.25rem 1rem;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .5rem; font-size: 1rem; }
  .header-cta { display: none; }
}

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 1rem + 7vw, 6rem) 0 clamp(3rem, 2rem + 5vw, 5.5rem); }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .55; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-200);
  padding: .32rem .7rem; border-radius: 999px; margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: var(--text-muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.4rem; }
.hero-actions.center { justify-content: center; }
.trust-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; padding: 0; margin: 0;
  font-size: .88rem; color: var(--text-muted);
}
.trust-strip li { display: inline-flex; align-items: center; gap: .38rem; }
.trust-strip svg { color: var(--accent-600); flex: none; }

/* hero product preview */
.hero-visual { position: relative; }
.preview-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
@media (max-width: 980px) { .preview-card { transform: none; } }
.preview-head {
  display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.dot-a { background: #ff5f57; } .dot-b { background: #febc2e; } .dot-c { background: #28c840; }
.preview-title { margin-left: .5rem; font-size: .82rem; color: var(--text-subtle); font-weight: 600; }
.preview-body { padding: 1.3rem 1.4rem 1.5rem; }
.preview-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.preview-label { font-size: .86rem; color: var(--text-muted); font-weight: 600; }
.preview-amount { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
.preview-track { height: 7px; border-radius: 999px; background: var(--bg-alt); margin: .8rem 0 1.2rem; overflow: hidden; }
.preview-track-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); }
.preview-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.preview-steps li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--text-subtle); }
.preview-steps li.done { color: var(--text); }
.preview-steps li.done svg { color: var(--accent-600); }
.preview-steps li.current { color: var(--text); font-weight: 600; }
.preview-steps li.current svg { color: var(--ember-500); }
.preview-float {
  position: absolute; display: inline-flex; align-items: center; gap: .42rem;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  border-radius: 999px; padding: .5rem .85rem; font-size: .84rem; font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.preview-float svg { color: var(--accent-600); }
@media (max-width: 700px) { .preview-float { display: none; } }
.preview-float-a { top: -20px; right: 4%; }
.preview-float-b { bottom: 4%; left: -13%; animation-delay: -3s; }
@media (max-width: 1180px) { .preview-float-b { left: -6%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------------- metrics ---------------- */
.metrics { border-block: 1px solid var(--border); background: var(--surface); }
.metrics-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.9rem 0;
}
@media (max-width: 760px) { .metrics-inner { grid-template-columns: repeat(2, 1fr); } }
.metric { display: flex; flex-direction: column; gap: .1rem; }
.metric strong { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; color: var(--brand-700); }
.metric span { font-size: .88rem; color: var(--text-muted); }

/* ---------------- sections ---------------- */
.section { padding: clamp(3.2rem, 2rem + 4vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1rem + 2.5vw, 3rem); }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); margin: 0 0 .6rem;
}
.section-lede { color: var(--text-muted); font-size: 1.04rem; }

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.4rem; }
.card-pad h3 { margin-bottom: .4rem; }
.card-pad p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.icon-tile {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
  margin-bottom: .9rem;
}

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.bento-cell {
  grid-column: span 2; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bento-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.bento-cell p { color: var(--text-muted); font-size: .95rem; }
.bento-wide { grid-column: span 4; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell, .bento-wide { grid-column: span 1; }
}
.mini-list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .4rem; }
.mini-list li { position: relative; padding-left: 1.15rem; font-size: .9rem; color: var(--text-muted); }
.mini-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-500);
}

/* steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: .4rem; }
.step-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-weight: 700; font-size: .92rem; margin-bottom: .7rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ---------------- pricing ---------------- */
.billing-toggle {
  display: inline-flex; gap: .25rem; padding: .28rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; margin-bottom: 1.6rem;
}
.toggle-btn {
  border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: .9rem;
  font-weight: 600; padding: .45rem .95rem; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; transition: background .18s, color .18s;
}
.toggle-btn.is-active { background: var(--brand-600); color: #fff; }
.toggle-save { font-size: .76rem; font-weight: 600; opacity: .85; }

.pricing-grid { align-items: stretch; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.price-card.is-popular { border-color: var(--brand-400); box-shadow: var(--shadow-md); }
.price-flag {
  position: absolute; top: -11px; left: 1.6rem; background: var(--brand-600); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px;
}
.price-name { margin: 0 0 .15rem; font-size: 1.25rem; }
.price-tagline { color: var(--text-muted); font-size: .9rem; margin: 0 0 1rem; }
.price { margin: 0; display: flex; align-items: baseline; gap: .3rem; }
.price-amount { font-size: 2.4rem; font-weight: 780; letter-spacing: -.04em; }
.price-period { color: var(--text-muted); font-size: .95rem; }
.price-note { color: var(--text-subtle); font-size: .8rem; margin: .2rem 0 1rem; }
.price-features { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .5rem; flex: 1 1 auto; align-content: start; }
.price-features li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--text-muted); }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 15px; height: 15px;
  border-radius: 50%; background: var(--accent-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.55 17.6 3 11.05l1.4-1.4 5.15 5.15L19.6 4.8 21 6.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.55 17.6 3 11.05l1.4-1.4 5.15 5.15L19.6 4.8 21 6.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-limits {
  display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 0; padding-top: .9rem;
  border-top: 1px solid var(--border);
}
.price-limits span {
  font-size: .74rem; font-weight: 600; color: var(--text-subtle);
  background: var(--bg-alt); border-radius: 999px; padding: .18rem .55rem;
}

.fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
@media (max-width: 900px) { .fee-grid { grid-template-columns: minmax(0, 1fr); } }
.fee-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.4rem; min-width: 0;
}
.fee-card h3 { margin-bottom: .2rem; }
.fee-lede { color: var(--text-muted); font-size: .9rem; margin-bottom: .9rem; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .88rem; table-layout: fixed; }
@media (max-width: 560px) {
  .fee-table { font-size: .8rem; }
  .fee-table th, .fee-table td { padding: .45rem .25rem; }
}
.fee-table th, .fee-table td { text-align: left; padding: .5rem .35rem; border-bottom: 1px solid var(--border); }
.fee-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); font-weight: 700; }
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table tr.is-us td { font-weight: 700; color: var(--brand-700); background: var(--brand-50); }
.fee-source { color: var(--text-subtle); font-size: .76rem; margin: .8rem 0 0; }

/* ---------------- faq ---------------- */
.faq-list { display: grid; gap: .6rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 1.1rem;
}
.faq-item[open] { border-color: var(--brand-200); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 650;
  position: relative; padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: .2rem; top: 1.35rem; width: 9px; height: 9px;
  border-right: 2px solid var(--text-subtle); border-bottom: 2px solid var(--text-subtle);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 1.45rem; }
.faq-item p { color: var(--text-muted); font-size: .95rem; margin: 0 0 1rem; }

/* ---------------- cta + footer ---------------- */
.cta-section { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; background: linear-gradient(135deg, var(--brand-800), var(--brand-600) 55%, #2f6bff); color: #fff; }
.cta-inner { text-align: center; max-width: 44rem; margin-inline: auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, .84); margin-bottom: 0; }
.cta-section .btn { background: #fff; color: var(--brand-800); }
.cta-section .btn:hover { background: #eef2ff; }
.cta-section .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-section .btn-secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 2.6rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 2rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: .9rem; max-width: 22rem; margin-top: .7rem; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 620px) { .footer-links { grid-template-columns: 1fr 1fr; } }
.footer-links h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); margin-bottom: .6rem; font-weight: 700; }
.footer-links a { display: block; color: var(--text-muted); font-size: .9rem; padding: .22rem 0; }
.footer-links a:hover { color: var(--brand-700); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  border-top: 1px solid var(--border); margin-top: 2.2rem; padding: 1.1rem 0 1.4rem;
}
.footer-base p { margin: 0; font-size: .82rem; color: var(--text-subtle); }

/* ---------------- reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .preview-float { animation: none; }
}

/* Utility class used instead of an inline style attribute. */
.w-66 { width: 66%; }
