/* ============================================================
   Owner's Dashboard — product page
   Distinctive "control-room" design. Scoped under .dp-page.
   ============================================================ */

.dp-page {
    --dp-ink:        #0E0F1A;   /* deep canvas            */
    --dp-panel:      #171a29;   /* raised panel           */
    --dp-panel-2:    #1f2336;   /* inner card             */
    --dp-line:       rgba(255,255,255,.08);
    --dp-line-soft:  rgba(255,255,255,.05);
    --dp-text:       #E9EBF5;
    --dp-muted:      #8b91ad;
    --dp-pos:        #37d49a;   /* positive / data accent */
    --dp-pos-soft:   rgba(55,212,154,.14);
    --dp-sky:        #5bb8ff;   /* secondary data accent  */
    --dp-warn:       #f4b740;
    --dp-mono:       ui-monospace, "SF Mono", "Roboto Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    overflow-x: clip;
}

/* ---- shared bits ------------------------------------------- */
.dp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-heading);
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--color-text-muted);
    border: 1px solid rgba(30,41,59,.18);
    border-radius: 100px; padding: 6px 14px;
}
.dp-eyebrow--light { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.22); }
.dp-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dp-pos); box-shadow: 0 0 0 4px var(--dp-pos-soft); }

.dp-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    background: transparent; color: var(--color-text-primary);
    border: 1px solid rgba(30,41,59,.25);
    border-radius: var(--button-radius); padding: 14px 28px;
    font-family: var(--font-heading); font-size: 15px; font-weight: 500; line-height: 1;
    text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.dp-btn-ghost:hover { border-color: var(--color-text-primary); transform: translateY(-1px); }
.dp-btn-ghost svg { transition: transform .2s ease; }
.dp-btn-ghost:hover svg { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.dp-hero { padding: 72px 0 56px; position: relative; }
.dp-hero__inner { max-width: 760px; }
.dp-hero h1 {
    margin: 22px 0 0; font-family: var(--font-heading);
    font-size: clamp(38px, 6vw, 64px); font-weight: 600; line-height: 1.08;
    letter-spacing: -.02em; color: var(--color-text-primary);
}
.dp-hero h1 .dp-accent { position: relative; white-space: nowrap; }
.dp-hero h1 .dp-accent::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .12em;
    background: linear-gradient(90deg, var(--dp-pos), var(--dp-sky)); border-radius: 2px;
}
.dp-hero__sub {
    margin: 22px 0 0; max-width: 600px;
    font-family: var(--font-heading); font-size: 19px; line-height: 1.6;
    color: var(--color-text-muted);
}
.dp-hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dp-hero__note {
    margin-top: 26px; display: block;
    font-family: var(--dp-mono); font-size: 12.5px; letter-spacing: .01em;
    color: var(--color-text-muted);
}

