/* Doc Delivery Tracker — [dtrk_landing] v4. Everything is scoped to .dtrk-lp4. */

.dtrk-lp4 {
  --bg: #ffffff; --bg-soft: #f3f7ff; --sky-1: #e6f0ff; --sky-2: #f8fbff;
  --surface: #ffffff; --surface-2: #f6f9ff; --line: #e1e9f6;
  --text: #11223f; --muted: #5c6e8c; --nav: #33476b;
  --blue: #2563eb; --blue-2: #1d4ed8; --blue-soft: #e7efff; --blue-ink: #2457cf;
  --green: #17b98a; --green-2: #0f9a72; --green-soft: #d9f6ea;
  --node-off: #e9eef7; --node-off-ink: #a9b6cc;
  --cloud: #ffffff; --cloud-o: .95;
  --shadow: 0 28px 70px rgba(35, 74, 150, .16);
  --shadow-sm: 0 10px 28px rgba(35, 74, 150, .10);
  --header-bg: rgba(255, 255, 255, .86);
  --side: #172540; --side-ink: #b5c3de;
  --cta-from: #2f6df0; --cta-to: #1b48c4;
  color-scheme: light;
}
.dtrk-lp4[data-lp-theme="dark"] {
  --bg: #0a1222; --bg-soft: #101c34; --sky-1: #12254a; --sky-2: #0a1222;
  --surface: #131f3a; --surface-2: #0f1a31; --line: #233559;
  --text: #eaf1ff; --muted: #9fb2d3; --nav: #c4d2ee;
  --blue: #6aa5ff; --blue-2: #4b8dfb; --blue-soft: #172b55; --blue-ink: #8db9ff;
  --green: #36d6a4; --green-2: #22b98a; --green-soft: #113a31;
  --node-off: #1b2b4b; --node-off-ink: #5f7399;
  --cloud: #243a6b; --cloud-o: .55;
  --shadow: 0 28px 70px rgba(0, 0, 0, .45);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .35);
  --header-bg: rgba(10, 18, 34, .86);
  --side: #0a1326; --side-ink: #8fa3c8;
  --cta-from: #2a5fd8; --cta-to: #16358f;
  color-scheme: dark;
}

body.dtrk-standalone-landing-page { background: #fff; }
body.dtrk-standalone-landing-page.dtrk-lp4-dark-body { background: #0a1222; }

.dtrk-lp4, .dtrk-lp4 *, .dtrk-lp4 *::before, .dtrk-lp4 *::after { box-sizing: border-box; }
.dtrk-lp4 {
  width: 100%; margin: 0; overflow-x: clip; position: relative;
  background: var(--bg); color: var(--text);
  font-family: "Noto Sans Thai Looped", "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Thonburi", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
.dtrk-lp4 :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.dtrk-lp4 :where(ul, ol) { list-style: none; }
.dtrk-lp4 :where(a) { color: inherit; text-decoration: none; }
.dtrk-lp4 :where(button) { font: inherit; color: inherit; }
.dtrk-lp4 :where(svg) { display: block; }
.dtrk-lp4 :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.lp4-wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
.lp4-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp4-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--blue); color: #fff !important; }
.lp4-skip:focus { top: 10px; }

/* ---------- header ---------- */
.lp4-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.lp4-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20, 45, 100, .06); }
.lp4-header-in { width: min(100% - 40px, 1180px); height: 72px; margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.lp4-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; }
.lp4-logo { width: 46px; height: 46px; flex: 0 0 auto; filter: drop-shadow(0 6px 12px rgba(37, 99, 235, .28)); }
.lp4-logo svg { width: 100%; height: 100%; }
.lp4-brand-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lp4-brand-t strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp4-brand-t small { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.lp4-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 44px); flex: 1 1 auto; }
.lp4-nav a { position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--nav); white-space: nowrap; transition: color .2s; }
.lp4-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s ease; }
.lp4-nav a:hover, .lp4-nav a.is-active { color: var(--blue); }
.lp4-nav a.is-active::after, .lp4-nav a:hover::after { transform: scaleX(1); }
.lp4-nav .lp4-nav-login { display: none; }
.lp4-login-link { padding: 8px 6px; font-size: 14.5px; font-weight: 600; color: var(--nav); white-space: nowrap; }
.lp4-login-link:hover { color: var(--blue); }
.lp4-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }

