/* The guest preview page (/try). Reuses the app's tokens from style.css; the
   layout is its own because the gate is a 330px sign-in card and this is a
   small conversation. Also rendered inside an iframe on shadowshell.ai
   (?embed=1), where the header is hidden and the box fills the frame.
   Two views: the gate (email -> mailed sign-in link) and the preview itself. */
body.try { height: auto; min-height: 100%; display: grid; grid-template-columns: minmax(0, 560px); justify-content: center;
  align-items: start; padding: var(--s5) var(--s3); overflow-y: auto; }   /* the track, not the box, carries the 560px cap -- a phone gets the viewport */
body.try::after { display: none; }
.trybox { width: 100%; min-width: 0; border: 1px solid var(--dim); background: var(--void);
  padding: var(--s5); box-shadow: 3px 3px 0 rgba(0,0,0,.75); display: flex; flex-direction: column; gap: var(--s4); }
.tryhead { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; }
.tryhead .mark b { white-space: nowrap; }
.tape .a code { font-family: var(--mono); background: var(--sunk); border: 1px solid var(--rule); padding: 0 3px; }
.tryhead .lede { margin: 0; color: var(--dim); font-size: var(--t-sm); }
body.embed .tryhead { display: none; }
body.embed { padding: var(--s2); grid-template-columns: minmax(0, 1fr); }
body.embed .trybox { border: 0; box-shadow: none; width: 100%; padding: var(--s3); }

.tape { display: flex; flex-direction: column; gap: var(--s3); }
.tape:empty { display: none; }
.tape .q, .tape .a { margin: 0; white-space: pre-wrap; word-wrap: break-word; font-size: var(--t-md); line-height: 1.55; }
.tape .q { color: var(--hot); border-left: 2px solid var(--dusk); padding-left: var(--s3); }
.tape .a { color: var(--fore); }
.tape .a p { margin: 0 0 var(--s2); }
.tape .a p:last-child { margin-bottom: 0; }
.tape .a pre { margin: var(--s2) 0; padding: var(--s2) var(--s3); background: var(--sunk); border: 1px solid var(--rule);
  overflow-x: auto; font-family: var(--mono); font-size: var(--t-sm); white-space: pre; }
.tape .a.gate { color: var(--amber); }
.tape .pic { margin: 0; }
.tape .pic img { display: block; width: 320px; max-width: 100%; height: auto; border: 1px solid var(--rule); background: var(--sunk); }
.tape .pic figcaption { margin-top: var(--s1); color: var(--dim); font-size: var(--t-xs); }
.tape .wait { color: var(--amber); font-size: var(--t-sm); }
.tape .wait::after { content: "▌"; animation: tryblink 1s steps(2) infinite; }
@keyframes tryblink { to { visibility: hidden; } }

.ask { display: flex; flex-direction: column; gap: var(--s2); }
.ask textarea { width: 100%; resize: vertical; min-height: 72px; background: var(--sunk); border: 1px solid var(--rule);
  padding: var(--s2) var(--s3); color: var(--hot); line-height: 1.5; }
.ask textarea:focus { outline: none; border-color: var(--fore); }
.ask .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.ask .count { flex: 1 1 auto; white-space: nowrap; }
.ask .btns { margin-left: auto; }
.ask .count { color: var(--dim); }
.ask .btns { display: flex; gap: var(--s2); }
.ask .go { min-width: 110px; }
.ask .go:disabled { opacity: .5; cursor: default; }
.ask .go[hidden] { display: none; }
.ask .alt { background: transparent; color: var(--fore); border: 1px solid var(--rule); box-shadow: none; min-width: 90px; }
.ask .alt:hover:not(:disabled) { border-color: var(--fore); }
.ask .err { color: var(--alarm); font-size: var(--t-sm); min-height: 19px; margin: 0; }
.ask .cap { display: none; }
.ask .cap.on { display: block; min-height: 78px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.plans[hidden], .ask[hidden] { display: none; }
.plans { display: flex; flex-direction: column; gap: var(--s3); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.plans .plead { margin: 0; color: var(--hot); font-size: var(--t-md); line-height: 1.5; }
.plans .pnote { margin: 0; color: var(--dim); font-size: var(--t-sm); line-height: 1.55; }
.plans .go { display: block; text-align: center; text-decoration: none; }
.plans .linky { text-align: center; }

.tryfoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2); font-size: var(--t-xs); color: var(--dusk); }
.tryfoot a { white-space: nowrap; }
.tryfoot .linky { color: var(--dim); text-decoration: none; }
.tryfoot .linky:hover { color: var(--fore); }

/* ------------------------------------------------------------------ gate -- */
/* .signup, not .gate: style.css owns .gate (the vault gate) and would restyle the form. */
.signup input[type="email"] { width: 100%; background: var(--sunk); border: 1px solid var(--rule); padding: var(--s2) var(--s3);
  color: var(--hot); font: inherit; line-height: 1.5; }
.signup input[type="email"]:focus { outline: none; border-color: var(--fore); }
.signup .tos { display: flex; gap: var(--s2); align-items: flex-start; color: var(--dim); font-size: var(--t-sm); line-height: 1.5; cursor: pointer; }
.signup .tos input { margin: 4px 0 0; accent-color: var(--fore); flex: none; }
.signup .tos a { color: var(--fore); }
.signup .go { min-width: 0; white-space: nowrap; max-width: 100%; }
.signup .sent { display: flex; flex-direction: column; gap: var(--s2); }
.signup .sent[hidden] { display: none; }
.signup .sent .plead { margin: 0; color: var(--hot); font-size: var(--t-md); }
.signup .sent .pnote { margin: 0; color: var(--dim); font-size: var(--t-sm); line-height: 1.55; }
.signup .sent .pnote b { color: var(--fore); font-weight: 600; }
.signup .sent .linky { font: inherit; padding: 0; }
.signup .sent .linky:disabled { opacity: .5; cursor: default; }
.who { margin: 0; color: var(--dusk); font-size: var(--t-xs); text-align: right; overflow-wrap: anywhere; }
.who #whoemail { text-transform: none; letter-spacing: 0; }
.who .linky { font: inherit; padding: 0; color: var(--dim); }
.who .linky:hover { color: var(--fore); }
#app { display: flex; flex-direction: column; gap: var(--s4); }
#app[hidden], .signup[hidden] { display: none; }

/* Upgrade nudges (2026-12-03): one muted line per spot, never a banner. */
.upnote { margin: 0; color: var(--dusk); font-size: var(--t-xs); line-height: 1.5; }
.upnote .linky, .nudge .linky, .pic figcaption .linky { color: var(--dim); text-decoration: underline; text-decoration-color: var(--rule); font: inherit; padding: 0; }
.upnote .linky:hover, .nudge .linky:hover, .pic figcaption .linky:hover, .who a.linky:hover { color: var(--fore); }
.nudge { margin: 0; color: var(--dim); font-size: var(--t-xs); line-height: 1.5; border-left: 2px solid var(--rule); padding-left: var(--s3); }
.nudge[hidden] { display: none; }
.ask .more { color: var(--dim); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--rule); }
.ask .more[hidden] { display: none; }
.who a.linky { text-decoration: none; text-transform: none; letter-spacing: 0; }
.plans .go .price { font-weight: inherit; opacity: .8; }
.plans #pseat { color: var(--fore); }