/* staggered reveal */
.dp-reveal { opacity: 0; transform: translateY(16px); animation: dpUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.dp-reveal-1 { animation-delay: .05s; }
.dp-reveal-2 { animation-delay: .14s; }
.dp-reveal-3 { animation-delay: .23s; }
.dp-reveal-4 { animation-delay: .32s; }
@keyframes dpUp { to { opacity: 1; transform: none; } }

/* ============================================================
   SAMPLE DASHBOARD (dark centerpiece)
   ============================================================ */
.dp-sample {
    position: relative; background: var(--dp-ink); color: var(--dp-text);
    padding: 64px 0 76px; margin-top: 12px;
    border-radius: 28px;
    background-image:
        radial-gradient(900px 420px at 82% -8%, rgba(91,184,255,.10), transparent 70%),
        radial-gradient(760px 380px at 6% 8%, rgba(55,212,154,.10), transparent 70%),
        linear-gradient(var(--dp-line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--dp-line-soft) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
    background-color: var(--dp-ink);
    overflow: hidden;
}
.dp-sample__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.dp-sample__head h2 {
    margin: 14px 0 0; font-family: var(--font-heading); font-weight: 600;
    font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; color: #fff; letter-spacing: -.01em;
}
.dp-sample__caption { margin: 8px 0 0; max-width: 440px; font-family: var(--font-heading); font-size: 15px; line-height: 1.55; color: var(--dp-muted); }

/* ---- browser frame ---- */
.dp-app {
    border: 1px solid var(--dp-line);
    border-radius: 16px; overflow: hidden;
    background: var(--dp-panel);
    box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.dp-app__chrome {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 16px; border-bottom: 1px solid var(--dp-line);
    background: rgba(255,255,255,.02);
}
.dp-app__dots { display: flex; gap: 7px; }
.dp-app__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); }
.dp-app__url {
    flex: 1; max-width: 360px; text-align: center;
    font-family: var(--dp-mono); font-size: 12px; color: var(--dp-muted);
    background: rgba(255,255,255,.04); border: 1px solid var(--dp-line-soft);
    border-radius: 7px; padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dp-app__url b { color: var(--dp-pos); font-weight: 500; }

/* ---- app body: sidebar + main ---- */
.dp-app__body { display: grid; grid-template-columns: 64px 1fr; min-height: 540px; }
.dp-side {
    border-right: 1px solid var(--dp-line); padding: 18px 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: rgba(0,0,0,.18);
}
.dp-side__logo {
    width: 30px; height: 30px; border-radius: 8px; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--dp-pos), var(--dp-sky));
    display: grid; place-items: center; color: #07140f; font-weight: 800; font-family: var(--font-card-title); font-size: 15px;
}
.dp-side__ico {
    width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
    color: var(--dp-muted);
}
.dp-side__ico.is-active { background: var(--dp-pos-soft); color: var(--dp-pos); }
.dp-side__ico svg { width: 19px; height: 19px; }

.dp-main { padding: 20px 22px 24px; min-width: 0; }
.dp-main__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dp-main__title { font-family: var(--font-card-title); font-weight: 700; font-size: 16px; color: #fff; }
.dp-main__title span { display: block; font-family: var(--dp-mono); font-weight: 400; font-size: 11px; color: var(--dp-muted); margin-top: 3px; letter-spacing: .02em; }
.dp-sync { display: inline-flex; align-items: center; gap: 7px; font-family: var(--dp-mono); font-size: 11px; color: var(--dp-muted); }
.dp-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--dp-pos); box-shadow: 0 0 0 3px var(--dp-pos-soft); animation: dpPulse 2.4s ease-in-out infinite; }
@keyframes dpPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* period toggle */
.dp-toggle { display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid var(--dp-line); border-radius: 9px; padding: 3px; }
.dp-toggle button {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    font-family: var(--dp-mono); font-size: 12px; color: var(--dp-muted);
    padding: 6px 13px; border-radius: 6px; transition: all .18s ease;
}
.dp-toggle button.is-active { background: var(--dp-text); color: var(--dp-ink); font-weight: 600; }

