/* ==========================================================================
   trust.css — Security, legal, and solutions hub pages.
   These pages use the homepage system (css/home.css, `main.hp`).
   This file adds only the parts that the homepage does not have.
   ========================================================================== */

.hp .page-hero { position: relative; isolation: isolate; padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.hp .page-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; background: radial-gradient(50% 70% at 85% 0%, rgba(141, 185, 255, 0.5), transparent 70%), radial-gradient(40% 60% at 10% 10%, rgba(183, 169, 255, 0.3), transparent 70%); }
.hp .page-hero h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.96; letter-spacing: -0.03em; max-width: 14ch; }
.hp .page-hero p { margin-top: 28px; max-width: 52ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: var(--ink-soft); }
.hp .page-hero .updated { margin-top: 20px; font-size: 14px; color: var(--ink-mute); }

/* ----- Compliance cards ----- */

.hp .badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp .badges li { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.hp .badges .status { align-self: flex-start; margin-bottom: 28px; padding: 5px 12px; border-radius: 999px; background: #E3F6EC; color: #0B6B34; font-size: 13px; font-weight: 600; }
.hp .badges .status.planned { background: rgba(15, 22, 56, 0.07); color: var(--ink-soft); }
.hp .badges b { font: 600 clamp(24px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.hp .badges span:last-child { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }

/* ----- AWS foundation panel ----- */

.hp .foundation { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 96px); padding: clamp(28px, 5vw, 72px); border-radius: var(--radius-panel); background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.hp .foundation h2 { color: #fff; font-size: clamp(30px, 3.6vw, 52px); }
.hp .foundation p + p { margin-top: 16px; }
.hp .foundation .link { margin-top: 24px; margin-right: 24px; color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.hp .foundation ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hp .foundation li { padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); font-size: 14.5px; color: #fff; }

/* ----- Data flow ----- */

.hp .flow { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr); gap: 0; align-items: stretch; padding: clamp(20px, 3vw, 40px); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-card); }
.hp .flow-col { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hp .flow-col > b { font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.hp .flow-core { position: relative; margin-inline: clamp(28px, 4vw, 64px); padding: clamp(18px, 2.4vw, 32px); border-radius: 24px; background: radial-gradient(90% 80% at 85% 10%, rgba(141, 185, 255, 0.45), transparent 60%), var(--blue-tint); }
/* Connectors between the three columns. Each one is an encrypted link. */
.hp .flow-core::before, .hp .flow-core::after { content: "TLS"; position: absolute; top: 50%; width: clamp(28px, 4vw, 64px); border-top: 2px solid var(--blue); font-size: 11px; font-weight: 600; line-height: 1.8; text-align: center; color: var(--blue-deep); }
.hp .flow-core::before { right: 100%; }
.hp .flow-core::after { left: 100%; }
.hp .node { padding: 14px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.3; color: var(--ink); }
.hp .flow-core .node { background: rgba(255, 255, 255, 0.86); box-shadow: inset 0 0 0 1px #fff, 0 8px 20px -14px rgba(43, 54, 163, 0.5); }
.hp .node small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-mute); }
.hp .flow-data { margin-top: 16px; }

/* ----- Controls ----- */

.hp .controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.hp .controls > div { padding-block: 28px; border-top: 1px solid var(--line-strong); }
.hp .controls h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.hp .controls li { position: relative; margin-top: 12px; padding-left: 22px; font-size: 16px; color: var(--ink-soft); }
.hp .controls li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ----- Tables: documents, subprocessors ----- */

.hp .doc-table td:first-child, .hp .doc-table tbody th { color: var(--ink); font-weight: 500; width: 30%; }
.hp .pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-size: 13px; font-weight: 600; white-space: nowrap; }
.hp .pill.nda { background: rgba(15, 22, 56, 0.07); color: var(--ink-soft); }
.hp .doc-table td:has(.pill) { width: 1%; }

.hp .pill { font-style: normal; }
.hp .controls li .pill { margin-left: 6px; padding: 2px 8px; font-size: 11.5px; vertical-align: 1px; }
.hp .sec-head p .pill { padding: 2px 8px; font-size: 12px; vertical-align: 2px; }
.hp .matrix tbody th { width: 22%; }
.hp .matrix td:last-child { width: 20%; color: var(--ink); font-weight: 500; }
.hp .matrix code { padding: 2px 6px; border-radius: 6px; background: var(--blue-tint); font-size: 0.88em; color: var(--blue-deep); }
/* Document library: group rows, and the last column holds the access control. */
.hp .library tr.group th { width: auto; padding: 40px 0 12px; border-bottom-color: var(--line-strong); font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hp .library tbody tr.group:first-child th { padding-top: 12px; }
.hp .library td:last-child { width: 1%; white-space: nowrap; }
.hp .btn[data-doc-request] { text-decoration: none; }
.hp .note [data-doc-request] { font-size: inherit; }
.hp .days.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp .days.three li:last-child { border-top-style: solid; border-top-color: var(--blue); }
.hp .foundation.light { background: var(--blue-tint); color: var(--ink-soft); }
.hp .foundation.light h2 { color: var(--ink); }
.hp .foundation.light li { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(255, 255, 255, 0.6); }
.hp .foundation.light .link { color: var(--blue); text-decoration-color: rgba(61, 75, 202, 0.3); }

/* ----- Trust row (homepage) and contact strip ----- */

.hp .trust { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: center; padding-block: clamp(28px, 3vw, 40px); border-block: 1px solid var(--line-strong); }
.hp .trust p { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hp .trust .link { display: block; width: fit-content; margin-top: 10px; font: 500 16px/1.4 var(--text); letter-spacing: 0; }
.hp .trust ul { display: flex; flex-wrap: wrap; gap: 10px; }
.hp .trust li { display: flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15.5px; font-weight: 500; color: var(--ink); }
.hp .trust li::before { content: ""; width: 12px; height: 7px; margin-top: -4px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* ----- Legal prose ----- */

.hp .prose { max-width: 72ch; }
.hp .prose h2 { margin-top: 56px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.hp .prose h2:first-child { margin-top: 0; }
.hp .prose p, .hp .prose ul, .hp .prose ol { margin-top: 16px; color: var(--ink-soft); }
.hp .prose ul { list-style: disc; padding-left: 22px; }
.hp .prose ol { list-style: decimal; padding-left: 22px; }
.hp .prose li { margin-top: 8px; }
.hp .prose strong { color: var(--ink); font-weight: 600; }
.hp .draft-banner { margin-bottom: 40px; padding: 16px 20px; border-radius: 14px; background: #FFF3DC; color: #7A4B00; font-weight: 500; }

@media (max-width: 900px) {
  .hp .badges, .hp .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp .foundation, .hp .trust { grid-template-columns: minmax(0, 1fr); }
  .hp .days.three { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hp .flow { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hp .flow-core { margin-inline: 0; }
  /* Stacked layout: the connectors point up and down. */
  .hp .flow-core::before, .hp .flow-core::after { left: 50%; top: auto; width: 0; height: 44px; border-top: 0; border-left: 2px solid var(--blue); padding-left: 8px; line-height: 44px; text-align: left; }
  .hp .flow-core::before { bottom: 100%; right: auto; }
  .hp .flow-core::after { top: 100%; }
}
@media (max-width: 560px) {
  .hp .badges, .hp .controls { grid-template-columns: minmax(0, 1fr); }
}