.lp4-lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lp4-lang button { position: relative; z-index: 1; min-width: 44px; height: 30px; padding: 0 10px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); transition: color .25s; }
.lp4-lang button[aria-pressed="true"] { color: #fff; }
.lp4-lang-pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); transition: transform .3s cubic-bezier(.3, .8, .3, 1); }
.dtrk-lp4[data-lp-lang="en"] .lp4-lang-pill { transform: translateX(100%); }

.lp4-theme, .lp4-menu { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--nav); cursor: pointer; overflow: hidden; transition: border-color .2s, color .2s, transform .2s; }
.lp4-theme:hover, .lp4-menu:hover { border-color: var(--blue); color: var(--blue); }
.lp4-theme .lp4-ico, .lp4-menu .lp4-ico { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .45s cubic-bezier(.3, .8, .3, 1), opacity .25s; }
.lp4-i-sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
.dtrk-lp4[data-lp-theme="dark"] .lp4-i-sun { transform: none; opacity: 1; }
.dtrk-lp4[data-lp-theme="dark"] .lp4-i-moon { transform: rotate(90deg) scale(.4); opacity: 0; }
.lp4-menu { display: none; }
.lp4-i-close { opacity: 0; transform: rotate(-90deg) scale(.4); }
.lp4-header.is-open .lp4-i-close { opacity: 1; transform: none; }
.lp4-header.is-open .lp4-i-open { opacity: 0; transform: rotate(90deg) scale(.4); }

