/* The home sections share .hp-inner for their horizontal edges and vertical rhythm. */
.tour-section {
  --tour-ink: #16191c;
  --tour-muted: #4e555c;
  --tour-line: #dce3e9;
  --tour-gutter: clamp(20px, 2.5vw, 32px);
  --tour-panel-height: clamp(184px, 17.5vw, 216px);
  color: var(--tour-ink);
  background: #fff;
  color-scheme: light;
}
.feature-heading { margin-bottom: clamp(24px, 3.6vw, 45px); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(14px, 1.8vw, 24px);
}
.feature-tile {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template: auto 1fr / minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
  padding: var(--tour-gutter);
  overflow: hidden;
  border-radius: 16px;
  background: #f1f2f3;
}
.tour-anchor { position: absolute; top: 0; }
.feature-copy { min-width: 0; }
.feature-copy h3 { margin: 0; }
.feature-toggle {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  width: 100%; padding: 0; text-align: start; color: inherit;
  font-weight: 600; font-size: clamp(25px, 2.7vw, 36px); line-height: 1.055; letter-spacing: -.035em;
}
.feature-title { min-width: 0; }
.feature-title-line { display: block; }
.feature-toggle::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.feature-plus {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px;
  color: #30373d; background: #fff; border-radius: 50%;
  transition: background-color .18s, color .18s;
}
.feature-plus svg { width: 15px; height: 15px; }
.feature-toggle:hover .feature-plus, .feature-toggle:focus-visible .feature-plus { background: #24282d; color: #fff; }
.feature-toggle:focus-visible { outline: none; }
.feature-tile:has(.feature-toggle:focus-visible) { outline: 3px solid #006bd4; outline-offset: 3px; }
.feature-copy p {
  margin: 9px 0 0; min-height: 2.76em; max-width: 42ch; color: var(--tour-muted);
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.38; text-wrap: pretty;
}
.feature-art {
  min-width: 0;
  pointer-events: none;
  align-self: end;
}
.art-example {
  display: grid;
  align-items: center;
  justify-self: center;
  width: min(100%, 354px);
  min-height: var(--tour-panel-height);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px -13px #191e2447;
}
/* Let the card's lower and right edges crop the screen. The full view opens in the dialog. */
.art-shot {
  position: relative;
  height: calc(var(--tour-panel-height) + var(--tour-gutter));
  margin-inline-start: clamp(10px, 2vw, 28px);
  margin-inline-end: calc(-1 * var(--tour-gutter));
  margin-bottom: calc(-1 * var(--tour-gutter));
}
.art-shot img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max(119%, calc((var(--tour-panel-height) + var(--tour-gutter)) * 1.85));
  max-width: none;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 17px #1a202529;
}
.tour-event, .tour-ask, .access-example, .mask-example, .group-example {margin:0;padding:clamp(14px,1.8vw,24px); }
.tour-event-top, .tour-chat-caption, .access-identity, .group-result {display:flex;align-items:center;gap:9px;}
.tour-event-icon,.group-icon {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;}
.tour-event-icon {background:#fbeae4;color:#a73721;}
.tour-event-top small,.tour-event p,.tour-event dt,.tour-ask small,.access-example small,.group-result small,.tour-chat-caption small {font-size:14px;color:#53606b;}
.tour-event > strong {display:block;margin-top:16px;font-size:clamp(18px,1.6vw,23px);font-weight:620;line-height:1.15;letter-spacing:-.025em;}
.tour-event p {margin-top:4px;line-height:1.3;}
.tour-event dl, .access-example dl {margin:14px 0 0;}
.tour-event dl > div,.access-example dl > div,.mask-example > div {
  display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap;
  border-top:1px solid var(--tour-line); padding-block:8px; font-size:14px;
}
.tour-event dd,.access-example dd,.mask-example dd {margin:0;}
.tour-event dd {font-weight:570;}
.tour-chat-caption {font-size:15px;}
.tour-chat-caption img {width:18px;height:18px;flex:none;}
.tour-chat-caption small {margin-inline-start:auto;}
.tour-chat-question,.group-prompt {
  justify-self:end;width:fit-content;max-width:95%;margin:0 0 0 auto;padding:11px 14px;
  border-radius:14px 14px 4px 14px;background:#eaf0f6;color:#293846;font-size:15px;line-height:1.38;text-wrap:pretty;
}
.tour-ask .tour-chat-question,.tour-ask-answer {margin-top:18px;}
.tour-ask-answer {font-size:16px;line-height:1.4;}
.tour-ask small {display:block;margin-top:6px;}
.access-identity {font-size:16px;}
.access-identity img {width:20px;height:20px;}
.access-example dd {color:#285d48;font-weight:530;}
.access-example small {display:block;margin-top:6px;}
.group-example {display:grid;gap:18px;}
.group-result strong,.group-result small {display:block;}
.group-icon {background:#e3eee7;color:#226144;}
.group-icon svg {width:18px;height:18px;}
.group-result strong {font-size:16px;}
.group-result small {margin-top:2px;}
.mask-example > div:first-child {border:0;}
.mask-example dd {background:#edf0f2;padding:3px 6px;border-radius:4px;color:#4b5763;font-size:13px;}
.feature-dialog {
  width:min(610px,calc(100% - 28px));max-width:none;max-height:min(89svh,810px);
  padding:0;border:0;border-radius:16px;overflow:auto;overscroll-behavior:contain;
  background:#fff;color:var(--tour-ink);color-scheme:light;box-shadow:0 22px 72px #18222c37;
}
.feature-dialog::backdrop {background:#2028339e;}
html:has(.feature-dialog[open]) {overflow:hidden;}
.feature-dialog-body {padding:clamp(20px,3vw,36px);}
.feature-dialog-top {display:flex;align-items:start;justify-content:space-between;gap:12px;}
.feature-dialog-top h2 {align-self:center;margin:0;font-size:clamp(27px,2.8vw,39px);font-weight:600;line-height:1.08;letter-spacing:-.035em;}
.feature-dialog-top form {margin:0;}
.feature-close {display:grid;place-items:center;min-height:44px;min-width:44px;border-radius:50%;background:#f0f2f4;color:#303840;}
.feature-close:hover {background:#e0e5e9;}
#feature-dialog-description {margin:12px 0 22px;font-size:clamp(16px,1.22vw,18px);color:var(--tour-muted);line-height:1.48;}
.feature-sample-dialog,.feature-dialog .tour-redaction,.tour-chat-paper {border-radius:12px;background:#f5f6f7;}
.feature-sample-dialog .tour-event, .feature-sample-dialog .access-example,.feature-sample-dialog .group-example {padding:clamp(18px,2.2vw,27px);}
.feature-zoom {position:relative;display:block;width:100%;padding:0;overflow:hidden;border-radius:10px;background:#edf0f3;cursor:zoom-in;}
.feature-zoom img {display:block;width:100%;height:auto;}
.feature-zoom span {display:inline-flex;align-items:center;gap:7px;position:absolute;bottom:10px;right:10px;border-radius:99px;padding:6px 10px;background:#fff;color:#232a30;font-size:13px;}
.feature-dialog .tour-redaction {margin:0;background:none;}
.feature-dialog .rd-sample {border-radius:12px;}
.feature-dialog .tour-redaction figcaption {font-size:13px;color:var(--tour-muted);margin-top:8px;}
.tour-detail-link {display:inline-flex;align-items:center;min-height:44px;margin-top:5px;color:#145d9b;font-weight:550;text-decoration:underline;text-underline-offset:4px;}
.tour-chat-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;margin-bottom:10px;}
.tour-chat-tools select,.tour-chat-tools button {min-height:44px;color:var(--tour-ink);font:inherit;font-size:14px;}
.tour-chat-tools label {max-width:100%;}
.tour-chat-tools select {max-width:100%;padding:7px 10px;border:1px solid #d3dbe1;border-radius:9px;background:#fff;}
.tour-chat-tools button {text-decoration:underline;text-underline-offset:3px;}
.tour-chat-paper {padding:clamp(14px,2vw,24px);}
.tour-chat-thread {margin-top:18px;display:grid;gap:14px;}
.tour-chat-reply {display:flex;align-items:start;gap:8px;font-size:15px;line-height:1.45;}
.tour-chat-reply img {width:18px;height:18px;flex:none;margin-top:2px;}
.tour-chat-source {padding:12px 14px;background:#fff;border-radius:9px;}
.tour-chat-source small {font-size:13px;color:var(--tour-muted);}
.tour-chat-source blockquote {margin:5px 0 0;font-size:15px;line-height:1.4;}
.tour-sr {position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;}
.feature-dialog .security-permissions {background:#f4f6f8;color:var(--tour-ink);padding:clamp(16px,2.2vw,27px);}
.feature-dialog .security-permissions figcaption {margin:0;}
.feature-dialog .security-chat-icon {background:#e4ebef;color:#31506a;}
.feature-dialog .security-permissions figcaption small,.feature-dialog .security-example,.feature-dialog .security-exchange p {color:#535f69;}
.feature-dialog .security-permissions dl > div {border-color:var(--tour-line);}
.feature-dialog .security-exchange {background:#fff;}
.feature-dialog .security-permissions [role=switch] {color:#3b4955;}
.feature-dialog .security-read {color:#2f6046;}

.art-example > :is(.tour-event, .tour-ask, .access-example, .mask-example, .group-example) { padding: 15px 20px; }
.art-example .tour-event > strong { margin-top: 10px; font-size: 19px; }
.art-example :is(.tour-event dl, .access-example dl) { margin-top: 9px; }
.art-example :is(.tour-event dl > div, .access-example dl > div) { padding-block: 5px; }
.art-example :is(.tour-ask .tour-chat-question, .tour-ask-answer) { margin-top: 10px; }
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-section {
    --tour-gutter: clamp(18px, 4.7vw, 30px);
    --tour-panel-height: 196px;
  }
  .feature-toggle { font-size: clamp(25px, 6.6vw, 34px); }
  .art-example > :is(.tour-event, .tour-ask, .access-example, .mask-example, .group-example) { padding: 12px 15px; }
}
@media (max-width: 360px) {
  .tour-section { --tour-panel-height: 208px; }
  .art-example .tour-chat-question { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) { .feature-plus { transition: none; } }
