/* ============================================================
   Minded — /security
   Deliberately plain: white page, hairline cards, no overline
   labels. Everything here is scoped `sec-` / `act-` / `qr-` so
   it can never leak into the landing or pricing pages.
   ============================================================ */

/* ---- hero ------------------------------------------------- */
.sec-hero { padding: clamp(64px, 10vh, 116px) 0 clamp(16px, 3vh, 36px); text-align: center; }
/* matches `.hero h1` in site-v3.css: Libre Baskerville 400 at #464545 — the
   site headline voice. Don't reintroduce a sans hero here. */
.sec-hero h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.14; margin: 0; font-size: clamp(34px, 4.6vw, 58px); color: #464545; text-wrap: balance; }
.sec-hero .sec-sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--slate-600); margin: 18px auto 0; max-width: 720px; text-wrap: balance; }
.sec-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* the compliance marks use the site's existing .trust-stack, the same
   treatment as the footer and the DS login screen. Its #B6B6B6 is a
   site-wide convention, inherited deliberately rather than re-styled here. */
.sec-trust { justify-content: center; gap: 34px; margin-top: 34px; }

/* ---- shared section furniture ----------------------------- */
/* One rhythm for the whole page: every section owns the same vertical band,
   and the tinted ones keep it so the tint reads as a block, not a squeeze. */
.sec-sec { padding: clamp(68px, 9vh, 116px) 0; }
.sec-alt { background: var(--surface-muted); }
/* the section titles here are full sentences, not labels; the shared 680px
   head throws them onto three lines */
.sec-sec .section-head.center { max-width: 900px; }
.sec-sec .section-head.center .lead { max-width: 620px; }

/* Two plain sections in a row share one band between them. A tinted section
   always keeps its own, on both sides, or its fill clips the copy. Both
   selectors carry the same weight on purpose, so neither can out-specify the
   other by accident. */
.sec-sec:not(.sec-alt) + .sec-sec:not(.sec-alt) { padding-top: 0; }
/* the FAQ is a shared component; it ships a 26px bottom that reads as a
   collapse against this page's footer */
.faqs { padding-bottom: clamp(68px, 9vh, 116px); }

/* ---- activity monitoring screen (DS: Automations · Recent runs) ---- */
.act-win { margin: 0 auto; max-width: 1020px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(16,24,40,.10); overflow: hidden; }
/* page title bar, matching the DS standard page (ui_kits/mindly-app
   StandardPage.jsx `AutomationsTopBar`): 64px tall, 28px gutter, 12px gap,
   19px slate icon, 17px/600 title, action on the right. No bottom rule; the
   DS lets the body's own first row do that work. */
.act-top { display: flex; align-items: center; gap: 12px; padding: 0 28px; height: 64px; background: #fff; flex: none; }
.act-top > svg { width: 19px; height: 19px; color: var(--slate-600); flex: none; }
.act-top .act-t { font-family: var(--font-serif); font-size: 19px; font-weight: 400; letter-spacing: -0.012em; color: var(--ink-900); }
.act-act { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-button); font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink-900); cursor: pointer; white-space: nowrap; }
.act-act svg { width: 15px; height: 15px; color: var(--slate-500); flex: none; }

.act-body { padding: 14px 28px 26px; background: #fff; }

/* runs-per-day chart — same bar idiom as the site's other charts (flex row of
   <i> sized by a --h custom property), coral cap on the days a run was held */
.act-chart { margin-bottom: 22px; }
.act-ch-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.act-ch-t { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.act-ch-legend { display: flex; align-items: center; gap: 16px; }
.act-ch-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate-600); white-space: nowrap; }
.act-ch-legend .lg i { width: 9px; height: 9px; border-radius: 2px; background: color-mix(in srgb, var(--success-500) 80%, var(--success-800)); }
.act-ch-legend .lg.hot i { background: var(--danger-500); }
.act-bars { display: flex; align-items: flex-end; gap: 5px; height: 72px; }
.act-bars { position: relative; }
/* baseline, so the bars sit on something instead of floating */
.act-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
/* each day is one stacked column: the green base is what ran clean, the red
   cap on top is the share that stopped for approval.
   success-500 measures 2.99:1 on white, a hair under the 3:1 data minimum, so
   the green is deepened slightly to clear it. */