/* KPI row */
.dp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dp-kpi {
    background: var(--dp-panel-2); border: 1px solid var(--dp-line); border-radius: 12px;
    padding: 14px 15px; position: relative; overflow: hidden;
}
.dp-kpi__label { font-family: var(--dp-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-muted); }
.dp-kpi__value { display: block; margin: 9px 0 4px; font-family: var(--dp-mono); font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; color: #fff; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dp-kpi__delta { font-family: var(--font-heading); font-size: 12px; font-weight: 500; }
.dp-kpi__delta.dp-up { color: var(--dp-pos); }
.dp-kpi__delta.dp-flat { color: var(--dp-muted); }
.dp-kpi__delta.dp-warn { color: var(--dp-warn); }

/* chart + side panel */
.dp-grid2 { display: grid; grid-template-columns: 1.65fr 1fr; gap: 12px; }
.dp-panel {
    background: var(--dp-panel-2); border: 1px solid var(--dp-line); border-radius: 12px; padding: 16px 17px;
}
.dp-panel__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dp-panel__h span { font-family: var(--font-card-title); font-weight: 700; font-size: 13.5px; color: #fff; }
.dp-panel__h em { font-family: var(--dp-mono); font-style: normal; font-size: 11px; color: var(--dp-muted); }

.dp-chart { width: 100%; height: auto; display: block; }
.dp-chart__area { fill: url(#dpGrad); opacity: .9; }
.dp-chart__line { fill: none; stroke: url(#dpStroke); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.dp-chart.is-drawn .dp-chart__line { transition: stroke-dashoffset 1.3s cubic-bezier(.3,.7,.2,1); stroke-dashoffset: 0; }
.dp-chart__dot { fill: var(--dp-pos); stroke: var(--dp-ink); stroke-width: 2.5; opacity: 0; }
.dp-chart.is-drawn .dp-chart__dot { opacity: 1; transition: opacity .4s ease .9s; }
.dp-chart__grid line { stroke: var(--dp-line-soft); stroke-width: 1; }
.dp-chart__lbl { fill: var(--dp-muted); font-family: var(--dp-mono); font-size: 11px; }

/* segments */
.dp-seg { display: flex; flex-direction: column; gap: 13px; }
.dp-seg__row { display: grid; grid-template-columns: 78px 1fr 42px; align-items: center; gap: 10px; }
.dp-seg__row span { font-family: var(--font-heading); font-size: 12.5px; color: var(--dp-muted); }
.dp-seg__row b { font-family: var(--dp-mono); font-size: 12.5px; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.dp-seg__track { height: 8px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.dp-seg__track i { display: block; height: 100%; width: 0; border-radius: 6px;
    background: linear-gradient(90deg, var(--dp-pos), var(--dp-sky));
    transition: width 1s cubic-bezier(.3,.7,.2,1); }

/* alerts */
.dp-alerts { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.dp-alert { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-heading); font-size: 12.5px; color: var(--dp-text); line-height: 1.4; }
.dp-alert i { flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; }
.dp-alert.is-ok i { background: var(--dp-pos); }
.dp-alert.is-warn i { background: var(--dp-warn); }

.dp-sample__foot { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dp-sample__foot .dp-btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.dp-sample__foot .dp-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.dp-sample__disclaimer { font-family: var(--dp-mono); font-size: 11.5px; color: var(--dp-muted); }

/* ============================================================
   FEATURES
   ============================================================ */
.dp-features { padding: 90px 0 30px; background: var(--color-white); }
.dp-features__head { max-width: 640px; margin-bottom: 44px; }
.dp-features__head h2 { margin: 18px 0 0; font-family: var(--font-heading); font-size: clamp(30px,4vw,44px); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: var(--color-text-primary); }
.dp-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dp-feat {
    background: var(--color-white); border: 1px solid rgba(30,41,59,.08); border-radius: 14px; padding: 26px 24px 28px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.dp-feat:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(30,41,59,.35); }
.dp-feat__ico { width: 44px; height: 44px; border-radius: 11px; background: var(--color-bg); display: grid; place-items: center; color: var(--color-text-primary); margin-bottom: 18px; }
.dp-feat__ico svg { width: 22px; height: 22px; }
.dp-feat h3 { margin: 0 0 8px; font-family: var(--font-card-title); font-weight: 700; font-size: 18px; color: var(--color-card-heading); }
.dp-feat p { margin: 0; font-family: var(--font-heading); font-size: 15px; line-height: 1.55; color: var(--color-text-muted); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.dp-how { padding: 70px 0 30px; background: var(--dp-ink); }
.dp-how__head { max-width: 620px; margin-bottom: 44px; }
.dp-how__head h2 { margin: 18px 0 0; font-family: var(--font-heading); font-size: clamp(30px,4vw,44px); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: #fff; }
.dp-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: dpstep; }
.dp-step { position: relative; padding-top: 26px; }
.dp-step::before {
    counter-increment: dpstep; content: counter(dpstep, decimal-leading-zero);
    font-family: var(--dp-mono); font-size: 13px; color: var(--dp-pos);
    position: absolute; top: 0; left: 0;
    border: 1px solid rgba(55,212,154,.4); border-radius: 7px; padding: 3px 9px;
    background: rgba(55,212,154,.06);
}
.dp-step h3 { margin: 0 0 8px; font-family: var(--font-card-title); font-weight: 700; font-size: 19px; color: #fff; }
.dp-step p { margin: 0; font-family: var(--font-heading); font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.6); }
.dp-step__line { height: 1px; background: rgba(255,255,255,.12); margin-top: 22px; }
.dp-how .dp-eyebrow { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.22); }

/* ============================================================
   FAQ
   ============================================================ */
.dp-faq { padding: 70px 0 20px; }
.dp-faq__head { margin-bottom: 36px; }
.dp-faq__head h2 { margin: 16px 0 0; font-family: var(--font-heading); font-size: clamp(28px,3.6vw,40px); font-weight: 600; letter-spacing: -.015em; color: var(--color-text-primary); }
.dp-faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.dp-faq__item { border-top: 1px solid rgba(30,41,59,.12); padding-top: 18px; }
.dp-faq__item h3 { margin: 0 0 8px; font-family: var(--font-card-title); font-weight: 700; font-size: 16.5px; color: var(--color-card-heading); }
.dp-faq__item p { margin: 0; font-family: var(--font-heading); font-size: 15px; line-height: 1.6; color: var(--color-text-muted); }

/* ============================================================
   CTA BAND
   ============================================================ */
.dp-cta { padding: 60px 0 96px; }
.dp-cta__box {
    background: var(--dp-ink); color: #fff; border-radius: 22px; padding: 60px 56px;
    position: relative; overflow: hidden;
    background-image:
        radial-gradient(700px 360px at 90% 120%, rgba(55,212,154,.16), transparent 70%),
        radial-gradient(620px 300px at 0% -20%, rgba(91,184,255,.14), transparent 70%);
    background-color: var(--dp-ink);
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.dp-cta__box h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(28px,3.6vw,40px); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; color: #fff; max-width: 540px; }
.dp-cta__box p { margin: 14px 0 0; font-family: var(--font-heading); font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.7); max-width: 520px; }
.dp-cta__btns { display: flex; flex-direction: column; gap: 12px; }
.dp-cta .btn-primary { background: #fff; color: var(--dp-ink); text-align: center; }
.dp-cta .btn-primary:hover { opacity: .9; }
.dp-cta .dp-btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); justify-content: center; }
.dp-cta .dp-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.05); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
    .dp-kpis { grid-template-columns: repeat(2, 1fr); }
    .dp-grid2 { grid-template-columns: 1fr; }
    .dp-features__grid { grid-template-columns: repeat(2, 1fr); }
    .dp-how__grid { grid-template-columns: 1fr; gap: 28px; }
    .dp-faq__list { grid-template-columns: 1fr; }
    .dp-cta__box { padding: 44px 32px; }
}
@media (max-width: 680px) {
    .dp-sample { border-radius: 18px; padding: 44px 0 54px; }
    .dp-app__body { grid-template-columns: 1fr; }
    .dp-side { flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--dp-line); padding: 12px 14px; overflow-x: auto; }
    .dp-side__logo { margin-bottom: 0; }
    .dp-kpis { grid-template-columns: repeat(2, 1fr); }
    .dp-features__grid { grid-template-columns: 1fr; }
    .dp-hero { padding: 48px 0 36px; }
}

/* The dark sample sits in a light page — give it side gutters via container */
.dp-sample > .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .dp-reveal { animation: none; opacity: 1; transform: none; }
    .dp-chart__line { transition: none; stroke-dashoffset: 0; }
    .dp-chart__dot { transition: none; opacity: 1; }
    .dp-seg__track i { transition: none; }
    .dp-sync i { animation: none; }
}
