/* /database-as-a-service/ page. Builds on compare.css. */
.cmp.dbaas { --brand: #7790de; }
.dbaas .eyebrow { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.dbaas h1 .accent { color: var(--brand); }
.dbaas .section-lead { max-width: 760px; }

/* Hero logo strip */
.dbaas .strip { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.dbaas .strip p { font-size: 14px; color: var(--dim); margin: 0 0 16px; }
.dbaas .strip p strong { color: #fff; }
.dbaas .strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dbaas .strip li { margin: 0; }
.dbaas .strip a { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #12122e; color: #dde2e8; font-size: 14px; text-decoration: none; }
.dbaas .strip a:hover { border-color: var(--brand); color: #fff; }

.dbaas .logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.dbaas .logo img { width: 70%; height: 70%; object-fit: contain; }

/* Technology catalog */
.dbaas .tiles { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dbaas .tile { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #12122e; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.5; transition: border-color .15s, transform .15s; }
.dbaas a.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.dbaas .tile .logo { width: 44px; height: 44px; border-radius: 10px; }
.dbaas .tile strong { display: block; font-size: 16px; margin-bottom: 2px; }
.dbaas .tile .kind { display: block; color: var(--brand); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.dbaas .tile .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 2px; color: #0a0a1f; background: var(--brand); }
.dbaas .tile.own { grid-column: 1 / -1; align-items: center; border-style: dashed; background: none; }
.dbaas .tile.own .logo { background: none; border: 1px dashed #3a3a6a; color: var(--brand); font-size: 22px; font-weight: 300; }

/* Screenshot gallery */
.dbaas .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; margin-top: 8px; }

/* Three ways */
.dbaas .ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.dbaas .ways > div { background: #12122e; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px; padding: 22px 22px 8px; font-size: 15px; line-height: 1.6; }
.dbaas .ways .eyebrow { font-size: 11px; margin-bottom: 6px; }
.dbaas .ways h3 { margin: 0 0 10px; font-size: 18px; }
.dbaas .ways ul { padding-left: 18px; }
.dbaas .ways li { margin-bottom: 4px; }
.dbaas .split { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; margin-top: 36px; align-items: center; }
.dbaas .split pre { margin: 0; font-size: 13px; }
.dbaas .yaml-c { color: #6f7790; }
.dbaas .yaml-k { color: #7790de; }
.dbaas .yaml-v { color: var(--sol); }

/* Cost table */
.dbaas table.costs th, .dbaas table.costs td { width: auto; }
.dbaas table.costs th:first-child, .dbaas table.costs td:first-child { width: 24%; }
.dbaas table.costs td:not(:first-child), .dbaas table.costs th:not(:first-child) { text-align: right; white-space: nowrap; }
.dbaas table.costs td.save { color: var(--sol); font-weight: 700; }

/* Architecture layers */
.dbaas .stack { display: grid; gap: 10px; margin-top: 8px; }
.dbaas .layer { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #12122e; }
.dbaas .layer > span { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dbaas .layer.core { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #12122e); }
.dbaas .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dbaas .chips li { margin: 0; padding: 5px 12px; border: 1px solid #3a3a6a; border-radius: 6px; font-size: 14px; color: #dde2e8; line-height: 1.4; }
.dbaas .chips li small { display: block; color: var(--dim); font-size: 12px; }
.dbaas .chips li.ent { border-color: var(--brand); }
.dbaas .chips li.own { border-style: dashed; color: var(--dim); }
.dbaas .legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--dim); margin-top: 12px; }
.dbaas .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #3a3a6a; vertical-align: -1px; margin-right: 6px; }
.dbaas .legend i.ent { border-color: var(--brand); }

/* Tiers table */
.dbaas table.tiers th:not(:first-child), .dbaas table.tiers td:not(:first-child) { width: 20%; text-align: center; }
.dbaas table.tiers th:first-child, .dbaas table.tiers td:first-child { width: 60%; font-weight: 500; }
.dbaas table.tiers .yes { color: var(--sol); font-weight: 700; }
.dbaas table.tiers .no { color: #4a5068; }

.dbaas .closing { margin-top: 96px; padding: 48px 40px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, #12122e 0%, #161641 100%); text-align: center; }
.dbaas .closing h2 { margin-top: 0; font-size: 32px; }
.dbaas .closing p { max-width: 620px; margin-left: auto; margin-right: auto; }
.dbaas .closing .buttons { justify-content: center; }
.dbaas .closing .note { margin-top: 24px; }

@media (max-width: 900px) {
  .dbaas .ways, .dbaas .split, .dbaas .gallery { grid-template-columns: 1fr; }
  .dbaas .layer { grid-template-columns: 1fr; gap: 10px; }
  .dbaas .closing { padding: 36px 22px; }
}
.dbaas table.tiers th small { color: var(--dim); font-size: 12px; font-weight: 500; }
.dbaas .strip li.more a { padding: 8px 14px; border-style: dashed; background: none; color: var(--dim); }
.dbaas .strip li.more a:hover { color: #fff; }
