/* Landing art direction: the app's folded corners, quiet chrome and useful detail. */
:root {
  --surface-line: #dce3eb;
  --surface-shadow: 0 16px 40px -24px #25394f40, 0 3px 8px -4px #25394f18;
  --paper-shadow: 0 8px 20px -12px #28406338, 0 1px 3px #28406308;
  --surface-radius: 7px 20px 7px 7px;
}

.product-stage {
  background: #eef2f8;
  border-color: #ffffffb3;
  border-radius: 12px 22px 0 0;
  box-shadow: 0 30px 75px -30px #10215b70, 0 0 0 6px #ffffff0a;
}
.stage-bar {
  background: #fbfcff;
  border-color: #dde4ee;
  border-radius: 12px 22px 0 0;
  padding: 19px 30px;
}
.stage-brand > svg { color: #3653b1; }
.preview-label { color: #66758a; font-family: inherit; font-size: 12px; }
.stage-flow { padding: 28px 32px 30px; gap: 0 36px; }
.result-tabs { gap: 5px; margin-bottom: 14px; }
.result-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 14px; border: 1px solid transparent;
  border-radius: 5px; background: transparent; color: #5d6c7e;
}
.result-tabs button + button { border-left: 1px solid transparent; }
.result-tabs button .icon { width: 17px; height: 17px; }
.result-tabs button[aria-selected="true"] {
  background: #fff; border-color: #cdd8e9; color: #304dac; box-shadow: 0 2px 4px #2e43750a;
}
.result-tabs button:not([aria-selected="true"]):hover { background: #e3e9f3; color: #334d87; }
.result-document {
  border: 1px solid #d5dfed; border-radius: var(--surface-radius);
  box-shadow: var(--paper-shadow); padding: 25px 28px 22px;
  display: flex; flex-direction: column;
}
.result-panels > .result-document[hidden] { display: flex !important; }
.document-label { color: #597087; gap: 9px; font-size: 11px; letter-spacing: .045em; }
.document-label .icon { width: 17px; height: 17px; color: #4965ab; }
.result-document h3 { font-size: 35px; margin-block: 19px 22px; font-weight: 550; }
.brief-row { padding: 14px 0; gap: 14px; align-items: flex-start; border-color: #e4e9ef; }
.brief-row > span {
  display: flex; align-items: center; justify-content: center;
  min-width: 27px; height: 27px; padding: 0; margin-top: 2px;
  border: 1px solid #dce4f1; border-radius: 3px 8px 3px 3px; background: #f0f4fb; color: #5873a2;
}
.brief-row p { font-size: 16px; }
.brief-row small { font-size: 14px; color: #67778a; }
.brief-row small strong { font-weight: 600; color: #506175; }
.document-source {
  border-top: 1px solid #e5eaf1; padding-top: 15px; margin-top: auto;
  min-height: 40px; color: #617689; font-size: 12px;
}
.draft-recipient {
  display: flex; align-items: center; gap: 13px; margin-top: 18px;
  padding-bottom: 12px; border-bottom: 1px solid #e5eaf1; font-size: 13px;
}
.draft-recipient > span, .draft-subject-label { color: #758392; font-weight: 400; }
.draft-recipient strong { color: #45605a; background: #edf4f0; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.draft-document h3 { font-size: 24px; display: flex; align-items: baseline; gap: 13px; margin: 12px 0 7px; }
.draft-subject-label { font: 13px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; }
.draft-document > p { font-size: 15px; line-height: 1.75; margin-top: 10px; }
.draft-document .document-source { margin-top: 20px; }
.brain-stage { border-color: #d8e1ed; padding: 12px 0 22px; margin-bottom: 12px; gap: 12px; }
.brain-stage strong { font-size: 21px; }
.brain-stage > div > span { color: #62758b; }
.mini-tile { box-shadow: inset 0 1px 0 #ffffffb3; }
.brain-stage .mini-tile { width: 43px; height: 47px; }
.brain-stage > .brain-people { display: flex; margin-left: auto; padding-left: 5px; }
.brain-people > span {
  width: 26px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #eef2f8; border-radius: 5px 5px 5px 1px; margin-left: -5px;
  font-size: 9px; font-weight: 650; color: #685958; background: #ece1dc;
}
.brain-people > span:nth-child(2) { color: #64597d; background: #e2def1; }
.brain-people > span:nth-child(3) { color: #4b6c5c; background: #dcebe2; }
.source-details > summary { font-size: 13px; font-weight: 600; color: #4e627d; }
.source-snippet { gap: 12px; padding: 17px 0; border-color: #dbe3ee; align-items: flex-start; }
.source-snippet .mini-tile { width: 32px; height: 35px; }
.source-snippet .mini-tile .icon { width: 21px; height: 21px; }
.source-snippet p { font-size: 14px; line-height: 1.6; color: #405269; }
.source-type { color: #708099; font-size: 12px; }
.product-stage[data-frame="1"] .source-type { color: #385bb0; }
.product-stage[data-frame="1"] .source-snippet .mini-tile { border-color: #8da4d5; }
.product-stage[data-frame="1"] .document-source { color: #385bb0; }
.product-stage[data-frame="2"] .brain-stage .mini-tile { background: #dce6ff; border-color: #839bd1; }
.product-stage > .scene-controls { background: #f9fbff; border-color: #dce4ef; padding-block: 13px; }
.scene-progress { background: #e0e6f1; border-radius: 2px; }
.scene-progress > span { background: #526dbe; }
.scene-play, .scene-arrows button { border-radius: 5px; }

/* One frame, two views of the same message. */
.privacy-panes {
  border: 1px solid var(--surface-line); border-radius: var(--surface-radius);
  background: #fff; box-shadow: var(--surface-shadow); gap: 0; overflow: hidden;
}
.privacy-pane { padding: 24px; border: 0; border-radius: 0; background: transparent; min-height: 244px; }
.privacy-pane.masked-pane { background: #eef2ff; border-left: 1px solid #d8e1f5; }
.pane-label { font: 600 12px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .01em; color: #65788b; }
.masked-pane .pane-label { color: #425db0; }
.privacy-pane mark { font-size: 13px; font-weight: 600; padding: 3px 5px; background: #dce5ff; color: #354fa1; }
.privacy-pane strong { color: #344b61; }
.scene-caption { color: #63768a; }
.privacy-switch { padding: 4px; border: 1px solid #d8e1ed; border-radius: 7px; background: #eaf0f7; }
.privacy-switch button { border-radius: 4px; border-color: transparent; background: transparent; }
.privacy-switch button[aria-pressed="true"] { background: white; border-color: #d0dcee; box-shadow: 0 2px 4px #2942730a; }

.model-scene, .brain-browser { border-color: var(--surface-line); border-radius: var(--surface-radius); box-shadow: var(--surface-shadow); }
.model-scene { background: #f7f9fd; box-shadow: 0 24px 55px -20px #0b151c7a, 0 1px 0 #ffffff80 inset; padding: 27px 28px; }
.memory-strip { border: 0; background: #edf2fb; padding: 17px; border-radius: 5px 12px 5px 5px; margin-top: 22px; }
.memory-strip > span { display: flex; align-items: center; justify-content: center; color: #4e6ca8; }
.memory-strip strong { color: #3d516b; }
.memory-strip p { color: #647991; }
.model-question { border: 1px solid #d5dfec; border-radius: 6px 14px 6px 6px; box-shadow: var(--paper-shadow); padding: 17px 19px; }
.model-question > span { font: 11px/1.5 var(--mono); color: #73839b; letter-spacing: .04em; display: block; margin-bottom: 6px; }
.model-question > p { font-size: 17px; line-height: 1.6; }
.model-picker { margin-top: 21px; }
.model-picker select { border-color: #c6d3e5; border-radius: 5px; color: #3f5573; background-color: #fff; min-width: 122px; box-shadow: 0 2px 3px #32476808; }
.model-picker select:focus-visible { outline: 3px solid #d89723; outline-offset: 4px; }
.model-state { border-color: #dce4ed; }
.model-letter { width: 38px; height: 41px; border-radius: 4px 10px 4px 4px; font-size: 22px; box-shadow: inset 0 1px 0 #ffffff90; }
.model-state-mark { background: #e8f1ed; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.model-state-mark .icon { width: 14px; height: 14px; }
.brain-browser > .scene-topline { background: #fbfcff; border-radius: 7px 20px 0 0; border-color: #e0e6ef; }
.brain-picker { background: #eff3f9; border-color: #e0e6ef; }
.brain-picker button { border-radius: 5px; }
.brain-picker button[aria-selected="true"] { border-color: #c9d6e9; box-shadow: 0 3px 9px -5px #3c547533; }
.brain-picker button[aria-selected="true"] strong { color: #36539b; }
.memory-entry { border-color: #e4eaf0; }
.memory-entry > .icon { background: #edf2f8; padding: 5px; width: 28px; height: 30px; border-radius: 3px 8px 3px 3px; color: #6c839d; }
.memory-entry small { color: #6c7d8d; }
.brain-ask { background: #eef2ff; border-color: #cad5ed; border-radius: 5px; }
.brain-ask, .brain-back { scroll-margin-block: 24px; }
.brain-browser-foot { background: #f7f9fd; border-color: #e0e6ef; border-radius: 0 0 7px 7px; }
.conversation-question { background: #edf2fb; border-color: #dce4f0; border-radius: 5px 14px 5px 5px; }
.conversation-citation { color: #4c6d61; }
.conversation-receipt { background: #f0f6f2; border: 0; border-left: 2px solid #adc8b7; border-radius: 0 5px 5px 0; }
.app-result-icon { box-shadow: 0 4px 8px -5px #33445d40, inset 0 1px 0 #ffffffb3; }
.app-result-excerpt { border-top-color: #d5dee7; border-left: 2px solid #d3ddf0; padding-left: 16px; }
.app-results > article:nth-child(2) .app-result-excerpt { border-left-color: #c6dacf; }
.app-results > article:nth-child(3) .app-result-excerpt { border-left-color: #e6d8ac; }

@media (prefers-reduced-motion: no-preference) {
  .source-type, .source-snippet .mini-tile, .document-source {
    transition: color 220ms var(--motion-ease), border-color 220ms var(--motion-ease);
  }
}

@media (max-width: 1150px) {
  .stage-flow { gap: 0 25px; padding: 24px; }
  .result-document { padding: 22px; }
  .result-document h3 { font-size: 30px; }
  .draft-document h3 { font-size: 23px; }
  .brain-stage > .brain-people { display: none; }
  .privacy-pane { padding: 21px 18px; }
}
@media (max-width: 850px) {
  .stage-flow { gap: 0; }
  .brain-stage { padding: 0 0 17px; margin-bottom: 16px; }
  .brain-stage > .brain-people { display: flex; }
  .result-document h3 { font-size: 33px; }
  .draft-document h3 { font-size: 24px; }
  .source-snippet { padding: 14px 0; }
  .privacy-pane { padding: 24px; }
}
@media (max-width: 560px) {
  .product-stage { border-radius: 8px 18px 0 0; box-shadow: 0 18px 35px -25px #14215f66; }
  .stage-bar { padding: 14px 16px; border-radius: 8px 18px 0 0; }
  .stage-flow { padding: 16px; }
  .stage-brand { font-size: 16px; }
  .preview-label { font-size: 11px; }
  .brain-stage { gap: 10px; padding-bottom: 14px; margin-bottom: 12px; }
  .brain-stage strong { font-size: 18px; }
  .brain-stage .mini-tile { width: 31px; height: 34px; }
  .brain-people > span { width: 22px; height: 24px; font-size: 8px; }
  .result-tabs { gap: 4px; margin-bottom: 10px; }
  .result-tabs button { flex: 1; padding: 10px 9px; gap: 6px; font-size: 13px; }
  .result-tabs button .icon { width: 15px; height: 15px; }
  .result-document { padding: 18px; border-radius: 5px 15px 5px 5px; }
  .result-document h3 { font-size: 28px; margin-block: 15px 15px; }
  .document-label { font-size: 10px; gap: 7px; }
  .brief-row { gap: 10px; padding: 12px 0; }
  .brief-row > span { min-width: 23px; height: 24px; font-size: 10px; }
  .brief-row p { font-size: 14px; }
  .brief-row small { font-size: 13px; }
  .document-source { font-size: 11px; padding-top: 13px; }
  .draft-recipient { margin-top: 14px; padding-bottom: 10px; gap: 10px; font-size: 12px; }
  .draft-document h3 { font-size: 21px; gap: 10px; margin-block: 10px 5px; }
  .draft-subject-label { font-size: 12px; }
  .draft-document > p { font-size: 14px; line-height: 1.65; margin-top: 10px; }
  .draft-document .document-source { margin-top: 17px; }
  .source-details { margin-top: 12px; }
  .source-details > summary { font-size: 12px; }
  .source-snippet { padding-block: 13px; }
  .privacy-panes { border-radius: 6px 17px 6px 6px; }
  .privacy-pane { padding: 22px; }
  .privacy-pane.masked-pane { border-left: 0; }
  .privacy-comparison.preview-ready .privacy-pane { min-height: 224px; }
  .privacy-comparison:not(.preview-ready) .masked-pane { border-top: 1px solid #d8e1f5; }
  .model-scene { padding: 22px 20px; }
  .memory-strip { padding: 14px; gap: 10px; margin-top: 20px; }
  .memory-strip p { font-size: 13px; }
  .model-question { padding: 15px; }
  .model-question > p { font-size: 16px; }
  .model-picker select { min-width: 108px; }
  .app-result-excerpt { padding-left: 13px; }
}
@media (max-width: 360px) {
  .stage-bar { padding-inline: 14px; }
  .stage-flow { padding: 13px; }
  .stage-brand { font-size: 15px; }
  .brain-stage > .brain-people { display: none; }
  .result-tabs button { padding-inline: 6px; font-size: 12px; gap: 5px; }
  .result-document { padding: 16px 14px; }
  .result-document h3 { font-size: 25px; }
  .draft-document h3 { font-size: 20px; }
  .brief-row { gap: 8px; }
  .brief-row small { font-size: 12px; }
  .model-scene { padding: 20px 17px; }
}
