/* Dilys website: Linen identity (D-033, D-034; docs/design/identity.md).
   Light and dark follow the system, like the app. The Elementor pages carry
   only layout and the dl-* classes; colours and type come from here. */

/* ---- Fonts (SIL OFL, bundled; copied from apps/dilys/assets/fonts by
   site/scripts/prepare-theme.mjs) ---- */
@font-face { font-family: "Figtree"; src: url("/wp-content/themes/dilys/assets/fonts/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/wp-content/themes/dilys/assets/fonts/Figtree-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/wp-content/themes/dilys/assets/fonts/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/wp-content/themes/dilys/assets/fonts/Figtree-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/wp-content/themes/dilys/assets/fonts/Figtree-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/wp-content/themes/dilys/assets/fonts/SourceSerif4-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/wp-content/themes/dilys/assets/fonts/SourceSerif4-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---- Tokens ---- */
:root {
  --dl-bg: #F4F1EA;
  --dl-surface: #E7E1D3;
  --dl-raised: #FBFAF6;
  --dl-text: #22313F;
  --dl-text-2: #5A6570;
  --dl-accent: #2D7976;
  --dl-on-accent: #F4F1EA;
  --dl-chip-bg: #DDEBE8;
  --dl-chip-text: #1F5654;
  --dl-line: rgba(34, 49, 63, 0.14);
  --dl-serif: "Source Serif 4", Georgia, serif;
  --dl-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dl-radius: 16px;
  --dl-width: 1120px;
  --dl-gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --dl-bg: #161D24;
    --dl-surface: #24303A;
    --dl-raised: #1B242C;
    --dl-text: #EDE8DE;
    --dl-text-2: #A39D92;
    --dl-accent: #5FB3AE;
    --dl-on-accent: #161D24;
    --dl-chip-bg: #1E3A38;
    --dl-chip-text: #8FD1CC;
    --dl-line: rgba(237, 232, 222, 0.14);
  }
}

/* ---- Base ---- */
html { background: var(--dl-bg); }
body {
  margin: 0;
  background: var(--dl-bg);
  color: var(--dl-text);
  font-family: var(--dl-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--dl-accent); }
a:hover { color: var(--dl-text); }
:focus-visible { outline: 3px solid var(--dl-accent); outline-offset: 3px; border-radius: 4px; }
.dl-sr, .dl-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dl-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; background: var(--dl-accent); color: var(--dl-on-accent); border-radius: 8px; }

/* Elementor text and headings take the site's type, whatever the kit says. */
body .elementor-widget-heading .elementor-heading-title,
body h1, body h2, body h3 {
  font-family: var(--dl-serif);
  font-weight: 600;
  color: var(--dl-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
body .elementor-widget-text-editor,
body .elementor-widget-text-editor p { font-family: var(--dl-sans); color: var(--dl-text); }
body .elementor-widget-text-editor p { margin: 0 0 0.9em; }
body .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---- Header ---- */
.dl-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--dl-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--dl-line); }
.dl-header-inner { max-width: calc(var(--dl-width) + 2 * var(--dl-gutter)); margin: 0 auto; padding: 12px var(--dl-gutter); display: flex; align-items: center; gap: 24px; }
.dl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dl-text); }
.dl-brand-tile { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--dl-accent); color: var(--dl-bg); }
.dl-brand-tile .dl-glyph { width: 22px; height: 22px; }
.dl-brand-tile-small { width: 24px; height: 24px; border-radius: 6px; }
.dl-brand-tile-small .dl-glyph { width: 15px; height: 15px; }
.dl-brand-name { font-family: var(--dl-serif); font-weight: 600; font-size: 22px; }
.dl-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.dl-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.dl-nav a { color: var(--dl-text); text-decoration: none; font-weight: 500; }
.dl-nav ul a:hover { color: var(--dl-accent); }
.dl-signin { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--dl-accent); color: var(--dl-accent) !important; }
.dl-signin:hover { background: var(--dl-accent); color: var(--dl-on-accent) !important; }
.dl-menu-toggle { display: none; }
.dl-menu-button { display: none; margin-left: auto; cursor: pointer; padding: 10px; }
.dl-burger, .dl-burger::before, .dl-burger::after { display: block; width: 22px; height: 2px; background: var(--dl-text); border-radius: 2px; position: relative; }
.dl-burger::before, .dl-burger::after { content: ""; position: absolute; }
.dl-burger::before { top: -7px; }
.dl-burger::after { top: 7px; }
@media (max-width: 1000px) {
  .dl-menu-button { display: block; }
  .dl-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--dl-gutter) 20px; background: var(--dl-bg); border-bottom: 1px solid var(--dl-line); }
  .dl-nav ul { flex-direction: column; gap: 0; }
  .dl-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--dl-line); }
  .dl-signin { margin-top: 14px; text-align: center; }
  .dl-menu-toggle:checked ~ .dl-nav { display: flex; }
}

