/* BKD.Landing.v2 page styles. Tokens, base, header, footer, buttons, tabs, forms and the lightbox
   come from BKD.UI (/_content/BKD.UI/css/bkd.css), loaded first. */

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 96px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(23, 163, 56, .12), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(242, 122, 67, .10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45em; }
.hero-points .icon { color: var(--green-600); }

.hero-visual { position: relative; padding: 0 0 40px 0; }
.browser-frame {
    margin: 0; background: var(--surface); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
    transform-origin: left center;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f5f2; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d4dad5; }
.browser-bar span:first-child { background: #f5a38a; }
.browser-bar span:nth-child(2) { background: #f6d27a; }
.browser-bar span:nth-child(3) { background: #8fd49d; }
.browser-bar b { margin-left: 10px; font: 500 .75rem var(--font-body); color: var(--muted); background: #fff; padding: 3px 12px; border-radius: 6px; }

.phone-frame {
    position: absolute; right: -8px; bottom: 0; width: 30%; margin: 0;
    border: 8px solid #13231a; border-radius: 26px; overflow: hidden; background: #13231a;
    box-shadow: var(--shadow-lg);
}

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card-a { left: -24px; top: 18%; }
.float-card-b { left: 12%; bottom: 0; }
.float-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--orange-50); color: var(--orange); }
.float-icon-blue { background: var(--blue-50); color: var(--blue); }

/* ---------- Proof ---------- */
.proof { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-inner { display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 26px; }
.proof-item { display: flex; align-items: center; gap: 14px; flex: none; }
.proof-item p { margin: 0; line-height: 1.35; }
.proof-item span { color: var(--muted); font-size: .9rem; }
.proof-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange-50); color: var(--orange); }
.proof-icon .icon { width: 24px; height: 24px; }
.proof-divider { width: 1px; align-self: stretch; background: var(--line); }
.proof-text { margin: 0; color: var(--ink-2); }

/* ---------- Platform modules ---------- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3d4; }
.module p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.module-feature {
    grid-row: span 2;
    background: linear-gradient(160deg, var(--green-600), var(--green-900));
    color: #e6f6ea; border: 0;
}
.module-feature h3 { color: #fff; font-size: 1.6rem; }
.module-feature p { color: #cfeed7; font-size: 1.05rem; }
.module-feature .module-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.module-feature .ticks { margin-top: 22px; }
.module-feature .ticks li::before {
    background-color: rgba(255, 255, 255, .18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Product tour ---------- */
.tab-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.tab-panel + .tab-panel { margin-top: 64px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tour-copy p { color: var(--ink-2); }
.tour-copy h3 { font-size: 1.8rem; }

.tour-shots { position: relative; padding: 0 0 56px 0; }
.shot-small { position: absolute; right: -16px; bottom: 0; width: 46%; }
.shot-tall { width: 26%; right: -10px; }
.tour-shots-phone { display: flex; justify-content: center; padding-bottom: 0; }
.shot-phone { width: 260px; border: 8px solid #13231a; border-radius: 28px; }

/* ---------- Campaigns ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.rates { margin-top: 32px; display: grid; gap: 16px; }
.rate { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 14px; }
.rate-label { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.rate-bar { height: 14px; background: #e9eee9; border-radius: 999px; overflow: hidden; }
.rate-fill { display: block; height: 100%; border-radius: 999px; background: var(--green-600); transform-origin: left; }
.rate-30 { width: 100%; }
.rate-10 { width: 33.3%; background: var(--blue); }
.rate-1 { width: 4%; background: var(--orange); }
.rate-value { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-align: right; }
.rate-note { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.js .rate-fill { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.js .rates.is-visible .rate-fill { transform: scaleX(1); }

.sms {
    max-width: 420px; margin-left: auto; width: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.sms-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f7faf6; }
.sms-head img { border-radius: 50%; }
.sms-head strong { display: block; font-size: .98rem; }
.sms-head small { color: var(--muted); font-size: .8rem; }
.sms-thread { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sms-thread li { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.4; }
.sms-in { align-self: flex-start; background: #eef1ee; border-bottom-left-radius: 6px; }
.sms-out { align-self: flex-end; background: var(--green-600); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; }
.js .sms-thread li { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.js .sms-thread li.is-shown { opacity: 1; transform: none; }

/* ---------- Journey ---------- */
.journey { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; counter-reset: step; }
.journey li {
    flex: 0 1 calc((100% - 80px) / 5);
    position: relative; padding: 28px 22px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    counter-increment: step;
}
.journey li::after {
    content: counter(step, decimal-leading-zero); position: absolute; right: 18px; top: 16px;
    font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: rgba(255, 255, 255, .14);
}
.journey p { margin: 0; font-size: .97rem; color: #bcd9c4; }
.journey-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(23, 163, 56, .25); color: #9be7ad; margin-bottom: 16px; }

/* ---------- Services & pillars ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.service p { color: var(--ink-2); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.pillar p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Demo ---------- */
.demo {
    background:
        radial-gradient(700px 400px at 0% 0%, rgba(242, 122, 67, .22), transparent 60%),
        linear-gradient(150deg, var(--green-600), var(--green-900));
    color: #dff3e4;
}
.demo h2 { color: #fff; }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.demo-copy p { font-size: 1.1rem; }
.demo-logo { margin-top: 40px; width: 160px; opacity: .95; }

.demo-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); }
.demo-form { display: grid; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .journey li { flex-basis: calc((100% - 40px) / 3); }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .float-card-a { left: 0; }
}

@media (max-width: 900px) {
    .hero { padding: 48px 0 72px; }
    .hero-grid, .tab-panel, .split, .demo-grid { grid-template-columns: 1fr; gap: 40px; }
    .browser-frame { transform: none; }
    .sms { margin: 0 auto; }
    .proof-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .proof-divider { display: none; }
    .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .module-grid, .pillars { grid-template-columns: 1fr; }
    .journey li { flex-basis: 100%; }
    .module-feature { grid-row: auto; }
    .float-card { display: none; }
    .phone-frame { width: 34%; border-width: 5px; border-radius: 18px; }
    .rate { grid-template-columns: 112px 1fr 44px; gap: 10px; }
    .demo-card, .service { padding: 24px; }
    .shot-small { right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
    .js .sms-thread li { opacity: 1; transform: none; }
    .js .rate-fill { transform: none; }
}
