/**
 * Innet Seal — shared tile for soft gate + local QR
 * Canon: docs/BRAND-BOOK.md §3a
 */

.innet-seal {
  --seal-radius: 1.125rem;
  --seal-pad: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: var(--seal-pad);
  max-width: 22rem;
  background:
    radial-gradient(120% 80% at 12% 0%, color-mix(in srgb, var(--accent-muted, #9a8880) 12%, transparent), transparent 55%),
    var(--surface, #fcfaf5);
  border: 1px solid var(--border-subtle, #d0c8bc);
  border-radius: var(--seal-radius);
  box-shadow: none;
}

.innet-seal__caption {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #5c574f);
}

.innet-seal--qr {
  align-items: center;
  text-align: center;
  padding: 1.1rem 1.15rem 1rem;
}

.innet-seal--qr .innet-seal__canvas,
.innet-seal--qr canvas.innet-seal__canvas {
  display: block;
  border-radius: 0.65rem;
  background: var(--surface, #fcfaf5);
}

/* Legacy wraps adopt Seal look */
.qr-wrap.innet-seal--qr,
.qr-wrap {
  background:
    radial-gradient(120% 80% at 12% 0%, color-mix(in srgb, var(--accent-muted, #9a8880) 10%, transparent), transparent 55%),
    var(--surface, #fcfaf5);
  border: 1px solid var(--border-subtle, #d0c8bc);
  border-radius: var(--seal-radius, 1.125rem);
  padding: 1rem;
}

.qr-wrap figcaption,
.innet-seal--qr figcaption {
  margin: 0.55rem 0 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #5c574f);
}

/* Gate mode */
.innet-seal--gate,
.gate-block.innet-seal--gate {
  max-width: 28rem;
}

/* Privacy toolbar keeps editorial grid; Seal only for tone + honey */
.privacy-schema__toolbar.innet-seal {
  display: grid;
  max-width: none;
  width: 100%;
  padding: 0.5rem 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle, #d0c8bc);
  border-radius: 0;
  box-shadow: none;
}

.gate-block {
  /* alias: keep layout if seal.css loads after styles */
}

.innet-seal__consent,
.gate-block__label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text, #2a2a2a);
  cursor: pointer;
}

.innet-seal__consent input,
.gate-block__label input {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent, #7a665e);
  flex-shrink: 0;
}

.innet-seal__cta,
.innet-seal--gate .btn,
.gate-block .btn {
  align-self: stretch;
  min-height: 2.5rem;
  justify-content: center;
}

/* Honeypot — off-screen, not display:none (bots fill it) */
.innet-seal__honey {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .innet-seal {
    max-width: none;
    width: 100%;
  }

  .innet-seal__cta,
  .innet-seal--gate .btn,
  .gate-block .btn {
    min-height: 2.5rem;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .innet-seal {
    background: var(--surface, #fcfaf5);
  }
}

.innet-seal:focus-within {
  outline: 2px solid var(--focus, var(--accent, #7a665e));
  outline-offset: 2px;
}
