/*
 * /:lang/safety — «Is MacWashing safe?» (components/site/pages/SafetyPage.tsx), over site.css. Calm and plain: the
 * answer and a «Checked» card first, then reasons, what stays, the steps of a cleaning, privacy, updates, FAQ. The
 * safety green (--disk) leads; the brand cyan marks what MacWashing cleans and the steps.
 */

/* ---------- Hero: the question, the answer, the «Checked» card ---------- */

.sf-hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px);
  overflow-x: clip;
}

.sf-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -200px;
  width: 1000px;
  height: 800px;
  background: radial-gradient(closest-side, rgba(116, 222, 156, 0.13), transparent);
  pointer-events: none;
  z-index: -1;
}

.sf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.sf-hero-copy .eyebrow {
  margin-bottom: 22px;
}

.sf-title {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.sf-answer {
  margin-top: 4px;
  font-size: clamp(64px, 9vw, 116px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(100deg, #c9f5d6 0%, var(--disk) 45%, var(--junk) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.sf-hero-copy .lead {
  max-width: 560px;
  margin-top: 18px;
}

.sf-seal {
  position: relative;
  border: 1px solid var(--stroke-2);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  container: seal / inline-size;
}

.sf-seal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.sf-seal-icon {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
}

.sf-seal-icon img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.sf-seal-badge {
  position: absolute;
  right: -6px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--disk);
  color: var(--on-accent);
  box-shadow: 0 0 0 3px var(--sheet), 0 0 18px rgba(116, 222, 156, 0.5);
}

.sf-seal-badge .icon {
  width: 17px;
  height: 17px;
}

.sf-seal-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sf-seal-sub {
  color: var(--faint);
  font-size: 14px;
}

.sf-seal-rows {
  margin: 0;
  padding: 6px 24px 10px;
  list-style: none;
}

.sf-seal-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.sf-seal-rows li:last-child {
  border-bottom: 0;
}

.sf-seal-rows span {
  color: var(--muted);
}

.sf-seal-rows b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--disk);
  font-weight: 650;
  white-space: nowrap;
}

/* The card's bottom strip: the current release and its VirusTotal report */
.sf-seal-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.sf-seal-file img {
  flex: none;
  width: 40px;
  height: 40px;
}

.sf-seal-file-text {
  flex: 1;
  min-width: 0;
}

.sf-seal-file-name {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.sf-seal-file-name span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 500;
}

.sf-seal-file-sub {
  margin-top: 1px;
  color: var(--faint);
  font-size: 13px;
}

.sf-seal-vt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--disk) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--disk) 10%, transparent);
  color: var(--disk);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}

.sf-seal-vt:hover,
.sf-seal-vt:focus-visible {
  background: color-mix(in srgb, var(--disk) 18%, transparent);
}

.sf-bug,
.sf-ext {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-bug {
  width: 16px;
  height: 16px;
}

.sf-ext {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.sf-tick,
.sf-cross {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */

.sf-sec {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(16px, 2vw, 24px);
}

.sf-reasons-sec {
  padding-top: clamp(16px, 3vw, 32px);
}

.sf-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.sf-head.center {
  margin-inline: auto;
}

.sf-head .lead {
  margin-top: 14px;
}

/* Four reasons */
.sf-reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-reason {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.sf-reason-icon,
.sf-keep-icon,
.sf-note-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}

.sf-reason-icon .icon,
.sf-keep-icon .icon,
.sf-note-icon .icon {
  width: 24px;
  height: 24px;
}

.sf-reason h2 {
  margin-top: 18px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.sf-reason p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* What stays */
.sf-keeps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-keep {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.sf-keep h3 {
  font-size: 16px;
}

.sf-keep p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.sf-goes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px dashed var(--stroke-2);
  border-radius: 20px;
}

.sf-goes-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.sf-goes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-goes li {
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
  font-size: 14px;
}

/* Steps of a cleaning: numbered discs on one line */
.sf-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sf-step;
}

.sf-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc(25% - 6px);
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), color-mix(in srgb, var(--disk) 60%, transparent));
  opacity: 0.45;
}

.sf-step {
  position: relative;
  counter-increment: sf-step;
}

.sf-step-n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--bg), 0 0 22px color-mix(in srgb, var(--accent) 25%, transparent);
}

.sf-step-n::before {
  content: counter(sf-step);
}

.sf-step:last-child .sf-step-n {
  border-color: color-mix(in srgb, var(--disk) 55%, transparent);
  color: var(--disk);
}

.sf-step h3 {
  margin-top: 20px;
  font-size: 17px;
}

.sf-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Privacy: copy and «only to» on the left, «never sent» and Full Disk Access on the right */
.sf-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.sf-split-copy .lead {
  margin-top: 14px;
}

.sf-only-title {
  margin-top: 28px;
  color: var(--text);
  font-weight: 650;
}

.sf-split-copy .checks {
  margin-top: 14px;
}

.sf-split-cards {
  display: grid;
  gap: 14px;
}

.sf-never {
  padding: 24px;
  border: 1px solid var(--stroke-2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.sf-never-title {
  font-size: 17px;
  font-weight: 700;
}

.sf-never ul {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sf-never li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 15px;
}

.sf-never li:last-child {
  border-bottom: 0;
}

.sf-never .sf-cross {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--faint);
  stroke-width: 2.6;
}

.sf-note {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.sf-note h3 {
  font-size: 16px;
}

.sf-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Updates: one quiet strip */
.sf-updates {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.sf-updates h2 {
  font-size: 18px;
}

.sf-updates p {
  margin-top: 4px;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1060px) {
  .sf-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-keeps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sf-hero-grid,
  .sf-split {
    grid-template-columns: 1fr;
  }

  .sf-seal {
    max-width: 520px;
  }

  .sf-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* The line runs down the discs. */
  .sf-steps::before {
    top: 22px;
    bottom: 22px;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 60%, transparent), color-mix(in srgb, var(--disk) 60%, transparent));
  }

  .sf-step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 18px;
  }

  .sf-step-n {
    grid-row: span 2;
  }

  .sf-step h3 {
    margin-top: 10px;
  }

  .sf-step p {
    margin-top: 4px;
  }
}

@media (max-width: 600px) {
  .sf-reasons,
  .sf-keeps {
    grid-template-columns: 1fr;
  }

  .sf-seal-head,
  .sf-seal-rows,
  .sf-seal-file {
    padding-inline: 18px;
  }

  .sf-updates {
    align-items: flex-start;
  }
}

/* A narrow card (two columns on a small window, or a phone): the button gets its own full-width row. */
@container seal (max-width: 400px) {
  .sf-seal-file {
    flex-wrap: wrap;
  }

  .sf-seal-vt {
    width: 100%;
    justify-content: center;
  }
}
