/* SimmerNote creator and app explanation — website-20261203-creator-preview-r1. */

.sn-how-app { position: relative; }
.sn-anchor-alias { position: absolute; top: 0; }
.sn-how-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  max-width: 1060px;
}
.sn-how-app-copy { max-width: 560px; }
.sn-how-app .sn-how-app-copy h2 {
  font-size: clamp(36px, 4.1vw, 56px);
  line-height: 1.15;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.sn-how-app-copy > p {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.7;
  color: #606974;
  max-width: 460px;
}
.sn-how-app-copy > .button { margin-top: 30px; min-width: 180px; font-size: 18px; }
.sn-how-app-example { margin: 0; min-width: 0; width: 100%; }
.sn-how-app-example .sn-app-showcase-phone { width: 100%; }

#create .creator-heading { display: block; max-width: 790px; margin-bottom: 36px; }
#create .creator-heading h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.2; }
#create .creator-lead { margin-top: 16px; font-size: 20px; line-height: 1.65; color: #665c53; }
#create .no-signup { margin-top: 10px; font-size: 16px !important; }
#create .creator-grid { align-items: start; }
#create .form-fields { padding-top: 0; }
#create .form-fields textarea { font-size: 18px; }
#create .timing-note { display: block; margin-top: 0; margin-bottom: 22px; font-size: 16px; line-height: 1.7; }
#create .create-button { min-height: 56px; font-size: 18px; white-space: normal; }
#create .form-footnote { margin-top: 12px; font-size: 15px; }
#create .preview-column { padding-top: 0; }
#create .sealed-note-example { margin: 0; }
#create .sealed-note-example .sealed-envelope-art { margin-bottom: 10px; }
#create .creator-app-note h3 { font-size: 25px; }
#create .creator-app-note p { font-size: 18px; }
#create #preview-again[hidden] { display: none !important; }

/* The modal contains a sandboxed, separate preview. Its own document handles
   the note's theme; these rules only lay out the surrounding creator controls. */
#creator-preview {
  width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #ddc8b1;
  border-radius: 20px;
  background: #fffaf3;
  color: #182538;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#creator-preview::backdrop { background: #041220c9; backdrop-filter: blur(6px); }
#creator-preview [hidden] { display: none !important; }
.creator-preview-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e7d8c6;
  background: #fffaf3;
}
.creator-preview-header > div { min-width: 0; }
.creator-preview-header h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.035em; text-wrap: balance; }
.creator-preview-header p { font-size: 15px; line-height: 1.6; color: #6e6257; margin-top: 7px; }
.creator-preview-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #ddc8b1;
  border-radius: 50%;
  background: #fffdf8;
  color: #46392c;
}
.creator-preview-close .icon { width: 20px; height: 20px; }
.creator-preview-body { padding: 18px 24px 20px; }
.creator-preview-frame-wrap {
  width: min(100%, 380px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #061522;
  box-shadow: 0 3px 18px #0615221a;
}
#preview-frame {
  display: block;
  border: 0;
  width: 100%;
  height: 600px;
  height: clamp(360px, calc(100dvh - 360px), 600px);
  background: #061522;
}
.creator-preview-status { font-size: 15px; line-height: 1.6; color: #665746; text-align: center; }
#preview-loading { margin-bottom: 14px; }
.creator-preview-controls { max-width: 380px; margin: 16px auto 0; }
.creator-preview-quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.creator-preview-quick-actions .button { min-height: 44px; padding: 10px 16px; font-size: 16px; }
.creator-preview-quick-actions .text-button { min-height: 44px; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
#creator-preview .button-outline { background: #fff8ef; color: #91452b; border: 1px solid #d8bca0; }
.creator-preview-feedback { font-size: 16px; line-height: 1.65; color: #873e27; margin: 18px 0 0; }
.creator-preview-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid #e7d8c6;
  background: #fffaf3;
  box-shadow: 0 -5px 18px #1d120608;
}
.creator-preview-actions .button { flex: 1; font-size: 16px; min-height: 50px; white-space: normal; padding: 12px 16px; }

@media (max-width: 800px) {
  .sn-how-app-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .sn-how-app-copy { max-width: 600px; margin: 0 auto; text-align: center; }
  .sn-how-app-copy > p { margin-inline: auto; }
  .sn-how-app-example { max-width: 350px; margin: 0 auto; }
  #create .creator-heading { margin-bottom: 30px; }
}
@media (max-width: 540px) {
  .sn-how-app .sn-how-app-copy h2 { font-size: 36px; }
  .sn-how-app-copy > p { margin-top: 18px; font-size: 18px; }
  .sn-how-app-copy > .button { margin-top: 24px; font-size: 17px; }
  .sn-how-app-example { max-width: 330px; }
  #create .creator-heading h2 { font-size: 36px; }
  #create .creator-lead { font-size: 18px; }
  #create .form-fields textarea { font-size: 17px; }
  #create .create-button { font-size: 17px; }
  #creator-preview { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .creator-preview-header { padding: 16px; gap: 10px; }
  .creator-preview-header h2 { font-size: 23px; }
  .creator-preview-header p { font-size: 14px; }
  .creator-preview-body { padding: 16px 14px 18px; }
  .creator-preview-frame-wrap { border-radius: 10px; }
  #preview-frame { height: clamp(360px, calc(100dvh - 400px), 600px); }
  .creator-preview-quick-actions { flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
  .creator-preview-actions { padding: 12px 14px max(12px, env(safe-area-inset-bottom)); flex-direction: column; gap: 8px; }
  .creator-preview-actions .button { flex: none; min-height: 46px; padding: 10px 14px; }
}
@media (max-width: 360px) {
  .sn-how-app .sn-how-app-copy h2, #create .creator-heading h2 { font-size: 32px; }
  .creator-preview-header h2 { font-size: 21px; }
}
