/* /datadock page. Uses the design-system tokens and buttons from logsnx.css; only DataDock-specific parts live here.
   Dark follows the site (system preference or the theme switch), through the same tokens. */

.dd { overflow-x: hidden; }
.dd h1, .dd h2, .dd h3 { margin: 0; }
.dd p, .dd figure, .dd ul, .dd ol, .dd pre { margin: 0; }
.dd ul, .dd ol { padding: 0; list-style: none; }
.dd img { display: block; max-width: 100%; height: auto; }
.dd-lead { font-size: var(--lead); line-height: 30px; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.dd-hero { padding: 72px 0 0; }
.dd-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px !important; font: 600 16px/24px var(--font-text); color: var(--head); }
.dd-eyebrow span { color: var(--muted); font-weight: 500; }
.dd-eyebrow img { border-radius: 7px; }
.dd-hero h1 { max-width: 15ch; font-family: var(--font-display); font-weight: 700; font-size: var(--h1); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.dd-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-top: 28px; }
.dd-hero__row .dd-lead { flex: 1 1 380px; max-width: 56ch; }
.dd-hero__cta { display: flex; flex-direction: column; gap: 12px; }
.dd-hero__note { font-size: 14px; line-height: 22px; color: var(--muted); }
.dd-hero__note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.dd-trust { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px !important; font-size: 14px; line-height: 22px; color: var(--muted); }
.dd-trust li { display: flex; align-items: center; gap: 8px; }
.dd-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.dd-hero__shot { margin-top: 56px !important; }

/* product window (light in both modes, like every product window on the site) */
.dd-window { background: #fff; border: 1px solid #dfe3ea; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-window); }
.dd-window__bar { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-bottom: 1px solid #dfe3ea; }
.dd-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbe3; }
.dd-window__bar span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: #f3f5f8; font: 12.5px/18px var(--font-text); color: #5c6878; }
.dd-window img { width: 100%; aspect-ratio: 1600 / 1000; object-fit: cover; object-position: top left; transition: opacity .2s; }

/* databases */
.dd-dbs { border-bottom: 1px solid var(--line); }
.dd-dbs__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 56px; padding-bottom: 56px; }
.dd-dbs p { font-size: 14px; font-weight: 600; color: var(--muted); }
.dd-dbs ul { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-dbs li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 15px/20px var(--font-display); color: var(--head); background: var(--bg); }

/* section head */
.dd-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 72px; margin-bottom: 48px; }
.dd h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--h2); line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
.dd-head h2 { flex: 1 1 420px; }
.dd-head p { flex: 1 1 340px; max-width: 52ch; font-size: 17px; line-height: 28px; }

/* steps: dot-matrix track */
.dd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px 0; counter-reset: s; }
.dd-steps li { display: flex; flex-direction: column; gap: 6px; padding-right: 24px; }
.dd-steps i { display: block; height: 16px; margin-bottom: 14px; background: radial-gradient(circle, var(--line) 2.5px, transparent 3px) 20px 50% / 14px 16px repeat-x; position: relative; }
.dd-steps i::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 9px var(--bg); }
.dd-steps li:last-child i { background: none; }
.dd-steps b { font: 600 21px/26px var(--font-display); color: var(--head); }
.dd-steps b::before { counter-increment: s; content: counter(s) ". "; color: var(--brand-text); }
.dd-steps span { font-size: 15px; line-height: 24px; }

/* screen tabs */
.dd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dd-tabs button { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 600 14px/20px var(--font-text); cursor: pointer; }
.dd-tabs button:hover { border-color: var(--line-control); }
.dd-tabs button[aria-selected="true"] { border-color: var(--brand); color: var(--head); box-shadow: inset 0 -2px 0 var(--brand); }

/* features */
.dd-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.dd-card { padding: 28px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.dd-card svg { width: 28px; height: 28px; margin-bottom: 18px; fill: none; stroke: var(--brand-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dd-card h3 { font-family: var(--font-display); font-size: 21px; line-height: 26px; font-weight: 600; margin-bottom: 8px; }
.dd-card p { font-size: 15px; line-height: 24px; }
.lx-section--alt .dd-card { background: var(--bg); }

/* split + code */
.dd-split { display: grid; gap: 40px 72px; align-items: start; }
@media (min-width: 1024px) { .dd-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.dd-split__text { display: flex; flex-direction: column; gap: 20px; }
.dd-code { border-radius: 16px; overflow: hidden; background: #0e1626; border: 1px solid #273549; }
.dd-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #273549; font: 600 13px/20px var(--font-text); color: #aab4c3; }
.dd-code__bar em { font-style: normal; color: #5fd0b3; }
.dd-code pre { padding: 18px 20px; overflow-x: auto; font: 13.5px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e8ecf2; background: none; border: 0; }
.dd-code pre + .dd-code__bar { border-top: 1px solid #273549; }
.dd-copy { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #7d8b9e; background: transparent; color: #fff; font: 600 12.5px/16px var(--font-text); cursor: pointer; }
.dd-copy:hover { border-color: #fff; }

/* security ticks */
.dd-ticks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dd-ticks li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 26px; color: var(--head); }
.dd-ticks li::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: 8px; border-left: 2.5px solid var(--brand-text); border-bottom: 2.5px solid var(--brand-text); transform: rotate(-45deg); }

/* download: Windows and Linux carry equal weight; macOS is a quiet line */
.dd-dl { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch; }
.dd-dl__card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.dd-dl__card h3 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; }
.dd-dl__card p { font-size: 15px; line-height: 24px; }
.dd-dl__card .lx-btn { margin-top: 6px; }
.dd-dl__card--soon { background: transparent; border-style: dashed; }
.dd-dl__card--soon p { font-size: 17px; font-weight: 600; color: var(--muted); }
.dd-install { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 10px 10px 16px; border-radius: var(--r-md); background: #0e1626; border: 1px solid #273549; }
.dd-install code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 13.5px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e8ecf2; }
.dd-install .dd-copy { flex: none; }
.dd-dl .dd-dl__small { font-size: 14px; line-height: 22px; color: var(--muted); }
.dd-dl__legal { margin-top: 28px !important; font-size: 14px; line-height: 22px; color: var(--muted); }
.dd-dl__legal a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.dd-faq-block { display: grid; gap: 40px 72px; align-items: start; }
@media (min-width: 1024px) { .dd-faq-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.dd-faq { border-top: 1px solid var(--line); }
.dd-faq details { border-bottom: 1px solid var(--line); }
.dd-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 18px 0;
  font: 600 18px/26px var(--font-display); color: var(--head); }
.dd-faq summary::-webkit-details-marker { display: none; }
.dd-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; }
.dd-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.dd-faq p { padding: 0 0 22px; max-width: 68ch; }
.dd-faq a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* closing call to action */
.dd-cta { padding: 0; }
.dd-cta__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; padding-top: 112px; padding-bottom: 104px; }
.dd-cta h2 { max-width: 13ch; font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.035em; margin-bottom: 20px; }
.dd-cta p { font-size: 18px; line-height: 28px; max-width: 44ch; }

@media (max-width: 639px) {
  .dd-hero { padding-top: 48px; }
  .dd-actions .lx-btn { flex: 1 1 100%; }
  .dd-cta__in { padding-top: 72px; padding-bottom: 72px; }
}
