/* Theme colors mirror the Secureframe trust center config for myDevices. */
:root {
  --primary: #0A91DC;
  --on-primary: #FFFFFF;
  --surface: #F9F9F9;
  --surface-light: #FFFFFF;
  --text: #141312;
  --muted: #5f6368;
  --divider: #DDDDDD;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 19, 18, .06), 0 4px 16px rgba(20, 19, 18, .04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--primary); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface-light);
  border-bottom: 1px solid var(--divider);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav__brand img { display: block; height: 32px; width: auto; }
.nav__links { display: flex; gap: 24px; overflow-x: auto; min-width: 0; }
.nav__links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav__links a:hover { color: var(--primary); }

/* Hero */
.hero { background: var(--surface); padding: 72px 0; border-bottom: 1px solid var(--divider); }
.hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
.hero p { margin: 12px 0 28px; font-size: 18px; color: var(--muted); }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--primary);
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(.95); }
.btn--ghost { background: transparent; color: var(--primary); }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--surface); }
.section h2 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head h2 { margin-bottom: 4px; }

.grid { display: grid; gap: 16px; }
.grid--sub { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.grid--mon { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); align-items: start; }
.grid--comp { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.card {
  background: var(--surface-light); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}

/* Subprocessors */
.sub { display: flex; flex-direction: column; gap: 8px; }
.sub__logo {
  display: block; width: 56px; height: 56px; margin-bottom: 8px; object-fit: contain;
}
.sub h3 { font-size: 17px; }
.sub p { font-size: 14px; color: var(--muted); }

/* Monitoring */
.group h3 { font-size: 17px; margin-bottom: 12px; }
.controls { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.controls li {
  position: relative; padding-left: 28px; font-size: 15px;
}
.controls li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.controls li.is-hidden { display: none; }
.more {
  margin-top: 12px; padding: 0; border: 0; background: none; color: var(--primary);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* Compliance */
.badge { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-weight: 600; }
.badge img { width: 64px; height: 64px; object-fit: contain; }

.footer { border-top: 1px solid var(--divider); padding: 24px 0; font-size: 14px; color: var(--muted); }

/* All-controls dialog */
dialog {
  width: min(720px, calc(100% - 32px)); max-height: calc(100% - 64px); padding: 0;
  border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--text);
}
dialog::backdrop { background: rgba(20, 19, 18, .5); }
.dialog__head {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; background: var(--surface-light); border-bottom: 1px solid var(--divider);
}
.dialog__head h2 { font-size: 22px; }
.dialog__close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.dialog__body { padding: 8px 24px 24px; }
.dialog__body h3 { font-size: 16px; margin: 20px 0 12px; }
.dialog__body .controls { gap: 14px; }
.dialog__body .controls strong { display: block; font-weight: 600; }
.dialog__body .controls span { display: block; font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  .nav__brand img { height: 26px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 14px; }
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .grid--mon { grid-template-columns: 1fr; }
}


/* Report a security issue */
.report { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.report h2 { margin: 0; font-size: 22px; }
.report a { font-size: 18px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.report a:hover { text-decoration: underline; }

.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--primary); text-decoration: underline; }

/* Data protection */
.grid--dp { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.dp h3 { font-size: 17px; margin-bottom: 8px; }
.dp p { font-size: 15px; color: var(--muted); }

/* FAQ: native <details> accordion, no JS needed */
.faq { border-top: 1px solid var(--divider); }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary {
  position: relative; padding: 18px 40px 18px 0; font-weight: 600; font-size: 16px;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--primary);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 40px 18px 0; color: var(--muted); }