/* ---------- buttons ---------- */
.lp4-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s, border-color .2s; }
.lp4-btn .lp4-ico { width: 18px; height: 18px; transition: transform .2s ease; }
.lp4-btn:hover .lp4-ico { transform: translateX(3px); }
.lp4-btn-lg { height: 54px; padding: 0 30px; font-size: 16.5px; }
.lp4-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); box-shadow: 0 12px 26px rgba(37, 99, 235, .3); }
.lp4-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 99, 235, .4); }
.lp4-btn-ghost { color: var(--blue-ink) !important; border-color: var(--blue); background: transparent; }
.lp4-btn-ghost:hover { background: var(--blue-soft); }
.lp4-btn-ghost .lp4-ico { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.lp4-btn-white { color: #1d4ed8 !important; background: #fff; box-shadow: 0 12px 28px rgba(0, 20, 80, .28); }
.lp4-btn-white:hover { transform: translateY(-2px); }

/* ---------- hero ---------- */
.lp4-hero { position: relative; overflow: clip; padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 84px); background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%); transition: background .35s; }
.lp4-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(20px, 4vw, 60px); }
.lp4-pill { display: inline-flex; align-items: center; padding: 5px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.lp4-hero-copy h1 { margin: 22px 0 20px; font-size: clamp(34px, 4.1vw, 54px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--text); }
.lp4-lead { max-width: 30em; font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.85; color: var(--muted); }
.lp4-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.lp4-trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.lp4-trust .lp4-ico { width: 22px; height: 22px; color: var(--blue); fill: var(--blue); stroke: #fff; }

.lp4-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lp4-cloud { position: absolute; fill: var(--cloud); opacity: var(--cloud-o); }
.lp4-cloud.c1 { width: 280px; right: 4%; top: 8%; animation: lp4-drift 22s ease-in-out infinite alternate; }
.lp4-cloud.c2 { width: 200px; left: 44%; top: 4%; opacity: .6; animation: lp4-drift 28s ease-in-out -8s infinite alternate; }
.lp4-cloud.c3 { width: 520px; right: -4%; bottom: -70px; animation: lp4-drift 30s ease-in-out -3s infinite alternate-reverse; }
.lp4-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; }
.dtrk-lp4[data-lp-theme="dark"] .lp4-star { opacity: .8; animation: lp4-twinkle 3.4s ease-in-out infinite; }
.lp4-star.s1 { left: 8%; top: 14%; } .lp4-star.s2 { left: 38%; top: 8%; animation-delay: -1s !important; }
.lp4-star.s3 { left: 62%; top: 18%; animation-delay: -2s !important; } .lp4-star.s4 { left: 90%; top: 10%; animation-delay: -.5s !important; }
.lp4-star.s5 { left: 22%; top: 40%; animation-delay: -1.7s !important; }

.lp4-hero-art { position: relative; min-height: clamp(380px, 40vw, 500px); }
.lp4-bird-slot { position: absolute; z-index: 3; left: -9%; top: 2%; width: 58%; animation: lp4-bird-in 1.2s cubic-bezier(.2, .8, .2, 1) both, lp4-drift-y 6.5s ease-in-out 1.2s infinite alternate; }
.lp4-bird { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 22px 24px rgba(30, 70, 160, .22)); }
.lp4-window { position: absolute; z-index: 2; right: 0; top: 9%; width: 57%; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); transform: perspective(1400px) rotateY(-6deg) rotateX(1.5deg) rotateZ(1.5deg); transition: background .35s, border-color .35s; }
.lp4-window-bar { display: flex; gap: 6px; padding: 12px 16px 0; }
.lp4-window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--node-off); }
.lp4-window-body { padding: 14px 20px 18px; }
.lp4-file { display: flex; align-items: center; gap: 14px; padding: 12px 4px 16px; border-bottom: 1px solid var(--line); }
.lp4-file-ico { width: 40px; height: 46px; flex: 0 0 40px; }
.lp4-file-ico svg { width: 100%; height: 100%; }
.dtrk-lp4[data-lp-theme="dark"] .lp4-file-ico svg path:first-child { fill: #1b2f5c; }
.lp4-file-name { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.lp4-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 1px 12px 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-2); font-size: 12.5px; font-weight: 600; }
.dtrk-lp4[data-lp-theme="dark"] .lp4-badge { color: var(--green); }
.lp4-badge .lp4-ico { width: 14px; height: 14px; stroke-width: 3; }
.lp4-tl { position: relative; margin-top: 18px; }
.lp4-tl li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding-bottom: 20px; }
.lp4-tl li:last-child { padding-bottom: 4px; }
.lp4-tl li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--node-off); }
.lp4-tl li:last-child::before { display: none; }
.lp4-tl li.is-done::before { background: linear-gradient(var(--green), var(--node-off)); }
.lp4-tl li.is-done + li.is-done::before { background: var(--green); }
.lp4-node { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--node-off); color: var(--node-off-ink); transition: background .45s, color .45s, box-shadow .45s; }
.lp4-node .lp4-ico { width: 19px; height: 19px; }
.lp4-tl li.is-done .lp4-node { background: linear-gradient(135deg, #3fd9a6, var(--green-2)); color: #fff; box-shadow: 0 6px 14px rgba(23, 185, 138, .35); }
.lp4-tl li.is-new .lp4-node { animation: lp4-pop .7s cubic-bezier(.3, 1.5, .5, 1); }
.lp4-tl li.is-new .lp4-node::after { content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--green); animation: lp4-ring 1s ease-out forwards; }
.lp4-node { position: relative; }
.lp4-tl b { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--muted); transition: color .4s; }
.lp4-tl li.is-done b { color: var(--green-2); }
.dtrk-lp4[data-lp-theme="dark"] .lp4-tl li.is-done b { color: var(--green); }
.lp4-tl time { display: block; font-size: 13px; color: var(--muted); opacity: .8; font-variant-numeric: tabular-nums; }
.lp4-sample-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); opacity: .75; text-align: right; }