/* ---- Sections (Elementor containers with these classes) ---- */
.dl-section { padding: clamp(48px, 8vw, 96px) var(--dl-gutter) !important; }
.dl-section > .e-con-inner { max-width: var(--dl-width) !important; margin: 0 auto; gap: 24px; }
.dl-tone-surface { background: var(--dl-surface); }
.dl-eyebrow .elementor-heading-title { font-family: var(--dl-sans) !important; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.08em !important; color: var(--dl-accent) !important; }
.dl-hero .dl-title .elementor-heading-title { font-size: clamp(36px, 5.5vw, 60px); max-width: 16em; }
.dl-hero .dl-lead { font-size: clamp(18px, 2vw, 21px); color: var(--dl-text-2); max-width: 38em; }
.dl-hero .dl-lead p { color: var(--dl-text-2); }
.dl-h2 .elementor-heading-title { font-size: clamp(26px, 3.2vw, 36px); }
.dl-h3 .elementor-heading-title { font-size: 21px; }
.dl-intro p { color: var(--dl-text-2); }
.dl-prose { max-width: 46em; }

/* Card grids */
.dl-grid { display: grid !important; gap: 20px !important; grid-template-columns: repeat(var(--dl-cols, 3), minmax(0, 1fr)); width: 100%; }
.dl-cols-2 { --dl-cols: 2; }
.dl-cols-3 { --dl-cols: 3; }
@media (max-width: 960px) { .dl-cols-3 { --dl-cols: 2; } }
@media (max-width: 640px) { .dl-grid { --dl-cols: 1; } }
.dl-card { background: var(--dl-raised); border: 1px solid var(--dl-line); border-radius: var(--dl-radius); padding: 28px !important; gap: 12px !important; }
.dl-tone-surface .dl-card { background: var(--dl-bg); }
.dl-card .dl-num .elementor-heading-title { font-family: var(--dl-sans); font-size: 14px; font-weight: 700; color: var(--dl-chip-text); background: var(--dl-chip-bg); border-radius: 999px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }

/* Buttons (Elementor's button widget) */
.dl-buttons { gap: 12px !important; flex-wrap: wrap; }
.dl-btn .elementor-button { font-family: var(--dl-sans); font-weight: 600; font-size: 16px; border-radius: 999px; padding: 13px 24px; border: 1.5px solid var(--dl-accent); transition: background 0.15s, color 0.15s; }
.dl-btn-primary .elementor-button { background: var(--dl-accent); color: var(--dl-on-accent); }
.dl-btn-primary .elementor-button:hover { background: var(--dl-text); border-color: var(--dl-text); color: var(--dl-bg); }
.dl-btn-secondary .elementor-button { background: transparent; color: var(--dl-accent); }
.dl-btn-secondary .elementor-button:hover { background: var(--dl-accent); color: var(--dl-on-accent); }
.dl-btn-disabled .elementor-button { background: transparent; color: var(--dl-text-2); border-color: var(--dl-line); cursor: default; }

/* FAQ */
.dl-faq-item { border-top: 1px solid var(--dl-line); padding: 20px 0 !important; gap: 8px !important; max-width: 46em; }

/* Call to action */
.dl-cta > .e-con-inner { text-align: center; align-items: center; }
.dl-cta .dl-buttons { justify-content: center; }

/* Legal */
.dl-draft { background: var(--dl-chip-bg); color: var(--dl-chip-text); border-radius: 12px; padding: 14px 18px; font-weight: 600; max-width: 46em; }
.dl-draft p { color: var(--dl-chip-text) !important; }
.dl-legal .dl-prose h3 { font-size: 21px; margin: 1.4em 0 0.5em; }