.act-bars i { flex: 1; height: var(--h, 40%); min-width: 4px; border-radius: 3px 3px 0 0; overflow: hidden; background: color-mix(in srgb, var(--success-500) 80%, var(--success-800)); display: flex; flex-direction: column; justify-content: flex-start; }
.act-bars i b { display: block; width: 100%; height: var(--r, 0%); flex: none; background: var(--danger-500); }
.act-ch-axis { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11px; color: var(--slate-600); font-variant-numeric: tabular-nums; }
.act-filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.act-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-button); font-size: 13px; font-weight: 500; color: var(--ink-900); white-space: nowrap; }
.act-pill svg { width: 15px; height: 15px; color: var(--slate-500); flex: none; }
.act-pill.dash { border-style: dashed; box-shadow: none; color: var(--slate-600); background: transparent; }
.act-pill.grow { flex: 0 1 210px; min-width: 150px; color: var(--slate-500); font-weight: 400; }

.act-scroll { overflow-x: auto; border-radius: 15px; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
table.act-tbl { width: 100%; border-collapse: collapse; min-width: 780px; background: #fff; }
.act-tbl th { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-muted); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-600); white-space: nowrap; }
.act-tbl td { padding: 13px 16px; font-size: 14px; color: var(--ink-900); vertical-align: middle; border-top: 1px solid var(--line); }
.act-tbl tbody tr:first-child td { border-top: none; }
.act-tbl .r { text-align: right; }
.act-sess { font-weight: 500; display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-who { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.act-who .ava { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; background: #E7EBEE; flex: none; display: block; }
.act-who span { font-size: 13px; font-weight: 500; }
.act-when { color: var(--slate-600); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.act-scope { font-family: var(--font-mono); font-size: 12px; color: var(--slate-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
.act-open { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--slate-500); border: 1px solid transparent; background: transparent; }
.act-open svg { width: 16px; height: 16px; }

/* status tags — DS `.ds-tag`: no fill, the border is currentColor at 30% and
   the tokened red / green lives in the text and the icon */
.ds-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-weight: 500; font-size: 12.5px; line-height: 1; padding: 5px 11px 5px 9px; border-radius: var(--r-control); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); white-space: nowrap; }
.ds-tag svg { width: 13px; height: 13px; flex: none; }
.ds-tag__dot { width: 7px; height: 7px; flex: none; border-radius: 999px; background: currentColor; }
.ds-tag__spin { width: 12px; height: 12px; flex: none; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--slate-500) 28%, transparent); border-top-color: var(--slate-600); animation: dsTagSpin .7s linear infinite; }
@keyframes dsTagSpin { to { transform: rotate(360deg); } }
/* Running shimmers like the DS thinking label: the same gradient-text sweep
   (site-v3.css `.think-shimmer`, reusing its `shimmer` keyframes). The border
   is pinned because the clip turns `currentColor` transparent. */
.ds-tag--running { color: var(--fg2); border-color: color-mix(in srgb, var(--fg2) 30%, transparent); }
.ds-tag--running .lb {
  background: linear-gradient(100deg, var(--slate-500) 35%, var(--ink-900) 50%, var(--slate-500) 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 1.7s linear infinite;
}
.ds-tag--scheduled { color: var(--fg2); }
.ds-tag--scheduled svg { color: var(--fg3); }
.ds-tag--completed { color: var(--success-800); }
.ds-tag--completed svg { color: var(--success-500); }
.ds-tag--failed    { color: var(--danger-600); }
.ds-tag--failed svg { color: var(--danger-500); }
.ds-tag--review    { color: var(--accent-blue); }

/* app chips — DS `.ds-appchip` */
.ds-appchip { display: inline-flex; align-items: center; vertical-align: middle; gap: 5px; background: var(--surface); box-sizing: border-box; font-family: var(--font-sans); font-weight: 500; border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 5px 7px; font-size: 13px; line-height: 1; box-shadow: var(--shadow-button); white-space: nowrap; color: var(--ink-900); }
.ds-appchip__ic { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; flex: none; }
.ds-appchip__ic img { width: 16px; height: 16px; display: block; }

.act-note { margin: 22px auto 0; max-width: 1020px; font-size: 13.5px; color: var(--slate-600); text-align: center; }

/* ---- quality review --------------------------------------- */
.qr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.qr-list { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.qr-list li { display: flex; gap: 12px; }
.qr-list .ic { display: inline-flex; flex: none; color: var(--slate-500); padding-top: 2px; }
.qr-list .ic svg { width: 18px; height: 18px; }
.qr-list b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 17px; line-height: 1.3; color: var(--ink-900); margin-bottom: 5px; }
.qr-list p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--slate-600); }