/* ---------- features ---------- */
.lp4-features { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.lp4-sec-head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.lp4-sec-head h2 { margin: 16px 0 6px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.lp4-sec-head p:not(.lp4-pill) { color: var(--muted); font-size: 17px; }
.lp4-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: clamp(36px, 5vw, 60px); }
.lp4-feat { padding: 8px 32px; text-align: center; }
.lp4-feat + .lp4-feat { border-left: 1px solid var(--line); }
.lp4-feat-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 14px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.lp4-feat-ico .lp4-ico { width: 38px; height: 38px; fill: currentColor; fill-opacity: .14; }
.lp4-feat:hover .lp4-feat-ico { transform: translateY(-6px) rotate(-6deg) scale(1.06); box-shadow: 0 14px 26px rgba(37, 99, 235, .22); }
.lp4-feat h3 { font-size: 22px; font-weight: 700; line-height: 1.4; }
.lp4-feat p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

.lp4-panel { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--bg-soft); transition: background .35s; scroll-margin-top: 90px; }
.lp4-panel-art { position: relative; padding: 4px 0 28px 44px; }
.lp4-laptop { position: relative; container-type: inline-size; width: 100%; max-width: 580px; margin-inline: auto; }
.lp4-screen { display: grid; grid-template-columns: 27% 1fr; aspect-ratio: 16 / 10; overflow: hidden; border: 7px solid #dfe6f2; border-bottom-width: 9px; border-radius: 16px 16px 4px 4px; background: var(--surface); box-shadow: var(--shadow); }
.dtrk-lp4[data-lp-theme="dark"] .lp4-screen { border-color: #2a3a5e; }
.lp4-laptop-base { position: relative; width: 112%; left: -6%; height: 14px; border-radius: 2px 2px 18px 18px; background: linear-gradient(#e8edf6, #c9d3e4); box-shadow: 0 16px 24px rgba(30, 60, 120, .16); }
.dtrk-lp4[data-lp-theme="dark"] .lp4-laptop-base { background: linear-gradient(#34476e, #1b2a4a); }
.lp4-app-side { padding: 4% 3.5%; background: var(--side); color: var(--side-ink); font-size: clamp(6.5px, 1.9cqw, 11px); }
.lp4-app-logo { display: flex; align-items: center; gap: 5px; margin-bottom: 14%; color: #fff; font-weight: 700; line-height: 1.2; }
.lp4-app-logo i { width: 1.9em; height: 1.9em; flex: 0 0 auto; border-radius: .5em; background: linear-gradient(135deg, #4a8bff, #1f55d8); }
.lp4-app-side li { display: flex; align-items: center; gap: .7em; padding: .75em .7em; margin-bottom: .2em; border-radius: .6em; white-space: nowrap; overflow: hidden; }
.lp4-app-side li.on { background: rgba(255, 255, 255, .1); color: #fff; }
.lp4-app-side .lp4-ico { width: 1.2em; height: 1.2em; }
.lp4-app-main { padding: 4% 4%; font-size: clamp(6.5px, 1.9cqw, 11px); min-width: 0; }
.lp4-app-title { display: block; margin-bottom: .8em; font-size: 1.5em; font-weight: 700; }
.lp4-app-search { display: flex; align-items: center; gap: .6em; padding: .8em 1em; border: 1px solid var(--line); border-radius: .7em; color: var(--muted); }
.lp4-app-search .lp4-ico { width: 1.2em; height: 1.2em; }
.lp4-app-rows { margin-top: 1em; }
.lp4-app-rows li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto auto; gap: .9em; align-items: center; padding: .95em 0; border-bottom: 1px solid var(--line); }
.lp4-app-rows li:last-child { border-bottom: 0; }
.lp4-app-rows .f { width: 2em; height: 2.4em; border-radius: .4em; background: #4d86f2; }
.lp4-app-rows .f.red { background: #f26b6b; }
.lp4-app-rows b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp4-app-rows em { font-style: normal; padding: .15em .9em; border-radius: 999px; background: var(--green-soft); color: var(--green-2); font-size: .9em; font-weight: 600; white-space: nowrap; }
.dtrk-lp4[data-lp-theme="dark"] .lp4-app-rows em { color: var(--green); }
.lp4-app-rows time { color: var(--muted); font-size: .88em; white-space: nowrap; }
.lp4-mini-bird { position: absolute; left: 0; bottom: -2px; width: clamp(110px, 24%, 150px); z-index: 2; }
.lp4-mbird { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 12px rgba(30, 70, 160, .2)); animation: lp4-hop 3.2s ease-in-out infinite; }
.lp4-mini-bird::after { content: ""; position: absolute; right: -30px; top: -34px; width: 46px; height: 46px; border-radius: 16px 16px 16px 4px; background: var(--surface); box-shadow: var(--shadow-sm); }
.lp4-mini-bird::before { content: ""; position: absolute; z-index: 1; right: -21px; top: -25px; width: 28px; height: 28px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 18px no-repeat; animation: lp4-bubble 3.2s ease-in-out infinite; }
.lp4-leaf { position: absolute; left: 6px; bottom: 24px; width: 70px; opacity: .9; }
.dtrk-lp4[data-lp-theme="dark"] .lp4-leaf { opacity: .35; }
.lp4-panel-copy h2 { margin: 14px 0 12px; font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.4; }
.lp4-panel-lead { color: var(--muted); font-size: 16px; }
.lp4-checks { display: grid; gap: 12px; margin-top: 22px; }
.lp4-checks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.lp4-tick { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--green); color: #fff; }
.lp4-tick .lp4-ico { width: 15px; height: 15px; stroke-width: 3.2; }
.lp4-fine { margin-top: 18px; font-size: 12.5px; color: var(--muted); opacity: .85; line-height: 1.6; }
.lp4-panel.is-armed .lp4-tick { transform: scale(0); }
.lp4-panel.is-in .lp4-tick { animation: lp4-pop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.lp4-panel.is-in .lp4-checks li:nth-child(2) .lp4-tick { animation-delay: .15s; }
.lp4-panel.is-in .lp4-checks li:nth-child(3) .lp4-tick { animation-delay: .3s; }
.lp4-panel.is-in .lp4-checks li:nth-child(4) .lp4-tick { animation-delay: .45s; }

/* ---------- how it works ---------- */
.lp4-how { padding: clamp(48px, 6vw, 84px) 0 clamp(32px, 4vw, 56px); scroll-margin-top: 80px; }
.lp4-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 980px; margin-inline: auto; }
.lp4-steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 28px; border-top: 3px dashed var(--line); transform-origin: left; }
.lp4-steps.is-armed::before { transform: scaleX(0); }
.lp4-steps.is-in::before { transform: scaleX(1); transition: transform 1.2s cubic-bezier(.4, 0, .2, 1) .1s; }
.lp4-steps li { position: relative; text-align: center; padding: 0 10px; }
.lp4-step-n { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); color: #fff; font-size: 22px; font-weight: 800; box-shadow: 0 10px 22px rgba(37, 99, 235, .3); }
.lp4-steps.is-armed .lp4-step-n { transform: scale(.4); opacity: 0; }
.lp4-steps.is-in .lp4-step-n { animation: lp4-pop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.lp4-steps.is-in li:nth-child(2) .lp4-step-n { animation-delay: .35s; }
.lp4-steps.is-in li:nth-child(3) .lp4-step-n { animation-delay: .7s; }
.lp4-steps h3 { font-size: 19px; font-weight: 700; }
.lp4-steps p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.lp4-faq { padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); scroll-margin-top: 80px; }
.lp4-faq-wrap { max-width: 820px; }
.lp4-faq-list { display: grid; gap: 12px; }
.lp4-faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s, box-shadow .2s, background .35s; }
.lp4-faq details[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.lp4-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; }
.lp4-faq summary::-webkit-details-marker { display: none; }
.lp4-faq summary .lp4-ico { width: 22px; height: 22px; color: var(--blue); transition: transform .3s ease; }
.lp4-faq details[open] summary .lp4-ico { transform: rotate(180deg); }
.lp4-faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 15.5px; animation: lp4-fade .35s ease; }

/* ---------- cta + footer ---------- */
.lp4-cta { padding: 0 0 clamp(40px, 5vw, 72px); }
.lp4-cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 56px); border-radius: 32px; background: linear-gradient(120deg, var(--cta-from), var(--cta-to)); color: #fff; box-shadow: var(--shadow); }
.lp4-cta-in::before, .lp4-cta-in::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.lp4-cta-in::before { width: 280px; height: 280px; right: -60px; top: -120px; }
.lp4-cta-in::after { width: 180px; height: 180px; left: 38%; bottom: -110px; }
.lp4-cta h2 { position: relative; max-width: 22em; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.45; }
.lp4-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lp4-cta-actions > a:not(.lp4-btn) { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lp4-footer { border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--muted); font-size: 13.5px; }
.lp4-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.lp4-footer b { color: var(--text); }

/* ---------- bird animation ---------- */
.lp4-wing { transform-origin: 138px 200px; animation: lp4-flap .62s ease-in-out infinite alternate; }
.lp4-wing-r { animation-delay: -.03s; }
.lp4-fly { animation: lp4-bob 1.24s ease-in-out infinite; transform-origin: 220px 220px; }
.lp4-bird-slot.is-excited .lp4-wing { animation-duration: .26s; }
.lp4-bird-slot.is-excited .lp4-fly { animation-duration: .52s; }
.lp4-letter { transform-origin: 270px 305px; animation: lp4-letter 2.4s ease-in-out infinite; }
.lp4-eye { transform-box: fill-box; transform-origin: center; animation: lp4-blink 5.5s infinite; }
.lp4-eye-r { animation-delay: .02s; }
.lp4-eyes { transition: transform .18s ease-out; }
.lp4-tail { transform-origin: 220px 330px; animation: lp4-tail 1.24s ease-in-out infinite; }
.lp4-swoosh path { stroke-dasharray: 70 50; animation: lp4-swoosh 1.3s linear infinite; }
.lp4-swoosh .b { animation-duration: 1.7s; animation-delay: -.5s; }
.lp4-swoosh .c { animation-duration: 1.1s; animation-delay: -.3s; }
.lp4-mwing { transform-box: fill-box; transform-origin: 90% 80%; animation: lp4-wave 1.1s ease-in-out infinite alternate; }
.lp4-mwing-r { transform-box: fill-box; transform-origin: 10% 80%; animation: lp4-wave-r 1.1s ease-in-out infinite alternate; }

@keyframes lp4-flap { from { transform: rotate(18deg) scaleY(1.03); } to { transform: rotate(-28deg) scaleY(.92); } }
@keyframes lp4-bob { 0%, 100% { transform: translateY(6px) rotate(-1.2deg); } 50% { transform: translateY(-8px) rotate(1.2deg); } }
@keyframes lp4-tail { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
@keyframes lp4-letter { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-4px); } }
@keyframes lp4-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes lp4-swoosh { to { stroke-dashoffset: -120; } }
@keyframes lp4-bird-in { from { opacity: 0; transform: translate(-130px, 70px) rotate(-10deg) scale(.82); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lp4-drift-y { from { translate: 0 0; } to { translate: 14px -16px; } }
@keyframes lp4-drift { from { transform: translateX(-24px); } to { transform: translateX(34px); } }
@keyframes lp4-twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .95; transform: scale(1.3); } }
@keyframes lp4-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes lp4-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@keyframes lp4-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp4-bubble { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes lp4-wave { from { transform: rotate(14deg); } to { transform: rotate(-26deg); } }
@keyframes lp4-wave-r { from { transform: rotate(-14deg); } to { transform: rotate(26deg); } }
@keyframes lp4-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .lp4-header-in { gap: 16px; }
  .lp4-nav { gap: 22px; }
  .lp4-brand-t strong { font-size: 19px; }
}
@media (max-width: 960px) {
  .lp4-menu { display: inline-grid; }
  .lp4-login-link { display: none; }
  .lp4-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 45, 100, .12); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .25s, visibility .25s; }
  .lp4-header.is-open .lp4-nav { visibility: visible; opacity: 1; transform: none; }
  .lp4-nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .lp4-nav a::after { display: none; }
  .lp4-nav .lp4-nav-login { display: block; border-bottom: 0; color: var(--blue); font-weight: 600; }
  .lp4-hero-grid { grid-template-columns: 1fr; }
  .lp4-hero-copy { text-align: center; }
  .lp4-hero-copy .lp4-lead { margin-inline: auto; }
  .lp4-actions, .lp4-trust { justify-content: center; }
  .lp4-hero-art { min-height: clamp(380px, 82vw, 520px); max-width: 640px; width: 100%; margin-inline: auto; }
  .lp4-panel { grid-template-columns: 1fr; }
  .lp4-panel-art { max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 720px) {
  .lp4-feat-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp4-feat + .lp4-feat { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .lp4-steps { grid-template-columns: 1fr; gap: 26px; }
  .lp4-steps::before { display: none; }
  .lp4-cta-in { flex-direction: column; align-items: flex-start; }
  .lp4-head-cta { display: none; }
  .lp4-brand-t small { display: none; }
}
@media (max-width: 720px) {
  .lp4-hero-art { display: flex; flex-direction: column; align-items: center; min-height: 0; }
  .lp4-bird-slot { position: relative; left: auto; top: auto; width: min(74%, 310px); margin-bottom: -6px; }
  .lp4-window { position: relative; right: auto; top: auto; width: 100%; max-width: 440px; transform: rotateZ(1deg); }
}
@media (max-width: 520px) {
  .lp4-wrap { width: min(100% - 28px, 1180px); }
  .lp4-header-in { width: min(100% - 24px, 1180px); height: 64px; gap: 8px; }
  .lp4-logo { width: 36px; height: 36px; }
  .lp4-brand { gap: 8px; }
  .lp4-brand-t strong { font-size: 14.5px; }
  .lp4-lang button { min-width: 34px; height: 28px; padding: 0 7px; font-size: 12.5px; }
  .lp4-tools { gap: 6px; }
  .lp4-theme, .lp4-menu { width: 36px; height: 36px; }
  .lp4-btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; }
  .lp4-window-body { padding: 10px 14px 14px; }
  .lp4-panel { padding: 22px 16px; border-radius: 24px; }
  .lp4-panel-art { padding-left: 30px; }
  .lp4-leaf { display: none; }
}

@media (max-width: 430px) {
  .lp4-brand-t strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .dtrk-lp4 *, .dtrk-lp4 *::before, .dtrk-lp4 *::after { animation: none !important; transition-duration: .01ms !important; }
  .dtrk-lp4 .lp4-panel.is-armed .lp4-tick, .dtrk-lp4 .lp4-steps.is-armed .lp4-step-n { transform: none; opacity: 1; }
  .dtrk-lp4 .lp4-steps.is-armed::before { transform: none; }
  .dtrk-lp4 .lp4-wing-l { transform: rotate(-6deg); }
  .dtrk-lp4 .lp4-wing-r { transform: rotate(-6deg); }
}