/* ---- Footer ---- */
.dl-footer { border-top: 1px solid var(--dl-line); background: var(--dl-bg); }
.dl-footer-inner { max-width: calc(var(--dl-width) + 2 * var(--dl-gutter)); margin: 0 auto; padding: 32px var(--dl-gutter); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; color: var(--dl-text-2); font-size: 15px; }
.dl-footer-brand { display: flex; align-items: center; gap: 10px; }
.dl-footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.dl-footer-nav a { color: var(--dl-text-2); }
.dl-footer-nav a:hover { color: var(--dl-accent); }
.dl-footer-note { width: 100%; margin: 0; font-size: 14px; }

/* =====================================================================
   Visual layer (2026-11-24): pictures, icons, diagrams and colour. All
   markup comes from site/content/art.mjs; no script, no outside files.
   ===================================================================== */
:root {
  --dl-shadow: 0 1px 2px rgba(34, 49, 63, 0.06), 0 14px 34px -14px rgba(34, 49, 63, 0.28);
  --dl-glow: color-mix(in srgb, var(--dl-accent) 22%, transparent);
  --dl-accent-soft: color-mix(in srgb, var(--dl-accent) 10%, var(--dl-raised));
  --dl-screen: #161D24;
}
@media (prefers-color-scheme: dark) {
  :root { --dl-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -14px rgba(0, 0, 0, 0.7); }
}

/* Icons */
.dl-icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.dl-icon-s { width: 18px; height: 18px; }
.dl-icon-l { width: 30px; height: 30px; }
.dl-card-badge, .dl-band-icon { line-height: 0; }
.dl-card-badge .dl-icon { width: 26px; height: 26px; padding: 11px; box-sizing: content-box; border-radius: 14px; background: var(--dl-chip-bg); color: var(--dl-chip-text); }
.dl-cols-1 { --dl-cols: 1; max-width: 46em; }
.dl-cols-4 { --dl-cols: 4; }
@media (max-width: 960px) { .dl-cols-4 { --dl-cols: 2; } }

/* Hero with a picture */
.dl-hero { position: relative; overflow: hidden; background: radial-gradient(60rem 30rem at 88% -12%, var(--dl-glow), transparent 62%), radial-gradient(40rem 24rem at -12% 115%, color-mix(in srgb, var(--dl-accent) 12%, transparent), transparent 60%), var(--dl-bg); }
.dl-hero-grid { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px) !important; align-items: center; width: 100%; }
.dl-hero-words { gap: 22px !important; }
.dl-hero-grid .dl-title .elementor-heading-title { font-size: clamp(34px, 4.4vw, 54px); }
.dl-hero-art { min-width: 0; }
@media (max-width: 900px) { .dl-hero-grid { grid-template-columns: minmax(0, 1fr); } }

.dl-art { position: relative; }
.dl-shot { display: block; width: 100%; height: auto; }
.dl-window { border-radius: 14px; overflow: hidden; background: var(--dl-screen); box-shadow: var(--dl-shadow), 0 0 0 1px var(--dl-line); }
.dl-window-bar { display: flex; gap: 6px; padding: 10px 12px; background: #0F151A; }
.dl-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A4752; }
.dl-shot-status { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.dl-art-devices { padding-bottom: 56px; }
.dl-art-devices .dl-window { width: 86%; }
.dl-phone { position: absolute; right: 0; bottom: 0; width: 40%; padding: 7px; border-radius: 28px; background: #0B0F13; box-shadow: var(--dl-shadow), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.dl-phone-screen { display: flex; align-items: center; aspect-ratio: 9 / 13; padding: 10px 6px; border-radius: 22px; overflow: hidden; background: #0F151A; }
.dl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--dl-raised); color: var(--dl-text); font-size: 14px; font-weight: 600; line-height: 1.2; border: 1px solid var(--dl-line); box-shadow: var(--dl-shadow); white-space: nowrap; }
.dl-chip .dl-icon { color: var(--dl-accent); }
.dl-chip-float { position: absolute; }
.dl-chip-a { left: -10px; bottom: 18px; }
/* Features hero: the phone alone, centred, with the two chips beside it. */
.dl-art-features { padding: 18px 0 8px; }
.dl-phone.dl-phone-solo { position: relative; right: auto; bottom: auto; width: min(300px, 62%); margin: 0 auto; }
.dl-art-features .dl-chip-a { left: 0; bottom: 40px; }
.dl-art-features .dl-chip-b { right: 0; top: 30px; }
.dl-chip-b { right: 6%; top: -16px; }
@media (max-width: 600px) { .dl-chip-float { font-size: 12.5px; padding: 6px 11px; } .dl-chip-a { left: 0; bottom: 4px; } .dl-chip-b { right: 0; } }