/* the DS approval widget, lifted from preview/questions.html */
.qr-w { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(16,24,40,.11); padding: 20px 0 16px; }
.qr-q { margin: 0 20px 14px; font-size: 19px; font-weight: 600; line-height: 32px; color: var(--ink-900); letter-spacing: -0.01em; }
.qr-chip { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: #fff; box-shadow: var(--shadow-button); font-weight: 500; font-size: 15px; line-height: 22px; color: var(--ink-900); }
.qr-chip img { width: 16px; height: 16px; }
/* the chip and its "?" are one unit — a lone "?" on the next line looks broken */
.qr-nb { white-space: nowrap; }
.qr-card { margin: 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px; display: flex; flex-direction: column; gap: 11px; }
.qr-chead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qr-ctitle { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.qr-ctitle img { width: 21px; height: 21px; }
.qr-chead > svg { width: 19px; height: 19px; color: var(--ink-600); flex: none; }
.qr-pairs { display: flex; flex-direction: column; gap: 9px; }
.qr-lab { font-family: var(--font-ui); font-weight: 600; font-size: 11px; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-600); }
.qr-val { font-size: 12.5px; line-height: 1.5; color: var(--ink-900); }
.qr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 20px 0; }
.qr-right { display: flex; gap: 8px; }
.qr-b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 12px; border: 1px solid rgba(0,0,0,.07); background: #fff; box-shadow: var(--shadow-button); font-size: 14.5px; font-weight: 500; color: var(--ink-900); white-space: nowrap; }
.qr-b .kc { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-500); }
.qr-b.on { background: var(--ink-900); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(29,38,48,.16); }
.qr-b.on .kc { color: rgba(255,255,255,.6); }
/* block, not flex: when the note wraps to two lines the lock should ride the
   first line with the text, not float beside the whole paragraph */
.qr-priv { margin: 16px 20px 0; font-size: 13px; font-weight: 500; color: var(--slate-600); text-align: center; }
.qr-priv svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* ---- pillars ---------------------------------------------- */
.sec-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.sec-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-elevation); }
/* bare icon, no tile: the card's own border is the only container it needs */
.sec-card .ic { display: inline-flex; color: var(--slate-500); margin-bottom: 16px; }
.sec-card .ic svg { width: 20px; height: 20px; }
.sec-card h3 { margin: 0 0 9px; font-family: var(--font-serif); font-weight: 400; font-size: 19px; line-height: 1.25; letter-spacing: -0.012em; color: var(--ink-900); }
.sec-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--slate-600); }

/* ---- under the hood --------------------------------------- */
.sec-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.sec-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.sec-card ul li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--slate-600); }
.sec-card ul li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 5px; height: 5px; border-radius: 999px; background: var(--slate-300); }

