/* Rankd Marketing Tracker — marketing landing page */

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 255, .8);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a.navlink { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.site-header nav a.navlink:hover { color: var(--violet); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 0; }
@media (max-width: 900px) {
  .site-header nav.main { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero-mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 12% 8%, rgba(124,58,237,.20), transparent 70%),
    radial-gradient(34% 46% at 88% 4%, rgba(14,165,233,.18), transparent 70%),
    radial-gradient(40% 50% at 70% 38%, rgba(17,179,100,.14), transparent 72%),
    radial-gradient(30% 40% at 26% 46%, rgba(245,158,11,.13), transparent 70%);
  filter: blur(8px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--violet); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 30%;
  background: var(--violet-100); z-index: -1; border-radius: 4px; transform: rotate(-1deg);
}
.hero .sub { font-size: 19.5px; color: var(--ink-2); margin: 22px 0 30px; max-width: 540px; line-height: 1.5; }
.hero .trialpill { display: inline-flex; align-items: center; gap: 9px; background: var(--green-100, #e6f7ee); color: var(--green-700, #15803d); border: 1px solid var(--green-200, #bbf7d0); font-weight: 800; font-size: 13px; padding: 7px 15px 7px 13px; border-radius: 999px; margin-bottom: 18px; }
.hero .trialpill .tp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #16a34a); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.hero .cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .cta-sub { margin-top: 13px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hero .reassure { margin-top: 16px; color: var(--ink-3); font-size: 14.5px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero .reassure span { display: inline-flex; align-items: center; gap: 7px; }
.hero .reassure svg { color: var(--green); }

/* hero product mock */
.mock {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-lg); padding: 20px; transform: rotate(.6deg);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-head .ttl { font-family: var(--display); font-weight: 800; font-size: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.mk {
  border-radius: 14px; padding: 13px 13px 14px; border: 1px solid var(--line);
  background: var(--bg);
}
.mk .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mk .v { font-family: var(--display); font-weight: 800; font-size: 23px; margin-top: 4px; letter-spacing: -.02em; }
.mk .d { font-size: 11px; font-weight: 700; margin-top: 2px; }
.mk.green .v { color: var(--green-700); } .mk.green { background: var(--green-100); border-color: transparent; }
.mk.sky .v { color: var(--sky-700); } .mk.sky { background: var(--sky-100); border-color: transparent; }
.mk.violet .v { color: var(--violet-700); } .mk.violet { background: var(--violet-100); border-color: transparent; }
.up { color: var(--green-700); } .down { color: var(--coral); }

.mock-bars { display: flex; align-items: flex-end; gap: 10px; height: 116px; padding: 10px 4px 0; border-top: 1px dashed var(--line-2); }
.mock-bars .colg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mock-bars .stack { width: 64%; border-radius: 6px 6px 3px 3px; display: flex; flex-direction: column-reverse; overflow: hidden; }
.mock-bars .seg { width: 100%; }
.mock-bars .xl { font-family: var(--mono); font-size: 9px; color: var(--ink-3); }

.float-chip {
  position: absolute; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 14px; padding: 10px 13px; display: flex; gap: 10px; align-items: center;
}
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.float-chip .t1 { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.float-chip .t2 { font-family: var(--display); font-weight: 800; font-size: 17px; }
.chip-roas { top: -22px; right: -16px; animation: floaty 6s ease-in-out infinite; }
.chip-job { bottom: -20px; left: -22px; animation: floaty 7s ease-in-out infinite .5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- logos / works-with ---------- */
.workswith { padding: 26px 0 8px; }
.workswith .row { display: flex; align-items: center; justify-content: center; gap: 14px 38px; flex-wrap: wrap; color: var(--ink-3); }
.workswith .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.workswith .ws { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink-2); letter-spacing: -.02em; }
.workswith .soon { font-size: 12px; font-weight: 700; color: var(--ink-4); }

/* ---------- generic section ---------- */
.section { padding: 86px 0; }
.section.tight { padding: 60px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { font-size: 18px; color: var(--ink-2); margin-top: 14px; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* crisp, consistent rounded icon strokes everywhere on the marketing site */
.reassure svg, .price-list svg, .trial-note svg, .feat .ic svg,
.step .conn, .float-chip .ic svg, .testi-cta svg, .testi-img .badge-link svg { stroke-linecap: round; stroke-linejoin: round; }

/* dashboard preview ("see exactly what you get") */
.preview { max-width: 1000px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.preview-bar .purl { font-family: var(--mono); font-size: 12px; color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 14px; }
.preview-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.preview-bar .live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.preview-body { padding: 20px; }
.pv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.pv-kpi { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; position: relative; overflow: hidden; }
.pv-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--violet); }
.pv-kpi.g::before { background: var(--green); } .pv-kpi.s::before { background: var(--sky); } .pv-kpi.c::before { background: var(--coral); }
.pv-kpi .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pv-kpi .v { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-top: 5px; line-height: 1; }
.pv-kpi .d { font-size: 11px; font-weight: 700; margin-top: 5px; color: var(--green-700); }
.pv-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.pv-panel { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.pv-panel h4 { font-family: var(--display); font-weight: 800; font-size: 13.5px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.pv-panel h4 span { font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pv-row { display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 10px; margin: 11px 0; }
.pv-row .lab { font-size: 12.5px; font-weight: 600; }
.pv-row .track { background: var(--bg-2); border-radius: 99px; height: 9px; overflow: hidden; }
.pv-row .fill { height: 100%; border-radius: 99px; }
.pv-row .amt { font-family: var(--mono); font-weight: 700; font-size: 12.5px; }
.pv-tbl { width: 100%; border-collapse: collapse; }
.pv-tbl th { text-align: left; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 0 6px 8px; }
.pv-tbl td { padding: 9px 6px; border-top: 1px solid var(--line); font-size: 12.5px; }
.pv-tbl td.r, .pv-tbl th.r { text-align: right; font-family: var(--mono); }
.pv-tbl .roas { color: var(--green-700); font-weight: 700; }
.pv-note { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .pv-kpis { grid-template-columns: 1fr 1fr; } .pv-cols { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step; font-family: var(--display); font-weight: 800; font-size: 15px;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #8b5cf6, var(--violet)); box-shadow: var(--shadow-violet); margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .conn { position: absolute; top: 50px; right: -17px; color: var(--violet-300); z-index: 2; }
@media (max-width: 860px) { .step .conn { display: none; } }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 15px; }
.feat h3 { font-size: 18.5px; margin-bottom: 7px; }
.feat p { color: var(--ink-2); font-size: 15px; }

/* big value band */
.value-band { background: linear-gradient(135deg, var(--violet-700), var(--violet) 55%, #9333ea); color: #fff; border-radius: 28px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.value-band::after { content:""; position:absolute; inset:0; background: radial-gradient(40% 60% at 80% 10%, rgba(255,255,255,.18), transparent 60%); }
.value-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); position: relative; }
.value-band p { color: rgba(255,255,255,.86); font-size: 18px; margin: 16px auto 0; max-width: 620px; position: relative; }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; background: var(--paper); border: 2px solid var(--violet); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 38px 34px; text-align: center; position: relative; }
.price-card .ribbon { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 6px 14px; border-radius: var(--r-pill); }
.price-card .amt { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }
.price-card .amt .n { font-size: 66px; } .price-card .amt .per { font-size: 19px; color: var(--ink-3); }
.price-card .trial { color: var(--green-700); font-weight: 800; margin: 4px 0 22px; }
.price-list { text-align: left; margin: 24px 0; display: grid; gap: 12px; }
.price-list li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.price-list svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* testimonial */
.testi-card { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; }
.testi-img { display: block; position: relative; background: var(--violet-050); }
.testi-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; min-height: 320px; }
.testi-img .badge-link { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); border-radius: var(--r-pill); padding: 8px 14px; font-weight: 700; font-size: 13px; color: var(--violet-700); display: inline-flex; gap: 7px; align-items: center; box-shadow: var(--shadow); }
.testi-body { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.testi-body .eyebrow { margin-bottom: 16px; }
.testi-quote { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.testi-quote .hl { color: var(--violet); }
.testi-stats { display: flex; gap: 14px; margin: 26px 0 22px; flex-wrap: wrap; }
.testi-stat { background: var(--violet-050); border: 1px solid var(--violet-100); border-radius: 14px; padding: 12px 18px; }
.testi-stat .n { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--violet-700); line-height: 1; }
.testi-stat .l { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.testi-who { font-weight: 700; font-size: 15px; }
.testi-who span { display: block; color: var(--ink-3); font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.testi-cta { margin-top: 18px; font-weight: 700; color: var(--violet); font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.testi-cta:hover { color: var(--violet-700); }
@media (max-width: 860px) { .testi-card { grid-template-columns: 1fr; } .testi-img img { min-height: 240px; } .testi-body { padding: 30px 26px; } }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { color: var(--violet); font-size: 22px; transition: transform .2s ease; flex-shrink: 0; }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa .ans { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }

/* final cta */
.final { text-align: center; }
.final h2 { font-size: clamp(30px, 4vw, 46px); }
.final p { font-size: 18px; color: var(--ink-2); margin: 16px 0 28px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .prob-grid, .steps, .feat-grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .value-band { padding: 40px 24px; }
}