.dl-art-switch .dl-window { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
.dl-art-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; font-size: 15px; color: var(--dl-text-2); }
.dl-art-legend span { display: inline-flex; gap: 8px; align-items: center; }
.dl-art-legend .dl-icon { color: var(--dl-accent); }
@media (max-width: 900px) { .dl-art-switch .dl-window { transform: none; } }

/* Security: rings around a chat */
.dl-art-shield { display: flex; justify-content: center; }
.dl-ring { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--dl-accent) 55%, transparent); }
.dl-ring-3 { width: min(100%, 440px); background: radial-gradient(circle, transparent 58%, var(--dl-glow)); }
.dl-ring-2 { width: 74%; background: color-mix(in srgb, var(--dl-accent) 7%, transparent); }
.dl-ring-1 { width: 64%; background: color-mix(in srgb, var(--dl-accent) 14%, var(--dl-bg)); border-style: solid; }
.dl-ring-core { display: flex; align-items: center; justify-content: center; width: 36%; aspect-ratio: 1; border-radius: 28%; background: var(--dl-accent); color: var(--dl-on-accent); box-shadow: var(--dl-shadow); }
.dl-ring-core .dl-icon { width: 46%; height: 46%; }
.dl-ring-label { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--dl-chip-bg); color: var(--dl-chip-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dl-ring-1 > .dl-ring-label { top: 9%; }

/* Organizations: the firm's boundary */
.dl-art-firm { display: grid; gap: 14px; }
.dl-firm-box { position: relative; padding: 40px 20px 26px; border: 2px dashed color-mix(in srgb, var(--dl-accent) 55%, transparent); border-radius: 24px; background: color-mix(in srgb, var(--dl-accent) 6%, transparent); }
.dl-firm-label { position: absolute; top: -15px; left: 20px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--dl-bg); border: 1px solid var(--dl-line); color: var(--dl-accent); font-size: 13.5px; font-weight: 700; }
.dl-firm-devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dl-node { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.4; border-radius: 14px; background: var(--dl-raised); border: 1px solid var(--dl-line); color: var(--dl-accent); }
.dl-node .dl-icon { width: 34px; height: 34px; }
.dl-firm-policy { position: absolute; right: -8px; bottom: -16px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--dl-accent); color: var(--dl-on-accent); font-size: 14px; font-weight: 700; box-shadow: var(--dl-shadow); }
.dl-firm-out { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-left: 20px; }
.dl-firm-arrow { color: var(--dl-accent); line-height: 0; }
.dl-firm-reg { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--dl-raised); border: 1px solid var(--dl-line); font-size: 14px; font-weight: 600; box-shadow: var(--dl-shadow); }
.dl-firm-reg .dl-icon { color: var(--dl-accent); }