/* ---- never list ------------------------------------------- */
.sec-never { margin: 40px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: 880px; }
.sec-never li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--ink-800); padding: 12px 0; border-bottom: 1px solid var(--line); }
.sec-never svg { width: 17px; height: 17px; color: var(--slate-400); flex: none; margin-top: 3px; }
.sec-never { padding: 0; }

/* ---- responsive ------------------------------------------- */
@media (max-width: 1000px) {
  .sec-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .qr-w { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .sec-grid3 { grid-template-columns: minmax(0, 1fr); }
  .sec-never { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 700px) {
  .sec-hero { padding-top: clamp(40px, 7vh, 64px); }
  .sec-cta { flex-wrap: nowrap; gap: 10px; }
  .sec-cta .btn { padding: 9px 16px; }
  .sec-grid4 { grid-template-columns: minmax(0, 1fr); }
  .act-win { margin-left: -14px; margin-right: -14px; border-radius: 14px; }
  /* the product shot has to land inside half a fold on a phone, so the panel
     runs compact and shows four rows; the rest stay in the DOM for desktop */
  .act-top { padding: 0 14px; height: 46px; }
  .act-top .act-t { font-size: 16px; }
  .act-act { height: 30px; padding: 0 11px; font-size: 12px; }
  .act-body { padding: 6px 14px 14px; }
  .act-chart { margin-bottom: 14px; }
  .act-ch-head { margin-bottom: 8px; }
  .act-ch-t { font-size: 12px; }
  .act-ch-legend .lg { font-size: 11px; }
  .act-bars { height: 38px; }
  .act-ch-axis { margin-top: 6px; font-size: 10px; }
  .act-filters { margin-bottom: 12px; }
  .act-pill { height: 30px; font-size: 12px; padding: 0 10px; }
  .act-tbl th { padding: 8px 10px; font-size: 10px; }
  .act-tbl td { padding: 9px 10px; font-size: 13px; }
  .act-tbl tbody tr:nth-child(n+4) { display: none; }
  .act-who .ava { width: 22px; height: 22px; }
  .ds-appchip { padding: 4px 6px; font-size: 12px; }
  .ds-tag { font-size: 11.5px; padding: 4px 9px 4px 8px; }
  .act-note { margin-top: 16px; font-size: 12.5px; }
  /* at the compact type sizes the legend fits beside the title again */
  .act-ch-head { gap: 10px; }
  .act-bars { height: 54px; gap: 3px; }
  .act-bars i { min-width: 0; border-radius: 2px 2px 1px 1px; }
  .act-ch-legend { gap: 12px; }
  /* the filter row is chrome, not content — it costs a line-wrap on a phone */
  .act-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .act-filters::-webkit-scrollbar { display: none; }
  .act-pill.grow { display: none; }
  /* the tables keep their desktop layout on a phone and scroll sideways;
     stacking them into cards made them read as a different component */
  .act-scroll { -webkit-overflow-scrolling: touch; }
  .qr-q { font-size: 17px; line-height: 30px; }
  .qr-chip { font-size: 14px; }
  /* DS mobile approval card: keycaps drop (no keyboard), the two allow buttons
     share a row and Deny takes the full width beneath them */
  .qr-foot { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .qr-right { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .qr-b { height: 44px; }
  .qr-b .kc { display: none; }
  .qr-priv { font-size: 11.5px; }
}
}

/* ---- focus + motion --------------------------------------- */
/* the shared stylesheet never defines a focus ring; keyboard users on this
   page were navigating blind */
.sec-hero a:focus-visible, .sec-sec a:focus-visible, .faqs summary:focus-visible {
  outline: 2px solid var(--ink-900); outline-offset: 3px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .ds-tag__spin { animation: none; }
  .ds-tag--running .lb { animation: none; -webkit-text-fill-color: var(--fg2); color: var(--fg2); }
}
