/* Data Driven Labs design system — component styles. Every value comes from tokens.css. */

.ddl-root, .ddl-root * { box-sizing: border-box; }
.ddl-root { font-family: var(--font-sans); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }

/* Button */
.ddl-btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); border: 1px solid transparent; font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0.2px; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ddl-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ddl-btn--primary { background: var(--action); color: var(--on-action); }
.ddl-btn--primary:hover { background: var(--action-hover); }
.ddl-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ddl-btn--secondary:hover { border-color: var(--ink); }
.ddl-btn--link { padding: var(--space-3) 0; background: none; color: var(--accent-text); }
.ddl-btn--link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ddl-btn--lg { padding: 16px var(--space-6); font-size: 16px; }
.ddl-btn .ddl-arrow { transition: transform .15s ease; }
.ddl-btn:hover .ddl-arrow { transform: translateX(3px); }

/* Eyebrow + SectionHeader */
.ddl-eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.ddl-eyebrow b { color: var(--accent-text); font-weight: 500; }
.ddl-section-header { max-width: 640px; }
.ddl-section-header--center { margin-inline: auto; text-align: center; }
.ddl-section-header h2 { font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 600; color: var(--ink); margin: var(--space-2) 0 0; }
.ddl-section-header .ddl-rule { display: block; width: 32px; height: 2px; background: var(--brand-red); margin-top: var(--space-4); }
.ddl-section-header--center .ddl-rule { margin-inline: auto; }
.ddl-section-header p { font-size: 20px; line-height: 1.55; color: var(--ink-soft); margin: var(--space-4) 0 0; }

/* DataLine — the motif */
.ddl-dataline { display: block; width: 100%; height: auto; overflow: visible; }
.ddl-dataline path { fill: none; stroke: var(--brand-red); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ddl-dataline circle { fill: var(--canvas); stroke: var(--brand-red); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ddl-dataline--quiet path, .ddl-dataline--quiet circle { stroke: var(--line-strong); }
.ddl-dataline--on-red path, .ddl-dataline--on-red circle { stroke: #ffffff; }
.ddl-dataline--on-red circle { fill: var(--brand-red-deep); }

/* ServiceCard */
.ddl-service { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: box-shadow .2s ease, border-color .2s ease; }
.ddl-service:hover { box-shadow: var(--shadow-card); border-color: transparent; }
.ddl-service h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 600; margin: 0; color: var(--ink); }
.ddl-service p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; flex: 1; }

/* FeatureList */
.ddl-features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5) var(--space-6); }
.ddl-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ddl-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ddl-feature { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.ddl-feature .ddl-eyebrow { margin-bottom: var(--space-2); }
.ddl-feature h4 { font-family: var(--font-display); font-size: 22px; line-height: 1.15; font-weight: 600; margin: 0 0 var(--space-2); color: var(--ink); }
.ddl-feature p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* PriceCard */
.ddl-price { padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: var(--space-5); }
.ddl-price--featured { border-color: var(--ink); }
.ddl-price .ddl-amount { display: flex; align-items: baseline; gap: var(--space-2); }
.ddl-price .ddl-amount strong { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 600; color: var(--ink); }
.ddl-price .ddl-amount span { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.ddl-price h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 0; color: var(--ink); }
.ddl-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ddl-price li { font-size: 14px; line-height: 1.5; color: var(--ink-soft); padding-left: 20px; position: relative; }
.ddl-price li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 999px; border: 1.5px solid var(--brand-red); }
.ddl-price small { font-size: 13px; color: var(--ink-muted); }

/* Testimonial */
.ddl-quote { background: var(--brand-red-deep); color: #ffffff; padding: var(--space-8) var(--space-6); border-radius: var(--radius-md); text-align: center; }
.ddl-quote blockquote { margin: 0 auto; max-width: 620px; font-size: 22px; line-height: 1.5; font-weight: 400; }
.ddl-quote figcaption { margin-top: var(--space-5); display: inline-flex; align-items: center; gap: var(--space-3); text-align: left; }
.ddl-quote img { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; }
.ddl-quote .ddl-who { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; display: block; }
.ddl-quote .ddl-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: #f4f1ee; opacity: .85; }

/* DeckFooter */
.ddl-deck-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: 0 var(--space-8); height: 72px; border-top: 1px solid var(--line); background: var(--canvas); }
.ddl-deck-footer img { height: 28px; width: auto; display: block; }
.ddl-deck-footer .ddl-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); display: flex; gap: var(--space-5); }
.ddl-deck-footer .ddl-meta b { color: var(--accent-text); font-weight: 500; }

/* Logo theme swap: put both <img>s in place; the theme shows the right one. */
.ddl-root .ddl-logo-on-dark { display: none; }
[data-theme="dark"] .ddl-root .ddl-logo-on-light { display: none; }
[data-theme="dark"] .ddl-root .ddl-logo-on-dark { display: block; }