/* Pricing: two tickets */
.dl-art-prices { display: grid; gap: 18px; max-width: 440px; margin-left: auto; }
.dl-ticket { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--dl-raised); border: 1px solid var(--dl-line); box-shadow: var(--dl-shadow); }
.dl-ticket-icon { grid-row: 1 / 4; align-self: center; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--dl-chip-bg); color: var(--dl-chip-text); }
.dl-ticket-k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dl-accent); }
.dl-ticket-v { font-family: var(--dl-serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.dl-ticket-s { font-size: 14.5px; color: var(--dl-text-2); }
.dl-ticket-accent { transform: translateX(-28px) rotate(-1.5deg); background: var(--dl-accent); color: var(--dl-on-accent); border-color: transparent; }
.dl-ticket-accent .dl-ticket-k, .dl-ticket-accent .dl-ticket-s { color: var(--dl-on-accent); opacity: 0.88; }
.dl-ticket-accent .dl-ticket-icon { background: color-mix(in srgb, var(--dl-on-accent) 18%, transparent); color: var(--dl-on-accent); }
@media (max-width: 900px) { .dl-art-prices { margin: 0; } .dl-ticket-accent { transform: none; } }

/* Download and support: three tiles */
.dl-art-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 18px; }
.dl-platform { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 0.85; padding: 12px; border-radius: 20px; background: var(--dl-raised); border: 1px solid var(--dl-line); box-shadow: var(--dl-shadow); color: var(--dl-accent); text-align: center; }
.dl-platform .dl-icon { width: 44px; height: 44px; }
.dl-platform b { color: var(--dl-text); font-size: 15px; font-weight: 700; line-height: 1.3; }
.dl-platform:nth-child(2) { transform: translateY(-18px); background: var(--dl-accent); color: var(--dl-on-accent); border-color: transparent; }
.dl-platform:nth-child(2) b { color: var(--dl-on-accent); }

/* Accent band */
.dl-band { background: var(--dl-accent); color: var(--dl-on-accent); padding-top: clamp(36px, 5vw, 56px) !important; padding-bottom: clamp(36px, 5vw, 56px) !important; }
.dl-band-item { gap: 8px !important; }
.dl-band .elementor-heading-title, body .dl-band .elementor-widget-text-editor p { color: var(--dl-on-accent) !important; }
.dl-band .dl-h3 .elementor-heading-title { font-size: 19px; }
.dl-band p { font-size: 15.5px; opacity: 0.9; }
.dl-band .dl-icon { color: var(--dl-on-accent); }

/* Accent section (call to action) */
.dl-tone-accent { background: linear-gradient(135deg, var(--dl-accent), color-mix(in srgb, var(--dl-accent) 68%, var(--dl-text))); }
.dl-tone-accent .elementor-heading-title, body .dl-tone-accent .elementor-widget-text-editor p { color: var(--dl-on-accent) !important; }
.dl-tone-accent .dl-btn-primary .elementor-button { background: var(--dl-on-accent); color: var(--dl-accent); border-color: var(--dl-on-accent); }
.dl-tone-accent .dl-btn-secondary .elementor-button { color: var(--dl-on-accent); border-color: var(--dl-on-accent); }
.dl-tone-accent .dl-btn .elementor-button:hover { background: var(--dl-text); color: var(--dl-bg); border-color: var(--dl-text); }

/* Diagrams */
.dl-diagram-wrap { width: 100%; }
.dl-dg { display: grid; gap: 20px; }
body .dl-dg p { margin: 0; }
.dl-routes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@media (max-width: 900px) { .dl-routes { grid-template-columns: minmax(0, 1fr); } }
.dl-lane { padding: 22px; border-radius: var(--dl-radius); background: var(--dl-raised); border: 1px solid var(--dl-line); }
.dl-lane-conf { background: linear-gradient(180deg, var(--dl-accent-soft), var(--dl-raised)); }
body .dl-dg .dl-lane-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--dl-accent); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
body .dl-dg .dl-lane-foot { margin-top: 16px; color: var(--dl-text-2); font-size: 15px; }
.dl-flow, .dl-dev-row { display: flex; align-items: stretch; }
.dl-dnode { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 14px; background: var(--dl-bg); border: 1px solid var(--dl-line); text-align: center; }
.dl-dnode-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--dl-chip-bg); color: var(--dl-chip-text); }
.dl-dnode-t { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dl-dnode-s { font-size: 13.5px; line-height: 1.35; color: var(--dl-text-2); }
.dl-dlink { position: relative; flex: 0 0 88px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11.5px; line-height: 1.25; color: var(--dl-text-2); }
.dl-dlink::before { content: ""; position: absolute; left: 4px; right: 6px; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--dl-accent) 65%, transparent); }
.dl-dlink::after { content: ""; position: absolute; right: 0; top: calc(50% - 5px); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--dl-accent); }
.dl-dlink-both::after { display: none; }
.dl-dlink span { position: relative; z-index: 1; max-width: 80px; padding: 2px 4px; border-radius: 6px; background: var(--dl-raised); }
.dl-devices { justify-items: center; }
.dl-dev-row { width: 100%; max-width: 900px; }
.dl-dev-router { position: relative; width: 100%; max-width: 560px; padding-top: 30px; }
.dl-dev-router::before { content: ""; position: absolute; top: 0; left: 50%; height: 30px; border-left: 2px dotted var(--dl-text-2); }
.dl-dnode-wide { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; text-align: left; align-items: center; }
.dl-dnode-wide .dl-dnode-icon { grid-row: 1 / 3; }
@media (max-width: 640px) {
  .dl-flow, .dl-dev-row { flex-direction: column; }
  .dl-dlink { flex-basis: 54px; }
  .dl-dlink::before { left: 50%; right: auto; top: 4px; bottom: 8px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--dl-accent) 65%, transparent); }
  .dl-dlink::after { right: auto; left: calc(50% - 5px); top: auto; bottom: 0; border: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--dl-accent); }
  .dl-dlink span { max-width: none; }
}
.dl-anon { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.dl-anon-step { padding: 16px 18px; border-radius: 14px; background: var(--dl-raised); border: 1px solid var(--dl-line); }
.dl-anon-sent { background: var(--dl-accent-soft); border-color: color-mix(in srgb, var(--dl-accent) 35%, var(--dl-line)); }
.dl-anon-k { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--dl-accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
body .dl-anon p { font-family: var(--dl-serif); font-size: 18px; line-height: 1.45; }
.dl-anon mark { padding: 0 4px; border-radius: 6px; background: var(--dl-chip-bg); color: var(--dl-chip-text); }
.dl-anon-sent mark { font-family: ui-monospace, Consolas, monospace; font-size: 0.82em; }
.dl-anon-arrow { display: flex; align-items: center; justify-content: center; color: var(--dl-accent); }
@media (max-width: 900px) { .dl-anon { grid-template-columns: minmax(0, 1fr); } .dl-anon-arrow { transform: rotate(90deg); } }
body .elementor-widget-text-editor .dl-diagram-note { margin-top: 12px; font-size: 14px; color: var(--dl-text-2); }

/* Comparison table */
.dl-compare-table { width: 100%; }
.dl-table-wrap { overflow-x: auto; border-radius: var(--dl-radius); background: var(--dl-raised); border: 1px solid var(--dl-line); box-shadow: var(--dl-shadow); }
.dl-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.dl-table th, .dl-table td { padding: 16px 20px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--dl-line); }
.dl-table tbody tr:last-child > * { border-bottom: 0; }
.dl-table thead th { background: var(--dl-surface); font-size: 15px; font-weight: 700; white-space: nowrap; }
.dl-table thead th .dl-icon { margin-right: 8px; color: var(--dl-accent); }
.dl-table tbody th { width: 26%; color: var(--dl-text-2); font-weight: 600; }
.dl-table td:nth-child(2) { background: var(--dl-accent-soft); }
@media (max-width: 640px) { .dl-table { font-size: 14.5px; } .dl-table th, .dl-table td { padding: 12px; } }

/* Screenshots */
.dl-shots-wrap { width: 100%; }
.dl-shotgrid { display: grid; gap: 24px; grid-template-columns: repeat(var(--dl-shot-cols, 3), minmax(0, 1fr)); align-items: start; }
.dl-shotgrid-2 { --dl-shot-cols: 2; }
@media (max-width: 760px) { .dl-shotgrid { --dl-shot-cols: 1; } }
.dl-figure { margin: 0; }
.dl-figure-frame { overflow: hidden; border-radius: 14px; background: var(--dl-screen); border: 1px solid var(--dl-line); box-shadow: var(--dl-shadow); }
.dl-figure figcaption { margin-top: 10px; font-size: 14.5px; color: var(--dl-text-2); }

/* Motion: only when the reader allows it. No scroll-triggered reveals, so
   content is never hidden before it is seen. */
@media (prefers-reduced-motion: no-preference) {
  .dl-hero-words, .dl-hero-art { animation: dl-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .dl-hero-art { animation-delay: 0.12s; }
  .dl-chip-float { animation: dl-float 6s ease-in-out 0.8s infinite; }
  .dl-chip-b { animation-delay: 3.8s; }
  .dl-ring-core { animation: dl-pulse 3.2s ease-in-out infinite; }
  /* Cards, pictures and diagram boxes don't move on hover: they are not
     links, and must not look clickable (SITE-2). Only buttons and links react. */
  .dl-btn .elementor-button { transition: background 0.15s, color 0.15s, transform 0.15s; }
  .dl-btn .elementor-button:hover { transform: translateY(-1px); }
}
@keyframes dl-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes dl-float { 50% { transform: translateY(-6px); } }
@keyframes dl-pulse { 50% { box-shadow: var(--dl-shadow), 0 0 0 14px var(--dl-glow); } }
