:root {
    --tp-ink: #102a2c;
    --tp-muted: #5d7071;
    --tp-teal: #086c69;
    --tp-teal-dark: #075653;
    --tp-mint: #dff4ee;
    --tp-cream: #f7f4eb;
    --tp-line: rgba(16, 42, 44, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

body:has(.tp-landing) main.container {
    max-width: none;
    padding: 0;
}

.navbar-brand {
    align-items: center;
    display: inline-flex;
    font-weight: 750;
    gap: 10px;
    letter-spacing: -.025em;
}

.navbar-brand::before {
    background: url("../images/tenderpilot-mark.svg?v=2") center / contain no-repeat;
    content: "";
    display: block;
    flex: 0 0 34px;
    height: 34px;
    width: 34px;
}

.tp-landing {
    color: var(--tp-ink);
    font-family: Inter, "Segoe UI", sans-serif;
    margin-top: -1px;
    overflow: hidden;
}

.tp-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 28px;
    padding-right: 28px;
}

.tp-hero {
    background:
        radial-gradient(circle at 82% 22%, rgba(34, 173, 146, .17), transparent 30%),
        linear-gradient(135deg, #f8f6ee 0%, #f4f8f3 58%, #eaf5ef 100%);
    min-height: 720px;
    padding: 122px 0 86px;
    position: relative;
}

.tp-hero::before {
    background-image: radial-gradient(rgba(8, 108, 105, .12) 1px, transparent 1px);
    background-size: 22px 22px;
    content: "";
    height: 260px;
    opacity: .55;
    position: absolute;
    right: -25px;
    top: 75px;
    width: 340px;
}

.tp-hero__grid {
    align-items: center;
    display: grid;
    gap: 72px;
    grid-template-columns: minmax(0, 1.04fr) minmax(410px, .96fr);
}

.tp-hero__copy { position: relative; z-index: 2; }

.tp-brand {
    align-items: center;
    color: var(--tp-ink);
    display: inline-flex;
    font-size: 1.18rem;
    font-weight: 780;
    gap: 10px;
    letter-spacing: -.035em;
    margin-bottom: 34px;
    text-decoration: none;
}

.tp-brand:hover { color: var(--tp-teal); }
.tp-brand img { display: block; flex: 0 0 40px; }

.tp-eyebrow, .tp-kicker {
    align-items: center;
    color: var(--tp-teal);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 750;
    gap: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.tp-eyebrow__mark {
    background: var(--tp-teal);
    border-radius: 99px;
    height: 8px;
    position: relative;
    width: 8px;
}

.tp-eyebrow__mark::after {
    border: 1px solid rgba(8, 108, 105, .35);
    border-radius: inherit;
    content: "";
    inset: -5px;
    position: absolute;
}

.tp-hero h1 {
    font-size: clamp(2.65rem, 5vw, 4.75rem);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: .99;
    margin: 25px 0 25px;
    max-width: 760px;
}

.tp-hero__lead {
    color: var(--tp-muted);
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    line-height: 1.68;
    margin: 0;
    max-width: 650px;
}

.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.tp-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    font-weight: 700;
    gap: 18px;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.tp-button:hover { transform: translateY(-2px); }
.tp-button--primary { background: var(--tp-teal); box-shadow: 0 14px 30px rgba(8, 108, 105, .18); color: #fff; }
.tp-button--primary:hover { background: var(--tp-teal-dark); color: #fff; }
.tp-button--quiet { border-color: var(--tp-line); color: var(--tp-ink); }
.tp-button--quiet:hover { background: rgba(255,255,255,.62); color: var(--tp-ink); }

.tp-trust-line { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 29px; }
.tp-trust-line span { align-items: center; color: var(--tp-muted); display: flex; font-size: .88rem; gap: 7px; }
.tp-trust-line i { align-items: center; background: var(--tp-mint); border-radius: 50%; color: var(--tp-teal); display: inline-flex; font-size: .68rem; font-style: normal; height: 20px; justify-content: center; width: 20px; }

.tp-hero__visual { min-height: 500px; position: relative; z-index: 1; }
.tp-orbit { border: 1px solid rgba(8, 108, 105, .13); border-radius: 50%; position: absolute; }
.tp-orbit--one { height: 510px; left: -26px; top: -7px; width: 510px; }
.tp-orbit--two { height: 390px; left: 36px; top: 54px; width: 390px; }

.tp-board {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.93);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(27, 73, 68, .16);
    left: 28px;
    padding: 26px;
    position: absolute;
    top: 55px;
    width: min(420px, calc(100% - 38px));
}

.tp-board__top, .tp-progress__meta, .tp-board__footer { align-items: center; display: flex; justify-content: space-between; }
.tp-board__brand { font-size: 1.02rem; font-weight: 750; }
.tp-status { background: #e1f5ed; border-radius: 99px; color: #08705f; font-size: .72rem; font-weight: 700; padding: 7px 10px; }
.tp-progress { border-bottom: 1px solid var(--tp-line); margin: 23px 0 7px; padding-bottom: 24px; }
.tp-progress__meta { color: var(--tp-muted); font-size: .78rem; margin-bottom: 9px; }
.tp-progress__meta strong { color: var(--tp-teal); }
.tp-progress__track { background: #e8eeee; border-radius: 99px; height: 7px; overflow: hidden; }
.tp-progress__track span { background: linear-gradient(90deg, var(--tp-teal), #33ad8b); border-radius: inherit; display: block; height: 100%; width: 75%; }
.tp-checklist__item { align-items: center; display: flex; gap: 13px; padding: 14px 0; }
.tp-checklist__item > span { align-items: center; border: 1px solid #d7e2df; border-radius: 9px; color: var(--tp-muted); display: flex; flex: 0 0 34px; font-size: .76rem; font-weight: 800; height: 34px; justify-content: center; }
.tp-checklist__item.is-done > span { background: var(--tp-teal); border-color: var(--tp-teal); color: #fff; }
.tp-checklist__item.is-current > span { background: var(--tp-mint); border-color: transparent; color: var(--tp-teal); }
.tp-checklist__item strong, .tp-checklist__item small { display: block; }
.tp-checklist__item strong { font-size: .88rem; }
.tp-checklist__item small { color: #7d8d8e; font-size: .72rem; margin-top: 3px; }
.tp-board__footer { border-top: 1px solid var(--tp-line); margin-top: 7px; padding-top: 18px; }
.tp-board__footer small { color: #7d8d8e; font-size: .7rem; }
.tp-people { display: flex; }
.tp-people i { align-items: center; background: var(--tp-cream); border: 2px solid #fff; border-radius: 50%; color: var(--tp-ink); display: flex; font-size: .62rem; font-style: normal; font-weight: 800; height: 29px; justify-content: center; margin-left: -7px; width: 29px; }
.tp-people i:first-child { margin-left: 0; }

.tp-float-card { align-items: center; background: #fff; border: 1px solid rgba(16,42,44,.06); border-radius: 14px; box-shadow: 0 17px 38px rgba(27,73,68,.14); display: flex; gap: 11px; padding: 13px 16px; position: absolute; z-index: 2; }
.tp-float-card--deadline { left: -32px; top: 136px; }
.tp-float-card--ready { bottom: 42px; right: -28px; }
.tp-float-card__icon { align-items: center; background: var(--tp-mint); border-radius: 10px; color: var(--tp-teal); display: flex; font-weight: 800; height: 36px; justify-content: center; width: 36px; }
.tp-float-card small, .tp-float-card strong { display: block; }
.tp-float-card small { color: #809091; font-size: .65rem; }
.tp-float-card strong { font-size: .78rem; margin-top: 2px; }

.tp-section { padding: 100px 0; }
.tp-benefits { background: #fff; }
.tp-section-heading { max-width: 760px; }
.tp-section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.tp-section-heading h2, .tp-final h2 { font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.08; margin: 16px 0 0; }
.tp-section-heading p { color: var(--tp-muted); font-size: 1.05rem; margin: 17px auto 0; }
.tp-card-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 52px; }
.tp-feature-card { border: 1px solid var(--tp-line); border-radius: 18px; min-height: 290px; overflow: hidden; padding: 30px; position: relative; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tp-feature-card:hover { border-color: rgba(8,108,105,.35); box-shadow: 0 18px 48px rgba(16,42,44,.08); transform: translateY(-4px); }
.tp-feature-card__number { color: #d7dfdc; font-size: .75rem; font-weight: 800; letter-spacing: .1em; position: absolute; right: 25px; top: 25px; }
.tp-feature-card__icon { align-items: center; background: var(--tp-mint); border-radius: 14px; color: var(--tp-teal); display: flex; font-size: 1.5rem; font-weight: 600; height: 52px; justify-content: center; width: 52px; }
.tp-feature-card h3 { font-size: 1.25rem; margin: 30px 0 13px; }
.tp-feature-card p { color: var(--tp-muted); line-height: 1.7; margin: 0; }

.tp-process { background: var(--tp-cream); }
.tp-steps { counter-reset: none; display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 58px 0 0; padding: 0; }
.tp-steps li { padding: 0 25px; position: relative; text-align: center; }
.tp-steps li:not(:last-child)::after { border-top: 1px dashed rgba(8,108,105,.32); content: ""; left: calc(50% + 30px); position: absolute; top: 23px; width: calc(100% - 60px); }
.tp-steps li > span { align-items: center; background: #fff; border: 1px solid rgba(8,108,105,.2); border-radius: 50%; color: var(--tp-teal); display: flex; font-size: .82rem; font-weight: 800; height: 48px; justify-content: center; margin: 0 auto 22px; position: relative; width: 48px; z-index: 1; }
.tp-steps h3 { font-size: 1.02rem; margin: 0 0 9px; }
.tp-steps p { color: var(--tp-muted); font-size: .88rem; line-height: 1.6; margin: 0; }

.tp-final { background: #fff; padding-top: 80px; }
.tp-final__panel { align-items: center; background: var(--tp-teal); border-radius: 26px; color: #fff; display: flex; gap: 48px; justify-content: space-between; overflow: hidden; padding: 56px 62px; position: relative; }
.tp-final__panel::after { border: 70px solid rgba(255,255,255,.06); border-radius: 50%; content: ""; height: 280px; position: absolute; right: -95px; top: -110px; width: 280px; }
.tp-final__panel > * { position: relative; z-index: 1; }
.tp-final h2 { margin-top: 12px; }
.tp-final p { color: rgba(255,255,255,.76); line-height: 1.65; margin: 17px 0 0; max-width: 680px; }
.tp-kicker--light { color: #aee8d7; }
.tp-button--light { background: #fff; color: var(--tp-teal); flex: 0 0 auto; }
.tp-button--light:hover { color: var(--tp-teal-dark); }

@media (max-width: 991px) {
    .tp-hero { padding-top: 105px; }
    .tp-hero__grid { gap: 30px; grid-template-columns: 1fr; }
    .tp-hero__copy { max-width: 760px; }
    .tp-hero__visual { margin: 0 auto; width: min(540px, 100%); }
    .tp-card-grid { grid-template-columns: 1fr; }
    .tp-feature-card { min-height: 0; }
    .tp-steps { gap: 32px 0; grid-template-columns: repeat(2, 1fr); }
    .tp-steps li:nth-child(2)::after { display: none; }
    .tp-final__panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 575px) {
    .tp-shell { padding-left: 20px; padding-right: 20px; }
    .tp-hero { min-height: auto; padding: 96px 0 58px; }
    .tp-actions, .tp-actions .tp-button { width: 100%; }
    .tp-trust-line { align-items: flex-start; flex-direction: column; gap: 10px; }
    .tp-hero__visual { min-height: 440px; transform: scale(.92); transform-origin: top center; width: 108%; }
    .tp-board { left: 0; width: 100%; }
    .tp-float-card--deadline { left: -8px; top: 25px; }
    .tp-float-card--ready { bottom: 9px; right: -4px; }
    .tp-section { padding: 72px 0; }
    .tp-steps { grid-template-columns: 1fr; }
    .tp-steps li { display: grid; gap: 16px; grid-template-columns: 48px 1fr; padding: 0; text-align: left; }
    .tp-steps li > span { margin: 0; }
    .tp-steps li::after { display: none; }
    .tp-final__panel { padding: 38px 28px; }
    .tp-final__panel .tp-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tp-button, .tp-feature-card { transition: none; }
}
